re checking -fdump-passes
[official-gcc.git] / gcc / ChangeLog
blob712e22009cca137f2c623555f0e478fd2b9131b9
1 2011-06-10  David Li  <davidxl@google.com>
3         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
4         * passes.c (passr_eq): New function.
5         (create_pass_tab): New function.
6         (pass_traverse): New function.
7         (dump_one_pass): New function.
8         (dump_pass_list): New function.
9         (dump_passes): New function.
11 2011-06-10  Jan Hubicka  <jh@suse.cz>
13         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
14         setting the nothrow flag.
15         * ipa-reference.c (propagate): Skip aliases.
16         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
17         (propagate_nothrow): Skip aliases; do not update cgraph.
18         (local_pure_const): Do not update cgraph.
19         * tree-profile.c (tree_profiling): Do fixup_cfg.
21 2011-06-10  Jan Hubicka  <jh@suse.cz>
23         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
24         (cgraph_local_node_p): ... here; handle aliases.
25         (has_addr_references_p): Break out from ...;
26         (cgraph_remove_unreachable_nodes) ... here.
28 2011-06-10  Jan Hubicka  <jh@suse.cz>
30         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
31         * common.opt (flag_inline_functions_called_once):Do not initialize to 1.
33 2011-06-10  Jan Hubicka  <jh@suse.cz>
35         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
36         (ipcp_initialize_node_lattices): Do not deal with aliases; Do not try to
37         propagate through thunks.
38         (ipcp_change_tops_to_bottom): Do not deal with aliases.
40 2011-06-10  Jan Hubicka  <jh@suse.cz>
42         * ipa-prop.c (ipa_write_node_info): Stream jump functions for indirect
43         calls.
44         (ipa_read_node_info): Likewise.
46 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
48         PR lto/49302
49         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
50         (build_and_insert_call): Likewise.
51         (build_and_insert_ref): New.
52         (gimple_expand_builtin_pow): Minor cleanup.
53         (gimple_expand_builtin_cabs): New.
54         (execute_cse_sincos): Add case for BUILT_IN_CABS.
55         
56 2011-06-10  Jan Hubicka  <jh@suse.cz>
58         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
59         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
60         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
61         (ipcp_propagate_stage): Skip aliases when propagating.
62         (ipcp_need_redirect_p): Skip aliases.
63         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
64         collect_callers_of_node.
65         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
66         for aliases.
67         (ipa_compute_jump_functions): Look through aliases.
69 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
71         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
73 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
75         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
76         Adjust comments.
77         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
79 2011-06-10  Jan Hubicka  <jh@suse.cz>
81         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
82         Update call of gimple_get_virt_method_for_binfo.
83         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
84         refuse_thunks parameter.
85         (gimple_fold_call): Update.
86         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
88 2011-06-10  Jan Hubicka  <jh@suse.cz>
90         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
91         (not_all_callers_have_enough_arguments_p): ... this one; turn into
92         worker for cgraph_for_node_and_aliases.
93         (convert_callers_for_node): Break out from ...
94         (convert_callers): ... here.
95         (modify_function): Use collect_callers_of_node.
96         (ipa_early_sra): Use cgraph_for_node_and_aliases.
98 2011-06-10  Richard Guenther  <rguenther@suse.de>
100         PR tree-optimization/49361
101         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
102         when not already in gimple form.
104 2011-06-10  Richard Guenther  <rguenther@suse.de>
106         PR bootstrap/49344
107         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
108         FOR_EACH_PHI_OR_STMT_USE.
110 2011-06-10  Jan Hubicka  <jh@suse.cz>
112         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
113         (clone_inlined_nodes): ... here.
114         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
115         to real destination prior inlining.
116         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
117         can_early_inline_edge_p, want_early_inline_function_p,
118         want_early_inline_function_p, want_inline_small_function_p,
119         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
120         edge_badness, update_all_callee_keys, lookup_recursive_calls,
121         add_new_edges_to_heap, inline_small_functions, flatten_function,
122         inline_always_inline_functions, early_inline_small_functions): Use
123         cgraph_function_or_thunk_node.
124         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
125         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
126         (do_estimate_edge_growth_1): Break out from ...
127         (do_estimate_growth) ... here; walk aliases.
128         (inline_generate_summary): Skip aliases.
130 2011-06-10  Richard Guenther  <rguenther@suse.de>
132         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
133         Scan stmts forward when combining, visit inserted stmts when
134         a stmt was changed.
136 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
138         * tree.h (error_operand_p): Add.
139         * dbxout.c (dbxout_type_fields): Use the latter.
140         * c-decl.c (add_stmt): Likewise.
141         * gimplify.c (omp_add_variable, omp_notice_variable,
142         gimplify_scan_omp_clauses): Likewise.
144 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
146         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
147         when a value is actually passed in regs.
149 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
150             Laurent RougĂ©  <laurent.rouge@menta.fr>
152         * doc/invoke.texi (SPARC options): Add -mflat.
153         * config/sparc/sparc.opt: Likewise.
154         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
155         (sparc_flat_expand_prologue): Declare.
156         (sparc_flat_expand_epilogue): Likewise.
157         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
158         (CPP_ENDIAN_SPEC): Replace with...
159         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
160         (CPP_SPEC): Adjust to above change.
161         (EXTRA_SPECS): Likewise.
162         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
163         (INCOMING_REGNO): Likewise.
164         (OUTGOING_REGNO): Likewise.
165         (LOCAL_REGNO): Likewise.
166         (SETUP_FRAME_ADDRESSES): Likewise.
167         (FIXED_REGISTERS): Set 0 for %fp.
168         (CALL_USED_REGISTERS): Likewise.
169         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
170         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
171         (RETURN_ADDR_REGNUM): Define.
172         (RETURN_ADDR_RTX): Use it.
173         (INCOMING_RETURN_ADDR_REGNUM): Define.
174         (INCOMING_RETURN_ADDR_RTX): Use it.
175         (DWARF_FRAME_RETURN_COLUMN): Likewise.
176         (EH_RETURN_REGNUM): Define.
177         (EH_RETURN_STACKADJ_RTX): Use it.
178         (EH_RETURN_HANDLER_RTX): Delete.
179         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
180         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
181         Delete.
182         (struct machine_function): Add frame_size, apparent_frame_size,
183         frame_base_reg, frame_base_offset, n_global_fp_regs and
184         save_local_in_regs_p fields.
185         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
186         sparc_frame_base_offset, sparc_n_global_fp_regs,
187         sparc_save_local_in_regs_p): New macros.
188         (sparc_option_override): Error out if -fcall-saved-REG is specified
189         for Out registers.
190         (eligible_for_restore_insn): Fix formatting.
191         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
192         (eligible_for_sibcall_delay): Likewise.
193         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
194         (sparc_legitimate_address_p): Adjust to above change.
195         (save_global_or_fp_reg_p): New predicate.
196         (return_addr_reg_needed_p): Likewise.
197         (save_local_or_in_reg_p): Likewise.
198         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
199         (SORR_SAVE, SORR_RESTORE): Delete.
200         (sorr_pred_t): New typedef.
201         (sorr_act_t): New enum.
202         (save_or_restore_regs): Rename to...
203         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
204         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
205         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
206         mechanism.  Add CFI information for double-word saves in 32-bit mode.
207         (emit_adjust_base_to_offset): New function extracted from...
208         (emit_save_or_restore_regs): ...this.  Rename the rest to...
209         (emit_save_or_restore_regs_global_fp_regs): ...this.
210         (emit_save_or_restore_regs_local_in_regs): New function.
211         (gen_create_flat_frame_[123]): New functions.
212         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
213         (sparc_flat_expand_prologue): New function.
214         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
215         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
216         (sparc_flat_expand_epilogue): New function.
217         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
218         (output_return): Likewise.
219         (output_sibcall): Likewise.
220         (sparc_output_mi_thunk): Likewise.
221         (sparc_frame_pointer_required): Likewise.
222         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
223         function optimization.
224         * config/sparc/sparc.md (flat): New attribute.
225         (prologue): Add TARGET_FLAT handling.
226         (save_register_window): Disable if TARGET_FLAT.
227         (create_flat_frame_[123]): New patterns.
228         (epilogue): Add TARGET_FLAT handling.
229         (sibcall_epilogue): Likewise.
230         (eh_return): New expander.
231         (eh_return_internal): New insn and splitter.
232         (return_internal): Add TARGET_FLAT handling.
233         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
234         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
235         (nonlocal_goto): Add TARGET_FLAT handling.
236         * config/sparc/t-elf: Add -mflat multilib.
237         * config/sparc/t-leon: Likewise.
239 2011-06-10  Jan Hubicka  <jh@suse.cz>
241         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
242         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
243         (self_recursive_p): Use cgraph_function_node.
244         (propagate_pure_const): Likewise.
245         (propagate_nothrow): Likewise.
246         * ipa-reference.c (ipa_reference_get_not_read_global): Use
247         cgraph_function_node.
248         (propagate_bits): Likewise.
249         (propagate): Likewise.
251 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
252             Richard Earnshaw  <rearnsha@arm.com>
254         * config/arm/arm.c (const_ok_for_op): Check to see
255         if mvn can be used.
256         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
257         (*thumb2_movdi_vfp): Delete.
258         (*arm_movdi_vfp_cortexa8): Delete.
259         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
260         (*movdi_vfp_cortexa8): Likewise.
262 2011-06-10  Richard Guenther  <rguenther@suse.de>
264         * stor-layout.c (initialize_sizetypes): Give names to all
265         sizetype kinds.
267 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
269         PR tree-optimization/49318
270         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
271         irrelevant pattern statements.
273 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
275         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
277         PR bootstrap/49354
278         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
279         to last assignment.
281 2011-06-09  Jan Hubicka  <jh@suse.cz>
283         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
284         do not recompute reachable flag.
285         (cgraph_finalize_function, cgraph_analyze_functions): Set
286         redefined_extern_inline here.
288 2011-06-09  Jan Hubicka  <jh@suse.cz>
290         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
291         (cgraph_only_called_directly_p): ... this one; bring offline.
292         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
293         varpool_used_from_object_file_p): Drop names from the declaratoin.
294         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
295         collect_callers_of_node): New.
296         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
297         (cgraph_edge_recursive_p): Use cgraph_function_node.
298         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
299         (cgraph_node_cannot_be_local_p_1): Break out from ...
300         (cgraph_node_can_be_local_p): ... here; walk aliases.
301         (cgraph_for_node_thunks_and_aliases): New function.
302         (cgraph_for_node_and_aliases): New function.
303         (cgraph_make_node_local_1): Break out from ...
304         (cgraph_make_node_local) ... here; use cgraph_for_node_thunks_and_aliases.
305         (cgraph_set_nothrow_flag_1): Break out from ...
306         (cgraph_set_nothrow_flag) ... here; use cgraph_for_node_thunks_and_aliases.
307         (cgraph_set_const_flag_1): Break out from ...
308         (cgraph_set_const_flag) ... here; use cgraph_for_node_thunks_and_aliases.
309         (cgraph_set_pure_flag_1): Break out from ...
310         (cgraph_set_pure_flag) ... here; use cgraph_for_node_thunks_and_aliases.
311         (cgraph_propagate_frequency_1): Break out from ...
312         (cgraph_propagate_frequency) ... here; use cgraph_for_node_thunks_and_aliases.
313         (cgraph_used_from_object_file_p): Do not care about aliases.
314         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p): New functions.
315         (collect_callers_of_node_1, collect_callers_of_node): New functions.
317 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
319         PR rtl-optimization/49154
320         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
321         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
322         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
323         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
324         * config/cris/cris.h (cris_register_move_cost): Remove
325         !TARGET_V32 code.  Tweak comments.
327 2011-06-09  Jan Hubicka  <jh@suse.cz>
329         * cgraphbuild.c (record_eh_tables): Mark personality function as having
330         address taken.
332 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
334         PR rtl-optimization/49154
335         * ira-costs.c (setup_regno_cost_classes_by_mode): If there
336         already is a matching slot in the hashtable, assign it to
337         classes_ptr.
339         PR rtl-optimization/49154
340         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
341         register classes.
342         * doc/tm.texi: Regenerate.
344 >>>>>>> .r174929
345 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
347         PR target/49307
348         * config/sh/sh.md (UNSPEC_CHKADD): New.
349         (chk_guard_add): New define_insn_and_split.
350         (symGOT_load): Use chk_guard_add instead of blockage.
352 2011-06-09  Kai Tietz  <ktietz@redhat.com>
354         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
356 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
358         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
360 2011-06-09  Wei Guozhi  <carrot@google.com>
362         PR target/46975
363         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
364         (peephole2 for conditional move): Generate 16 bit instructions.
366 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
368         * config/i386/i386.md (*movdi_internal_rex64): Merge
369         alternatives 6 and 8.
371 2011-06-09  David Li  <davidxl@google.com>
373         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
374         * passes.c (passr_eq): New function.
375         (create_pass_tab): New function.
376         (pass_traverse): New function.
377         (dump_one_pass): New function.
378         (dump_pass_list): New function.
379         (dump_passes): New function.
381 2011-06-09  David Li  <davidxl@google.com>
383         * tree-complex.c (tree_lower_complex): Gate cleanup.
384         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
385         (execute_optimize_stdarg): Ditto.
386         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
387         (execute_cleanup_eh_1): Ditto.
388         (execute_cleanup_eh): Ditto.
389         * gcse.c (gate_rtl_pre): Ditto.
390         (execute_rtl_pre): Ditto.
391         * except.c (finish_eh_generation): Ditto.
392         (convert_to_eh_region_ranges): Ditto.
393         * cprop.c (one_cprop_pass): Ditto.
395 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
397         PR target/48673
398         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
399         in all basic blocks.
401 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
403         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
404         (HAVE_ENABLE_EXECUTE_STACK): Define.
405         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
406         (HAVE_ENABLE_EXECUTE_STACK): Define.
407         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
408         (HAVE_ENABLE_EXECUTE_STACK): Define.
409         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
410         (ENABLE_EXECUTE_STACK): Remove.
411         (HAVE_ENABLE_EXECUTE_STACK): Define.
412         [IN_LIBGCC2]: Don't include <windows.h>.
413         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
414         (HAVE_ENABLE_EXECUTE_STACK): Define.
415         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
416         (HAVE_ENABLE_EXECUTE_STACK): Define.
417         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
418         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
419         (HAVE_ENABLE_EXECUTE_STACK): Define.
420         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
421         (HAVE_ENABLE_EXECUTE_STACK): Define.
422         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
423         (HAVE_ENABLE_EXECUTE_STACK): Define.
424         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
425         (HAVE_ENABLE_EXECUTE_STACK): Define.
426         * config/alpha/alpha.c (alpha_trampoline_init): Test
427         HAVE_ENABLE_EXECUTE_STACK.
428         * config/i386/i386.c (ix86_trampoline_init): Likewise.
429         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
430         (sparc64_initialize_trampoline): Likewise.
431         * libgcc2.c [L_enable_execute_stack]: Remove.
432         * system.h (ENABLE_EXECUTE_STACK): Poison.
433         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
434         * doc/tm.texi: Regenerate.
435         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
437 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
439         PR middle-end/49308
440         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
441         variable.  After resetting and rescanning insn continue with previous
442         statement.
444 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
446         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
447         (gcc_cv_ld_hidden): Likewise.
448         * configure: Regenerate.
449         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
450         (ix86_stack_protect_fail): Mark unused.
451         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
452         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
453         [TARGET_MACHO]: Don't define.
454         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
455         (TARGET_STACK_PROTECT_FAIL): Likewise.
456         (rs6000_stack_protect_fail): Mark unused.
457         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
458         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
460 2011-06-08  Andi Kleen  <ak@linux.intel.com>
462         * varasm.c (get_section): Print location of other conflict
463         for section conflicts.
465 2011-06-08  Andi Kleen  <ak@linux.intel.com>
467         * config/i386/driver-i386.c (host_detect_local_cpu):
468         Add model 0x2d Intel CPU.
470 2011-06-08  Andi Kleen  <ak@linux.intel.com>
472         * reginfo.c (global_regs_decl): Add.
473         (globalize_reg): Add decl parameter. Compute location.  Pass location
474         to warnings and add inform. Store decl in global_regs_decl.
475         * rtl.h (globalize_reg): Update prototype.
476         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
478 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
480         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
482 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
484         PR target/49305
485         * config/sh/predicates.md (general_movsrc_operand): Check
486         mode for memory with indexed address for QI and HImode.
487         (general_movdst_operand): Likewise.
489 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
491         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
493 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
495         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
496         (num_ssa_operands): Likewise.
497         (op_iter_init_phiuse): Forward-declare.
498         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
500 2011-06-08  Nick Clifton  <nickc@redhat.com>
502         * doc/invoke.texi (ARM Options): Update description of
503         -mthumb-interwork.
505 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
507         * config/i386/driver-i386.c (host_detect_local_cpu): Support
508         unknown Intel family 0x6 CPUs.
510 2011-06-08  Martin Jambor  <mjambor@suse.cz>
512         * tree-sra.c (mark_rw_status): Removed.
513         (analyze_access_subtree): New parameter parent instead of
514         mark_read and mark_write, propagate from that.
516 2011-06-08  Julian Brown  <julian@codesourcery.com>
518         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
519         for double-precision helper functions in hard-float mode if only
520         single-precision arithmetic is supported in hardware.
522 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
524         PR rtl-optimization/49303
525         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
526         code_motion_path_driver returned 0 or 1.
527         (sel_region_finish): Clear h_d_i_d.
529 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
531         * config/sh/sh.c (prepare_move_operands): Set pic register
532         appropriately for global and local dynamic tls models even
533         if flag_pic is unset.
535 2011-06-07  Jason Merrill  <jason@redhat.com>
537         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
539 2011-06-07  Xinliang David Li  <davidxl@google.com>
540         * passes.c (enable_disable_pass): Handle assembler name.
541         (is_pass_explicitly_enabled_or_disabled): Ditto.
543 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
545         PR tree-optimization/48497
546         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
548 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
550         PR tree-optimization/46728
551         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
552         to use gimple_val_nonnegative_real_p.
553         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
554         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
556 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
558         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
560 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
562         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
563         constant vectors.
565 2011-06-07  Richard Guenther  <rguenther@suse.de>
567         * stor-layout.c (initialize_sizetypes): Initialize all
568         sizetypes based on target definitions.
569         (set_sizetype): Remove.
570         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
571         * tree.h (set_sizetype): Remove.
573 2011-06-07  Nick Clifton  <nickc@redhat.com>
575         * config.gcc: Unify V850 architecture options and add support for
576         newer V850 architectures.
577         * config/v850/t-v850e: Delete.
579 2011-06-07  Richard Guenther  <rguenther@suse.de>
581         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
582         Call set_sizetype from here.
584 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
586         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
587         (*maddhisi4tb, *maddhisi4tt): New define_insns.
589 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
590             Andrew Stubbs  <ams@codesourcery.com>
592         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
593         multiplies.
594         * doc/md.texi (Canonicalization of Instructions): Document widening
595         multiply canonicalization.
597 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
599         PR gcov-profile/49299
600         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
602 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
604         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
605         a pointer.
606         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
607         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
608         vect_recog_pow_pattern): Likewise.
609         (vect_pattern_recog_1): Remove declaration.
610         (widened_name_p): Remove declaration.  Add new argument to specify
611         whether to check that both types are either signed or unsigned.
612         (vect_recog_widen_mult_pattern): Update documentation.  Handle
613         unsigned patterns and multiplication by constants.
614         (vect_pattern_recog_1): Update vect_recog_func references.  Use
615         statement information from the statement returned from pattern
616         detection functions.
617         (vect_pattern_recog): Update vect_recog_func reference.
618         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
619         multiplication by a constant use the type of the other operand.
621 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
623         PR rtl-optimization/49145
624         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
626 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
628         PR debug/49262
629         * dwarf2out.c (native_encode_initializer): Decrement count in each
630         iteration.
632         PR debug/49294
633         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
634         non-MODE_INT modes.
636         PR c++/49264
637         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
638         if stmt folded into nothing.
639         * tree-inline.c (fold_marked_statements): If a builtin at the end of
640         a bb folded into nothing, just update cgraph edges and move to next bb.
641         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
642         to be NULL.  Don't compute count and frequency if new_call is NULL.
644 2011-06-04  Diego Novillo  <dnovillo@google.com>
646         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
647         (cgraph.o): Likewise.
648         (cgraphunit.o): Likewise.
649         * cgraphunit.c: Include lto-streamer.h
650         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
651         if LTO is enabled.
652         * lto-streamer-in.c (unpack_value_fields): Call
653         streamer_hooks.unpack_value_fields if set.
654         (lto_materialize_tree): For unhandled nodes, first try to
655         call lto_streamer_hooks.alloc_tree, if it exists.
656         (lto_input_ts_decl_common_tree_pointers): Move reading of
657         DECL_INITIAL to lto_streamer_read_tree.
658         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
659         (lto_streamer_read_tree): New.
660         (lto_reader_init): Rename from lto_init_reader.
661         Move initialization code to lto/lto.c.
662         * lto-streamer-out.c (pack_value_fields): Call
663         streamer_hooks.pack_value_fields if set.
664         (lto_output_tree_ref): For tree nodes that are not normally indexable,
665         call streamer_hooks.indexable_with_decls_p before giving up.
666         (lto_output_ts_decl_common_tree_pointers): Move handling
667         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
668         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
669         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
670         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
671         (lto_streamer_write_tree): New.
672         (lto_output): Call lto_streamer_init directly.
673         (lto_writer_init): Remove.
674         * lto-streamer.c (streamer_hooks): New.
675         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
676         instead of lto_preload_common_nodes.
677         (lto_is_streamable): Move from lto-streamer.h
678         (lto_streamer_hooks_init): New.
679         (streamer_hooks): New.
680         (streamer_hooks_init): New.
681         * lto-streamer.h (struct output_block): Forward declare.
682         (struct lto_input_block): Likewise.
683         (struct data_in): Likewise.
684         (struct bitpack_d): Likewise.
685         (struct streamer_hooks): Declare.
686         (streamer_hooks): Declare.
687         (lto_streamer_hooks_init): Declare.
688         (lto_streamer_write_tree): Declare.
689         (lto_streamer_read_tree): Declare.
690         (streamer_hooks_init): Declare.
691         (lto_is_streamable): Move to lto-streamer.c
693 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
695         * longlong.h (smul_ppmm): The resulting register pair contains the
696         higher order word first.
698 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
700         PR tree-optimization/46728
701         * builtins.c (powi_table): Remove.
702         (powi_lookup_cost): Remove.
703         (powi_cost): Remove.
704         (expand_powi_1): Remove.
705         (expand_powi): Remove.
706         (expand_builtin_pow_root): Remove.
707         (expand_builtin_pow): Remove.
708         (expand_builtin_powi): Eliminate handling of constant exponent.
709         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
711 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
713         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
715 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
717         * dce.c (reset_unmarked_insns_debug_uses): New.
718         (delete_unmarked_insns): Skip debug insns.
719         (prescan_insns_for_dce): Likewise.
720         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
721         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
722         active reg can be found.
723         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
724         (convert_regs_1): Use it.
726 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
728         * tree-pretty-print.c (dump_function_header): Add flags.
729         Don't dump decl_uid with nouid.
730         * tree-pretty-print.h (dump_function_header): Adjust.
731         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
732         * passes.c (pass_init_dump_file): Pass dump_flags on.
733         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
735 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
737         PR bootstrap/49270
738         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
740 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
742         PR tree-optimization/49243
743         * calls.c (setjmp_call_p): Also check if fndecl has the
744         returns_twice attribute.
746 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
748         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
749         -ffast-math etc.
751 2011-06-06  Richard Henderson  <rth@redhat.com>
752             Georg-Johann Lay  <avr@gjlay.de>
754         PR target/42210
755         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
756         New predicates.
757         * config/avr/avr.md ("insv"): New insn expander.
758         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
759         "*insv.not.io", "*insv.reg"): New insns.
761 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
763         PR target/49285
764         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
765         to nonimmediate_operand from memory_operand for the operand that is to
766         be forced to memory by the expander.  Lose the constraints.
768 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
770         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
771         EH return when delayed branches are disabled.
773 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
775         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
776         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
777         calculation.
778         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
779         Simplify MODE_V1DF and MODE_V2SF handling.
780         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
781         Simplify MODE_SF handling.
783 2011-06-04  Jan Hubicka  <jh@suse.cz>
785         PR tree-optimization/48893
786         PR tree-optimization/49091
787         PR tree-optimization/49179
788         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
789         Bounds check.
791 2011-06-04  Jan Hubicka  <jh@suse.cz>
793         PR lto/48954
794         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
795         bitmaps.
797 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
799         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
801 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
803         PR target/49281
804         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
805         to be strictly smaller than 1 << shiftcount.
807 2011-06-04  Jan Hubicka  <jh@suse.cz>
809         PR tree-optimize/48929
810         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
811         of empty predicate.
813 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
815         PR debug/48333
816         * calls.c (emit_call_1): Prefer the __builtin declaration of
817         builtin functions.
819 2011-06-03   Diego Novillo  <dnovillo@google.com>
821         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
822         (lto_input_tree_pointers): Likewise.
823         * lto-streamer-out.c (pack_value_fields): Likewise.
824         (lto_output_tree_pointers): Likewise.
825         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
826         and OPTIMIZATION_NODE.
828 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
830         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
831         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
832         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
833         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
834         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
835         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
836         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
837         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
838         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
839         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
840         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
841         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
842         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
843         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
844         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
845         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
846         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
847         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
848         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
849         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
850         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
851         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
852         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
853         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
854         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
855         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
856         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
857         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
858         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
859         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
860         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
861         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
862         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
863         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
864         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
865         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
866         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
867         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
868         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
869         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
870         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
871         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
872         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
873         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
874         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
875         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
876         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
877         * system.h (MD_UNWIND_SUPPORT): Poison.
878         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
879         * doc/tm.texi: Regenerate.
880         * unwind-dw2.c: Include md-unwind-support.h instead of
881         MD_UNWIND_SUPPORT.
882         * config/ia64/unwind-ia64.c: Likewise.
883         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
885 2011-06-03  Jack Howarth <howarth@bromo.med.uc.edu>
887         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
889 2011-06-03  Richard Henderson  <rth@redhat.com>
890             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
892         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
893         (sigill_hdlr): Correct insn, insn size.
894         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
896 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
898         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
899         t-slibgcc-dummy.
900         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
901         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
902         * config/mips/t-iris: Remove.
903         * config/mips/t-irix6: New file.
904         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
906 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
908         * Makefile.in (LIB2ADDEHDEP): Remove.
909         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
910         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
911         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
912         * config/t-darwin (LIB2ADDEHDEP): Remove.
913         * config/t-freebsd (LIB2ADDEHDEP): Remove.
914         * config/t-linux (LIB2ADDEHDEP): Remove.
916 2011-06-03  Diego Novillo  <dnovillo@google.com>
918         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
919         (lto_register_var_decl_in_symtab): Likewise.
920         (lto_register_function_decl_in_symtab): Likewise.
921         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
922         logic to uniquify_nodes.
924 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
926         * config/alpha/t-osf5: Remove.
927         * config/alpha/t-osf-pthread: Remove.
928         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
929         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
931 2011-06-03  Julian Brown  <julian@codesourcery.com>
933         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
934         (strongarm1110): Use strongarm tuning.
935         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
936         * config/arm/arm.c (arm_strongarm_tune): New.
937         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
938         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
939         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
940         setting, using previous defaults or 1 for Cortex-A5.
941         (arm_option_override): Set max_insns_skipped from current tuning.
943 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
945         * doc/install.texi (Options specification): Document --with-specs.
947 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
949         * config/arm/neon.md (orndi3_neon): Actually split it.
951 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
953         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
954         * var-tracking.c (reverse_op): Limite recurse depth to 5.
956 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
958         PR debug/47590
959         * target.def (delay_sched2, delay_vartrack): New.
960         * doc/tm.texi.in: Update.
961         * doc/tm.texi: Rebuild.
962         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
963         * var-tracking.c (gate_handle_var_tracking): Likewise.
964         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
965         (bfin_flag_var_tracking): Drop.
966         (output_file_start): Don't save and override flag_var_tracking.
967         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
968         (bfin_reorg): Test original variables.
969         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
970         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
971         (ia64_flag_var_tracking): Drop.
972         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
973         (ia64_file_start): Don't save and override flag_var_tracking.
974         (ia64_override_options_after_change): Ditto
975         flag_schedule_insns_after_reload.
976         (ia64_reorg): Test original variables.
977         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
978         (picochip_flag_var_tracking): Drop.
979         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
980         (picochip_option_override): Don't save and override
981         flag_schedule_insns_after_reload.
982         (picochip_asm_file_start): Ditto flag_var_tracking.
983         (picochip_reorg): Test original variables.
984         * config/spu/spu.c (spu_flag_var_tracking): Drop.
985         (TARGET_DELAY_VARTRACK): Define.
986         (spu_var_tracking): New.
987         (spu_machine_dependent_reorg): Call it.
988         (asm_file_start): Don't save and override flag_var_tracking.
990 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
992         PR target/49163
993         * config/sh/predicates.md (general_movsrc_operand): Return 0
994         for memory and memory subreg of which address is an invalid
995         indexed address for QI and HImode.
996         (general_movdst_operand): Likewise.
998 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
1000         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
1001         edges only, when there is a non-local label in the function.
1002         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
1004 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
1006         * config/i386/constraints.md (Y3): New register constraint.
1007         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
1008         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
1009         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
1010         *sse2_interleave_lowv2df.
1012 2011-06-02  Julian Brown  <julian@codesourcery.com>
1014         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
1015         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
1016         (arm_cortex_a5_tune): New.
1018 2011-06-02  Julian Brown  <julian@codesourcery.com>
1020         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
1021         * config/arm/arm.c (arm_default_branch_cost): New.
1022         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1023         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
1024         (arm_fa726_tune): Set branch_cost field using
1025         arm_default_branch_cost.
1026         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
1027         current_tune structure.
1028         * dojump.c (tm_p.h): Include file.
1030 2011-06-02  Julian Brown  <julian@codesourcery.com>
1032         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
1033         tuning.
1034         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
1035         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
1036         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
1037         field.
1038         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
1039         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
1040         (arm_fa726te_tune): Add prefer_constant_pool setting.
1041         (arm_v6t2_tune, arm_cortex_tune): New.
1042         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
1043         prefer_constant_pool setting.
1045 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
1047         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
1048         switch statement.
1049         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
1050         (*movdf_internal) <case 6,7,8>: Ditto.
1052         * config/i386/constraints.md (Y4): New register constraint.
1053         * config/i386/sse.md (vec_set<mode>_0): Merge with
1054         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
1055         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
1056         *vec_extractv2di_1_sse.
1057         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
1058         and *vec_concatv2di_rex64_sse.
1060 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
1062         PR target/48807
1063         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
1064         of cgraph_local_info for null before attempting to use it.
1066 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
1068         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
1069         (current_function_dynamic_alloc_count): Delete.
1070         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
1071         (expand_builtin_nonlocal_goto): Remove obsolete comment.
1072         (expand_builtin_update_setjmp_buf): Remove dead code.
1073         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
1074         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
1075         support.
1076         * function.c (instantiate_virtual_regs): Likewise.
1077         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
1078         for a block with a single abnormal incoming edge.
1079         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
1080         (SETJMP_VIA_SAVE_AREA): Delete.
1081         * config/sparc/sparc-protos.h (load_got_register): Declare.
1082         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
1083         (load_got_register): Make global.
1084         (sparc_frame_pointer_required): Add 'static'.
1085         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
1086         (sparc_builtin_setjmp_frame_value): New function.
1087         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
1088         (save_stack_nonlocal): New expander.
1089         (restore_stack_nonlocal): Likewise.
1090         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
1091         (nonlocal_goto_internal): New insn.
1092         (goto_handler_and_restore): Delete.
1093         (builtin_setjmp_setup): Likewise.
1094         (do_builtin_setjmp_setup): Likewise.
1095         (setjmp): Likewise.
1096         (builtin_setjmp_receiver): New expander.
1098 2011-06-01  David Li  <davidxl@google.com>
1100         PR middle-end/49261
1101         * tree-pretty-print.c (dump_function_header): Format cleanup.
1103 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
1105         PR target/49238
1106         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
1107         needed when original operands are used for msw_skip comparison.
1109 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
1111         PR debug/49250
1112         * var-tracking.c (add_uses, add_stores): Don't call
1113         cselib_subst_to_values on ENTRY_VALUE.
1115 2011-06-01  Diego Novillo  <dnovillo@google.com>
1117         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
1118         output_record_start with LTO_null instead of output_zero.
1119         (lto_output_ts_binfo_tree_pointers): Likewise.
1120         (lto_output_tree): Likewise.
1121         (output_eh_try_list): Likewise.
1122         (output_eh_region): Likewise.
1123         (output_eh_lp): Likewise.
1124         (output_eh_regions): Likewise.
1125         (output_bb): Likewise.
1126         (output_function): Likewise.
1127         (output_unreferenced_globals): Likewise.
1128         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
1129         instead of NUM_TREE_CODES.
1130         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
1131         (lto_output_int_in_range): Change << to >> when shifting VAL.
1133 2011-06-01  Diego Novillo  <dnovillo@google.com>
1135         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
1136         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
1138 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
1140         PR target/45074
1141         * optabs.h (valid_multiword_target_p): Declare.
1142         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
1143         doing multi-word operations.
1144         * optabs.c (expand_binop): Likewise.
1145         (expand_doubleword_bswap): Likewise.
1146         (expand_absneg_bit): Likewise.
1147         (expand_unop): Likewise.
1148         (expand_copysign_bit): Likewise.
1149         (multiword_target_p): New function.
1151 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
1153         PR rtl-optimization/48830
1154         PR rtl-optimization/48808
1155         PR rtl-optimization/48792
1156         * reload.c (push_reload): Check contains_reg_of_mode.
1157         * reload1.c (strip_paradoxical_subreg): New function.
1158         (gen_reload_chain_without_interm_reg_p): Use it to handle
1159         paradoxical subregs.
1160         (emit_output_reload_insns, gen_reload): Likewise.
1162 2011-06-01  David Li  <davidxl@google.com>
1164         * predict.c : Change pass name
1165         * ipa.c: Ditto.
1166         * dce.c: Ditto.
1167         * tree-profile.c: Ditto.
1168         * except.c: Ditto.
1170 2011-06-01  David Li  <davidxl@google.com>
1172         * tree-pretty-print.c (dump_function_header): New function.
1173         * final.c (rest_of_clean_state): Use header dumper.
1174         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
1175         * passes.c (pass_init_dump_file): Use header dumper.
1177 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
1179         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
1180         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
1181         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
1182         New functions.
1183         (mem_loc_descriptor): Use them.
1185         * var-tracking.c (create_entry_value): New function.
1186         (vt_add_function_parameter): Use it.
1188 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1190         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
1191         Include <signal.h>, <ucontext.h>.
1192         (sigill_caught): Define.
1193         (sigill_hdlr): New function.
1194         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
1195         insns can be executed.
1196         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
1197         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
1199 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1201         * config/t-slibgcc-darwin: Move to ...
1202         * config/t-slibgcc-dummy: ... this.  Clarify comments.
1203         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
1204         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
1205         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
1206         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
1207         Remove i386/t-crtstuff from tmake_file.
1208         (i[34567]86-*-solaris2*): Remove t-svr4,
1209         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
1210         t-slibgcc-dummy.
1211         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
1212         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
1213         sparc/t-crtfm from tmake_file.
1214         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
1215         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
1216         Remove extra_parts.
1217         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
1218         * config/i386/t-nwld (SHLIB_LINK): Remove.
1219         * config/i386/t-rtems-i386: Rename to ...
1220         * config/i386/t-rtems: ... this.
1221         ($(T)crti.o, $(T)crtn.o): Remove.
1222         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
1223         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
1224         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
1225         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
1226         EXTRA_MULTILIB_PARTS): Remove.
1227         * config/sparc/t-sol2-64: Likewise.
1228         * config/sparc/t-sol2: Remove.
1229         * config/sparc/t-crtin: Remove.
1230         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
1231         * config/i386/gmon-sol2.c: Remove.
1232         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
1233         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
1234         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
1235         * config/i386/sol2-gc1.asm: Remove.
1236         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
1237         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
1238         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
1239         * config/t-slibgcc-sld: Remove.
1241 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
1243         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
1244         base_type_for_mode with op_mode instead of mode.
1246 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
1248         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
1249         Cortex-A15.
1250         * config/arm/arm-tune.md: Regenerate.
1251         * config/arm/arm-tables.opt: Regenerate.
1252         * config/arm/arm.c (FL_DIV): Rename...
1253         (FL_THUMB_DIV): ... to this.
1254         (FL_ARM_DIV): Define.
1255         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
1256         (arm_arch_hwdiv): Remove.
1257         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
1258         (arm_issue_rate): Add cortexr5.
1259         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
1260         __ARM_ARCH_EXT_IDIV__.
1261         (TARGET_IDIV): Define.
1262         (arm_arch_hwdiv): Remove.
1263         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
1264         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
1265         (divsi3, udivsi3): New patterns.
1266         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
1267         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
1269 2011-06-01  Martin Jambor  <mjambor@suse.cz>
1271         * ipa-utils.c (ipa_dfs_info): New field scc_no.
1272         * ipa-utils.c (searchc): Set scc_no.
1274 2011-06-01  Martin Jambor  <mjambor@suse.cz>
1276         * ipa-utils.c (searchc_env): New field allow_overwritable.
1277         (searchc): do not ignore edges to overwritable nodes if indicated
1278         by env->allow_overwritable.
1279         (ipa_reduced_postorder): Set env.allow_overwritable.
1281 2011-06-01  Richard Guenther  <rguenther@suse.de>
1283         * tree.c (free_lang_data): Do not reset boolean_type_node nor
1284         char_type_node.
1285         * lto-streamer.c (lto_record_common_node): Take node pointer,
1286         do not register types.
1287         (lto_preload_common_nodes): Explicitly skip preloading nodes
1288         that differ between frontends.
1290 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
1292         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
1293         NON_FLOAT_REGS.
1295 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
1297         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
1298         parameter value for dump. Dump cost on outermost call only.
1299         (rs6000_memory_move_cost): Dump cost on outermost call only.
1301 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
1303         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
1304         DW_OP_GNU_convert ops.
1306         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
1307         cselib_preserve_constants.
1308         (cselib_lookup_1): If cselib_preserve_constants,
1309         a new VALUE is being created for REG and there is a VALUE for the
1310         same register in wider mode, add another loc with lowpart SUBREG of
1311         the wider VALUE.
1312         (cselib_subst_to_values): Handle ENTRY_VALUE.
1313         * var-tracking.c  (replace_expr_with_values): Return NULL for
1314         ENTRY_VALUE too.
1315         * dwarf2out.c (convert_descriptor_to_signed): New function.
1316         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
1317         instead of two shifts.
1318         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
1319         the right mode if needed.
1320         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
1321         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
1322         convert_descriptor_to_signed.
1323         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
1324         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
1326         PR target/48688
1327         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
1329 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
1331         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
1332         of X87MODEI12 and SWI48x instead of SSEMODEI24.
1333         (SWI248x): New mode iterator, rename from X87MODEI.
1334         (X87MODEI): Remove mode iterator.
1335         (X87MODEI12): Ditto.
1336         (SSEMODEI24): Ditto.
1338 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
1340         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
1341         * doc/invoke.texi: Document max-vartrack-expr-depth.
1342         * var-tracking.c (EXPR_DEPTH): New.
1343         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
1345 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
1347         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
1348         * config/i386/sse.md: Add n to negated FMA pattern names.
1350 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
1352         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
1354 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
1356         * gengtype-state.c (read_state_params_structs): Initialize previous.
1358 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
1360         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
1361         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
1363 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
1365         * config/i386/i386.md (*movtf_internal): Avoid allocating general
1366         registers.  Penalize F*r->o alternative to prevent partial memory
1367         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
1368         CONST_DOUBLE immediates when optimizing function for size.  Do not move
1369         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1370         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
1371         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
1372         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
1373         alternatives.
1374         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
1376         (fp_register_operand splitters): Use fp_register_operand
1377         constraint.  Do not use FP_REG_P in insn condition.
1378         (any_fp_register_operand splitters): Use any_fp_register_operand
1379         constraint.  Do not use ANY_FP_REG_P in insn condition.
1381 2011-05-31  Jan Hubicka  <jh@suse.cz>
1383         * cgraph.h (cgraph_inline_failed_t): Give enum a name
1384         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
1385         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
1386         (lto_output_edge): Use output_enum and var_len_unsigned.
1387         (lto_output_varpool_node): Likewise.
1388         (input_overwrite_node): Do not take resolution parameter;
1389         extract it from a bitpack.
1390         (input_node): Do not read resolution; use input_enum and
1391         var_len_unsigned.
1392         (input_varpool_node): Likewise.
1393         (input_edge): Likewise.
1394         (input_cgraph_1): Likewise.
1396 2011-05-31  Richard Guenther  <rguenther@suse.de>
1398         * gimple.c (gimple_register_canonical_type): Do not register
1399         any types via gimple_register_type.
1401 2011-05-31  Jan Hubicka  <jh@suse.cz>
1403         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
1404         of thunks.
1406 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
1408         PR rtl-optimization/49235
1409         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
1410         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
1412 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
1414         PR tree-optimization/49093
1415         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
1416         data references.
1418 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
1420         PR debug/49047
1421         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
1422         for concrete functions containing the code of cloned functions.
1424 2011-05-31  Richard Guenther  <rguenther@suse.de>
1426         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
1427         to ...
1428         (forward_propagate_into_comparison_1): ... this.
1429         (forward_propagate_comparison): Rename to ...
1430         (forward_propagate_into_comparison): ... this.  Split out
1431         real forward propagation code to ...
1432         (forward_propagate_comparison): ... this.
1433         (forward_propagate_into_gimple_cond): Remove looping.
1434         (forward_propagate_into_cond): Likewise.
1435         (simplify_not_neg_expr): Return whether we have done something.
1436         (simplify_gimple_switch): Likewise.
1437         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
1438         (ssa_forward_propagate_and_combine): ... this.  Re-structure
1439         to do a forward forward-propagation walk on BBs and a backward
1440         stmt combining walk on BBs.  Consistently re-scan changed statements.
1441         (pass_forwprop): Adjust.
1443 2011-05-30  Ian Lance Taylor  <iant@google.com>
1445         * godump.c (go_format_type): Correct length of name added to
1446         obstack for anonymous field.
1448 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
1450         PR target/49186
1451         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
1452         part of the second operand is 0.
1454 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
1456         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
1457         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
1458         to memory for !TARGET_MEMORY_MISMATCH_STALL.
1459         (*movdf_internal_rex64): Do not penalize F->r alternative.
1460         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
1461         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
1462         when optimizing function for size.  Do not move CONST_DOUBLEs
1463         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1464         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
1465         SUBREGs.  Do not check for MEM_P operands in the insn condition,
1466         check for ANY_FP_REGNO_P instead.
1467         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
1468         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
1469         function for speed.
1470         * config/i386/i386.c (ix86_option_override_internal): Do not
1471         set TARGET_INTEGER_DFMODE_MOVES here.
1473 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
1475         PR target/49168
1476         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
1478 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
1480         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
1481         DW_TAG_rvalue_reference_type even for
1482         -gdwarf-4 -fno-debug-types-section.
1484 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1486         PR tree-optimization/46728
1487         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
1488         (build_and_insert_binop): New.
1489         (gimple_expand_builtin_pow): Reorder args for
1490         build_and_insert_call; use build_and_insert_binop; add more
1491         optimizations for fractional exponents.
1493 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
1495         PR bootstrap/49190
1497         Revert:
1498         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
1500         * tree.h (struct tree_identifier): Inherit from tree_typed, not
1501         tree_common.
1502         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1503         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1504         TS_BASE instead of TS_COMMON.
1505         * varasm.c (assemble_name): Remove assert.
1507 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
1509         * config.gcc: Keep obselete list sorted.
1511 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
1512             Eric Botcazou  <ebotcazou@adacore.com>
1514         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
1515         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
1516         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
1517         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
1518         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
1520 2011-05-30  Richard Guenther  <rguenther@suse.de>
1522         * gimple.c (gimple_types_compatible_p_1): Compare record
1523         and union type members properly.
1525 2011-05-30  Richard Guenther  <rguenther@suse.de>
1527         PR tree-optimization/49210
1528         * ipa-split.c (split_function): Care for the case where the call
1529         result is not trivially convertible to the result holding variable.
1531 2011-05-30  Richard Guenther  <rguenther@suse.de>
1533         PR tree-optimization/49218
1534         * tree-vrp.c (adjust_range_with_scev): Properly check whether
1535         overflow occured.
1537 2011-05-30  Richard Guenther  <rguenther@suse.de>
1539         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
1540         New function split out from ...
1541         (forward_propagate_into_gimple_cond): ... here.  Adjust.
1542         (forward_propagate_into_cond): Likewise.
1543         (forward_propagate_comparison): Also propagate into
1544         comparisons on assignment RHS.  Change return value to
1545         behave similar to forward_propagate_into_cond.
1546         (tree_ssa_forward_propagate_single_use_vars): Handle
1547         strict-overflow warnings properly for forward_propagate_comparison.
1549 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1551         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
1552         from plugin linker.
1553         * configure: Regenerate.
1555 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
1557         PR tree-optimization/49199
1558         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
1559         non-reduction operands are either defined in the loop or by induction.
1561 2011-05-29  Xinliang David Li  <davidxl@google.com>
1563         * opts-global.c (handle_common_deferred_options): Handle new options.
1564         * passes.c (register_one_dump_file): Call register_pass_name.
1565         (execute_one_pass): Check explicit enable/disable flag.
1566         (passr_hash): New function.
1567         (passr_eq): Ditto.
1568         (register_pass_name): Ditto.
1569         (get_pass_by_name): Ditto.
1570         (pass_hash): Ditto.
1571         (pass_eq): Ditto.
1572         (enable_pass): Ditto.
1573         (disable_pass): Ditto.
1574         (is_pass_explicitly_enabled_or_disabled): Ditto.
1576 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
1578         * config/i386/i386.md (*movoi_internal_avx): Use
1579         standard_sse_constant_opcode for alternative 0.
1580         (*movti_internal_sse): Ditto.
1581         (*movti_internal_rex64): Use standard_sse_constant_opcode for
1582         alternative 2.
1583         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1584         sselog1 type moves.
1585         (*movsi_internal): Ditto.
1586         (*movdi_internal): Ditto.  Add ssecvt type moves.
1588 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
1590         PR target/48830
1591         * rtlanal.c (simplify_subreg_regno): Adjust comment.
1593 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
1595         PR rtl-optimization/49095
1596         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1597         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1599 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
1601         PR target/43995
1602         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1603         recurse_p argument.  Only follow register copies if it is set,
1604         and prevent mips_find_pic_call_symbol from recursing.
1605         (mips_find_pic_call_symbol): Add a recurse_p argument.
1606         Pass it to mips_pic_call_symbol_from_set.
1607         (mips_annotate_pic_calls): Update accordingly.
1609 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
1611         * emit-rtl.c (try_split): Use a loop to search for
1612         NOTE_INSN_CALL_ARG_LOCATIONs.
1614 2011-05-29  Richard Guenther  <rguenther@suse.de>
1616         PR tree-optimization/49217
1617         * ipa-pure-const.c (propagate_pure_const): Fix typos.
1619 2011-05-28  Jan Hubicka  <jh@suse.cz>
1621         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1622         length.
1623         (string_slot_free): Remove
1624         (create_output_block): Initialize obstack.
1625         (destroy_output_block): Free obstack.
1626         (lto_string_index): Add PERSISTENT parameter; do not duplicate
1627         the string unless it needs to be added into the hash.
1628         (lto_output_string_with_length): Add persistent attribute;
1629         handle NULL strings.
1630         (lto_output_string): Add PERSISTENT parameter.
1631         (output_string_cst, output_identifier): Simplify.
1632         (lto_output_location_bitpack): Update.
1633         (lto_output_builtin_tree): Update.
1634         * lto-streamer.h (struct output_block): Add obstack.
1635         (lto_output_string, lto_output_string_with_length): Remove
1636         declarations; functions are static now.
1638 2011-05-28  Jan Hubicka  <jh@suse.cz>
1640         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1641         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1642         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1643         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1644         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1645         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1646         unpack_ts_decl_with_vis_value_fields,
1647         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1648         lto_get_builtin_tree): Use enum and variable length i/o.
1649         * basic-block.h (profile_status_d): Add PROFILE_LAST.
1650         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1651         New functions.
1652         (bp_pack_enum, bp_unpack_enum): New macros.
1654 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
1656         * genrecog.c: Remove redundant forward declarations.
1658 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
1660         * config.gcc: Deprecate mips*-*-openbsd*.
1662 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
1664         PR bootstrap/49195
1665         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1666         for match_op_dup.
1668 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
1670         PR middle-end/48981
1671         * gengtype.c (vec_prefix_type): New function.
1672         (note_def_vec): Use vec_prefix_type and change the length
1673         attribute to be based on the prefix.
1674         * vec.c: Include coretypes.h before vec.h.
1675         (struct vec_prefix): Remove.
1676         (vec_gc_p_reserve): Change the offsetof to sizeof.
1677         (vec_gc_p_reserve_exact): Likewise.
1678         (vec_heap_p_reserve): Likewise.
1679         (vec_heap_p_reserve_exact): Likewise.
1680         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1681         (vec_stack_p_reserve): Change the offsetof to sizeof.
1682         (vec_stack_p_reserve_exact): Likewise.
1683         * vec.h (struct vec_prefix): New struct definition.
1684         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1685         (VEC_T_GTY(T,B)): Likewise.
1686         (DEF_VEC_FUNC_P(T)): Use prefix field.
1687         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1688         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1690 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1692         PR tree-optimization/46728
1693         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1694         (powi_as_mults): Add gimple_set_location.
1695         (build_and_insert_call): New.
1696         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1697         0.5, 0.25, 0.75, 1./3., or 1./6.
1699 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
1701         * doc/contrib.texi: Update copyright years.
1702         (Contributors): Add Zdenek Sojka.
1704 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
1706         * c-decl.c (c_push_function_context): Copy the current statement
1707         list stack.
1708         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1709         (finish_struct): Call building_stmt_list_p instead of checking
1710         cur_stmt_list.
1711         * c-parser.c (c_parser_postfix_expression): Likewise.
1712         * c-typeck.c (c_end_compound_stmt): Likewise.
1713         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1714         * tree-iterator.c (stmt_list_cache): Change to a VEC.
1715         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1716         (free_stmt_list): Likewise.
1717         * tree.h (struct tree_statement_list): Include typed_tree instead
1718         of tree_common.
1719         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1720         as TS_TYPED instead of TS_COMMON.
1722 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1723             Uros Bizjak  <ubizjak@gmail.com>
1725         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1726         (HAVE_AS_IX86_TLSGDPTL): Define.
1727         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1728         (HAVE_AS_IX86_TLSLDMPLT): Define.
1729         * configure: Regenerate.
1730         * config.in: Regenerate.
1731         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1732         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1733         TARGET_SUN_TLS, use @tlsgdplt or @plt.
1734         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1735         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1736         @tlsldmplt or @plt.
1737         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1739 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
1741         * sched-int.h (struct _haifa_deps_insn_data): New members cond
1742         and reverse_cond.
1743         (INSN_COND, INSN_REVERSE_COND): New macros.
1744         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1745         once.
1746         (sched_get_condition_with_rev): Cache the results, and look them up
1747         if possible.
1748         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1749         are clobbered by the current insn.
1750         * target.def (exposed_pipline): New sched data hook.
1751         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1752         * doc/tm.texi: Regenerate.
1754 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1756         PR tree-optimization/49170
1757         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
1758         sincos or cexp.
1760 2011-05-27  Richard Guenther  <rguenther@suse.de>
1762         PR middle-end/49189
1763         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1764         of comparisons.
1766 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
1768         * haifa-sched.c (sched_scan_info): Remove.
1769         (schedule_block): Call sched_extend_luids rather than sched_init_luids
1770         with NULL args.
1771         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1772         Remove functions.
1773         (sched_scan): Remove.
1774         (sched_extend_luids): Renamed from luids_extend_insn and no longer
1775         static.  All callers changed.
1776         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1777         static.  All callers changed.
1778         (sched_init_luids): Remove all arguments except the first.  All
1779         callers changed.  Don't use sched_scan.
1780         (haifa_init_h_i_d): Likewise.
1781         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1782         manually rather than using sched_init_luids.  Likewise with
1783         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1784         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1785         rather than sched_init_luids with NULL args.
1786         * sel-sched-ir.c (new_insns): Remove variable.
1787         (sched_scan): New static function, previously in haifa-sched.c.  Remove
1788         all arguments but the first two; all callers changed.
1789         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1790         rather than sched_init_luids.
1791         (sel_init_bbs): Remove second argument.  All callers changed.
1792         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1793         with NULL arguments.
1794         (create_insn_rtx_from_pattern): Likewise.
1795         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1796         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1797         (sched_init_insn_luid, sched_extend_luids): Declare.
1798         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1799         declarations.
1801 2011-05-27  Richard Guenther  <rguenther@suse.de>
1803         PR middle-end/49177
1804         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1805         A CMP B ? (T) true : (T) false for non-integral types T again.
1807 2011-05-27  Jan Hubicka  <jh@suse.cz>
1809         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1810         so 0 means NULL string.
1811         (lto_output_string_with_length): ... here.
1812         (lto_output_string, output_string_cst, output_identifier): Update
1813         handling of NULL strings.
1814         (lto_output_location_bitpack): New function.
1815         (lto_output_location): Use it.
1816         (lto_output_tree_ref): Use output_record_start.
1817         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1818         len values.
1819         * lto-streamer-in.c (string_for_index): Break out from ...; offset
1820         values by 1.
1821         (input_string_internal): ... here;
1822         (input_string_cst, input_identifier, lto_input_string): Update handling
1823         of NULL strings.
1824         (lto_input_location_bitpack): New function
1825         (lto_input_location): Use it.
1826         (unpack_ts_type_common_value_fields): Pack align & alias in var len
1827         values.
1828         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1829         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1830         (bp_pack_value): Sanity check the value range.
1831         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1832         New functions.
1833         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1834         New functions.
1836 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
1838         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1839         call_arg_location instructions down the floor.
1841 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
1843         PR rtl-optimization/49154
1844         * ira.c (setup_pressure_classes): Process class without sublcasses
1845         as a candidate for pressure classes.
1847 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
1849         PR rtl-optimization/48575
1850         * genrecog.c (position_type): New enum.
1851         (position): New structure.
1852         (decision): Use position structure instead of a string.
1853         (root_pos, peep2_insn_pos_list): New variables.
1854         (next_position, compare_positions): New functions.
1855         (new_decision): Use position structures instead of strings.
1856         (maybe_both_true): Likewise.
1857         (change_state): Likewise.
1858         (write_tree): Likewise.
1859         (make_insn_sequence): Likewise.
1861 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
1863         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1864         TS_BASE instead of TS_COMMON.
1865         (find_decls_types_r): Check for TS_TYPED structure before looking at
1866         TREE_TYPE.
1867         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1868         Add chain field.
1869         (BLOCK_CHAIN): Use new chain field.
1871 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
1873         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1874         moves expensive on Power7 also.
1876 2011-05-26  Richard Guenther  <rguenther@suse.de>
1878         * fold-const.c (fold_unary_loc): Remove bogus code.
1880 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
1882         * tree.h (struct tree_identifier): Inherit from tree_typed, not
1883         tree_common.
1884         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1885         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1886         TS_BASE instead of TS_COMMON.
1887         * varasm.c (assemble_name): Remove assert.
1889 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
1891         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1892         substituted first.
1893         * libgcc-std.ver: Delete file.
1895 2011-05-26  Richard Guenther  <rguenther@suse.de>
1897         PR tree-optimization/48702
1898         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1899         only when we know the base address is within bounds.
1900         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1901         assume the base address of TARGET_MEM_REFs is in bounds.
1903 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1905         PR target/49099
1906         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1907         declaration in TARGET_SOLARIS.
1909 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
1911         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1912         The instruction is then expanded explicitly.
1913         (supported_compare): Callable instruction.
1914         (compare): Likewise.
1916 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
1918         PR c++/49165
1919         * gimplify.c (shortcut_cond_r): Don't special case
1920         COND_EXPRs if they have void type on one of their arms.
1922 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
1924         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1925         to reduce duplication, and to achieve a slightly more logical order
1926         of operations.
1928 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
1930         PR tree-optimization/49161
1931         * tree-vrp.c (struct case_info): New type.
1932         (compare_case_labels): Sort case_info structs instead of
1933         trees, and not primarily by CASE_LABEL uids but by
1934         label_for_block indexes.
1935         (find_switch_asserts): Put case labels into struct case_info
1936         array instead of TREE_VEC, adjust sorting, compare label_for_block
1937         values instead of CASE_LABELs.
1939 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1941         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1942         ("orndi3_neon"): Likewise.
1943         ("bic<mode>3_neon"): Likewise.
1945 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
1947         PR tree-optimization/49038
1948         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1949         Ensure at least one epilogue iteration if required by data
1950         accesses with gaps.
1951         * tree-vectorizer.h (struct _loop_vec_info): Add new field
1952         to mark loops that require peeling for gaps.
1953         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1954         (vect_get_known_peeling_cost): Take peeling for gaps into
1955         account.
1956         (vect_transform_loop): Generate epilogue if required by data
1957         access with gaps.
1958         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1959         loop as requiring an epilogue if there are gaps in the end of
1960         the strided group.
1962 2011-05-25  Ian Lance Taylor  <iant@google.com>
1964         * godump.c (go_format_type): Output the first field with a usable
1965         Go type, if any.
1967 2011-05-25  Ian Lance Taylor  <iant@google.com>
1969         * godump.c (go_format_type): Check for invalid type names, pointer
1970         target types, and struct field types.
1972 2011-05-25  Jason Merrill  <jason@redhat.com>
1974         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1976 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
1978         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1980 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1982         * config/i386/i386.md (*movqi_extv_1)): Put back
1983         "register_operand" check in "type" calculation.
1984         (*movqi_extzv_2): Likewise.
1986 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1988         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1990 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
1992         PR bootstrap/49160
1993         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1994         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1995         __divxc3, __divtc3): Wrap definitions in #ifndef.
1997 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1999         PR target/49142
2000         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
2001         "register_operand" check and replace q_regs_operand with
2002         QIreg_operand in "type" calculation.
2003         (*movqi_extv_1): Likewise.
2004         (*movqi_extzv_2_rex64): Likewise.
2005         (*movqi_extzv_2): Likewise.
2007         * config/i386/predicates.md (QIreg_operand): New.
2009 2011-05-25  Richard Guenther  <rguenther@suse.de>
2011         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
2012         type-based offset disambiguation, streamline MEM_REF and
2013         TARGET_MEM_REF handling.
2015 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
2017         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
2018         (bdesc_special_args): Add pause intrinsic.
2020         * config/i386/i386.md (UNSPEC_PAUSE): New.
2021         (pause): Likewise.
2022         (*pause): Likewise.
2023         * config/i386/ia32intrin.h (__pause): Likewise.
2025         * doc/extend.texi (X86 Built-in Functions): Add documentation for
2026         pause intrinsic.
2028 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2030         PR tree-optimization/46728
2031         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
2032         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
2034 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
2036         * tree.h (struct tree_exp): Inherit from struct tree_typed.
2037         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
2038         instead of TS_COMMON.
2040 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
2042         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
2043         LIBGCC2_GNU_PREFIX is defined.
2044         (__N): New macro.
2045         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
2046         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
2047         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
2048         __clz_tab): Define using __N.
2049         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
2050         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
2051         * target.def (libfunc_gnu_prefix): New hook.
2052         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
2053         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
2054         * doc/tm.texi: Regenerate.
2055         * system.h (LIBGCC2_GNU_PREFIX): Poison.
2056         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
2057         account.
2058         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
2059         (init_optabs): Likewise for the bswap libfuncs.
2060         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
2061         and divide.
2062         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
2063         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
2064         * libgcc-std.ver: Remove.
2065         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
2066         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
2067         libgcc-std.ver.
2068         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2069         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
2070         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
2071         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
2072         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
2073         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2074         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2075         * config/fixed-bit.h (FIXED_OP): Define differently depending on
2076         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
2077         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
2079 2011-05-25  Jan Hubicka  <jh@suse.cz>
2081         * lto-streamer-out.c (output_record_start): Use lto_output_enum
2082         (lto_output_tree): Use output_record_start.
2083         * lto-streamer-in.c (input_record_start): Use lto_input_enum
2084         (lto_get_pickled_tree): Use input_record_start.
2085         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
2086         (lto_value_range_error): New function.
2087         * lto-streamer.h (lto_value_range_error): Declare.
2088         (lto_output_int_in_range, lto_input_int_in_range): New functions.
2089         (lto_output_enum, lto_input_enum): New macros.
2091 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
2093         * common.opt (flag_stack_usage_info): New variable.
2094         (-Wstack-usage): New option.
2095         * doc/invoke.texi (Warning options): Document -Wstack-usage.
2096         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
2097         <OPT_fstack_usage>: Likewise.
2098         * toplev.c (output_stack_usage): Handle -Wstack-usage.
2099         * calls.c (expand_call): Test flag_stack_usage_info variable instead
2100         of flag_stack_usage.
2101         (emit_library_call_value_1): Likewise.
2102         * explow.c (allocate_dynamic_stack_space): Likewise.
2103         * function.c (instantiate_virtual_regs ): Likewise.
2104         (prepare_function_start): Likewise.
2105         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
2106         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
2107         * config/arm/arm.c (arm_expand_prologue): Likewise.
2108         (thumb1_expand_prologue): Likewise.
2109         * config/avr/avr.c (expand_prologue): Likewise.
2110         * config/i386/i386.c (ix86_expand_prologue): Likewise.
2111         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
2112         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
2113         * config/mips/mips.c (mips_expand_prologue): Likewise.
2114         * config/pa/pa.c (hppa_expand_prologue): Likewise.
2115         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2116         * config/s390/s390.c (s390_emit_prologue): Likewise.
2117         * config/sh/sh.c (sh_expand_prologue): Likewise.
2118         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
2119         * config/spu/spu.c (spu_expand_prologue): Likewise.
2121 2011-05-25  Richard Guenther  <rguenther@suse.de>
2123         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
2124         (gimple_canonical_types_compatible_p): Likewise.
2126 2011-05-25  Jan Hubicka  <jh@suse.cz>
2128         PR middle-end/49062
2129         * ipa.c (function_and_variable_visibility): Only add to same
2130         comdat group list if DECL_ONE_ONLY.
2132 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
2134         PR rtl-optimization/49014
2135         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
2137 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
2139         PR target/49128
2140         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2142 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
2144         PR rtl-optimization/48757
2145         * ira-build.c (loop_with_eh_edge_p): Rename to
2146         loop_with_complex_edge_p, check edges on complexity, make function
2147         conditional.
2148         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
2149         conditional.
2151 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
2153         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
2154         force flag_ira_share_save_slots to 0.
2156 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
2158         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
2159         (vt_initialize): Set PROLOGUE_BB unconditionally.
2160         Add block comment about CFA_BASE_RTX machinery.
2161         Reset FP_CFA_OFFSET to -1 on all invalid paths.
2162         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
2164 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
2166         PR objc/48187
2167         * c-parser.c (c_parser_objc_class_instance_variables): More robust
2168         parsing of syntax error in ObjC instance variable lists.  In
2169         particular, avoid an infinite loop if there is a stray ']'.
2170         Updated error message.
2172 2011-05-24  Ian Lance Taylor  <iant@google.com>
2174         * godump.c (go_define): Don't accept a string immediately after
2175         another operand.
2177 2011-05-24  Ian Lance Taylor  <iant@google.com>
2179         * godump.c (struct godump_container): Add invalid_hash field.
2180         (go_format_type): Return false if type is found in invalid_hash.
2181         (go_output_typedef): Add invalid type to invalid_hash.
2182         (go_finish): Create and delete invalid_hash.
2184 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2186         PR tree-optimization/46728
2187         * tree-ssa-math-opts.c (powi_table): New.
2188         (powi_lookup_cost): New.
2189         (powi_cost): New.
2190         (powi_as_mults_1): New.
2191         (powi_as_mults): New.
2192         (gimple_expand_builtin_powi): New.
2193         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
2194         (gate_cse_sincos): Remove sincos/cexp restriction.
2196 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2198         PR target/3746
2199         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
2200         mips-tdump native.
2201         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
2202         * mips-tdump.c: Likewise.
2204 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2206         PR target/49128
2207         * config/i386/driver-i386.c (host_detect_local_cpu): Always
2208         add -mno-XXX.  Handle FMA.
2210 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
2212         PR rtl-optimization/48633
2213         * ira-build.c (loop_with_eh_edge_p): New function.
2214         (mark_loops_for_removal): Use it.
2216 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
2218         PR rtl-optimization/48971
2219         * ira.c (setup_pressure_classes): Don't check register move cost
2220         for classes with one registers.  Don't add pressure class if there
2221         is a pressure class with the same available hard registers.
2222         Check contains_reg_of_mode.  Fix a typo in collecting
2223         temp_hard_regset.  Ignore hard registers not belonging to a class.
2225 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
2227         PR target/49133
2228         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
2230 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
2231             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2233         PR gcov-profile/48845
2234         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
2236 2011-05-24  Richard Guenther  <rguenther@suse.de>
2238         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
2239         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
2240         (gimple_types_compatible_p_1): Adjust.
2241         (iterative_hash_canonical_type): Do not bother about complete vs.
2242         incomplete types.
2243         (gimple_canonical_types_compatible_p): Likewise.
2245 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2247         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
2249 2011-05-24  Richard Guenther  <rguenther@suse.de>
2251         PR bootstrap/49078
2252         * gimple.c (gimple_register_canonical_type): Revert
2253         previous change.
2254         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
2255         does not for a tree for the case where it matters.  Cache
2256         pointer-type alias-sets.
2258 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
2260         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
2261         (OBJS): Remove options.o, opts-common.o and prefix.o.
2262         (OBJS-libcommon-target): New.
2263         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
2264         (BACKEND): Include libcommon-target.a.
2265         (MOSTLYCLEANFILES): Include libcommon-target.a.
2266         (libcommon-target.a): New.
2267         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
2268         prefix.o.
2270 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
2272         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
2273         parts of output shared with the driver.
2274         * optc-gen.awk: Don't generate parts of output not shared with the
2275         driver.
2276         * opth-gen.awk: Remove GCC_DRIVER conditionals.
2277         * doc/options.texi (SourcerInclude): Mention options-save.c.
2278         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
2279         (OBJS): Add options-save.o.
2280         (options-save.c, options-save.o): New.
2281         (options.o): Update dependencies.
2282         (gcc-options.o): Remove.
2283         (mostlyclean): Remove options-save.c.
2285 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
2287         PR debug/49032
2288         * dbxout.c: Include cgraph.h.
2289         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
2290         and without value expr, return NULL if no varpool node exists for
2291         it or if it is not needed.
2292         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
2294         PR c/49120
2295         * c-decl.c (start_decl): Convert expr to void_type_node.
2297 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
2299         PR rtl-optimization/48826
2300         * emit-rtl.c (try_split): When splitting a call that is followed
2301         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
2303 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
2305         * cfgexpand.c (expand_debug_expr): For unused non-addressable
2306         parameters passed in memory prefer using DECL_INCOMING_RTL over
2307         the pseudos it will be copied into.
2309 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
2311         PR target/47315
2312         * config/i386/i386.c (ix86_option_override_internal): Save the
2313         initial options after checking vzeroupper.
2315 2011-05-23  David Li  <davidxl@google.com>
2317         PR tree-optimization/48988
2318         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2319         Initialize has_valid_pred for each pred chain.
2321 2011-05-23  Richard Guenther  <rguenther@suse.de>
2323         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
2324         (iterative_hash_gimple_type): Always hash type names.
2326 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
2328         * c-typeck.c (build_function_call_vec): Tweak call to
2329         check_function_arguments.
2331 2011-05-23  Richard Guenther  <rguenther@suse.de>
2333         PR tree-optimization/49115
2334         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
2335         is not necessarily carried out, do not claim it kills the ref.
2336         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
2338 2011-05-23  Richard Guenther  <rguenther@suse.de>
2340         PR middle-end/15419
2341         * builtins.c (fold_builtin_memory_op): Be less restrictive about
2342         what pointer types we accept for folding.
2344 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2346         * gthr-gnat.c: Remove.
2347         * gthr-gnat.h: Remove.
2348         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
2349         * config/t-freebsd (LIB2ADDEH): Likewise.
2350         * config/t-linux (LIB2ADDEH): Likewise.
2351         * config/t-sol2 (LIB2ADDEH): Likewise.
2352         * config/ia64/t-vms (LIB2ADDEH): Likewise.
2353         * configure.ac (target_thread_file): Remove gnat handling.
2354         * configure: Regenerate.
2355         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
2357 2011-05-23  Tristan Gingold  <gingold@adacore.com>
2358             Eric Botcazou  <ebotcazou@adacore.com>
2360         * gcov.c (create_file_names): If no object directory is specified,
2361         keep the directory of the file.
2363 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2365         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
2366         * configure: Regenerate.
2368 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
2370         PR middle-end/48973
2371         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
2372         failed and the comparison has a single bit signed type, use
2373         constm1_rtx instead of const1_rtx for true value.
2374         (do_store_flag): If ops->type is single bit signed type, disable
2375         signel bit test optimization and pass -1 instead of 1 as last
2376         parameter to emit_store_flag_force.
2378 2011-05-23  Tom de Vries  <tom@codesourcery.com>
2380         PR target/45098
2381         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
2382         function.
2383         (infer_loop_bounds_from_undefined): Use new function.
2385 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
2387         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
2388         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
2389         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
2390         and -O0 otherwise.
2391         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
2393 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
2395         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
2396         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
2397         returns true.
2399 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
2401         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
2403 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
2405         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
2406         UNSPEC_MOVE_PIC pattern.
2408 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
2410         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
2411         (sparc-*-rtems*): Likewise.
2412         (sparc64-*-elf*): Likewise.
2413         (sparc64-*-rtems*): Likewise.
2414         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
2415         * config/sparc/t-crtin: New file.
2416         * config/sparc/t-sol2 (crti.o): Delete rule.
2417         (crtn.o): Likewise.
2418         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
2419         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
2420         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
2421         (ENDFILE_SPEC): Add crtn.o.
2423 2011-05-22  Tom de Vries  <tom@codesourcery.com>
2425         PR middle-end/48689
2426         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
2427         CODE_CONTAINS_STRUCT (TS_COMMON).
2429 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
2431         PR middle-end/49029
2432         * expmed.c (extract_fixed_bit_field): Test whether target can be used
2433         only after deciding which mode to use.
2435 2011-05-22  Tom de Vries  <tom@codesourcery.com>
2437         PR target/45098
2438         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
2439         for call to get_shiftadd_cost.
2441 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
2443         PR target/49104
2444         * config/i386/cpuid.h (bit_MMXEXT): New define.
2446 2011-05-22  Nick Clifton  <nickc@redhat.com>
2448         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
2449         initialisation of non-existant args[2] element.  Use args[] array
2450         not arg[] array to pass arguments to build_function_type_list.
2452 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
2454         PR tree-optimization/49087
2455         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
2457 2011-05-21  Jason Merrill  <jason@redhat.com>
2459         PR c++/49092
2460         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
2461         static storage duration.
2463 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
2465         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
2466         frame pointer.
2468 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
2470         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
2471         false if there are call-saved registers here...
2472         (sparc_can_use_return_insn_p): ...but here instead.
2473         (save_or_restore_regs): Fix thinko.
2474         (sparc_expand_prologue): Use current_function_is_leaf.
2475         (sparc_frame_pointer_required): Likewise.
2477 2011-05-21  Nick Clifton  <nickc@redhat.com>
2479         PR target/49098
2480         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
2482 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
2484         * gengtype.c (walk_type): Implemented "atomic" GTY option.
2485         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
2487 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
2489         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
2490         * optc-gen.awk: Move common code to opt-read.awk.
2491         * opth-gen.awk: Likewise.
2492         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
2494 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
2496         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
2498 2011-05-20  Tom de Vries  <tom@codesourcery.com>
2500         PR target/45098
2501         * tree-ssa-loop-ivopts.c: Include expmed.h.
2502         (get_shiftadd_cost): New function.
2503         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
2505 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
2507         PR bootstrap/49086
2508         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
2509         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
2511 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
2513         * Makefile.in: Update comment referring to $(OBJS-common).
2515 2011-05-20  Ian Lance Taylor  <iant@google.com>
2517         * godump.c (go_output_typedef): Put enum constants in the macro
2518         hash table to avoid duplicate Go const definitions.
2520 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
2522         * Makefile.in (LIBDEPS): Add libcommon.a.
2523         (LIBS): Likewise.
2524         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
2525         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
2526         pretty-print.o and version.o.
2527         (OBJS-libcommon): New.
2528         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
2529         (BACKEND): Add libcommon.a.
2530         (MOSTLYCLEANFILES): Likewise.
2531         (libcommon.a): New.
2532         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
2533         (cpp$(exeext)): Likewise.
2534         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
2535         pretty-print.o and input.o.
2536         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
2537         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
2538         (errors.o): Remove.
2539         (mips-tfile): Don't explicitly use version.o.
2540         (mips-tdump): Likewise.
2541         (gcov.o): Depend on $(DIAGNOSTIC_H).
2542         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
2543         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
2544         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
2545         * gcov-dump.c: Include intl.h and diagnostic.h.
2546         (main): Initialize diagnostics.
2547         * gcov.c: Include diagnostic.h.
2548         (fnotice): Remove.
2549         (main): Initialize diagnostics.
2550         * lto-wrapper.c: Include diagnostic.h.
2551         (main): Initialize diagnostics.
2553 2011-05-20  Michael Matz  <matz@suse.de>
2555         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
2557 2011-05-20  Michael Matz  <matz@suse.de>
2558             Richard Guenther  <rguenther@suse.de>
2560         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
2561         use lto_streamer_cache_append directly instead of returning a VEC.
2562         (preload_common_node): Remove.
2563         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
2564         track seen nodes.
2565         (lto_streamer_cache_create): Call lto_preload_common_nodes.
2567 2011-05-20  Richard Guenther  <rguenther@suse.de>
2569         PR tree-optimization/49079
2570         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2571         MEM_REFs correctly for the trailing array access detection.
2572         Special case constants the same way as decls for overall size
2573         constraining.
2575 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
2577         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2578         argument expansion.
2580 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
2582         PR tree-optimization/49073
2583         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2584         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2585         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2587 2011-05-20  Richard Guenther  <rguenther@suse.de>
2589         PR middle-end/48849
2590         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2591         of pointer types the same way the middle-end does.
2593 2011-05-20  Richard Guenther  <rguenther@suse.de>
2595         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2596         or pointer-to chains.  Delay all fixup to uniquify_nodes.
2598 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
2600         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2601         (fma4_fmaddsub): Likewise
2603 2011-05-19  Jan Hubicka  <jh@suse.cz>
2605         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2606         (GIMPLE_TYPE_PAIR_SIZE): New macro.
2607         (type_pair_cache): New static var.
2608         (lookup_type_pair): Use fixed sized custom hash; make inline.
2609         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2610         calls of lookup_type_pair.
2611         (print_gimple_types_stats): Remove cache stats.
2612         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2613         and gtc_ob.
2615 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
2617         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2618         when TARGET_RDRND is active.
2619         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2620         Generate dummy SImode target register when target is NULL.
2622 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
2624         * config/arm/arm-fpus.def: New.
2625         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2626         arm-fpus.def.
2627         * config/arm/arm-tables.opt: Regenerate.
2628         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2629         (arm_option_override): Don't decode FPU name to string here.
2630         * config/arm/arm.opt (mfpu=): Use Enum.
2631         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2632         Update dependencies.
2634 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
2636         * collect2.c: Include diagnostic.h.
2637         (fatal_perror, fatal, error, fancy_abort): Remove.
2638         (main): Set progname.  Call xmalloc_set_program_name and
2639         diagnostic_initialize.
2640         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2641         scan_libraries, resolve_lib_name): Call fatal_error instead of
2642         fatal and fatal_perror.
2643         * collect2.h (error, fatal, fatal_perror): Don't declare.
2644         * tlink.c: Include diagnostic-core.h.
2645         (recompile_files): Call fatal_error instead of fatal_perror.
2646         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2647         pretty-print.o and input.o.
2648         (collect2.o, tlink.o): Update dependencies.
2650 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2652         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2654 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2656         PR target/40483
2657         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2658         COMDAT group syntax, both SPARC and x86 variants.
2659         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2660         * configure: Regenerate.
2661         * config/sol2.h (TARGET_SOLARIS): Define.
2662         (PUSHSECTION_FORMAT): Remove.
2663         (SECTION_NAME_FORMAT): Define.
2664         * config/sol2.c: Include hashtab.h.
2665         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2666         expansion, using SECTION_NAME_FORMAT.
2667         (solaris_comdat_htab): New variable.
2668         (struct comdat_entry): Define.
2669         (comdat_hash): New function.
2670         (comdat_eq): New function.
2671         (solaris_elf_asm_comdat_section): New function.
2672         (solaris_define_comdat_signature): New function.
2673         (solaris_code_end): New function.
2674         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2675         (solaris_code_end): Declare.
2676         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2677         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2678         solaris_code_end.
2679         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2680         Remove ATTRIBUTE_UNUSED.
2681         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2682         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2683         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2684         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2685         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2686         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2687         (PUSHSECTION_FORMAT): Remove.
2688         (SECTION_NAME_FORMAT): Redefine.
2690 2011-05-19  Kai Tietz  <ktietz@redhat.com>
2692         * tree-cfg.c (verify_gimple_assign_binary): Barf on
2693         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2694         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2696 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
2697             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2699         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2701 2011-05-19  Richard Guenther  <rguenther@suse.de>
2703         PR middle-end/48985
2704         * tree-object-size.c (addr_object_size): If the pointed-to
2705         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2707 2011-05-19  Richard Guenther  <rguenther@suse.de>
2709         * gimple.c (gimple_types_compatible_p_1): Compare names of
2710         the types themselves.
2711         (iterative_hash_gimple_type): And hash them that way.
2712         (gimple_register_type_1): If we register a main variant properly
2713         initialize the leader to ourselves.
2715 2011-05-19  Tom de Vries  <tom@codesourcery.com>
2717         PR target/45098
2718         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2719         get_loop_invariant_expr_id.
2720         (get_loop_invariant_expr_id): Use get_expr_id.
2721         (parm_decl_cost): New function.
2722         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2723         Improve bound cost estimation.  Use different inv_expr_id for elim and
2724         express cases.
2726 2011-05-19  Tom de Vries  <tom@codesourcery.com>
2728         PR target/45098
2729         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2730         cost_base.cost == 0.
2732 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2734         PR target/49002
2735         * config/i386/sse.md
2736         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2737         load cast.
2739 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
2741         PR tree-optimization/49039
2742         * tree-vrp.c (extract_range_from_binary_expr): For
2743         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2744         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2746 2011-05-18  Tom de Vries  <tom@codesourcery.com>
2748         PR target/45098
2749         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2751 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
2753         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2754         (*tls_global_dynamic_64): Ditto.
2755         (*tls_local_dynamic_base_32_gnu): Ditto.
2756         (*tls_local_dynamic_base_64): Ditto.
2757         (tls_initial_exec_64_sun): Ditto.
2759 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
2761         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2762         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2763         bf592-none.
2764         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2765         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2766         * config/bfin/bfin.c (bfin_cpus): Add bf592.
2767         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2768         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2769         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2770         * config/bfin/elf.h (LIB_SPEC): Add bf592.
2772 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
2774         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2775         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2776         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2777         target_thread_pointer, arm_structure_size_boundary, struct
2778         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2779         struct abi_name, arm_all_abis): Remove.
2780         (arm_option_override) Don't process most enumerated option values here.
2781         Don't process target_fpe_name here.  Work with integer not string for
2782         structure size boundary; use separate diagnostics for each case.
2783         * config/arm/arm.h (enum float_abi_type, enum
2784         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2785         to arm-opts.h.
2786         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2787         arm_structure_size_boundary): Remove.
2788         * config/arm/arm.opt (mabi=): Use Enum and Init.
2789         (arm_abi_type): New Enum and EnumValue entries.
2790         (mfloat-abi=): Use Enum and Init.
2791         (float_abi_type): New Enum and EnumValue entries.
2792         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2793         (mfp16-format=): Use Enum and Init.
2794         (arm_fp16_format_type): New Enum and EnumValue entries.
2795         (mstructure-size-boundary=): Use UInteger and Init.
2796         (mtp=): Use Enum and Init.
2797         (arm_tp_type): New Enum and EnumValue entries.
2799 2011-05-18  Richard Guenther  <rguenther@suse.de>
2801         PR tree-optimization/49018
2802         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2803         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2804         gimple_has_side_effects.
2806 2011-05-18  Richard Guenther  <rguenther@suse.de>
2808         * gimple.c (gimple_register_type_1): New function, split out from ...
2809         (gimple_register_type): ... here.  Avoid infinite recursion.
2811 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
2813         PR tree-optimization/41881
2814         * tree-vectorizer.h (struct _loop_vec_info): Add new field
2815         reduction_chains along with a macro for its access.
2816         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2817         (destroy_loop_vec_info): Free reduction chains.
2818         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2819         (vect_is_slp_reduction): New function.
2820         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2821         (vect_create_epilog_for_reduction): Support SLP reduction chains.
2822         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2823         definition types for reduction chains.
2824         (vect_supported_load_permutation_p): Don't allow permutations for
2825         reduction chains.
2826         (vect_analyze_slp_instance): Support reduction chains.
2827         (vect_analyze_slp): Try to build SLP instance from reduction chains.
2828         (vect_get_constant_vectors):  Handle reduction chains.
2829         (vect_schedule_slp_instance): Mark the first statement of the
2830         reduction chain as reduction.
2832 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
2834         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2835         names for group elements access.
2836         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2837         reduction chains as well.  Remove data reference and interleaving
2838         related words from the fields names.
2839         * tree-vect-loop.c (vect_transform_loop): Use new names for group
2840         elements access.
2841         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2842         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2843         vect_update_interleaving_chain, vect_same_range_drs,
2844         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2845         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2846         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2847         vect_analyze_group_access, vect_analyze_data_ref_access,
2848         vect_create_data_ref_ptr, vect_transform_strided_load,
2849         vect_record_strided_load_vectors): Likewise.
2850         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2851         vect_model_load_cost, vectorizable_store, vectorizable_load,
2852         vect_remove_stores, new_stmt_vec_info): Likewise.
2853         * tree-vect-slp.c (vect_build_slp_tree,
2854         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2856 2011-05-18  Richard Guenther  <rguenther@suse.de>
2858         PR middle-end/48989
2859         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2860         operand verification.
2861         (verify_gimple_assign_binary): Likewise.
2862         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2863         to non-1-precision BOOLEAN_TYPEs.
2865 2011-05-18  Tom de Vries  <tom@codesourcery.com>
2867         PR target/45098
2868         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2870 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
2872         PR tree-optimization/49000
2873         * tree-ssa.c (execute_update_addresses_taken): Call
2874         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
2875         be rewritten and decl has been marked for renaming, reset
2876         the debug stmt.
2878 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
2880         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2881         enum_opts_set when testing if attributes have set -mfpmath=.
2883 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
2885         * config/mips/mips.c (mips_handle_option): Remove unused variable.
2887 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
2889         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2890         info->entry with 0
2891         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
2892         id.transform_lang_insert_block with NULL.
2894 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
2896         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2897         (output_fp_compare): Change args 3 and 4 to bool.
2898         (ix86_expand_call): Change arg 6 to bool.
2899         (ix86_attr_length_immediate_default): Change arg 2 to bool.
2900         (ix86_attr_length_vex_default): Change arg 3 to bool.
2901         * config/i386/i386.md: Update all uses.
2902         * config/i386/i386.c: Ditto.
2903         (ix86_flags_dependent): Change return type to bool.
2905 2011-05-17  Richard Guenther  <rguenther@suse.de>
2907         * gimple.c (type_hash_pair_compare): Fix comparison.
2909 2011-05-17  Richard Guenther  <rguenther@suse.de>
2911         * gimple.c (iterative_hash_gimple_type): Simplify singleton
2912         case some more, fix final hash value of the non-singleton case.
2914 2011-05-17  Richard Guenther  <rguenther@suse.de>
2916         PR bootstrap/49013
2917         Revert
2918         2011-05-16  Richard Guenther  <rguenther@suse.de>
2920         * gimple.c (gimple_types_compatible_p_1): Use names of the
2921         type itself, not its main variant.
2922         (iterative_hash_gimple_type): Likewise.
2924 2011-05-17  Richard Guenther  <rguenther@suse.de>
2926         * gimple.c (gimple_register_canonical_type): Use the main-variant
2927         leader for computing the canonical type.
2929 2011-05-17  Nick Clifton  <nickc@redhat.com>
2931         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2932         moves.
2934         * config/rx/rx.md: Add peephole to remove redundant extensions
2935         after loads.
2936         (bitset_in_memory): Use rx_restricted_mem_operand.
2937         (bitinvert_in_memory): Likewise.
2938         (bitclr_in_memory): Likewise.
2940 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
2941             Nick Clifton  <nickc@redhat.com>
2943         * config/rx/rx.md: Add peepholes to match a register move followed
2944         by a comparison of the moved register.  Replace these with an
2945         addition of zero that does both actions in one instruction.
2947 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
2949         PR target/48986
2950         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2951         predicate to allow CONST_INT.
2952         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2954 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
2956         * opts-common.c (opt_enum_arg_to_value): New.
2957         * opts.h (opt_enum_arg_to_value): Declare.
2958         * config/i386/i386.opt (fpmath): Remove.
2959         (mfpmath=): Use Enum, Init and Save.
2960         (fpmath_unit): New Enum and EnumValue entries.
2961         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2962         name for function fpmath state.
2963         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2964         * config/i386/i386.c: Include diagnostic.h.
2965         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2966         (ix86_target_string): Take enum fpmath_unit value instead of string.
2967         (ix86_debug_options): Update call to ix86_target_string.
2968         (ix86_option_override_internal): Don't process fpmath strings here.
2969         (x86_function_specific_save, ix86_function_specific_restore):
2970         Don't handle fpmath state specially.
2971         (ix86_function_specific_print): Pass fpmath state to
2972         ix86_target_string instead of printing in this function.
2973         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2974         Handle enum attributes.
2975         (IX86_ATTR_ENUM, ix86_opt_enum): New.
2976         (ix86_valid_target_attribute_tree): Update option_strings
2977         handling.  Handle fpmath as enum option.
2978         (ix86_can_inline_p): Update field names for function fpmath state.
2979         (ix86_expand_builtin): Update call to ix86_target_string.
2980         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2981         (ix86_fpmath): Remove.
2982         * config/i386/t-i386 (i386.o): Update dependencies.
2984 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
2986         PR preprocessor/48677
2987         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2988         from decoded_options[0], not from itself.
2990 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
2992         * config/i386/constraints.md (z): New constraint.
2993         * config/i386/i386.c (c): New mode attribute.
2994         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2995         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2996         constraint for operand 0.
2997         (*call_vzeroupper): Ditto.
2998         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
2999         (*call_rex64_ms_sysv_vzeroupper): Ditto.
3000         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
3001         Use "lzm" constraint for operand 0.
3002         (*call_pop_vzeroupper): Ditto.
3003         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
3004         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
3005         constraint for operand 0.
3006         (*sibcall_vzeroupper): Ditto.
3007         (*sibcall_rex64_ms_sysv): Ditto.
3008         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
3009         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
3010         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
3011         (*sibcall_pop_vzeroupper): Ditto.
3012         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
3013         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
3014         mode iterator.  Use "<c>zm" constraint for operand 1.
3015         (*call_value_vzeroupper): Ditto.
3016         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
3017         for operand 1.
3018         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
3019         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
3020         *call_value_pop_1.  Use "lzm" constraint for operand 1.
3021         (*call_value_pop_vzeroupper): Ditto.
3022         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
3023         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
3024         mode iterator.  Use "Uz" constraint for operand 1.
3025         (*sibcall_value_vzeroupper): Ditto.
3026         (*sibcall_value_rex64_ms_sysv): Ditto.
3027         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
3028         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
3029         constraint for operand 1.
3030         (*sibcall_value_pop_vzeroupper): Ditto.
3031         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
3032         and "z" constraint for operand 2.
3033         (*tls_global_dynamic_32_gnu): Ditto.
3034         (*tls_local_dynamic_base_32_gnu): Ditto.
3035         (*tls_local_dynamic_base_64): Ditto.
3036         (*tls_local_dynamic_32_once): Ditto.
3037         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
3038         Update all callers.
3039         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
3041 2011-05-16  Richard Guenther  <rguenther@suse.de>
3043         * gimple.c (gimple_types_compatible_p_1): Use names of the
3044         type itself, not its main variant.
3045         (iterative_hash_gimple_type): Likewise.
3047 2011-05-16  Richard Guenther  <rguenther@suse.de>
3049         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
3050         always visit pointer target and function result and argument types.
3052 2011-05-16  Jason Merrill  <jason@redhat.com>
3054         PR c++/48999
3055         * tree-inline.c (copy_statement_list): Put back recursion.
3057 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
3059         PR target/27663
3060         PR target/41076
3061         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
3062         * config/avr/avr.md ("*ior<mode>qi.byte0",
3063         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
3065 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
3067         PR target/45099
3068         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
3069         register is needed for a function argument.
3071 2011-05-16  Richard Guenther  <rguenther@suse.de>
3073         * gimple.c (struct type_hash_pair): New type.
3074         (type_hash_pair_compare): New function.
3075         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3077 2011-05-16  Revital Eres  <revital.eres@linaro.org>
3079         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
3081 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
3083         * config/i386/i386.md (floating point move splitters): Fix
3084         usage of standard_80387_constant_p.
3085         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
3087 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
3089         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
3091 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
3093         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
3094         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
3095         (tree_ssa_lim_finalize): Likewise.
3097 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
3099         * config/i386/constraint.md (Yd, Yx): New register constraints.
3100         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
3101         Yd conditional register constraint.
3102         (*movtf_internal): Use standard_sse_constant_opcode.
3103         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
3104         Yx conditional register constraint.
3105         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
3106         Yd conditional register constraint.  Use standard_sse_constant_p to
3107         check for valid SSE constants and call standard_sse_constant_opcode to
3108         output SSE insn.
3109         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
3110         constants and call standard_sse_constant_opcode to output SSE insn.
3111         * config/i386/i386.c (ix86_option_ovverride_internal): Set
3112         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
3113         optimize_size is set.
3114         (standard_sse_constant_opcode): Output conditional AVX insn templates.
3116 2011-05-14  Tobias Burnus  <burnus@net-b.de>
3118         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
3120 2011-05-13  Martin Jambor  <mjambor@suse.cz>
3122         * ipa-prop.c (ipa_cst_from_jfunc): New function.
3123         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
3124         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
3125         (evaluate_conditions_for_ipcp_clone): Removed.
3126         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
3127         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
3128         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
3130 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
3132         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
3133         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
3134         lieu of MAY_HAVE_DEBUG_STMTS.
3135         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
3136         debug statements if !MAY_HAVE_DEBUG_STMTS.
3138 2011-05-13  Martin Thuresson  <martint@google.com>
3140         PR gcov-profile/47793
3141         * libgcov.c (gcov_exit): Support relative profile paths.
3142         * doc/invoke.texi (-fprofile-dir): Update for above change.
3144 2011-05-13  Richard Guenther  <rguenther@suse.de>
3146         * gimple.c (gimple_canonical_types_compatible_p): Do not use
3147         type-pair caching, do not compare hashes.
3149 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
3151         PR middle-end/48965
3152         * tree-cfg.c (edge_to_cases_cleanup): Return true.
3153         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
3155 2011-05-13  Kai Tietz  <ktietz@redhat.com>
3157         * gimplify.c (gimplify_expr): Make sure operand is boolified.
3158         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
3159         compatible type for TRUTH_NOT_EXPR.
3161 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
3163         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
3164         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
3165         can_create_pseudo_p ().
3167 2011-05-13  Richard Guenther  <rguenther@suse.de>
3169         PR lto/48978
3170         * gimple.c (iterative_hash_gimple_type): Revert change in
3171         pointer target and function result and argument hashing.
3173 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
3175         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
3176         (*movxf_internal_nointeger): Ditto.
3177         (*movdf_internal_rex64): Ditto.
3178         (*movdf_internal): Ditto.
3179         (*movdf_internal_nointeger): Ditto.
3180         (*movsf_internal): Ditto.
3181         (sincos splitters): Use can_create_pseudo ().
3183 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
3185         * config/i386/i386-opts.h: New.
3186         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
3187         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
3188         ix86_section_threshold): Remove.
3189         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
3190         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
3191         OPT_mbranch_cost_.
3192         (ix86_option_override_internal): Don't decode strings for options
3193         other than -march=, -mtune= and -mfpmath=.  Don't allow for
3194         __attribute__ uses in remaining diagnostics for options with
3195         string arguments.  Don't check for integer arguments being negative.
3196         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
3197         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
3198         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
3199         ix86_branch_cost, ix86_section_threshold): Remove.
3200         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
3201         HeaderInclude.
3202         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
3203         but not Var.
3204         (masm=): Use Enum and Init.
3205         (asm_dialect): New Enum and EnumValue entries.
3206         (mbranch-cost=): Use UInteger.
3207         (mlarge-data-threshold=): Use UInteger and Init.
3208         (mcmodel=): Use Enum and Init.
3209         (cmodel): New Enum and EnumValue entries.
3210         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
3211         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
3212         mregparm=): Use UInteger.
3213         (mstringop-strategy=): Use Enum and Init.
3214         (stringop_alg): New Enum and EnumValue entries.
3215         (mtls-dialect=): Use Enum and Init.
3216         (tls_dialect): New Enum and EnumValue entries.
3217         (mabi=): Use Enum and Init.
3218         (calling_abi): New Enum and EnumValue entries.
3219         (mveclibabi=): Use Enum and Init.
3220         (ix86_veclibabi): New Enum and EnumValue entries.
3222 2011-05-13  Nick Clifton  <nickc@redhat.com>
3224         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
3225         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
3227 2011-05-13  Kai Tietz  <ktietz@redhat.com>
3229         PR middle-end/48984
3230         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
3231         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
3232         (gimple_boolify): Check for cast for boolean_type_node instead for
3233         BOOLEAN_TYPE.
3235 2011-05-13  Richard Guenther  <rguenther@suse.de>
3237         PR tree-optimization/48172
3238         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
3239         multiplying by number of iterations for equal step.
3240         (vect_create_cond_for_alias_checks): Likewise.
3242 2011-05-13  Andreas Schwab  <schwab@redhat.com>
3244         * configure.ac: Use AS_HELP_STRING throughout.
3245         * configure: Regenerate.
3247 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
3249         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
3250         (ix86_emit_restore_regs_using_mov): Likewise.
3251         (ix86_emit_restore_sse_regs_using_mov): Likewise.
3253 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
3255         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
3256         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
3257         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
3258         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
3259         RTX_OK_FOR_OLO10_P): ...here.
3260         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
3261         SYMBOLIC_CONST.
3263 2011-05-12  Kai Tietz  <ktietz@redhat.com>
3265         * gimplify.c (gimple_boolify): Re-boolify expression
3266         arguments even if expression type is of kind BOOLEAN_TYPE.
3267         (gimplify_boolean_expr): Removed.
3268         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
3269         and XOR. Additional take care that we keep expression's type.
3270         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
3271         of TRUTH_AND|OR|XOR_EXPR.
3273 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
3275         PR tree-optimization/48975
3276         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
3277         on all bbs here and free and clear ifc_bbs at the end.
3279 2011-05-12  Richard Guenther  <rguenther@suse.de>
3281         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
3282         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
3283         until after simple checks.
3284         (gimple_types_compatible_p): Likewise.
3285         (iterative_hash_gimple_type): Always hash pointer targets
3286         and function return and argument types.
3287         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
3288         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
3289         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
3290         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
3291         completely in the simple compare section.
3292         (gimple_register_canonical_type): Query the cache again after
3293         registering.
3295 2011-05-12  Richard Guenther  <rguenther@suse.de>
3297         PR tree-optimization/48172
3298         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
3299         the number of iterations from the segment size calculation.
3300         (vect_create_cond_for_alias_checks): Adjust.
3302 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
3304         PR debug/48967
3305         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
3306         if validate_subreg fails.
3308 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
3310         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
3311         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
3312         early.
3314 2011-05-12  DJ Delorie  <dj@redhat.com>
3316         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
3317         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
3318         created builtin into rx_builtins array.
3319         (rx_builtin_decl): New function.
3320         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
3322 2011-05-12  DJ Delorie  <dj@redhat.com>
3323             Nick Clifton  <nickc@redhat.com>
3325         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
3326         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
3327         (rx_is_legitimate_address): Add pre-decrement and post-increment
3328         addressing in HImode and QImode.  Fix test for out of range
3329         REG+INT addressing.
3330         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
3331         (rx_align_for_label): Test label before extracting its usage count.
3332         (rx_adjust_insn_lengths): Fix selection of insn codes.
3333         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
3335 2011-05-11  Jason Merrill  <jason@redhat.com>
3337         * tree.c (type_hash_canon): Use struct tree_type_non_common.
3339 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
3341         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
3342         reindent the subsequent block.
3344 2011-05-11  Satoru Takabayashi  <satorux@google.com>
3345             Paul Pluzhnikov  <ppluzhnikov@google.com>
3347         * doc/install.texi (Configuration): Document --with-linker-hash-style.
3348         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
3349         * config.in: Add LINKER_HASH_STYLE.
3350         * configure.ac: Add --with-linker-hash-style.
3351         * configure: Regenerate.
3353 2011-05-11  Richard Guenther  <rguenther@suse.de>
3355         PR middle-end/48964
3356         * gimple.c (iterative_hash_canonical_type): Fix typo.
3358 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
3360         * config/i386/i386.c (legitimize_tls_address)
3361         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3362         expanders directly for TARGET_GNU2_TLS.  Determine pic and
3363         __tls_get_addr symbol reference here.  Update call to
3364         gen_tls_global_dynamic_{32,64} for added arguments.
3365         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3366         expanders directly for TARGET_GNU2_TLS.  Determine
3367         __tls_get_addr symbol reference here.  Update call to
3368         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
3369         unique UNSPEC REG_EQUIV to libcall block.
3370         (ix86_tls_get_addr): Declare static.
3371         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
3372         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
3373         Do not determine pic and __tls_get_addr symbol reference here. Do not
3374         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
3375         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
3376         (tls_global_dynamic_64): Add operand 2.  Do not determine
3377         __tls_get_addr symbol reference here.  Do not call
3378         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
3379         (tls_local_dynamic_base64): Ditto for operand 1.
3381 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
3383         * function.c (expand_function_start): Initialize stack_check_probe_note
3384         only if the generic stack checking mechanism is used.
3386 2011-05-11  Richard Guenther  <rguenther@suse.de>
3388         PR tree-optimization/15256
3389         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
3390         (A & B) | C, combine (A op CST1) op CST2.
3391         (tree_ssa_forward_propagate_single_use_vars): Only bother to
3392         visit assigns that have uses.
3394 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
3396         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
3397         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
3398         (unpack_ts_type_common_value_fields): ...this.  Update comment.
3399         (unpack_value_fields): Adjust for renaming.
3400         (lto_input_ts_type_tree_pointers): Split into...
3401         (lto_input_ts_type_common_tree_pointer): ...this and...
3402         (lto_input_ts_type_non_common_tree_pointers): ...this.
3403         (lto_input_tree_pointers): Adjust for above split.
3404         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
3405         (pack_ts_type_common_value_fields): ...this.  Update comment.
3406         (lto_output_ts_type_tree_pointers): Split into...
3407         (lto_output_ts_type_common_tree_pointers): ...this and...
3408         (lto_output_ts_type_non_common_tree_pointers): ...this.
3409         (lto_output_tree_pointers): Adjust for above split.
3410         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
3411         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
3412         * stor-layout.c (vector_type_mode): Adjust location of mode field.
3413         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
3414         Define.
3415         (struct tree_type): Split into...
3416         (struct tree_type_common: ...this and...
3417         (struct tree_type_with_lang_specific): ...this and...
3418         (struct tree_type_non_common): ...this.  Adjust accessor macros
3419         accordingly.
3420         (TYPE_VALUES_RAW): Define.
3421         (union tree_node): Update for above changes.
3422         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
3423         TS_TYPE_NON_COMMON.
3424         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
3425         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
3426         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
3427         * treestructu.def (TS_TYPE): Remove.
3428         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
3429         Define.
3431 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
3433         PR debug/48159
3434         * tree-ssa.c (reset_debug_uses): New function.
3435         * tree-flow.h (reset_debug_uses): New prototype.
3436         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
3437         * tree-loop-distribution.c (generate_loops_for_partition): Call
3438         reset_debug_uses on the stmts that will be removed.  Keep around
3439         all debug stmts, don't count them as bits in partition bitmap.
3440         (generate_builtin): Don't count debug stmts or labels as bits in
3441         partition bitmap.
3443 2011-05-11  Richard Guenther  <rguenther@suse.de>
3445         * gimple.c (gimple_type_hash_1): Merge with ...
3446         (gimple_type_hash): ... this.
3447         (gtc_visit): Remove mode parameter and simplify accordingly.
3448         (gimple_types_compatible_p_1): Likewise.
3449         (gimple_types_compatible_p): Likewise.
3450         (iterative_hash_gimple_type): Likewise.
3451         (visit): Likewise.
3452         (gimple_type_eq): Adjust.
3454 2011-05-11  Revital Eres  <revital.eres@linaro.org>
3456         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
3457         enters the branch create an anti edge in the opposite direction
3458         to prevent the creation of reg-moves.
3459         * modulo-sched.c: Adjust comment to reflect the fact we are
3460         scheduling closing branch.
3461         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
3462         (stage_count): New field in struct partial_schedule.
3463         (calculate_stage_count): New function.
3464         (normalize_sched_times): Rename to reset_sched_times and handle
3465         incrementing the sched time of the nodes by a constant value
3466         passed as parameter.
3467         (duplicate_insns_of_cycles): Skip closing branch.
3468         (sms_schedule_by_order): Schedule closing branch.
3469         (ps_insn_find_column): Handle closing branch.
3470         (sms_schedule): Call reset_sched_times and adjust the code to
3471         support scheduling of the closing branch.
3472         (ps_insert_empty_row): Update calls to normalize_sched_times
3473         and rotate_partial_schedule functions.
3475 2011-05-11  Richard Guenther  <rguenther@suse.de>
3477         PR middle-end/48953
3478         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
3480 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
3482         * opts.c (finish_options): Move warning settings from process_options.
3483         * toplev.c (process_options): Move warning settings to finish_options.
3485 2011-05-11  Richard Guenther  <rguenther@suse.de>
3487         PR tree-optimization/18041
3488         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
3489         (simplify_bitwise_binary): ... this.  Handle operand conversions
3490         by applying them to the result instead.
3491         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
3493 2011-05-11  Richard Guenther  <rguenther@suse.de>
3495         * gimple.c (gimple_canonical_types_compatible_p): Split out
3496         from gimple_types_compatible_p and friends.  Do not recurse
3497         to pointed-to types.
3498         (gimple_canonical_type_eq): Use it.
3499         (iterative_hash_canonical_type): Split out from
3500         iterative_hash_gimple_type and friends.  Do not recurse
3501         to pointed-to types.
3502         (gimple_canonical_type_hash): Use it, allocate the hash here.
3504 2011-05-11  Revital Eres  <revital.eres@linaro.org>
3506         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
3507         recognizing doloop.
3509 2011-05-11  Revital Eres  <revital.eres@linaro.org>
3511         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
3512         instead of PREV_INSN.
3514 2011-05-11  Revital Eres  <revital.eres@linaro.org>
3516         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
3517         * loop-doloop.c (doloop_condition_get): Likewise.
3518         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
3519         (doloop_end): New.
3520         * config/arm/arm.md (*addsi3_compare0): Remove "*".
3522 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
3524         * tree.def (CASE_LABEL_EXPR): Add an operand.
3525         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
3527 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
3529         * c-decl.c (c_override_global_bindings_to_false): Remove.
3530         (global_bindings_p): Don't check
3531         c_override_global_bindings_to_false.
3532         * c-tree.h (c_override_global_bindings_to_false): Remove.
3533         * c-typeck.c (composite_type): Don't set
3534         c_override_global_bindings_to_false.
3536 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
3538         PR target/48857, 48495
3539         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
3540         (VSX_MODE): Ditto.
3541         (VSX_MOVE_MODE): Ditto.
3542         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
3543         VSX vector types.  Add V2DImode.
3544         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
3545         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
3546         (MODES_TIEABLE_P): Ditto.
3548         * config/rs6000/rs6000.c (rs6000_emit_move): Use
3549         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
3550         VSX_VECTOR_MODE.
3551         (init_cumulative_args): Ditto.
3552         (rs6000_function_arg_boundary): Ditto.
3553         (rs6000_function_arg_advance_1): Ditto.
3554         (rs6000_function_arg): Ditto.
3555         (rs6000_function_ok_for_sibcall): Ditto.
3556         (emit_frame_save): Ditto.
3557         (rs6000_function_value): Ditto.
3558         (rs6000_libcall_value): Ditto.
3560 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
3562         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3563         i386/darwin-lib.h to $libgcc_tm_file.
3564         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
3566 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
3568         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
3570 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
3572         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3573         * config/rs6000/rs6000-tables.opt: New file (generated).
3574         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3575         rs6000/rs6000-tables.opt to extra_options.
3576         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3577         * config/rs6000/rs6000.c (rs6000_select): Remove.
3578         (processor_target_table): Move contents to rs6000-cpus.def.
3579         (darwin_rs6000_override_options): Check
3580         global_options_set.x_rs6000_cpu_index instead of
3581         rs6000_select[1].string.
3582         (rs6000_option_override_internal): Likewise.
3583         (rs6000_handle_option): Don't assert that global structures are in
3584         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
3585         (rs6000_default_cpu): New variable.
3586         (rs6000_file_start): Set it instead of local default_cpu.  Check
3587         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3588         global_options_set.x_rs6000_tune_index instead of rs6000_select.
3589         (rs6000_darwin_file_start): Check rs6000_default_cpu and
3590         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3591         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3592         rs6000_select): Remove.
3593         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3594         Remove.
3595         (mcpu=, mtune=): Use Var, Init, Enum and Save.
3596         * config/rs6000/t-rs6000
3597         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3598         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3599         global_options_set.x_rs6000_cpu_index instead of
3600         rs6000_select[1].string.
3601         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3602         global_options_set.x_rs6000_cpu_index instead of
3603         rs6000_select[1].string.
3605 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
3607         * config.gcc (libgcc_tm_file): Define instead of including files
3608         from ../../libgcc/config/ in tm_file.
3609         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3610         * configure: Regenerate.
3611         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3612         libgcc_tm.h, cs-libgcc_tm.h): New.
3613         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3614         (clean): Remove libgcc_tm.h.
3615         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3616         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3617         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3619 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
3621         PR target/48896
3622         * config/avr/avr.c (avr_ret_register): Return unsigned int
3623         instead of int.
3624         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3625         it to avr_libcall_value.
3626         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3627         expand_expr.
3628         (avr_expand_binop_builtin): Ditto.
3629         (avr_expand_unop_builtin): Ditto.
3631 2011-05-10  DJ Delorie  <dj@redhat.com>
3633         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3634         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3635         * config/rx/rx.c (rx_align_for_label): Add label and
3636         uses_threshold parameters.  Do not align when the label is not
3637         used enough.
3638         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3640 2011-05-10  Richard Guenther  <rguenther@suse.de>
3642         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3643         a series of conversions and apply foldings similar to what
3644         fold-const does.
3645         (tree_ssa_forward_propagate_single_use_vars): Call it.
3647 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
3649         PR tree-optimization/48611
3650         PR tree-optimization/48794
3651         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3652         referenced from RESX or EH_DISPATCH arguments.
3654         PR debug/48928
3655         * dfp.c (decimal_to_decnumber): Handle conversion from
3656         dconst{1,2,m1,half}.
3658 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
3660         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3661         for !flag_prefer_avx128.
3662         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3664 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
3666         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3667         (fold_ternary_loc): Use expr_location_or.
3669 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
3671         PR debug/48853
3672         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3673         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3674         Pmode and mem_mode is not VOIDmode.
3676 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
3678         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3679         TYPE_QUAL_RESTRICT): Convert to enum.
3681 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
3683         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3684         (const_pow2_1_to_8_operand): Ditto.
3685         (const_pow2_1_to_128_operand): Ditto.
3686         (const_pow2_1_to_32768_operand): Ditto.
3687         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3688         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
3689         in insn constraint to check integer value of operand 3.
3690         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3692         (PINSR_MODE): New mode iterator.
3693         (sse2p4_1): New mode attribute.
3694         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3695         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3696         iterator.  Use const_int_operand instead of
3697         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
3698         exact_log2 in insn constraint to check integer value of operand 3.
3700 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
3702         * config/i386/sse.md (blendbits): Remove mode attribute.
3703         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3704         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3705         Check integer value of operand 3 in insn constraint.
3707 2011-05-09  Richard Guenther  <rguenther@suse.de>
3709         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3710         for diagnostics.
3711         (lto_symtab_merge): Likewise.  Do not register types here.
3712         (lto_symtab_merge_decls_2): Likewise.
3713         (lto_symtab_merge_decls_1): Likewise.
3714         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3715         * gimple.c (enum gtc_mode): Declare.
3716         (gimple_types_compatible_p): Make static.
3718 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3720         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3721         temporary register to match Pmode.
3723 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
3725         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3726         and *vec_concatv4si_1_avx.
3728 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
3730         PR rtl-optimization/48927
3731         * ira-conflicts.c (commutative_constraint_p): Use
3732         recog_data.alternative_enabled_p to disable alternatives where
3733         "enabled" attribute is false.
3734         (get_dup_num): Ditto.
3735         * ira-lives.c (single_reg_class): Ditto.
3736         (ira_implicitly_set_insn_hard_regs): Ditto.
3738 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
3740         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3741         (dataflow_set_preserve_mem_locs): Likewise.
3743 2011-05-09  Philipp Thomas  <pth@suse.de>
3745         * config/mep/mep.c (mep_validate_vliw): Syntax description
3746         should not be translated.
3748 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
3750         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3751         * config/mips/mips-tables.opt: New file (generated).
3752         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3753         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3754         MIPS_ARCH_OPTION_NATIVE): Define.
3755         * config/mips/mips.c (mips_cpu_info_table): Move contents to
3756         mips-cpus.def.
3757         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3758         mips_parse_cpu): Remove.
3759         (mips_cpu_info_from_opt, mips_default_arch): New.
3760         (mips_handle_option): Don't assert that global structures are in
3761         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3762         (mips_option_override): Use new variables and functions to set
3763         state of these options.  Use strcmp to check for individual CPU names.
3764         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3765         definition.
3766         * config/mips/mips.opt (march=): Use ToLower and Enum.
3767         (mips): Use ToLower, Enum and Var.
3768         (mtune=): Use ToLower and Enum.
3769         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3771 2011-05-08  Jan Hubicka  <jh@suse.cz>
3773         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3774         Arrange type pairs to be UID ordered.
3775         (gimple_lookup_type_leader): Make inline.
3777 2011-05-09  Nick Clifton  <nickc@redhat.com>
3779         PR target/48899
3780         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3781         PROCESSOR_DEFAULT.
3783         PR target/48897
3784         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3785         variable 's'.
3787 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
3789         * combine.c (simplify_comparison): Abstract out parts into...
3790         (simplify_compare_const): ... new function.
3791         (try_combine): Generalize parallel arithmetic/compare combining
3792         to call simplify_compare_const() and CANONICALIZE_COMPARE().
3794 2011-05-08  Jan Hubicka  <jh@suse.cz>
3796         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3797         (cgraph_create_virtual_clone): Call hooks once virtual clone
3798         is finished.
3799         * cgraph.h (cgraph_clone_node): Update prototype.
3800         * ipa-cp.c (ipcp_estimate_growth): Use
3801         estimate_ipcp_clone_size_and_time.
3802         * ipa-inline-transform.c (clone_inlined_nodes): Update.
3803         * lto-cgraph.c (input_node): Update.
3804         * ipa-inline.c (recursive_inlining): Update.
3805         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3806         (evaluate_conditions_for_known_args): Break out from ...
3807         (evaluate_conditions_for_edge): ... here.
3808         (evaluate_conditions_for_ipcp_clone): New function.
3809         (inline_node_duplication_hook): Update clone summary based
3810         on parameter map.
3811         (estimate_callee_size_and_time): Rename to ...
3812         (estimate_node_size_and_time): take NODE instead of EDGE;
3813         take POSSIBLE_TRUTHS as argument.
3814         (estimate_callee_size_and_time): Update.
3815         (estimate_ipcp_clone_size_and_time): New function.
3816         (do_estimate_edge_time): Update.
3818 2011-05-08  Richard Guenther  <rguenther@suse.de>
3820         PR middle-end/48908
3821         PR middle-end/48905
3822         * expmed.c (expand_shift_1): Compute adjusted constant shift
3823         amount manually.
3825 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
3827         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3829 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
3831         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3833 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
3835         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3837 2011-05-07  Jan Hubicka  <jh@suse.cz>
3839         * ipa-inline-transform.c (inline_call): Account when program size
3840         decreases.
3841         * ipa-inline.c (relative_time_benefit): New function.
3842         (edge_badness): Reorganize to be power 2 based; fix thinko when
3843         computing badness for negative growth; update comments to match
3844         reality; better dumps.
3846 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
3848         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3849         type to bool and adjust comment.
3850         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3851         (fold_mathfn_compare): Remove calls to global_bindings_p.
3852         (fold_inf_compare): Likewise.
3853         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3854         * c-tree.h (global_bindings_p): Adjust prototype.
3855         * c-decl.c (global_bindings_p): Return bool and simplify.
3857 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
3859         PR tree-optimization/48837
3860         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3861         when accumulator transformation is performed.
3863 2011-05-06  Jan Hubicka  <jh@suse.cz>
3865         * i386.h (ix86_tune_indices): Add
3866         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3867         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3868         * i386.c (initial_ix86_tune_features): Add
3869         X86_SOFTARE_PREFETCHING_BENEFICIAL.
3870         (software_prefetching_beneficial_p): Remove predicate.
3871         (ix86_option_override_internal): Use new macro.
3873 2011-05-06  Jan Hubicka  <jh@suse.cz>
3875         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3877 2011-05-06  Jan Hubicka  <jh@suse.cz>
3879         * cgraph.c (cgraph_add_thunk): Create real function node instead
3880         of alias node; finalize it and mark needed/reachale; arrange visibility
3881         to be right and add it into the corresponding same comdat group list.
3882         (dump_cgraph_node): Dump thunks.
3883         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3884         cgraph_function_with_gimple_body_p,
3885         cgraph_first_function_with_gimple_body,
3886         cgraph_next_function_with_gimple_body): New functions.
3887         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3888         New macros.
3889         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3890         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3891         * cgraphunit.c (cgraph_finalize_function): Only look into possible
3892         devirtualization when optimizing.
3893         (verify_cgraph_node): Verify thunks.
3894         (cgraph_analyze_function): Analyze thunks.
3895         (cgraph_mark_functions_to_output): Output thunks only in combination
3896         with function they are assigned to.
3897         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3898         alias into normal node.
3899         (assemble_thunks): New functoin.
3900         (cgraph_expand_function): Use it.
3901         * lto-cgraph.c (lto_output_node): Stream thunks.
3902         (input_overwrite_node): Stream in thunks.
3903         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3904         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3905         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3906         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3907         (inline_analyze_function): Do not care about thunk jump functions.
3908         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3909         * ipa-prop.c (ipa_prop_write_jump_functions): Use
3910         cgraph_function_with_gimple_body_p.
3911         * passes.c (do_per_function_toporder): Use
3912         cgraph_function_with_gimple_body_p.
3913         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3914         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3915         (function_called_by_processed_nodes_p): Likewise.
3917 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
3919         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3920         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3921         entries.
3922         (mabi=): Replace with separate entries for mabi=altivec,
3923         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3924         mabi=ieeelongdouble and mabi=ibmlongdouble.
3925         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3926         check for -mabi=spe without SPE ABI support here.
3927         (rs6000_handle_option): Replace OPT_mabi_ handling with
3928         OPT_mabi_altivec and OPT_mabi_spe handling.
3930 2011-05-06  Cary Coutant  <ccoutant@google.com>
3932         * dwarf2out.c (contains_subprogram_definition): New function.
3933         (should_move_die_to_comdat): Call it.
3935 2011-05-06  Jeff Law  <law@redhat.com>
3937         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3938         remove_ctrl_stmt_and_useless_edges.
3939         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3940         (fixup_template_block, thread_single_edge): Likewise.
3941         (mark_threaded_blocks): Use THREAD_TARGET.
3943 2011-05-06  Alan Modra  <amodra@gmail.com>
3945         PR target/48900
3946         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3947         const0_rtx as the arg to the dummy __tls_get_addr libcall.
3949 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
3951         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3952         constraint modifier to "r".
3954 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
3956         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3957         fall through for OPT_mcmodel_.
3959 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3961         * config/s390/s390.c (s390_asm_trampoline_template): Comment
3962         instruction sizes.
3963         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3965 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3967         PR target/47930
3968         * config/arm/arm.opt (marm): Document it.
3969         (mthumb): Reject negative variant.
3971 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
3973         PR target/48898
3974         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3975         Fix typo in "ccvt" variable name.
3977 2011-05-06  Tristan Gingold  <gingold@adacore.com>
3979         PR target/48895
3980         * config/vms/vms-ar.c (main): Remove cwd variable.
3982 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
3984         PR debug/48902
3985         * var-tracking.c (prepare_call_arguments): Move else before #endif.
3987 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
3989         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3990         * gimplify.c (gimplify_switch_expr): Likewise.
3991         * omp-low.c (expand_omp_sections): Likewise.
3992         * tree-eh.c (lower_try_finally_switch): Likewise.
3993         (lower_eh_dispatch): Likewise.
3994         * tree.h (build_case_label): Declare.
3995         * tree.c (build_case_label): Define.
3997 2011-05-05  Jason Merrill  <jason@redhat.com>
3999         PR c++/40975
4000         * tree-inline.c (copy_tree_r): Use copy_statement_list.
4001         (copy_statement_list): Don't recurse.
4002         * stor-layout.c (copy_self_referential_tree_r): Don't allow
4003         STATEMENT_LIST.
4005 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
4007         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
4008         through from -mfpu= handling.
4009         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
4011 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
4013         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
4014         POST_MODIFY.
4016 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
4018         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
4019         for 11.31.
4020         (hppa[12]*-*-hpux11*): Ditto.
4021         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
4022         * config/ia64/hpux-unix2003.h: New.
4023         * config/pa/pa-hpux1131.opt: New.
4024         * config/pa/pa-hpux1131.h: New.
4025         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
4026         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4027         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
4029 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
4031         PR debug/48853
4032         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
4033         instead of mode as 3rd argument to recursive call.
4034         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
4035         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
4036         VOIDmode.
4037         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
4038         don't give up if mode is Pmode and mem_mode is not VOIDmode.
4039         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
4040         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
4042 2011-05-05  Julian Brown  <julian@codesourcery.com>
4044         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
4045         parenthesis in D-register case.
4047 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
4049         * opt-functions.awk (var_type_struct): Handle Enum options.
4050         * optc-gen.awk: Don't check range of variables of character type.
4051         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
4052         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
4053         rs6000_sdata_name, rs6000_explicit_options): Remove.
4054         (rs6000_option_override_internal): Check for -malign-power here.
4055         Use global_options_set instead of rs6000_explicit_options.
4056         (rs6000_parse_fpu_option): Remove.
4057         (rs6000_handle_option): Access variables via opts and opts_set
4058         pointers.  Use error_at and warning_at.  Add fall-through
4059         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
4060         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
4061         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
4062         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
4063         here.  Don't use rs6000_parse_fpu_option.
4064         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
4065         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
4066         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
4067         (mrecip=): Use Var.
4068         (mspe): Use Var and Save.
4069         (mtraceback=): Use Enum and Var.
4070         (rs6000_traceback_type): New Enum and EnumValue entries.
4071         (mfloat-gprs=): Use Enum, Var and Save.
4072         (rs6000_float_gprs): New Enum and EnumValue entries.
4073         (mlong-double-): use Var and Save.
4074         (msched-costly-dep=, minsert-sched-nops=): Use Var.
4075         (malign-): Use Enum and Var.
4076         (rs6000_alignment_flags): New Enum and EnumValue entries.
4077         (mfpu=): Use Enum.
4078         (fpu_type_t): New Enum and EnumValue entries.
4079         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4080         global_options_set instead of rs6000_explicit_options.
4081         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4082         global_options_set instead of rs6000_explicit_options.
4083         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4084         global_options_set instead of rs6000_explicit_options.
4085         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4086         global_options_set instead of rs6000_explicit_options.
4087         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
4088         global_options_set instead of rs6000_explicit_options.
4089         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4090         global_options_set instead of rs6000_explicit_options.
4091         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
4092         definition.
4093         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4094         global_options_set instead of rs6000_explicit_options.
4095         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
4096         (rs6000_cmodel): New Enum and EnumValue entries.
4097         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4098         global_options_set instead of rs6000_explicit_options.
4099         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
4100         (mtls-size=): Use Enum and Var.
4101         (rs6000_tls_size): New Enum and EnumValue entries.
4103 2011-05-05  Michael Matz  <matz@suse.de>
4105         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
4106         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
4107         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
4108         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
4109         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
4110         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
4111         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
4112         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
4113         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
4114         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
4115         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
4116         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
4117         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
4118         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
4119         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
4120         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
4122 2011-05-05  Richard Guenther  <rguenther@suse.de>
4124         * expmed.c (expand_variable_shift): Rename to ...
4125         (expand_shift_1): ... this.  Take an expanded shift amount.
4126         For rotates recurse directly not building trees for the shift amount.
4127         (expand_variable_shift): Wrap around expand_shift_1.
4128         (expand_shift): Adjust.
4130 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
4132         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
4134 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
4136         * tree.h (get_pending_sizes): Remove prototype.
4137         (put_pending_size): Likewise.
4138         (put_pending_sizes): Likewise.
4139         * stor-layout.c (pending_sizes): Delete.
4140         (get_pending_sizes): Likewise.
4141         (put_pending_size): Likewise.
4142         (put_pending_sizes): Likewise.
4143         (variable_size): Do not call put_pending_size and tidy up.
4144         * function.h (struct function): Remove dont_save_pending_sizes_p.
4145         * lto-streamer-in.c (input_function): Do not stream it.
4146         * lto-streamer-out.c (output_function): Likewise.
4147         * tree-inline.c (initialize_cfun): Do not copy it.
4148         * c-decl.c (store_parm_decls): Do not set it.
4149         * omp-low.c (create_task_copyfn): Likewise.
4150         * tree-optimize.c (tree_rest_of_compilation): Likewise.
4152 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
4154         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
4155         conditions.
4156         (*movdf_internal): Ditto.
4157         (*movdf_internal_nointeger): Ditto.
4158         (*movsf_internal): Ditto.
4160 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
4162         * c-decl.c (finish_decl): Don't call get_pending_sizes.
4163         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
4164         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
4165         (c_variable_size): Remove.
4166         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
4167         call put_pending_sizes.
4168         (get_parm_info): Add parameter expr.  Use it to set
4169         arg_info->pending_sizes.
4170         (store_parm_decls): Use arg_info->pending_sizes instead or calling
4171         get_pending_sizes.
4172         * c-parser.c (c_parser_parms_declarator): Update call to
4173         c_parser_parms_list_declarator.
4174         (c_parser_parms_list_declarator): Take parameter expr.  Update
4175         call to push_parm_decl.  Update recursive call.  Don't call
4176         get_pending_sizes.  Update calls to get_parm_info.
4177         (c_parser_objc_method_definition): Update calls to
4178         c_parser_objc_method_decl and objc_start_method_definition.
4179         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
4180         (c_parser_objc_method_decl): Add parameter expr.  Update call to
4181         grokparm.
4182         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
4183         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
4184         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
4186 2011-05-05  Michael Hope  <michael.hope@linaro.org>
4188         PR pch/45979
4189         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
4190         __ARM_EABI__ hosts.
4192 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4194         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
4195         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
4196         (spu_output_mi_thunk): New function.
4198 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4200         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
4201         targetm.asm_out.print_operand.
4202         * config/sol2.c: Include target.h.
4204 2011-05-04  Jan Hubicka  <jh@suse.cz>
4206         * ipa-inline.c (reset_edge_caches): New function.
4207         (update_caller_keys): Add check_inlinablity_for; do not
4208         reset edge caches; remove now unnecesary loop.
4209         (update_callee_keys): Add comments; reset node_growth_cache of callee.
4210         (update_all_callee_keys): Likewise.
4211         (inline_small_functions): Sanity check cache; update code
4212         recomputing it.
4214 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
4216         PR rtl-optimization/47612
4217         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
4218         as the last insn of the sequence to be moved.
4220 2011-05-04  Tobias Burnus  <burnus@net-b.de>
4222         PR fortran/48864
4223         * doc/invoke.texi (Ofast): Document that it
4224         enables Fortran's -fno-protect-parens.
4226 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
4228         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
4230 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
4232         * stor-layout.c (variable_size): Do not issue errors.
4234 2011-05-04  Richard Guenther  <rguenther@suse.de>
4236         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
4237         for array-ref indices.
4238         (tree_coverage_counter_addr): Likewise.
4239         (build_fn_info_type): Use size_int for index types.
4240         (build_gcov_info): Likewise.
4242 2011-05-04  Richard Guenther  <rguenther@suse.de>
4244         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
4245         to build_int_cst.
4246         * c-typeck.c (really_start_incremental_init): Use bitsize_int
4247         for constructor indices.
4248         (push_init_level): Likewise.
4250 2011-05-04  Richard Guenther  <rguenther@suse.de>
4252         * explow.c (promote_mode): Move variable declarations before code.
4254 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
4256         * tree.h (build_function_type_array): Declare.
4257         (build_varargs_function_type_array): Declare.
4258         (build_function_type_vec, build_varargs_function_type_vec): Define.
4259         * tree.c (build_function_type_array_1): New function.
4260         (build_function_type_array): New function.
4261         (build_varargs_function_type_array): New function.
4263 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
4265         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
4266         before setting STMT_VINFO_TYPE.
4268 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4270         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
4271         instead of spu_pass_by_reference.
4273 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4275         * calls.c (emit_library_call_value_1): Invoke
4276         promote_function_mode hook on libcall arguments.
4277         * explow.c (promote_function_mode, promote_mode): Handle TYPE
4278         argument being NULL.
4279         * targhooks.c (default_promote_function_mode): Lisewise.
4280         * config/s390/s390.c (s390_promote_function_mode): Likewise.
4281         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
4283         * doc/tm.texi: Document that TYPE argument might be NULL.
4285 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
4287         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
4289 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
4291         From Bernd Schmidt
4292         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
4294 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4296         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
4297         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
4298         Move ...
4299         * mips-tfile.c: ... here.
4300         Don't include coretypes.h, tm.h, filenames.h.
4301         (saber_stop): Remove definition and all calls.
4302         [__SABER__]: Remove.
4303         (__LINE__): Remove default.
4304         (Size_t, Ptrdiff_t): Remove definitions.
4305         Replace by size_t, ptrdiff_t.
4306         [!MIPS_DEBUGGING_INFO]: Remove.
4307         (SHASH_SIZE, THASH_SIZE): Remove defaults.
4308         (progname): Add const.
4309         (STATIC): Remove.
4310         Replace all uses by static.
4311         (ALIGN_SYMTABLE_OFFSET): Remove default.
4312         * mips-tdump.c: Don't include coretypes.h, tm.h.
4313         Remove !MIPS_IS_STAB guard.
4314         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
4315         $(TM_H), filenames.h dependencies.
4316         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
4318 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
4320         From Jie Zhang
4321         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
4322         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
4324 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
4326         From Bernd Schmidt
4327         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
4328         account and save/restore RETS.
4329         (PROFILE_BEFORE_PROLOGUE): Define.
4330         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
4331         the push insn to use predecrement.
4333 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
4335         From Jie Zhang
4336         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
4338 2011-05-04  Nick Clifton  <nickc@redhat.com>
4340         * config/mn10300/mn10300.c: Include cfgloop.h.
4341         (DUMP): New macro.
4342         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
4343         Lcc or a FLcc insn into the instruction stream.
4344         (mn10300_block_contains_call): New function.  Returns true if the
4345         given basic block contains a CALL insn.
4346         (mn10300_loop_contains_call_insn): New function.  Returns true if
4347         the given loop contains a CALL insn.
4348         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
4349         to use the SETLB and Lcc or FLcc insns.
4350         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
4351         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
4352         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
4353         disable the SETLB optimization.
4354         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
4355         __SETLB__ or __NO_SETLB__.
4356         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
4357         (movsf_internal): Handle MDR register.
4358         (cmpsi): Make visible.
4359         (setlb): New pattern.
4360         (Lcc): New pattern.
4361         (FLcc): New pattern.
4363 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
4365         PR target/48860
4366         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
4367         for reg<->xmm moves.
4368         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
4369         (vec_concatv2di_rex64_sse): Ditto.
4370         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
4371         (*vec_extractv2di_1_rex64): Ditto.
4373         Revert:
4374         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
4376         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4377         reg<->xmm moves.
4378         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
4380 2011-05-04  Richard Guenther  <rguenther@suse.de>
4382         * tree.h (int_const_binop): Remove notrunc argument.
4383         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
4384         create integer constants that are properly truncated.
4385         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
4386         (const_binop): Remove zero notrunc argument to int_const_binop.
4387         (size_binop_loc): Likewise.
4388         (fold_div_compare): Likewise.
4389         (maybe_canonicalize_comparison_1): Likewise.
4390         (fold_comparison): Likewise.
4391         (fold_binary_loc): Likewise.
4392         (multiple_of_p): Likewise.
4393         * expr.c (store_constructor): Likewise.
4394         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
4395         (maybe_fold_stmt_addition): Likewise.
4396         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4397         * stor-layout.c (layout_type): Likewise.
4398         * tree-data-ref.c (tree_fold_divides_p): Likewise.
4399         * tree-sra.c (build_ref_for_offset): Likewise.
4400         (build_user_friendly_ref_for_offset): Likewise.
4401         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
4402         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4403         * tree-ssa-loop-niter.c (inverse): Likewise.
4404         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4405         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
4406         * tree-switch-conversion.c (check_range): Likewise.
4407         (build_constructors): Likewise.
4408         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
4409         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
4410         (extract_range_from_assert): Likewise.
4411         (vrp_int_const_binop): Likewise.
4412         (extract_range_from_binary_expr): Likewise.
4413         (extract_range_from_unary_expr): Likewise.
4414         (check_array_ref): Likewise.
4415         (find_case_label_range): Likewise.
4416         (simplify_div_or_mod_using_ranges): Likewise.
4417         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
4418         comparing case labels for merging.
4420 2011-05-03  Mark Wielaard  <mjw@redhat.com>
4422         * dwarf2out.c (debug_str_hash_forced): Removed.
4423         (gen_label_for_indirect_string): Removed.
4424         (get_debug_string_label): Removed.
4425         (AT_string_form): Generate label directly.
4426         (output_indirect_string): Test indirect_string_node for
4427         DW_FORM_strp instead of checking label and refcount.
4428         (prune_indirect_string): Removed.
4429         (prune_unused_types): Don't check debug_str_hash_forced or
4430         call prune_indirect_string.
4432 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
4434         PR other/48093
4435         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
4437 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
4439         PR debug/47994
4440         PR debug/47919
4441         * combine.c (try_combine): Skip debug insns at m_split tests.
4443 2011-04-26  Mark Wielaard  <mjw@redhat.com>
4445         PR42288
4446         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
4447         when info_section_emitted.
4449 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
4451         * config/mips/mips-opts.h: New.
4452         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
4453         to mips-opts.h.
4454         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
4455         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
4456         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
4457         via opts pointer.
4458         * config/mips/mips.h (enum mips_code_readable_setting): Move to
4459         mips-opts.h.
4460         (mips_abi, mips_code_readable): Don't declare.
4461         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
4462         (mabi=): Use Enum and Var.
4463         (mips_abi): New Enum and EnumValue entries.
4464         (mcode-readable=): Use Enum and Var.
4465         (mips_code_readable_setting): New Enum and EnumValue entries.
4466         (mr10k-cache-barrier=): Use Enum and Var.
4467         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
4469 2011-05-03  Jan Hubicka  <jh@suse.cz>
4471         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
4472         replace hash by pointer map.
4473         (cgraph_node_set_element_def, cgraph_node_set_element,
4474         const_cgraph_node_set_element, varpool_node_set_element_def,
4475         varpool_node_set_element, const_varpool_node_set_element): Remove.
4476         (free_cgraph_node_set, free_varpool_node_set): New function.
4477         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
4478         * tree-emutls.c: Free varpool node set.
4479         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
4480         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4481         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
4482         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4483         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
4484         Move here from ipa.c; implement using pointer_map
4485         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
4486         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4487         debug_cgraph_node_set, varpool_node_set_new,
4488         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4489         dump_varpool_node_set, debug_varpool_node_set):
4490         Move to ipa-uitls.c.
4491         * passes.c (ipa_write_summaries): Update.
4493 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
4495         From Mike Frysinger:
4496         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
4497         bf542/bf544/bf547/bf548/bf549.
4499 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
4501         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
4503 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
4505         From Bernd Schmidt:
4506         * config/bfin/bfin.md (MOVCC): New mode_macro.
4507         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
4508         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
4509         comments from generated assembly.
4511 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
4513         From Bernd Schmidt
4514         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
4515         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
4516         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
4517         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
4518         * config/bfin/lib1funcs.asm (___muldi3): New function.
4520 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4522         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
4523         build_function_type_list instead of build_function_type.
4524         Rearrange initialization of `args' to do so.
4526 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4528         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
4529         instead of build_function_type.
4531 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4533         * config/rs6000/rs6000.c (spe_init_builtins): Call
4534         build_function_type_list instead of build_function_type.
4535         (paired_init_builtins, altivec_init_builtins): Likewise.
4536         (builtin_function_type): Likewise.
4538 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4540         * config/sh/sh.c (sh_media_init_builtins): Call
4541         build_function_type_list instead of build_function_type.
4543 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4545         * config/sparc/sparc.c (sparc_file_end): Call
4546         build_function_type_list instead of build_function_type.
4548 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4550         * config/alpha/alpha.c (alpha_init_builtins): Call
4551         build_function_type_list instead of build_function_type.
4553 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4555         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
4556         build_function_type_list instead of build_function_type.
4558 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4560         * config/iq2000/i2000.c (iq2000_init_builtins): Call
4561         build_function_type_list instead of build_function_type.
4562         Delete `endlink' variable.
4564 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4566         * config/avr/avr.c (avr_init_builtins): Call
4567         build_function_type_list instead of build_function_type.
4569 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4571         * config/picochip/picochip.c (picochip_init_builtins): Call
4572         build_function_type_list instead of build_function_type.
4573         Delete `endlink' variable.
4575 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4577         * config/bfin/bfin.c (bfin_init_builtins): Call
4578         build_function_type_list instead of build_function_type.
4580 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
4582         From Bernd Schmidt
4583         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4584         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
4586 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
4588         From Jie Zhang:
4589         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4590         libbffastfp overrides libgcc when -mfast-fp.
4592 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
4594         Originally from Bernd Schmidt
4595         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4596         * config/bfin/bfin.c (override_options): Test it and error if
4597         TARGET_FDPIC.
4599 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
4601         Originally From Bernd Schmidt
4602         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4603         FD-PIC.
4605 2011-05-03  Jeff Law  <law@redhat.com>
4607         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4608         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4609         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4610         than accessing AUX field directly.  Free the AUX field before
4611         clearing it.
4612         (thread_block, thread_through_loop_header): Likewise.
4613         (thread_single_edge, mark_threaded_blocks): Likewise.
4614         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
4615         (register_jump_thread): Do not attempt to thread to a NULL edge.
4617 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
4619         * function.c (init_function_start): Call decide_function_section.
4620         * varasm.c (decide_function_section): New function.
4621         (assemble_start_function): When not using
4622         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4623         or first_function_block_is_cold.
4624         * rtl.h (decide_function_section): Declare.
4626 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
4627             Jakub Jelinek  <jakub@redhat.com>
4629         PR target/48774
4630         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4631         only succeed if req_mode is the same as set_mode.
4633 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
4635         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4636         * genemit.c (gen_exp): Handle RETURN.
4637         * emit-rtl.c (verify_rtx_sharing): Likewise.
4638         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4639         * rtl.c (copy_rtx): RETURN is shared.
4640         * rtl.h (enum global_rtl_index): Add GR_RETURN.
4641         (ret_rtx): New.
4642         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4643         * config/s390/s390.c (s390_emit_epilogue): Likewise.
4644         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4645         * config/cris/cris.c (cris_expand_return): Likewise.
4646         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4647         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4648         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4649         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4650         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4651         Likewise.
4652         * config/v850/v850.c (expand_epilogue): Likewise.
4653         * config/bfin/bfin.c (bfin_expand_call): Likewise.
4654         * config/arm/arm.md (epilogue): Likewise.
4655         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4656         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4657         variable to ret_reg.
4659 2011-05-03  Richard Guenther  <rguenther@suse.de>
4661         PR lto/48846
4662         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4663         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4664         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4666 2011-05-03  Richard Guenther  <rguenther@suse.de>
4668         * c-decl.c (grokdeclarator): Instead of looking at
4669         TREE_OVERFLOW check if the constant fits in the index type.
4671 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
4673         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4674         (vec_store_lanes<mode><mode>): Likewise.
4676 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
4678         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4679         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4680         convert_optab_index values.
4681         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4682         * genopinit.c (optabs): Initialize the new optabs.
4683         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4684         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4685         (expand_STORE_LANES): New functions.
4686         * tree.h (build_array_type_nelts): Declare.
4687         * tree.c (build_array_type_nelts): New function.
4688         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4689         (vect_model_load_cost): Likewise.
4690         (vect_store_lanes_supported, vect_load_lanes_supported)
4691         (vect_record_strided_load_vectors): Declare.
4692         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4693         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4694         (vect_transform_strided_load): Split out statement recording into...
4695         (vect_record_strided_load_vectors): ...this new function.
4696         * tree-vect-stmts.c (create_vector_array, read_vector_array)
4697         (write_vector_array, create_array_ref): New functions.
4698         (vect_model_store_cost): Add store_lanes_p argument.
4699         (vect_model_load_cost): Add load_lanes_p argument.
4700         (vectorizable_store): Try to use store-lanes functions for
4701         interleaved stores.
4702         (vectorizable_load): Likewise load-lanes and loads.
4703         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4704         to vect_model_store_cost.
4705         (vect_build_slp_tree): Likewise vect_model_load_cost.
4707 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
4709         * hooks.h (hook_bool_mode_uhwi_false): Declare.
4710         * hooks.c (hook_bool_mode_uhwi_false): New function.
4711         * target.def (array_mode_supported_p): New hook.
4712         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4713         * doc/tm.texi: Regenerate.
4714         * stor-layout.c (mode_for_array): New function.
4715         (layout_type): Use it.
4716         * config/arm/arm.c (arm_array_mode_supported_p): New function.
4717         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4719 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
4721         PR target/48723
4722         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4723         for -fstack-check if the size to allocate is negative.
4725 2011-05-02  Lawrence Crowl  <crowl@google.com>
4727         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4728         (timevar_cond_start): New for starting a timer only when it is not
4729         already running.
4730         (timevar_cond_stop): New for stopping a timer when it was not already
4731         running.
4733         * timevar.c (timevar_stop): Enable start/stop timers to start again.
4734         (timevar_cond_start): New as above.
4735         (timevar_cond_stop): New as above.
4737         * timevar.def: Add start/stop timers for compiler phases,
4738         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4739         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4740         and TV_PHASE_FINALIZE.
4741         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4742         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4743         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4744         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4745         Make unused TV_OVERLOAD into a start/stop timer.
4747         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4748         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4749         to indicate that they are start/stop timers.
4751         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4752         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4753         Move initialization to do_compile.
4754         (do_compile): Add initialization from above.
4755         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4757         * c-decl.c (c_write_global_declarations): Add start/stop of
4758         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4760         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4761         or TV_PARSE_INLINE, as appropriate.
4762         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4763         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4765 2011-05-02  Jason Merrill  <jason@redhat.com>
4767         PR c++/40975
4768         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4770 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
4772         PR c/35445
4773         * c-decl.c (finish_decl): Only create a composite if the types are
4774         compatible.
4776 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
4778         * config/fr30/fr30-protos.h (Mmode): Don't define.
4779         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
4780         definition where used.
4781         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4782         define.  Expand definitions where used.
4783         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4784         Expand definitions where used.
4785         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4786         rx_function_arg, rx_function_arg_advance,
4787         rx_function_arg_boundary): Expand definitions of those macros.
4788         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
4789         definition where used.
4791 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
4793         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4794         reg<->xmm moves.
4795         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4796         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
4797         with *movv2sf_internal_rex64_avx.
4798         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4799         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4800         Use %v prefix in insn mnemonic to handle TARGET_AVX.
4801         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
4802         "vex" in "prefix" attribute calculation.
4803         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
4805 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
4807         PR target/47951
4808         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4809         inputs match the output.
4811 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
4813         PR target/47955
4814         * config/m68k/m68k.c (m68k_expand_prologue): Set
4815         current_function_static_stack_size.
4817 2011-05-02   Jan Hubicka  <jh@suse.cz>
4819         * lto-streamer.c (lto_streamer_cache_insert_1,
4820         lto_streamer_cache_lookup, lto_streamer_cache_create,
4821         lto_streamer_cache_delete): Use pointer map instead of hashtable.
4822         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4824 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
4826         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4827         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4828         config/m68k/t-opts: New files.
4829         * config/m68k/m68k-tables.opt: New file (generated).
4830         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4831         extra_options and m68k/t-opts to tmake_file.
4832         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4833         (all_isas): Initialize using m68k-isas.def.
4834         (all_microarchs): Initialize using m68k-microarchs.def.
4835         (m68k_find_selection): Remove.
4836         (m68k_handle_option): Don't assert that global structures are in
4837         use.  Use error_at.  Access variables via opts pointer.  Don't
4838         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
4839         directly for -m68020-40 and -m68020-60.
4840         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4841         m68k_tune_entry here.
4842         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4843         to m68k-opts.h.
4844         (m68k_library_id_string): Remove declaration.
4845         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4846         (m68k_library_id_string): New Variable.
4847         (march=, mcpu=, mtune=): Use Enum and Var.
4849 2011-05-02  Richard Guenther  <rguenther@suse.de>
4851         * varasm.c (output_constructor_regular_field): Compute zero-based
4852         index with double-ints.  Make sure to ICE instead of producing
4853         wrong code.
4854         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4855         in asserts.  Properly use a signed type.
4857 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
4859         * config/i386/sse.md (V): New mode iterator.
4860         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
4861         TARGET_SSE2.
4862         (V_256): Rename from AVX256MODE.
4863         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
4864         condition to all users.
4865         (VF1): Ditto.
4866         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
4867         condition to all users.
4868         (VF_128): Make V4SF mode unconditional.
4869         (VF_256): Rename from AVX256MODEF2P.
4870         (VI4F_128): Rename from SSEMODE4S.
4871         (VI8F_128): Rename from SSEMODE2D.
4872         (VI4F_256): Rename from AVX256MODE8P.
4873         (VI8F_256): Rename from AVX256MODE4P.
4874         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4875         (ssescalarmodesuffix): Remove SF and DF modes.
4876         (SSEMODE124): Remove.
4877         (SSEMODE1248): Ditto.
4878         (SSEMODEF2P): Ditto.
4879         (AVXMODEF2P): Ditto.
4880         (AVXMODEFDP): Ditto.
4881         (AVXMODEFSP): Ditto.
4882         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4883         unconditional.
4884         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
4885         unconditional.
4886         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4887         xop_pcmov_<mode>256.  Use V mode iterator.
4889         Adjust RTX patterns globally for renamed mode attributes.
4891 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4893         * haifa-sched.c (sched_emit_insn): Emit insn before first
4894         non-scheduled insn.  Inform back-end about new insn.  Add
4895         new insn to scheduled_insns list.
4897 2011-05-02  Richard Guenther  <rguenther@suse.de>
4899         PR tree-optimization/48822
4900         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4901         (process_scc): Indicate which iteration we start.
4903 2011-05-02  Jan Hubicka  <jh@suse.cz>
4905         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4906         (lto_section_overrun): New.
4907         * lto-section-out.c (append_block): Rename to ...
4908         (lto_append_block): ... this one; export.
4909         (lto_output_1_stream): Move lto lto-streamer.h
4910         (lto_output_data_stream): Update.
4911         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4912         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4913         functions.
4915 2011-05-02  Richard Guenther  <rguenther@suse.de>
4917         * tree.c (tree_code_counts): New global array.
4918         (record_node_allocation_statistics): Count individual tree codes.
4919         (dump_tree_statistics): Dump individual code stats.
4921 2011-05-01  Jan Hubicka  <jh@suse.cz>
4923         * ipa-inline.c (caller_growth_limits): Fix thinko when
4924         looking for largest stack frame.
4925         * ipa-inline.h (dump_inline_summary): Declare.
4926         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4927         on stack usage.
4928         (dump_inline_summary): Export.
4929         (debug_inline_summary): Declare as DEBUG_FUNCTION.
4931 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
4933         * reginfo.c (memory_move_cost): Change rclass argument type form
4934         'enum reg_class' to reg_class_t.
4935         * reload.h (memory_move_cost): Update prototype.
4936         * postreload.c reload_cse_simplify_set): Change type dclass var to
4937         reg_class_t.
4938         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4939         Update prototype.
4940         (ira_allocate_and_set_costs): Change aclass argument type form
4941         'enum reg_class' to reg_class_t.
4942         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4943         Change aclass argument type to reg_class_t.
4944         (update_conflict_hard_reg_costs): Change type aclass and pref vars
4945         to reg_class_t.
4946         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4947         memory_move_cost call.
4949         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4950         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4951         Change type tmp var to reg_class_t.
4953 2011-04-30  Jan Hubicka  <jh@suse.cz>
4955         * ipa-inline.c (can_inline_edge_p): Disregard limits when
4956         inlining into function with flatten attribute.
4957         (want_inline_small_function_p): Be more realistic about inlining
4958         cold calls where callee size grows.
4960 2011-04-30  Jan Hubicka  <jh@suse.cz>
4962         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4963         flags.
4965 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
4967         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4968         PRINT_OPERAND_PUNCT_VALID_P): Remove.
4969         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4970         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4971         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4972         (print_operand): Rename to...
4973         (sparc_print_operand): ...this. Make static. Adjust
4974         sparc_print_operand function call.
4975         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4976         functions.
4978 2011-04-30  Jan Hubicka  <jh@suse.cz>
4980         PR middle-end/48752
4981         * ipa-inline.c (early_inliner): Disable when doing late
4982         addition of function.
4984 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
4986         * dwarf2out.c (get_address_mode): New inline.
4987         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4988         if not dwarf_strict emit
4989         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4990         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4991         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
4992         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4993         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4994         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4995         mem_loc_descriptor callers.
4996         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4997         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4998         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4999         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
5000         (base_types): New variable.
5001         (get_base_type_offset, calc_base_type_die_sizes,
5002         base_type_for_mode, mark_base_types, base_type_cmp,
5003         move_marked_base_types): New functions.
5004         (calc_die_sizes): Assert that die_offset is 0 or equal to
5005         next_die_offset.
5006         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
5007         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
5008         callers.  If not dwarf_strict, call mem_loc_descriptor even for
5009         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
5010         (gen_subprogram_die): Don't give up on call site parameters
5011         with non-integral or large integral modes.  Adjust
5012         mem_loc_descriptor callers.
5013         (prune_unused_types): Call prune_unused_types_mark on base_types
5014         vector entries.
5015         (resolve_addr): Call mark_base_types.
5016         (dwarf2out_finish): Call move_marked_base_types.
5018         PR tree-optimization/48809
5019         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
5020         type.
5021         (gen_inbound_check): Don't compute index_expr - range_min in utype
5022         again, instead reuse SSA_NAME initialized in build_arrays.
5023         Remove two useless gsi_for_stmt calls.
5025 2011-04-29  Jeff Law  <law@redhat.com>
5027         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
5029 2011-04-29  Martin Jambor  <mjambor@suse.cz>
5031         * cgraph.h (cgraph_postorder): Remove declaration.
5032         * ipa-utils.h (ipa_free_postorder_info): Declare.
5033         (ipa_reverse_postorder): Likewise.
5034         * cgraphunit.c: Include ipa-utils.h.
5035         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
5036         * ipa-inline.c: Include ipa-utils.h.
5037         (ipa_inline): Update call to ipa_reverse_postorder.
5038         * ipa-pure-const.c (propagate_pure_const): Update call to
5039         ipa_reduced_postorder and ipa_print_order.  Call
5040         ipa_free_postorder_info to clean up.
5041         (propagate_nothrow): Likewise.
5042         * ipa-reference.c (propagate): Removed a useless call to
5043         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
5044         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
5045         * ipa.c: Include ipa-utils.h.
5046         (ipa_profile): Update call to ipa_reverse_postorder.
5047         (cgraph_postorder): Moved to...
5048         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
5049         (ipa_utils_print_order): Renamed to ipa_print_order.
5050         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
5051         comments.
5052         (ipa_free_postorder_info): New function.
5053         * passes.c: Include ipa-utils.h.
5054         (do_per_function_toporder): Update call to ipa_reverse_postorder.
5055         (ipa_write_summaries): Likewise.
5056         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
5057         (cgraphunit.o): Likewise.
5058         (ipa.o): Likewise.
5059         (ipa-inline.o): Likewise.
5061 2011-04-29  Jan Hubicka  <jh@suse.cz>
5063         * gcc.dg/tree-ssa/inline-10.c: New testcase.
5064         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
5065         * ipa-inline.h (clause_t): Turn into unsigned int.
5066         * ipa-inline-analysis.c (add_clause): Do more simplification.
5067         (and_predicates): Shortcut more cases.
5068         (predicates_equal_p): Move forward; check that clauses are properly
5069         ordered.
5070         (or_predicates): Shortcut more cases.
5071         (edge_execution_predicate): Rewrite as...
5072         (set_cond_stmt_execution_predicate): ... this function; handle
5073         __builtin_constant_p.
5074         (set_switch_stmt_execution_predicate): New .
5075         (compute_bb_predicates): New.
5076         (will_be_nonconstant_predicate): Update TODO.
5077         (estimate_function_body_sizes): Use compute_bb_predicates
5078         and free them later, always try to estimate if stmt is constant.
5079         (estimate_time_after_inlining, estimate_size_after_inlining):
5080         Gracefully handle optimized out edges.
5081         (read_predicate): Fix off by one error.
5083 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
5085         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
5087 2011-04-27  Xinliang David Li  <davidxl@google.com>
5089         * tree-profile.c (init_ic_make_global_vars): Set
5090         tls attribute on ic vars.
5091         * coverage.c (coverage_end_function): Initialize
5092         function_list with zero.
5094 2011-04-29  Richard Guenther  <rguenther@suse.de>
5096         * builtins.c (fold_builtin_classify_type): Use integer_type_node
5097         for the type of the result.
5098         (fold_builtin_isascii): Likewise.
5099         (fold_builtin_toascii): Use integer_type_node where appropriate.
5100         (fold_builtin_logb): Likewise.
5101         (fold_builtin_frexp): Likewise.
5102         (fold_builtin_strstr): Likewise.
5103         (fold_builtin_strpbrk): Likewise.
5104         (fold_builtin_fputs): Likewise.
5105         (fold_builtin_sprintf): Likewise.
5106         (fold_builtin_snprintf): Likewise.
5107         (fold_builtin_printf): Likewise.
5108         (do_mpfr_remquo): Use a proper type for the assigned constant.
5109         (do_mpfr_lgamma_r): Likewise.
5110         * dwarf2out.c (resolve_one_addr): Use size_int.
5111         * except.c (init_eh): Likewise.
5112         (assign_filter_values): Use integer_type_node for filter values.
5113         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
5114         indices.
5115         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
5116         for EH region numbers.
5117         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
5118         for the shift amount.
5120 2011-04-29  Richard Guenther  <rguenther@suse.de>
5122         * expr.h (expand_shift): Rename to ...
5123         (expand_variable_shift): ... this.
5124         (expand_shift): Take a constant shift amount.
5125         * expmed.c (expand_shift): Rename to ...
5126         (expand_variable_shift): ... this.
5127         (expand_shift): New wrapper around expand_variable_shift.
5128         * expr.c (convert_move, emit_group_load_1, emit_group_store,
5129         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
5130         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
5131         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
5132         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
5133         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
5134         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
5135         emit_store_flag_1, emit_store_flag): Likewise.
5136         * builtins.c (expand_builtin_signbit): Likewise.
5137         * calls.c (load_register_parameters): Likewise.
5138         * function.c (assign_parm_setup_block): Likewise.
5139         * lower-subreg.c (resolve_shift_zext): Likewise.
5140         * optabs.c (widen_bswap, expand_abs_nojump,
5141         expand_one_cmpl_abs_nojump, expand_float): Likewise.
5142         * spu/spu.c (spu_expand_extv): Likewise.
5143         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5145 2011-04-29  Richard Guenther  <rguenther@suse.de>
5147         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
5148         for the remapped region number.
5149         * predict.c (build_predict_expr): Use integer_type_node for the
5150         predict kind.
5151         * fold-const.c (fold_binary_loc): Use integer_type_node for
5152         the shift amount.  Use a proper type for the PLUS_EXPR operand.
5154 2011-04-29  Michael Matz  <matz@suse.de>
5156         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
5157         other trees that just builtins.
5158         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
5160 2011-04-29  Richard Guenther  <rguenther@suse.de>
5162         * tree-nested.c (get_trampoline_type): Use size_int.
5163         (get_nl_goto_field): Likewise.
5164         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
5165         for all indexes.
5166         (lower_eh_constructs_2): Likewise.
5167         (lower_resx): Likewise.
5168         (lower_eh_dispatch): Likewise.
5169         * tree-mudflap.c (mf_build_string): Use size_int.
5170         (mudflap_register_call): Use integer_type_node for the flag.
5171         (mudflap_enqueue_constant): Use size_int.
5172         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
5173         instead of rebuilding it.
5175 2011-04-29  Richard Guenther  <rguenther@suse.de>
5177         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
5178         Handle OBJ_TYPE_REF.
5179         (find_func_aliases_for_call): Use it more consistently.
5181 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
5183         * haifa-sched.c (last_nondebug_scheduled_insn): New.
5184         (rank_for_schedule): Use it.
5185         (schedule_block): Set it.
5187 2011-04-28  David Li  <davidxl@google.com>
5189         * tree.c (crc32_string): Use crc32_byte.
5190         (crc32_byte): New function.
5191         * tree.h (crc32_byte): New function.
5192         * gcov.c (read_graph_file): Handle new cfg_cksum.
5193         (read_count_file): Ditto.
5194         * profile.c (instrument_values): Ditto.
5195         (get_exec_counts): Ditto.
5196         (read_profile_edge_counts): Ditto.
5197         (compute_branch_probabilities): Ditto.
5198         (compute_value_histograms): Ditto.
5199         (branch_prob): Ditto.
5200         (end_branch_prob): Ditto.
5201         * coverage.c (read_counts_file): Ditto.
5202         (get_coverage_counts): Ditto.
5203         (tree_coverage_counter_addr): Ditto.
5204         (coverage_checksum_string): Ditto.
5205         (coverage_begin_output): Ditto.
5206         (coverage_end_function): Ditto.
5207         (build_fn_info_type): Ditto.
5208         (build_fn_info_value): Ditto.
5209         * libgcov.c (gcov_exit): Ditto.
5210         * gcov-dump.c (tag_function): Ditto.
5211         (compute_checksum): Remove.
5213 2011-04-29  Alan Modra  <amodra@gmail.com>
5215         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
5216         unspec plus offset.  Tidy macho code.
5218 2011-04-29  Martin Jambor  <mjambor@suse.cz>
5220         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
5221         node instead of a decl.  Update all callers.
5222         * cgraph.h: Update declaration.
5224 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
5226         PR tree-optimization/48765
5227         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
5228         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
5229         to indicate if loop aware SLP is being used.  Scan the statements
5230         and update the vectorization factor according to the type of
5231         vectorization before statement analysis.
5232         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
5233         pass it to vect_analyze_loop_operations.
5234         (vectorizable_reduction): Set number of copies to 1 in case of pure
5235         SLP statement.
5236         * tree-vect-stmts.c (vectorizable_conversion,
5237         vectorizable_assignment, vectorizable_shift,
5238         vectorizable_operation, vectorizable_type_demotion,
5239         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
5240         Likewise.
5241         (vectorizable_condition): Move the check that it is not SLP
5242         vectorization before the number of copies check.
5243         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
5244         to vectorize the loop using SLP.
5246 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
5248         PR middle-end/48597
5249         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
5250         inline asm.
5252 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
5254         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
5255         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
5256         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
5257         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
5258         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
5259         linux*.h headers.
5260         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
5261         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5262         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5263         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5264         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5265         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
5266         REG_NAME.
5267         * config/i386/linux.h (REG_NAME): Don't define.
5268         * config/i386/linux64.h (REG_NAME): Don't define.
5269         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
5270         Undefine before defining.
5272 2011-04-28  Jan Hubicka  <jh@suse.cz>
5274         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
5275         nonconstant_names array.
5276         (estimate_function_body_sizes): Build nonconstant_names array; handle
5277         BUILT_IN_CONSTANT_P.
5279 2011-04-28  Richard Guenther  <rguenther@suse.de>
5281         PR bootstrap/48804
5282         Revert
5283         2011-04-28  Richard Guenther  <rguenther@suse.de>
5285         * tree-ssa-structalias.c (solve_constraints): Build succ graph
5286         as late as possible.
5288 2011-04-28  Richard Guenther  <rguenther@suse.de>
5290         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
5291         (debug_constraint): Do it here.
5292         (dump_constraints): And here.
5293         (rewrite_constraints): And here.
5294         (dump_constraint_edge): Remove.
5295         (dump_constraint_graph): Rewrite to produce DOT output.
5296         (solve_constraints): Build succ graph as late as possible.
5297         Dump constraint graphs before and after solving.
5299 2011-04-28  Richard Guenther  <rguenther@suse.de>
5301         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5302         New function split out from ...
5303         (find_func_aliases): ... here.  Call it.
5304         (find_func_aliases_for_call): Likewise.
5306 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5308         * internal-fn.h (internal_fn_name_array): Declare.
5309         (internal_fn_flags_array): Likewise.
5311 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
5313         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
5314         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
5315         Move from sse.md.
5316         (ssemodefsuffix): Remove.
5317         (ssevecmodesuffix): New mode attribute.
5318         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
5319         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
5320         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
5321         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
5322         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
5323         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
5324         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
5325         ssemodesuffix mode attribute.
5326         (float splitters): Use ssevecmodesuffix mode attribute.
5327         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
5328         (sseinsmode): Rename from avxvecmode.
5329         (avxsizesuffix): Rename from avxmodesuffix.
5330         (sseintvecmode): Rename from avxpermvecmode.
5331         (ssedoublevecmode): Rename from ssedoublesizemode.
5332         (ssehalfvecmode): Rename from avxhalfvecmode.
5333         (ssescalarmode): Rename from avxscalarmode.
5334         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
5335         templates for ssemodesuffix mode attribute.
5336         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
5337         mode attribute.
5339         Adjust RTX patterns globally for renamed mode attributes.
5341 2011-04-27  Jan Hubcika  <jh@suse.cz>
5343         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
5344         * ipa-inline-analysis.c: Include alloc-pool.h.
5345         (edge_predicate_pool): New.
5346         (trye_predicate_p): New function
5347         (false_predicate_p): New function.
5348         (add_clause): Sanity check that false clauses are "optimized";
5349         never add clauses to predicate that is already known to be false.
5350         (and_predicate): Use flase_predicate_p.
5351         (evaulate_predicate): Rename to ...
5352         (evaluate_predicate): ... this one; update all callers; assert
5353         that false is not listed among possible truths.
5354         (dump_predicate): Use true_predicate_p.
5355         (account_size_time): Use false_predicate_p.
5356         (evaulate_conditions_for_edge): Rename to ...
5357         (evaluate_conditions_for_edge) ... this one.
5358         (edge_set_predicate): New function.
5359         (inline_edge_duplication_hook): Duplicate edge predicates.
5360         (inline_edge_removal_hook): Free edge predicates.
5361         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
5362         (dump_inline_summary): Update.
5363         (estimate_function_body_sizes): Set edge predicates.
5364         (estimate_calls_size_and_time): Handle predicates.
5365         (estimate_callee_size_and_time): Update.
5366         (remap_predicate): Add toplev_predicate; update comment.
5367         (remap_edge_predicates): New function.
5368         (inline_merge_summary): Compute toplev predicate; update.
5369         (read_predicate): New function.
5370         (read_inline_edge_summary): Use it.
5371         (inline_read_section): Likewise.
5372         (write_predicate): New function.
5373         (write_inline_edge_summary): Use it.
5374         (inline_write_summary): Likewise.
5375         (inline_free_summary): Free alloc pool and edge summary vec.
5377 2011-04-27  Richard Guenther  <rguenther@suse.de>
5379         * tree-ssa-structalias.c (changed_count): Remove.
5380         (changed): Use a bitmap.
5381         (unify_nodes): Adjust.
5382         (do_sd_constraint): Likewise.
5383         (do_ds_constraint): Likewise.
5384         (do_complex_constraint): Likewise.
5385         (solve_graph): Likewise.
5387 2011-04-27  Jan Hubicka  <jh@suse.cz>
5389         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
5391 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
5393         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
5394         (avx_vperm2f128_*_operand): Ditto.
5395         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
5396         Use avx_vpermilp_parallel in insn condition.
5397         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
5398         Use avx_vperm2f128_parallel in insn condition.
5400 2011-04-27  Richard Guenther  <rguenther@suse.de>
5402         * Makefile.in (tree-ssa-structalias.o): Remove
5403         gt-tree-ssa-structalias.h dependency.
5404         (GTFILES): Remove tree-ssa-structalias.c.
5405         * tree.c (allocate_decl_uid): New function.
5406         (make_node_stat): Use it.
5407         (copy_node_stat): Likewise.
5408         * tree.h (allocate_decl_uid): Declare.
5409         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
5410         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
5411         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
5412         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
5413         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
5414         (struct heapvar_map): Likewise.
5415         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
5416         heapvar_insert): Likewise.
5417         (make_heapvar_for): Rename to ...
5418         (make_heapvar): ... this.  Simplify.
5419         (fake_var_decl_obstack): New global var.
5420         (build_fake_var_decl): New function.
5421         (make_constraint_from_heapvar): Adjust.
5422         (handle_lhs_call): Likewise.
5423         (create_function_info_for): Likewise.
5424         (intra_create_variable_infos): Likewise.
5425         (init_alias_vars): Allocate fake_var_decl_obstack.
5426         (init_alias_heapvars, delete_alias_heapvars): Remove.
5427         (compute_points_to_sets): Do not call init_alias_heapvars.
5428         (ipa_pta_execute): Likewise.
5429         (delete_points_to_sets): Free fake_var_decl_obstack.
5431 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5433         * config/spu/divmovti4.c (union qword_UTItype): New data type.
5434         (si_from_UTItype, si_to_UTItype): New functions.
5435         (__udivmodti4): Use them to implement type-punning.
5436         * config/spu/multi3.c (union qword_TItype): New data type.
5437         (si_from_TItype, si_to_TItype): New functions.
5438         (__multi3): Use them to implement type-punning.
5440 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5442         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
5444 2011-04-27  Jan Hubicka  <jh@suse.cz>
5446         * ipa-prop.c (function_insertion_hook_holder): New holder.
5447         (ipa_add_new_function): New function.
5448         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
5449         Register/deregister holder.
5451 2011-04-27  Richard Guenther  <rguenther@suse.de>
5453         PR tree-optimization/48772
5454         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
5456 2011-04-27  Richard Guenther  <rguenther@suse.de>
5458         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
5459         TARGET_MEM_REF handling.
5461 2011-04-27  Nick Clifton  <nickc@redhat.com>
5463         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
5464         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
5465         (REG_CLASS_NAMES): Likewise.
5466         (REG_CLASS_CONTENTS): Likewise.
5467         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
5468         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
5469         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
5470         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
5471         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
5472         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
5473         duplicate register classes.
5474         (frv_class_likely_spilled_p): Likewise.
5475         (frv_register_move_cost): Likewise.
5477         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
5478         end of the regno_reg_class array.
5480 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
5482         PR c/48742
5483         * c-typeck.c (build_binary_op): Don't wrap arguments if
5484         int_operands is true.
5486 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
5488         PR target/48767
5489         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
5490         targetm.calls.must_pass_in_stack for void type.
5492 2011-04-26  Jan Hubicka  <jh@suse.cz>
5494         * cgraphbuild.c (build_cgraph_edges): Update call
5495         of cgraph_create_edge and cgraph_create_indirect_edge.
5496         * cgraph.c (cgraph_create_edge_including_clones,
5497         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
5498         cgraph_update_edges_for_call_stmt_node): Do not take nest
5499         argument; do not initialize call_stmt_size/time.
5500         (dump_cgraph_node): Do not dump nest.
5501         (cgraph_clone_edge): Do not take loop_nest argument;
5502         do not propagate it; do not clone call_stmt_size/time.
5503         (cgraph_clone_node): Likewise.
5504         (cgraph_create_virtual_clone): Update.
5505         * cgraph.h (struct cgraph_edge): Remove
5506         call_stmt_size/call_stmt_time/loop_nest.
5507         (cgraph_create_edge, cgraph_create_indirect_edge,
5508         cgraph_create_edge_including_clones, cgraph_clone_node): Update
5509         prototype.
5510         * tree-emutls.c (gen_emutls_addr): Update.
5511         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
5512         loop_nest; handle indirect calls, too.
5513         (clone_inlined_nodes): Do not care about updating inline summaries.
5514         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
5515         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
5516         stream call_stmt_size/call_stmt_time/loop_nest.
5517         * ipa-inline.c (edge_badness): Update.
5518         (ipa_inline): dump summaries after inlining.
5519         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
5520         New.
5521         (inline_edge_summary): New function.
5522         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
5523         (inline_edge_removal_hook): Handle edge summaries.
5524         (inline_edge_duplication_hook): New hook.
5525         (inline_summary_alloc): Alloc hooks.
5526         (initialize_growth_caches): Do not register removal hooks.
5527         (free_growth_caches); Do not free removal hook.
5528         (dump_inline_edge_summary): New function.
5529         (dump_inline_summary): Use it.
5530         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
5531         (inline_update_callee_summaries): New function.
5532         (inline_merge_summary): Use it.
5533         (do_estimate_edge_time, do_estimate_edge_growth): Update.
5534         (read_inline_edge_summary): New function.
5535         (inline_read_section): Use it.
5536         (write_inline_edge_summary): New function.
5537         (inline_write_summary): Use it.
5538         (inline_free_summary): Free edge new holders.
5539         * tree-inline.c (copy_bb): Update.
5541 2011-04-26  Jason Merrill  <jason@redhat.com>
5543         * tree-eh.c (lower_try_finally_switch): Create the label along with
5544         the CASE_LABEL_EXPR.
5546 2011-04-26  David S. Miller  <davem@davemloft.net>
5547             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5549         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
5550         * configure: Regenerate.
5552 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
5554         PR target/48258
5555         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
5556         reduction.
5557         (VEC_reduc): New code iterator and splitters for vector reduction.
5558         (VEC_reduc_name): Ditto.
5559         (VEC_reduc_rtx): Ditto.
5560         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
5561         (reduc_<VEC_reduc_name>_v4sf): Ditto.
5563         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5564         support for extracting SF on VSX.
5566         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
5567         generating xscvspdp.
5568         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
5569         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
5570         double add, minimum, maximum vector reduction.
5571         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5572         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5573         optimize double vector reduction.
5574         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5576 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
5578         * config/fr30/fr30.h (inhibit_libc): Don't define.
5579         * config/m32r/m32r-protos.h: Correct comment.
5580         * config/v850/v850.h (GHS_default_section_names,
5581         GHS_current_section_names): Use tree, not union tree_node *.
5583 2011-04-26  Xinliang David Li  <davidxl@google.com>
5585         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5586         * c-family/c-opts.c (c_common_handle_option): Set
5587         warn_maybe_uninitialized.
5588         * opts.c (common_handle_option): Ditto.
5589         * common.opt:  New option.
5590         * tree-ssa.c (warn_uninit): Add one more parameter.
5591         (warn_uninitialized_var): Pass warning code.
5592         * tree-flow.h: Interface change.
5594 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5596         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5597         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5598         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5600 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5602         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5603         * config/mips/mips.opt (mmips-tfile): Remove.
5605         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5606         mips-tdump reference to ...
5607         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
5608         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5609         reference by Tru64 UNIX.
5611 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
5613         PR debug/48768
5614         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5615         is error_mark_node, set value to NULL.
5617         PR tree-optimization/48734
5618         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5619         if return value from maybe_fold_*_comparsions isn't something
5620         the code is prepared to handle.
5622 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
5624         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5625         mode check.
5626         (ext_QIreg_nomode_operands): Remove.
5627         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5628         (*andsi_1): Ditto.
5629         (*andhi_1): Ditto.
5631 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
5633         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5635 2011-04-26  Richard Guenther  <rguenther@suse.de>
5637         * c-typeck.c (build_unary_op): Do not expand array-refs via
5638         pointer arithmetic.  Only adjust qualifiers for function types.
5640 2011-04-26  Richard Guenther  <rguenther@suse.de>
5642         PR middle-end/48694
5643         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5644         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5645         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
5646         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5648 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
5650         * doc/extend.texi: Document __underlying_type.
5652 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
5654         * config/rs6000/titan.md (automata_option "progress"): Remove.
5656 2011-04-25  Jeff Law  <law@redhat.com>
5658         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5660 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
5662         * system.h (ENUM_BITFIELD): Remove.
5664 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
5665             Eric Botcazou  <ebotcazou@adacore.com>
5667         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5668         for STORE_FLAG_VALUE==-1 case.
5670 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
5672         PR target/43804
5673         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5674         LEGITIMATE_PIC_OPERAND_P.
5676 2011-04-24  Jan Hubicka  <jh@suse.cz>
5678         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5679         WPA hack.
5680         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5681         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5682         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5683         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5684         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5685         Sanity check predicate length.
5686         (remap_predicate): Likewise; sanity check jump functions.
5687         (inline_read_section, inline_write_summary): Sanity check
5688         predicate length.
5690 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5692         PR other/48748
5693         * doc/extend.texi (Type Traits): Document __is_standard_layout,
5694         __is_literal_type, and __is_trivial; update throughout about
5695         possibly cv-qualified void types.
5697 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
5699         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5700         testsuite and make it version agnostic.
5702 2011-04-22  Jan Hubicka  <jh@suse.cz>
5704         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5706 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
5708         PR c/48685
5709         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5710         to VOID_TYPE even around MODIFY_EXPR.
5712 2011-04-22  Mike Stump  <mikestump@comcast.net>
5714         * gensupport.c (read_md_rtx): Fix typo in comment.
5715         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5716         comment.
5718 2011-04-22  Jan Hubicka  <jh@suse.cz>
5720         * gengtype.c (open_base_files): Add ipa-inline.h include.
5721         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5722         ipa-prop.c; update all uses.
5723         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5724         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5725         merge summary of inlined function into former caller.
5726         * ipa-inline.c (max_benefit): Remove.
5727         (edge_badness): Compensate for removal of benefits.
5728         (update_caller_keys): Use
5729         reset_node_growth_cache/reset_edge_growth_cache.
5730         (update_callee_keys): Likewise.
5731         (update_all_callee_keys): Likewise.
5732         (inline_small_functions): Do not collect max_benefit; do not reset
5733         estimated_growth; call free_growth_caches and initialize_growth_caches.
5734         * ipa-inline.h (struct condition, type clause_t, struct predicate,
5735         struct size_time_entry): New structures.
5736         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5737         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5738         and estimated_growth.
5739         (edge_growth_cache_entry): New structure.
5740         (node_growth_cache, edge_growth_cache): New global vars.
5741         (estimate_growth): Turn into inline.
5742         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5743         initialize_growth_caches, free_growth_caches): Declare.
5744         (estimate_edge_growth): Rewrite.
5745         (estimate_edge_time): Implement as inline cache lookup.
5746         (reset_node_growth_cache, reset_edge_growth_cache): New inline
5747         functions.
5748         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5749         (NUM_CONDITIONS): New constant.
5750         (predicate_conditions): New enum.
5751         (IS_NOT_CONSTANT): New constant.
5752         (edge_removal_hook_holder): New var.
5753         (node_growth_cache, edge_growth_cache): New global vars.
5754         (true_predicate, single_cond_predicate, false_predicate,
5755         not_inlined_predicate, add_condition, add_clause, and_predicates,
5756         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5757         dump_clause, dump_predicate, account_size_time,
5758         evaulate_conditions_for_edge): New functions.
5759         (inline_summary_alloc): Move to heap.
5760         (inline_node_removal_hook): Clear condition and entry vectors.
5761         (inline_edge_removal_hook): New function.
5762         (initialize_growth_caches, free_growth_caches): New function.
5763         (dump_inline_summary): Update.
5764         (edge_execution_predicate): New function.
5765         (will_be_nonconstant_predicate): New function.
5766         (estimate_function_body_sizes): Compute BB and constantness predicates.
5767         (compute_inline_parameters): Do not clear estimated_growth.
5768         (estimate_edge_size_and_time): New function.
5769         (estimate_calls_size_and_time): New function.
5770         (estimate_callee_size_and_time): New function.
5771         (remap_predicate): New function.
5772         (inline_merge_summary): New function.
5773         (do_estimate_edge_time): New function based on...
5774         (estimate_edge_time): ... this one.
5775         (do_estimate_edge_growth): New function.
5776         (do_estimate_growth): New function based on....
5777         (estimate_growth): ... this one.
5778         (inline_analyze_function): Analyze after deciding on jump functions.
5779         (inline_read_section): New function.
5780         (inline_read_summary): Use it.
5781         (inline_write_summary): Write all the new data.
5782         * ipa-prop.c (ipa_get_param_decl_index): Export.
5783         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5784         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5785         Declare.
5786         (ipa_get_lattice): Move here from ipa-cp.c
5787         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5788         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5789         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5790         cgraph_edge_inlinable_p): Remove.
5791         * cgraphunit.c: Include ipainline.h
5792         (cgraph_process_new_functions): Update call of
5793         compute_inline_parameters.
5795 2011-04-22  Richard Guenther  <rguenther@suse.de>
5797         * tree.c (build_int_cst): Properly create canonicalized integer
5798         constants.
5799         (build_int_cst_type): Remove scary comments.
5801 2011-04-22  Xinliang David Li  <davidxl@google.com>
5803         * toplev.c (process_options): Enable -Werror=coverage-mismatch
5804         by default when -Wno-error is not specified.
5805         * opts-global.c (decode_options): Remove call to
5806         control_warning_options.
5808 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
5810         PR tree-optimization/48717
5811         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5812         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5814 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
5816         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
5817         definition where used.
5819 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
5821         PR c/48716
5822         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5823         TREE_STATIC variables declared inside of some OpenMP construct.
5825 2011-04-22  Martin Jambor  <mjambor@suse.cz>
5827         PR middle-end/48585
5828         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5830 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
5832         PR c/36750
5833         * c-typeck.c (pop_init_level): Do not warn about initializing
5834         with ` = {0}'.
5836 2011-04-22  Alan Modra  <amodra@gmail.com>
5838         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5839         when returning call_cookie.
5840         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5841         pointers, to functions with no more vector args than the current
5842         function, and some non-local calls for ABI_V4.
5843         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5844         sibcall_nonlocal_aix64): Combine to ..
5845         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
5846         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5847         (sibcall_value_nonlocal_aix<mode>): ..likewise.
5848         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5849         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
5850         operand.
5851         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5852         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5853         sibcall_value_symbolic_64): Delete.
5855 2011-04-21  Xinliang David Li  <davidxl@google.com>
5857         * cgraph.h: Remove pid.
5858         * cgraph.c: Remove pid.
5859         * value-prof.c (init_node_map): New function.
5860         (del_node_map): New function.
5861         (find_func_by_funcdef_no): New function.
5862         (gimple_ic_transform): Call new function.
5863         * cgraphunit.c (cgraph_finalize_function): Remove pid.
5864         * function.c (get_last_funcdef_no): New function.
5865         * function.h (get_last_funcdef_no): New function.
5866         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5867         to libgcov function.
5868         (tree-profiling): Call node map init and delete function.
5870 2011-04-21  Ian Lance Taylor  <iant@google.com>
5872         * godump.c (go_format_type): Use exported Go name for anonymous
5873         field name.
5875 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
5877         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5878         Call builtin_function_type_list instead of builtin_function_type.
5879         (UNARY, BINARY, TRINARY, QUAD): Likewise.
5881 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
5883         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5884         build_function_type_list instead of build_function_type.
5885         Delete variable `endlink'.
5887 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
5889         * config/s390/s390.c (s390_init_builtins): Call
5890         build_function_type_list instead of build_function_type.
5892 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
5894         * config/ia64/ia64.c (ia64_init_builtins): Call
5895         build_function_type_list instead of builtin_function_type.
5897 2011-04-21  Easwaran Raman  <eraman@google.com>
5899         * cfgexpand.c (stack_var): Remove OFFSET...
5900         (add_stack_var): ...and its reference here...
5901         (expand_stack_vars): ...and here.
5902         (stack_var_cmp): Sort by descending order of size.
5903         (partition_stack_vars): Change heuristic.
5904         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5905         (dump_stack_var_partition): Add newline after each partition.
5907 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
5908             Jeff Law  <law@redhat.com>
5910         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5911         * gengtype.c (matching_file_name_substitute): Likewise.
5913 2011-04-21  Richard Guenther  <rguenther@suse.de>
5915         PR lto/48703
5916         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5918 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
5920         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5922 2011-04-21  Richard Guenther  <rguenther@suse.de>
5924         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5925         file name.
5927 2011-04-21  Richard Guenther  <rguenther@suse.de>
5929         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5930         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5931         Use DECL_P, not SSA_VAR_P.
5932         (ptr_derefs_may_alias_p): Likewise.
5933         (ptr_deref_may_alias_ref_p_1): Likewise.
5934         (decl_refs_may_alias_p): Likewise.
5935         (refs_may_alias_p_1): Likewise.
5936         (ref_maybe_used_by_call_p_1): Likewise.
5937         (call_may_clobber_ref_p_1): Likewise.
5938         (indirect_ref_may_alias_decl_p): Assume indirect refrences
5939         are either MEM_REF or TARGET_MEM_REF.
5940         (indirect_refs_may_alias_p): Likewise.
5941         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5942         for MEM_EXPR of indirect calls.
5944 2011-04-21  Tristan Gingold  <gingold@adacore.com>
5946         * vmsdbgout.c (write_srccorr): Compute file length from the string.
5947         (dst_file_info_struct): Remove flen field.
5948         (lookup_filename): Remove code that set flen field.
5950 2011-04-21  Tristan Gingold  <gingold@adacore.com>
5952         * config/ia64/ia64.c (ia64_start_function): Add a guard.
5954 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
5956         PR target/48708
5957         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5958         vec_extract and vec_concat for non-SSE4_1 targets.
5960 2011-04-21  Richard Guenther  <rguenther@suse.de>
5962         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5963         return statements.
5965 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
5967         * config/i386/cygming.h (union tree_node, TREE): Don't define or
5968         undefine.
5969         (FILE): Don't undefine.
5971 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
5973         * config/alpha/alpha.c (struct machine_function): Use rtx, not
5974         struct rtx_def *.
5975         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5976         struct rtx_def *.
5977         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5978         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5979         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5980         rtx_def *.
5981         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
5982         definitions where used.
5983         * config/microblaze/microblaze.h (struct microblaze_args): Use
5984         rtx, not struct rtx_def *.
5985         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5986         rtx_def *.
5987         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5988         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5989         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5990         not struct rtx_def *.
5991         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5992         struct rtx_def *.
5993         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5994         rtx_def *.
5995         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5997 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
5999         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
6000         operand_equal_p to compare DR_BASE_ADDRESSes.
6001         (vect_check_interleaving): Likewise.
6003 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
6005         PR target/46329
6006         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
6007         for all Neon struct constants.
6009 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
6011         * target.def (legitimate_constant_p): New hook.
6012         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
6013         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
6014         * doc/tm.texi: Regenerate.
6015         * hooks.h (hook_bool_mode_rtx_true): Declare.
6016         * hooks.c (hook_bool_mode_rtx_true): Define.
6017         * system.h (LEGITIMATE_CONSTANT_P): Poison.
6018         * calls.c (precompute_register_parameters): Replace uses of
6019         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
6020         (emit_library_call_value_1): Likewise.
6021         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
6022         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
6023         * ira-costs.c (scan_one_insn): Likewise.
6024         * recog.c (general_operand, immediate_operand): Likewise.
6025         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
6026         * reload1.c (init_eliminable_invariants): Likewise.
6028         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
6029         mode argument.
6030         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
6031         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
6032         argument.
6033         (TARGET_LEGITIMATE_CONSTANT_P): Define.
6034         * config/alpha/predicates.md (input_operand): Update call to
6035         alpha_legitimate_constant_p.
6037         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
6038         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
6039         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
6040         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6041         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
6042         (arm_legitimate_constant_p): New functions.
6043         (arm_cannot_force_const_mem): Make static.
6045         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
6047         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
6048         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
6049         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
6050         instead of bfin_legitimate_constant_p.
6051         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
6052         (TARGET_LEGITIMATE_CONSTANT_P): Define.
6054         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
6056         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
6058         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
6059         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
6060         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6061         (frv_legitimate_constant_p): Make static.  Add a mode argument.
6063         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
6064         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
6065         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
6067         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
6068         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
6069         * config/i386/i386.c (legitimate_constant_p): Rename to...
6070         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
6071         argument.
6072         (ix86_cannot_force_const_mem): Update accordingly.
6073         (ix86_legitimate_address_p): Likewise.
6074         (TARGET_LEGITIMATE_CONSTANT_P): Define.
6075         * config/i386/i386.md: Update commentary.
6077         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
6078         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
6079         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6080         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
6082         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
6084         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
6085         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
6086         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6087         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
6089         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
6090         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
6091         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
6093         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
6094         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6095         (m32r_legitimate_constant_p): New function.
6097         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
6098         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
6099         LEGITIMATE_CONSTANT_P.
6100         (LEGITIMATE_CONSTANT_P): Delete.
6101         * config/m68k/m68k.c (m68k_expand_prologue): Call
6102         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
6103         (m68k_legitimate_constant_p): New function.
6104         * config/m68k/m68k.md: Update comments.
6106         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
6107         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6108         (mcore_legitimate_constant_p): New function.
6110         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
6111         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
6112         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
6113         Add a mode argument.
6114         (mep_legitimate_address): Update accordingly.
6115         (TARGET_LEGITIMATE_CONSTANT_P): Define.
6117         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
6118         Delete.
6119         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
6120         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
6121         static.  Check OP's mode for VOIDmode.
6122         (microblaze_legitimate_constant_p): New function.
6123         (TARGET_LEGITIMATE_CONSTANT_P): Define.
6125         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
6126         * config/mips/mips.c (mips_legitimate_constant_p): New function.
6127         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
6128         (TARGET_LEGITIMATE_CONSTANT_P): Define.
6129         * config/mips/predicates.md: Update comments.
6131         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
6132         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
6133         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6134         (mmix_legitimate_constant_p): Make static, return a bool, and take
6135         a mode argument.
6136         (mmix_print_operand_address): Update accordingly.
6138         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
6139         Delete.
6140         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
6141         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
6142         static.  Add a mode argument.
6143         (TARGET_LEGITIMATE_CONSTANT_P): Define.
6145         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
6147         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
6148         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6149         (pa_legitimate_constant_p): New function.
6151         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
6153         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
6154         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6155         (pdp11_legitimate_constant_p): New function.
6157         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
6158         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6159         (rs6000_legitimate_constant_p): New function.
6161         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
6162         (rx_legitimate_constant_p): ...this.
6163         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
6164         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
6165         (rx_legitimate_constant_p): ...this.
6166         (TARGET_LEGITIMATE_CONSTANT_P): Define.
6167         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
6169         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
6170         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
6171         * config/s390/s390.c (legitimate_constant_p): Rename to...
6172         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
6173         and add a mode argument.
6174         (TARGET_LEGITIMATE_CONSTANT_P): Define.
6176         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
6178         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
6179         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6180         (sh_legitimate_constant_p): New function.
6182         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
6183         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
6184         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6185         (legitimate_constant_p): Rename to...
6186         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
6187         argument.
6188         (constant_address_p): Update accordingly.
6190         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
6191         argument and return a bool.
6192         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
6193         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6194         (spu_legitimate_constant_p): Add a mode argument and return a bool.
6195         (spu_rtx_costs): Update accordingly.
6196         * config/spu/predicates.md (vec_imm_operand): Likewise.
6198         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
6200         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
6201         * config/v850/v850.c (v850_legitimate_constant_p): New function.
6202         (TARGET_LEGITIMATE_CONSTANT_P): Define.
6204         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
6205         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
6206         * config/vax/vax.c (legitimate_constant_p): Likewise.
6208         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
6209         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6210         (xtensa_legitimate_constant_p): New function.
6212 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
6214         * target.def (cannot_force_const_mem): Add a mode argument.
6215         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
6216         * doc/tm.texi: Regenerate.
6217         * hooks.h (hook_bool_mode_rtx_false): Declare.
6218         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
6219         (hook_bool_mode_const_rtx_true): Likewise.
6220         (hook_bool_mode_rtx_false): New function.
6221         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
6222         to be non-VOID.  Update call to cannot_force_const_mem.
6223         (find_reloads): Update accordingly.
6224         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
6225         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
6226         argument.
6227         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
6228         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
6229         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
6230         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
6231         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
6232         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
6233         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
6234         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6235         (m68k_cannot_force_const_mem): ...this new function.
6236         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
6237         argument.
6238         (mips_const_insns, mips_legitimize_const_move): Update calls.
6239         (mips_secondary_reload_class): Likewise.
6240         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6241         (pa_cannot_force_const_mem): ...this new function.
6242         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
6243         (rs6000_cannot_force_const_mem): ...this new function.
6244         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
6245         argument.
6246         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
6247         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
6248         to...
6249         (xtensa_cannot_force_const_mem): ...this new function.
6251 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
6253         * config/mips/mips.c (mips16_build_function_stub): Call
6254         build_function_type_list instead of build_function_type.
6255         (mips16_build_call_stub): Likewise.
6257 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
6259         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
6260         instead of build_function_type.
6262 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
6264         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
6265         instead of build_function_type.
6267 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
6269         PR target/48678
6270         * config/i386/i386.md (insv): Change operand 0 constraint to
6271         "register_operand".  Change operand 1 and 2 constraint to
6272         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
6273         * config/i386/sse.md (sse4_1_pinsrb): Export.
6274         (sse2_pinsrw): Ditto.
6275         (sse4_1_pinsrd): Ditto.
6276         (sse4_1_pinsrq): Ditto.
6277         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
6278         * config/i386/i386.c (ix86_expand_pinsr): New.
6280 2011-04-20  Easwaran Raman  <eraman@google.com>
6282         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
6283         containing union type only with -fstrict-aliasing.
6285 2011-04-20  Jim Meyering  <meyering@redhat.com>
6287         Remove useless if-before-free tests.
6288         * calls.c (expand_call, save_area): Likewise.
6289         * cfgcleanup.c (try_forward_edges): Likewise.
6290         * collect2.c (collect_execute): Likewise.
6291         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
6292         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
6293         * coverage.c (coverage_checksum_string): Likewise.
6294         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
6295         * cselib.c (cselib_init): Likewise.
6296         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
6297         (df_set_clean_cfg): Likewise.
6298         * function.c (free_after_compilation): Likewise.
6299         * gcc.c (do_spec_1, main): Likewise.
6300         * gcov.c (create_file_names): Likewise.
6301         * gensupport.c (identify_predicable_attribute): Likewise.
6302         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
6303         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
6304         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
6305         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
6306         * ipa-pure-const.c (local_pure_const): Likewise.
6307         * ipa-reference.c (propagate): Likewise.
6308         * ira-costs.c (free_ira_costs): Likewise.
6309         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
6310         * matrix-reorg.c (mat_free): Likewise.
6311         * prefix.c (get_key_value): Likewise.
6312         * profile.c (compute_value_histograms): Likewise.
6313         * reload1.c (free_reg_equiv): Likewise.
6314         * sched-deps.c (free_deps): Likewise.
6315         * sel-sched-ir.c (fence_clear): Likewise.
6316         * sese.c (set_rename, if_region_set_false_region): Likewise.
6317         * tree-data-ref.c (free_rdg): Likewise.
6318         * tree-eh.c (lower_try_finally): Likewise.
6319         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
6320         * tree-ssa-live.c (delete_var_map): Likewise.
6321         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
6322         * tree-ssa-pre.c (phi_trans_add): Likewise.
6324 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
6326         PR tree-optimization/48611
6327         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
6328         beyond ERT_MUST_NOT_THROW region.
6330 2011-04-20  Catherine Moore  <clm@codesourcery.com>
6332         * config/mips/mips.opt (mfix-24k): New.
6333         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
6334         * config/mips/mips.md (length): Increase by 4 for stores if
6335         fixing 24K errata.
6336         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
6337         all noreorder if fixing 24K errata.
6338         * doc/invoke.texi: Document mfix-24k.
6340 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
6342         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
6343         quad-word modes, reduce to 9-bit index range when above 1016 limit.
6345 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
6347         * config/arm/arm.c (arm_gen_constant): Move movw support ....
6348         (const_ok_for_op): ... to here.
6350 2011-04-20  Kai Tietz  <ktietz@redhat.com>
6352         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
6353         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
6355 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
6357         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
6359 2011-04-20  Richard Guenther  <rguenther@suse.de>
6361         PR tree-optimization/47892
6362         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
6363         are if-convertible.
6365 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6367         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
6369 2011-04-20  Tristan Gingold  <gingold@adacore.com>
6371         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
6373 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
6375         PR target/18145
6377         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
6378         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
6379         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6380         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
6381         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
6383         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
6384         New prototype.
6386         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
6387         (avr_asm_named_section, avr_asm_output_aligned_common,
6388         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
6389         New functions to update...
6390         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
6391         (avr_asm_init_sections): Overwrite section callbacks for
6392         data_section, bss_section.
6393         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
6394         from here to...
6395         (avr_file_end): ...here.
6397 2011-04-20  Richard Guenther  <rguenther@suse.de>
6399         PR middle-end/48695
6400         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
6401         objects and types here.  Adjust for their offset before comparing.
6403 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
6405         * tree-vect-stmts.c (vectorizable_store): Only chain one related
6406         statement per copy.
6408 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
6410         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
6411         (GIMPLE_H): Include $(INTERNAL_FN_H).
6412         (OBJS-common): Add internal-fn.o.
6413         (internal-fn.o): New rule.
6414         * internal-fn.def: New file.
6415         * internal-fn.h: Likewise.
6416         * internal-fn.c: Likewise.
6417         * gimple.h: Include internal-fn.h.
6418         (GF_CALL_INTERNAL): New gf_mask.
6419         (gimple_statement_call): Put fntype into a union with a new
6420         internal_fn field.
6421         (gimple_build_call_internal): Declare.
6422         (gimple_build_call_internal_vec): Likewise.
6423         (gimple_call_same_target_p): Likewise.
6424         (gimple_call_internal_p): New function.
6425         (gimple_call_internal_fn): Likewise.
6426         (gimple_call_fntype): Return null for internal calls.
6427         (gimple_call_set_fntype): Assert that the function is not internal.
6428         (gimple_call_set_fn): Likewise.
6429         (gimple_call_set_fndecl): Likewise.
6430         (gimple_call_set_internal_fn): New function.
6431         (gimple_call_addr_fndecl): Handle null functions.
6432         (gimple_call_return_type): Likewise null types.
6433         * gimple.c (gimple_build_call_internal_1): New function.
6434         (gimple_build_call_internal): Likewise.
6435         (gimple_build_call_internal_vec): Likewise.
6436         (gimple_call_same_target_p): Likewise.
6437         (gimple_call_flags): Handle calls to internal functions.
6438         (gimple_call_fnspec): New function.
6439         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
6440         (gimple_has_side_effects): Handle null functions.
6441         (gimple_rhs_has_side_effects): Likewise.
6442         (gimple_call_copy_skip_args): Handle calls to internal functions.
6443         * cfgexpand.c (expand_call_stmt): Likewise.
6444         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
6445         * gimple-fold.c (gimple_fold_call): Handle null functions.
6446         (gimple_fold_stmt_to_constant_1): Don't fold
6447         calls to internal functions.
6448         * gimple-low.c (gimple_check_call_args): Handle calls to internal
6449         functions.
6450         * gimple-pretty-print.c (dump_gimple_call): Likewise.
6451         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
6452         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
6453         (do_warn_unused_result): Likewise.
6454         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
6455         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
6456         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
6457         the target of a call.
6458         (initialize_hash_element): Update accordingly.
6459         (hashable_expr_equal_p): Use gimple_call_same_target_p.
6460         (iterative_hash_hashable_expr): Handle calls to internal functions.
6461         (print_expr_hash_elt): Likewise.
6462         * tree-ssa-pre.c (can_value_number_call): Likewise.
6463         (eliminate): Handle null functions.
6464         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
6465         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
6466         (find_func_aliases): Likewise.
6467         * value-prof.c (gimple_ic_transform): Likewise.
6468         (gimple_indirect_call_to_profile): Likewise.
6469         * lto-streamer-in.c (input_gimple_stmt): Likewise.
6470         * lto-streamer-out.c (output_gimple_stmt): Likewise.
6472 2011-04-19  Jan Hubicka  <jh@suse.cz>
6474         * ipa-inline-transform.c (save_inline_function_body): Add comments.
6475         * ipa-inline.c (inline_small_functions): Compute summaries first,
6476         populate heap later.
6478 2011-04-19  Jan Hubicka  <jh@suse.cz>
6480         * cgraph.h (save_inline_function_body): Remove.
6481         * ipa-inline-transform.c: New file, broke out of...
6482         * ipa-inline.c: ... this one; Update toplevel comment.
6483         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
6484         make global.
6485         (update_noncloned_frequencies): Move to ipa-inline-transform.c
6486         (cgraph_mark_inline_edge): Rename to inline_call; move to
6487         ipa-inline-transform.c.
6488         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
6489         move to ipa-inline-transform.c
6490         (recursive_inlining, inline_small_functions, flatten_function,
6491         ipa_inline, inline_always_inline_functions,
6492         early_inline_small_functions): Update.
6493         (inline_transform): Move to ipa-inline-transform.c.
6494         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
6495         Declare.
6496         * Makefile.in (ipa-inline-transform.o): New file.
6497         * cgraphunit.c (save_inline_function_body): Move to
6498         ipa-inline-transform.c
6500 2011-04-19  DJ Delorie  <dj@redhat.com>
6502         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
6503         registers if we already know there aren't any.
6504         (m32c_emit_epilogue): Don't emit a barrier here.
6505         (m32c_emit_eh_epilogue): Likewise.
6506         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
6507         operands at expand time.
6508         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
6509         int" wchar type.
6510         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
6511         duplicates.  Provide aliases instead.
6512         * config/m32c/prologue.md (eh_return): Emit a barrier here.
6513         (eh_epilogue): Add a "(return)" here as a hint to other parts of
6514         the compiler.
6516 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
6518         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
6519         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
6520         (general_or_i64_p, sparc_register_move_cost): New function.
6522 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6524         * doc/install.texi (Configuration, --enable-threads): Remove mach.
6525         Add lynx, mipssde.  Sort table.
6527 2011-04-19  Xinliang David Li  <davidxl@google.com>
6529         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
6530         not negative.
6532 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
6534         PR target/48678
6535         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
6536         is a SUBREG with non-MODE_INT mode inside of it.
6538 2011-04-19  Martin Jambor  <mjambor@suse.cz>
6540         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
6541         also according to actual contants.
6542         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
6543         (gimple_fold_call): Use it.
6544         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
6546 2011-04-19  Martin Jambor  <mjambor@suse.cz>
6548         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
6549         non-pointer assignments.
6551 2011-04-19  Martin Jambor  <mjambor@suse.cz>
6553         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
6554         account anc_offset and otr_type from the indirect edge info.
6555         * ipa-prop.c (get_ancestor_addr_info): New function.
6556         (compute_complex_ancestor_jump_func): Assignment analysis moved to
6557         get_ancestor_addr_info, call it.
6558         (ipa_note_param_call): Do not initialize information about polymorphic
6559         calls, return the indirect call graph edge.  Remove the last
6560         parameter, adjust all callers.
6561         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
6562         parameters.  Initialize polymorphic information in the indirect edge.
6564 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
6566         PR lto/48148
6567         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
6568         the types if they have different enumeration identifiers.
6570 2011-04-19  Jan Hubicka  <jh@suse.cz>
6572         * cgraph.h (cgraph_optimize_for_size_p): Declare.
6573         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6574         * predict.c (cgraph_optimize_for_size_p): Break out from ...
6575         (optimize_function_for_size_p) ... here.
6577 2011-04-19  Richard Guenther  <rguenther@suse.de>
6579         PR lto/48207
6580         * tree.c (free_lang_data): Do not reset the decl-assembler-name
6581         langhook.
6583 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
6585         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6586         if DECL_NO_INLINE_WARNING_P is set on the function.
6588 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
6590         PR fortran/47976
6591         * reload1.c (inc_for_reload): Return void. All callers changed.
6592         (emit_input_reload_insns): Don't try to delete previous output
6593         reloads to a register, or record spill_reg_store for autoincs.
6595 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
6597         * gengtype.h: Updated copyright year.
6598         (struct input_file_st): Add inpisplugin field.
6599         (type_fileloc): New function.
6600         * gengtype.c
6601         (write_typed_struct_alloc_def): Add gcc_assert.
6602         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6603         (write_typed_alloc_defns): Don't output for plugin files.
6604         (input_file_by_name): Clear inpisplugin field.
6605         (main): Set inpisplugin field for plugin files.
6607 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
6609         * gengtype-state.c (string_eq): New.
6610         (read_state): Use string_eq instead of strcmp when creating the
6611         state_ident_tab.
6613 2011-04-19  Wei Guozhi  <carrot@google.com>
6615         PR target/47855
6616         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6617         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6618         linkage.
6619         * config/arm/constraints.md (Uu): New constraint.
6620         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6622 2011-04-19  Tristan Gingold  <gingold@adacore.com>
6624         * config.gcc (-*-*-*vms): Added.
6625         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6626         definitions moved.
6627         * config/vms/vms-ld.c: New file.
6628         * config/vms/vms-ar.c: New file.
6629         * config/vms/t-vmsnative: New file.
6631 2011-04-18  Xinliang David Li  <davidxl@google.com>
6633         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6635 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
6637         PR middle-end/48661
6638         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6639         if TREE_TYPE (v) is non-NULL.
6641         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6642         gimple_get_virt_mehtod_for_binfo.
6643         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6644         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6645         callers.
6646         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6648 2011-04-18  Michael Matz  <matz@suse.de>
6649             Steve Ellcey  <sje@cup.hp.com>
6651         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6652         use its mode as source mode if it isn't VOIDmode.
6654 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
6656         * doc/passes.texi: Fill crossref nodes.
6658 2011-04-18  Jim Meyering  <meyering@redhat.com>
6660         Fix doubled-word typos in comments and strings
6661         * config/alpha/vms-unwind.h: s/for for/for/
6662         * config/arm/unwind-arm.h: Likewise.
6663         * config/microblaze/microblaze.c: Likewise.
6664         * config/sh/constraints.md: s/in in/in/
6665         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6667 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
6669         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6670         (AVX_FLOAT_MODE_P): Ditto.
6671         (AVX128_VEC_FLOAT_MODE_P): Ditto.
6672         (AVX256_VEC_FLOAT_MODE_P): Ditto.
6673         (AVX_VEC_FLOAT_MODE_P): Ditto.
6674         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6675         (UNSPEC_MASKSTORE): Ditto.
6676         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6677         Merge from <sse>_movmsk<ssemodesuffix> and
6678         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
6679         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
6680         iterator.
6681         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6682         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6683         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6685 2011-04-18  Jan Hubicka  <jh@suse.cz>
6687         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6689         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6690         (want_inline_function_called_once_p): Break out the logic from
6691         ipa_inline.
6692         (edge_badness): Ensure that profile is not misupdated.
6693         (lookup_recursive_calls): Prioritize by call frequencies.
6694         (inline_small_functions): Move program size estimates here;
6695         actually process whole queue even when unit growth has been
6696         met. (to properly compute inline_failed reasons and for the
6697         case unit size decrease.) Revisit comments on recursive inlining.
6698         (ipa_inline): Remove unit summary code; first inline hot calls
6699         of functions called once, cold calls next.
6700         (order, nnodes): Remove unused variables.
6701         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6702         (GTFILES): Remove ipa-inline.c
6703         * sel-sched.c (fill_insns): Silence uninitialized var warning.
6705 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
6707         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6709 2011-04-18  Jie Zhang  <jie@codesourcery.com>
6710             Richard Earnshaw  <rearnsha@arm.com>
6712         * arm.c (neon_builtin_type_bits): Remove.
6713         (typedef enum neon_builtin_mode): New.
6714         (T_MAX): Don't define.
6715         (typedef enum neon_builtin_datum): Remove bits, codes[],
6716         num_vars and base_fcode.  Add mode, code and fcode.
6717         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6718         VAR10): Change accordingly.
6719         (neon_builtin_data[]): Change accordingly
6720         (arm_init_neon_builtins): Change accordingly.
6721         (neon_builtin_compare): Remove.
6722         (locate_neon_builtin_icode): Remove.
6723         (arm_expand_neon_builtin): Change accordingly.
6725         * arm.h (enum arm_builtins): Move to ...
6726         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6728         * arm.c (arm_builtin_decl): Declare.
6729         (TARGET_BUILTIN_DECL): Define.
6730         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6731         (arm_builtin_decls[]): New.
6732         (arm_init_neon_builtins): Store builtin declarations in
6733         arm_builtin_decls[].
6734         (arm_init_tls_builtins): Likewise.
6735         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
6736         (arm_builtin_decl): New.
6738 2011-04-18  Richard Guenther  <rguenther@suse.de>
6740         * tree.c (upper_bound_in_type): Build properly canonicalized
6741         INTEGER_CSTs.
6742         (lower_bound_in_type): Likewise.
6744 2011-04-18  Richard Guenther  <rguenther@suse.de>
6746         * gimple.h (gimple_call_addr_fndecl): New function.
6747         (gimple_call_fndecl): Use it.
6748         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6749         for direct calls.
6750         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6751         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6753 2011-04-18  Richard Guenther  <rguenther@suse.de>
6755         PR middle-end/48650
6756         * tree.c (build_string): STRING_CST is now derived from tree_typed.
6758 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
6760         PR lto/48492
6761         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6762         DECL_IN_CONSTANT_POOL without RTL.
6764 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
6765             Ira Rosen  <ira.rosen@linaro.org>
6767         PR target/48252
6768         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6769         to match neon_vzip/vuzp/vtrn_internal.
6770         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6771         outputs explicitly dependent on both inputs.
6772         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6774 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
6776         PR tree-optimization/48616
6777         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6778         whether the shift is by scalar or vector based on whether all SLP
6779         scalar stmts have the same rhs.
6781 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
6783         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6784         memory operands.
6786 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
6788         PR target/43700
6789         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6790         registers.
6792 2011-04-17  Jan Hubicka  <jh@suse.cz>
6794         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6795         * cgrpahunit.c (cgraph_finalize_function): Do not set
6796         finalized_by_frontend.
6797         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6798         finalized_by_frontend.
6800 2011-04-17  Jan Hubicka  <jh@suse.cz>
6802         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6803         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6804         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6805         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6806         method.
6807         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6808         gimple-fold.c
6809         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6811 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
6813         PR lto/48538
6814         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6815         is non-null before accessing it.
6816         (input_cgraph): Remove trailing spaces.
6818 2011-04-17  Revital Eres  <revital.eres@linaro.org>
6820         * params.def (sms-min-sc): New param flag.
6821         * modulo-sched.c (sms_schedule): Use it.
6822         * doc/invoke.texi (sms-min-sc): Document it.
6824 2011-04-17  Jan Hubicka  <jh@suse.cz>
6826         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6827         present, also set gimple_call_set_cannot_inline.
6828         * ipa-inline.c: Update toplevel comment.
6829         (MAX_TIME): Remove.
6830         (cgraph_clone_inlined_nodes): Fix linebreaks.
6831         (cgraph_check_inline_limits): Restructure to ...
6832         (caller_growth_limits): ... this one; be more tolerant
6833         on growth in nested inline chains; add explanatory comment;
6834         fix stack accounting thinko introduced by previous patch.
6835         (cgraph_default_inline_p): Remove.
6836         (report_inline_failed_reason): New function.
6837         (can_inline_edge_p): New function.
6838         (can_early_inline_edge_p): New function.
6839         (leaf_node_p): Move upwards in file.
6840         (want_early_inline_function_p): New function.
6841         (want_inline_small_function_p): New function.
6842         (want_inline_self_recursive_call_p): New function.
6843         (cgraph_edge_badness): Rename to ...
6844         (edge_badness) ... this one; fix linebreaks.
6845         (update_edge_key): Update call of edge_baddness; add
6846         detailed dump about queue updates.
6847         (update_caller_keys): Use can_inline_edge_p and
6848         want_inline_small_function_p.
6849         (cgraph_decide_recursive_inlining): Rename to...
6850         (recursive_inlining): Use can_inline_edge_p and
6851         want_inline_self_recursive_call_p; simplify and remove no longer
6852         valid FIXME.
6853         (cgraph_set_inline_failed): Remove.
6854         (add_new_edges_to_heap): Use can_inline_edge_p and
6855         want_inline_small_function_p.
6856         (cgraph_decide_inlining_of_small_functions): Rename to ...
6857         (inline_small_functions): ... this one; cleanup; use
6858         can/want predicates; cleanup debug ouput; work edges till fibheap
6859         is exhausted and do not stop once unit growth is reached; remove
6860         later loop processing remaining edges.
6861         (cgraph_flatten): Rename to ...
6862         (flatten_function): ... this one; use can_inline_edge_p
6863         and can_early_inline_edge_p predicates.
6864         (cgraph_decide_inlining): Rename to ...
6865         (ipa_inline): ... this one; remove unreachable nodes before
6866         inlining functions called once; simplify the pass.
6867         (cgraph_perform_always_inlining): Rename to ...
6868         (inline_always_inline_functions): ... this one; use
6869         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6870         (cgraph_decide_inlining_incrementally): Rename to ...
6871         (early_inline_small_functions): ... this one; simplify
6872         using new predicates; cleanup; make dumps prettier.
6873         (cgraph_early_inlining): Rename to ...
6874         (early_inliner): newer inline regular functions into always-inlines;
6875         fix updating of call stmt summaries.
6876         (pass_early_inline): Update for new names.
6877         (inline_transform): Fix formating.
6878         (gate_cgraph_decide_inlining): Rename to ...
6879         (pass_ipa_inline): ... this one.
6880         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6881         * ipa-inline-analysis.c (dump_inline_summary): Update.
6882         (compute_inline_parameters): Do not compute disregard_inline_limits;
6883         look for mismatching arguments.
6884         (estimate_growth): Fix handlig of non-trivial self recursion.
6885         (inline_read_summary): Do not read info->disregard_inline_limits.
6886         (inline_write_summary): Do not write info->disregard_inline_limits.
6887         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6888         and move all checks into can_inline_edge_p predicate; re-enable code
6889         comparing optimization levels.
6890         (expand_call_inline): Do not test inline_forbidden_into_p.
6891         * Makefile.in (ipa-inline.o): Update arguments.
6893 2011-04-17  Revital Eres  <revital.eres@linaro.org>
6895         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6897 2011-04-17  Revital Eres  <revital.eres@linaro.org>
6899         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6901 2011-04-17  Michael Matz  <matz@suse.de>
6903         PR tree-optimization/48622
6904         PR lto/48645
6905         * ipa-inline-analysis.c (inline_read_summary): Read size/time
6906         in same order as they're written.
6908 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6910         * config/pa/predicates.md: Reorganize and simplify predicates.
6911         Eliminate duplicate code checks.
6912         (arith_operand): Rename to arith14_operand
6913         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6914         * config/pa/pa.md: Use renamed operands.
6915         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6916         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6917         arith11_operand, adddi3_operand, indexed_memory_operand,
6918         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6919         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6920         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6921         move_dest_operand, move_src_operand, prefetch_cc_operand,
6922         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6923         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6924         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6925         div_operand, int5_operand, movb_comparison_operator,
6926         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6927         arith_double_operand, ireg_operand, lhs_lshift_operand,
6928         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6929         integer_store_memory_operand): Likewise.
6930         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6931         (integer_store_memory_operand, read_only_operand,
6932         function_label_operand, borx_reg_operand,
6933         non_hard_reg_operand): Likewise.
6934         (eq_neq_comparison_operator): Delete unused operator.
6935         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6936         function_label_operand.
6937         (emit_move_sequence): Likewise.
6939 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
6941         * config/i386/sse.md (sseunpackmode): New mode attribute.
6942         (ssepackmode): Ditto.
6943         (vec_pack_trunc_<mode>): Macroize expander from
6944         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6945         (vec_unpacks_lo_<mode>): Macroize expander from
6946         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6947         (vec_unpacks_hi_<mode>): Macroize expander from
6948         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6949         (vec_unpacku_lo_<mode>): Macroize expander from
6950         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6951         (vec_unpacku_hi_<mode>): Macroize expander from
6952         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6953         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6954         ix86_expand_sse4_unpack.
6955         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6957 2011-04-16  Jan Hubicka  <jh@suse.cz>
6959         * cgraphbuild.c: Include ipa-inline.h.
6960         (reset_inline_failed): Use initialize_inline_failed.
6961         * cgraph.c: Include ipa-inline.h.
6962         (cgraph_create_node_1): Do not initialize estimated_growth.
6963         (initialize_inline_failed): More to ipa-inline-analysis.c
6964         (dump_cgraph_node): Do not dump inline flags.
6965         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6966         and disregard_inline_limits flags.
6967         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6968         time, size, estimated_growth.
6969         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6970         Update.
6971         * cgraphunit.c (cgraph_decide_is_function_needed): Use
6972         DECL_DISREGARD_INLINE_LIMITS.
6973         (cgraph_analyze_function): Do not initialize
6974         node->local.disregard_inline_limits.
6975         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6976         inlinable, versionable and disregard_inline_limits.
6977         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6978         cgraph_check_inline_limits, cgraph_default_inline_p,
6979         cgraph_edge_badness, update_caller_keys, update_callee_keys,
6980         add_new_edges_to_heap): Update.
6981         (cgraph_decide_inlining_of_small_function): Update; set
6982         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6983         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6984         cgraph_decide_inlining_incrementally): Update.
6985         * ipa-inline.h (inline_summary): Add inlinable, versionable,
6986         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6987         time, size and estimated_growth parameters.
6988         (estimate_edge_growth): Update.
6989         (initialize_inline_failed): Declare.
6990         * ipa-split.c: Include ipa-inline.h
6991         (execute_split_functions): Update.
6992         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6993         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6994         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6995         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6996         estimated_growth to INT_MIN.
6997         (inline_node_duplication_hook): Likewise.
6998         (dump_inline_summary): Dump new fields.
6999         (compute_inline_parameters): Update.
7000         (estimate_edge_time, estimate_time_after_inlining,
7001         estimate_size_after_inlining, estimate_growth, inline_read_summary,
7002         inline_write_summary):
7003         (initialize_inline_failed): Move here from cgraph.c.
7004         * tree-sra.c: Include ipa-inline.h.
7005         (ipa_sra_preliminary_function_checks): Update.
7006         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
7007         ipa-inline.h.
7009 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
7011         * config/i386/sse.md (V16): New mode iterator.
7012         (VI1, VI8): Ditto.
7013         (AVXMODEQI, AVXMODEDI): Remove.
7014         (sse2, sse3): New mode attribute.
7015         (mov<mode>): Use V16 mode iterator.
7016         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
7017         (push<mode>1): Use V16 mode iterator.
7018         (movmisalign<mode>): Ditto.
7019         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7020         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
7021         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7022         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
7023         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
7024         avx_movdqu<avxmodesuffix>.
7025         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
7026         *avx_movdqu<avxmodesuffix>.
7027         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
7028         avx_lddqu<avxmodesuffix>.
7029         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
7030         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
7031         avx_movnt<AVXMODEDI:mode>.
7032         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
7033         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
7035 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
7037         PR target/48629
7038         * haifa-sched.c (prune_ready_list, schedule_block): Use
7039         sched_pressure_p rather than flag_sched_pressure.
7041 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
7043         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7044         cgraph_get_node instead of cgraph_get_create_node.
7046 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
7048         * cfgexpand.c (expand_debug_expr): Use
7049         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
7051 2011-04-15  Michael Matz  <matz@suse.de>
7053         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
7054         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
7055         * function.c (gimplify_parameters): Ditto.
7056         * gimplify.c (gimplify_vla_decl): Ditto.
7058         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
7059         (gimple_call_set_alloca_for_var): New inline function.
7060         (gimple_call_alloca_for_var_p): Ditto.
7061         * gimple.c (gimple_build_call_from_tree): Remember
7062         CALL_ALLOCA_FOR_VAR_P state.
7063         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
7065         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
7066         calls if they were for VLA objects.
7068 2011-04-15  Martin Jambor  <mjambor@suse.cz>
7070         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
7071         of ADR_EXPRs.
7073 2011-04-15  Martin Jambor  <mjambor@suse.cz>
7075         PR middle-end/48601
7076         * tree-emutls.c (lower_emutls_function_body): Call
7077         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
7078         result is non-NULL.
7080 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
7082         * c-decl.c (detect_field_duplicates): Call
7083         objc_detect_field_duplicates instead of objc_get_interface_ivars.
7085 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
7087         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
7088         * gimple.c (gimple_asm_clobbers_memory_p): Define.
7089         * ipa-pure-const.c (check_stmt): Call it.
7090         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
7092 2011-04-15  Richard Guenther  <rguenther@suse.de>
7094         PR tree-optimization/48290
7095         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
7096         Properly decide inhibiting propagation based on the valueized
7097         operand.  Do loop-closed SSA form preserving here ...
7098         (init_copy_prop): ... not here.
7100 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
7102         PR target/48612
7103         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
7104         (*ieee_smax<mode>3): Likewise.
7106 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7108         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
7109         Replace match_operand with match_dup for the third operand in
7110         these expanders.
7112 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
7114         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
7115         to track processing of conditionals.  Update all callers.
7116         (try_combine, simplify_if_then_else): Update.
7118 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
7120         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
7121         -fsched-pressure.
7123 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
7125         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
7126         instead of match_operand for operand 3.
7128 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
7130         * recog.h (insn_operand_data): Add an "allows_mem" field.
7131         * genoutput.c (output_operand_data): Initialize it.
7132         * optabs.c (maybe_legitimize_operand_same_code): New function.
7133         (maybe_legitimize_operand): Use it when matching the original
7134         op->value.
7136 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7138         * gimplify.c: Fix issues in comments throughout.
7139         (voidify_wrapper_expr): Fix long line.
7140         (build_stack_save_restore): Likewise.
7141         (gimplify_loop_expr): Likewise.
7142         (gimplify_compound_lval): Likewise.
7143         (gimplify_init_ctor_eval): Likewise.
7144         (gimplify_modify_expr_rhs): Likewise.
7145         (omp_notice_threadprivate_variable): Likewise.
7147 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7149         * cfgexpand.c (expand_call_stmt): Convert the function type to the
7150         original one if this is not a builtin function.
7152 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
7154         PR target/48605
7155         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
7156         offset it as needed based on top 2 bits in operands[3], change
7157         MEM mode to SFmode and mask those 2 bits away from operands[3].
7159 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
7161         * c-parser.c (c_parser_objc_protocol_definition): Updated for
7162         change from objc_declare_protocols() to objc_declare_protocol().
7164 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
7166         * config/i386/sse.md (sse4_1): New mode attribute.
7167         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
7168         avx_blend<ssemodesuffix><avxmodesuffix> and
7169         sse4_1_blend<ssemodesuffix> using VF mode iterator.
7170         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
7171         avx_blendv<ssemodesuffix><avxmodesuffix> and
7172         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
7173         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
7174         avx_dp<ssemodesuffix><avxmodesuffix> and
7175         sse4_1_dp<ssemodesuffix> using VF mode iterator.
7176         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
7177         (sse4_1_packusdw): Merge with *avx_packusdw.
7178         (sse4_1_pblendvb): Merge with *avx_pblendvb.
7179         (sse4_1_pblendw): Merge with *avx_pblendw.
7180         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
7181         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
7182         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
7183         VF mode iterator.
7184         (sse4_1_round<ssescalarmodesuffix>): Merge with
7185         *avx_round<ssescalarmodesuffix>.
7186         (aesenc): Merge with *avx_aesenc.
7187         (aesenclast): Merge with *avx_aesenclast.
7188         (aesdec): Merge with *avx_aesdec.
7189         (aesdeclast): Merge with *avx_aesdeclast.
7190         (pclmulqdq): Merge with *pclmulqdq.
7191         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
7192         New predicate.
7193         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
7195 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
7197         PR middle-end/48608
7198         * cfgexpand.c (get_decl_align_unit): Renamed to ...
7199         (align_local_variable): This.  Update DECL_ALIGN.
7200         (add_stack_var): Updated.
7201         (expand_one_stack_var): Likewise.
7203 2011-04-14  Richard Guenther  <rguenther@suse.de>
7205         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
7206         Remove.
7207         (dse_initialize_block_local_data, dse_leave_block,
7208         record_voperand_set, get_stmt_uid): Likewise.
7209         (dse_possible_dead_store_p): Allow any kind of killing stmt.
7210         (dse_optimize_stmt): Remove voperand set handling code.
7211         Simplify and improve to handle any kind of killing stmt.
7212         (dse_record_phi): Remove.
7213         (dse_enter_block): Simplify.
7214         (tree_ssa_dse): Likewise.
7215         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
7217 2011-04-14  Jan Hubicka  <jh@suse.cz>
7219         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
7220         * cgraph.h (struct inline_summary): Move to ipa-inline.h
7221         (cgraph_local_info): Remove inline_summary.
7222         * ipa-cp.c: Include ipa-inline.h.
7223         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
7224         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
7225         accesor.
7226         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
7227         (input_overwrite_node): Do not set inline summary.
7228         (input_node): Do not stream inline summary.
7229         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
7230         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
7231         growth; we do not have inline parameters computed for that anyway.
7232         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
7233         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
7234         (inline_summary_t): New type and VECtor.
7235         (debug_inline_summary, dump_inline_summaries): Declare.
7236         (inline_summary): Use VOCtor.
7237         (estimate_edge_growth): Kill hack computing call stmt size directly.
7238         * lto-section-in.c (lto_section_name): Add inline section.
7239         * ipa-inline-analysis.c: Include lto-streamer.h
7240         (node_removal_hook_holder, node_duplication_hook_holder): New holders
7241         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
7242         (inline_summary_vec): Define.
7243         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
7244         dump_inline_summaries): New functions.
7245         (estimate_function_body_sizes): Properly compute size/time of outgoing
7246         calls.
7247         (compute_inline_parameters): Alloc inline_summary; do not compute
7248         size/time of incomming calls.
7249         (estimate_edge_time): Avoid missing time summary hack.
7250         (inline_read_summary): Read inline summary info.
7251         (inline_write_summary): Write inline summary info.
7252         (inline_free_summary): Free all hooks and inline summary vector.
7253         * lto-streamer.h: Add LTO_section_inline_summary section.
7254         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
7255         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
7257 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
7259         * tree-vectorizer.h (vect_strided_store_supported): Add a
7260         HOST_WIDE_INT argument.
7261         (vect_strided_load_supported): Likewise.
7262         (vect_permute_store_chain): Return void.
7263         (vect_transform_strided_load): Likewise.
7264         (vect_permute_load_chain): Delete.
7265         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
7266         count argument.  Check that the count is a power of two.
7267         (vect_strided_load_supported): Likewise.
7268         (vect_permute_store_chain): Return void.  Update after above changes.
7269         Assert that the access is supported.
7270         (vect_permute_load_chain): Likewise.
7271         (vect_transform_strided_load): Return void.
7272         * tree-vect-stmts.c (vectorizable_store): Update calls after
7273         above interface changes.
7274         (vectorizable_load): Likewise.
7275         (vect_analyze_stmt): Don't check for strided powers of two here.
7277 2011-04-14  Richard Guenther  <rguenther@suse.de>
7279         PR tree-optimization/48590
7280         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7281         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7282         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
7283         BUILT_IN_STACK_SAVE.
7284         * tree-ssa-dce.c (propagate_necessity): Handle
7285         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7287 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
7289         * c-parser.c (c_parser_objc_class_declaration): Updated call to
7290         objc_declare_class.
7292 2011-04-14  Richard Guenther  <rguenther@suse.de>
7294         * tree.h (get_object_alignment_1): Declare.
7295         * builtins.c (get_object_alignment_1): Split out worker from ...
7296         (get_object_alignment): ... here.
7297         * fold-const.c (get_pointer_modulus_and_residue): Use
7298         get_object_alignment_1.
7300 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
7302         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
7303         type parameter.
7304         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
7305         parameter.  Generalise code to handle arrays as well as vectors.
7306         (vect_setup_realignment): Update accordingly.
7307         * tree-vect-stmts.c (vectorizable_store): Likewise.
7308         (vectorizable_load): Likewise.
7310 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
7312         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
7313         within the per-copy loop.
7315 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
7317         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
7318         in the dump file.
7320 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
7322         * doc/options.texi (Negative): Explicitly mention that the
7323         Negative chain must be circular.
7325 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
7327         * function.h (block_chainon): Declare.
7328         * function.c (block_chainon): Define.
7330 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
7331             Eric Weddington  <eric.weddington@atmel.com>
7332             Georg-Johann Lay  <avr@gjlay.de>
7334         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
7335         New Includes
7336         (avr_init_builtins, avr_expand_builtin,
7337         avr_expand_delay_cycles, avr_expand_unop_builtin,
7338         avr_expand_binop_builtin ): New functions.
7339         (avr_builtin_id): New enum
7340         (struct avr_builtin_description): New struct
7341         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
7342         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
7344         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
7345         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
7346         UNSPECV_DELAY_CYCLES): new enumeration values
7347         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
7348         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
7349         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
7350         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
7351         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
7352         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
7353         "fmulsu"): New insns
7355         * config/avr/avr-c.c: fix line endings
7356         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
7357         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
7358         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
7359         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
7360         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
7362         * doc/extend.texi (AVR Built-in Functions): New node
7363         (Target Builtins): Add documentation of AVR
7364         built-in functions.
7366 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
7368         PR target/44643
7369         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
7370         alone. Error if non-const data has attribute progmem.
7372 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
7374         * tree.h (struct tree_constructor): Include tree_typed instead of
7375         tree_common.
7376         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
7377         TS_TYPED instead of TS_COMMON.
7379 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
7381         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
7382         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
7383         (sse2_psadbw): Merge with *avx_psadbw.
7384         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
7385         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
7386         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
7387         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
7388         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
7389         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
7390         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
7391         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
7392         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
7393         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
7394         (ssse3_palignrti): Merge with *avx_palignrti.
7396 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
7398         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
7399         * tree-ssanames.c (fini_ssanames): VEC_free it.
7400         (make_ssa_name_fn): Update for VECness of free_ssanames.
7401         (release_ssa_name, release_dead_ssa_names): Likewise.
7402         * tree.h (struct tree_ssa_name): Include tree_typed instead of
7403         tree_common.
7404         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
7405         TS_TYPED instead of TS_COMMON.
7407 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
7409         * postreload-gcse.c (gcse_after_reload_main): Add calls to
7410         statistics_counter_event.
7411         * tree-ssa-copyrename.c (stats): Define.
7412         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
7413         statistics_counter_event.
7414         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
7415         (bswap_stats, widen_mul_stats): Define.
7416         (insert_reciprocals): Increment rdivs_inserted.
7417         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
7418         rfuncs_inserted.  Add calls to statistics_counter_event.
7419         (execute_cse_sincos_1): Increment inserted.
7420         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
7421         statistics_counter_event.
7422         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
7423         of bswap_stats.  Add calls to statistics_counter_event.
7424         (convert_mult_to_widen): Increment widen_mults_inserted.
7425         (convert_plusminus_to_widen): Increment maccs_inserted.
7426         (convert_mult_to_fma): Increment fmas_inserted.
7427         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
7428         calls to statistics_counter_event.
7430 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
7432         PR rtl-optimization/48455
7433         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
7434         `temp_costs->mem_cost'.
7436 2011-04-13  Jan Hubicka  <jh@suse.cz>
7438         * ipa-inline.h: New file.
7439         * ipa-inline-analysis.c: New file. Broken out of ...
7440         * ipa-inline.c: ... this file; update toplevel comment;
7441         include ipa-inline.h
7442         (inline_summary): Move to ipa-inline.h
7443         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
7444         ipa-inline-analysis.c.
7445         (cgraph_estimate_time_after_inlining): Rename to
7446         estiamte_time_after_inlining; move to ipa-inline-analysis.c
7447         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
7448         to estimate_edge_growth.
7449         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
7450         rename to estimate_size_after_inlining.
7451         (cgraph_mark_inline_edge): Update for new naming convention.
7452         (cgraph_check_inline_limits): Likewise.
7453         (cgraph_edge_badness): Likewise.
7454         (cgraph_decide_recursive_inlining): Likewise.
7455         (cgraph_decide_inlining_of_small_functions): Likewise.
7456         (cgraph_decide_inlining_incrementally): Likewise.
7457         (cgraph_estimate_growth): Rename to estimate_growth; move to
7458         ipa-inline-analysis.c.
7459         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
7460         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
7461         (compute_inline_parameters): Likewise.
7462         (compute_inline_parameters_for_current): Likewise.
7463         (pass_inline_parameters): Likewise.
7464         (inline_indirect_intraprocedural_analysis): Likewise.
7465         (analyze_function): Rename to inline_analyze_function; likewise.
7466         (add_new_function): Move to ipa-inline-analysis.c.
7467         (inline_generate_summary): Likewise.
7468         (inline_read_summary): Likewise.
7469         (inline_write_summary): Likewise.
7470         * Makefile.in (ipa-inline-analysis.c): New file.
7472 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7474         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
7475         * configure: Regenerate.
7477 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
7479         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
7480         instead of tree_common.
7481         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
7482         Likewise.
7483         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
7484         TS_TYPED rather than TS_COMMON.
7485         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
7487 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
7489         PR target/45263
7490         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
7491         r20 around calls of __tablejump_elpm__
7493 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
7495         PR middle-end/48591
7496         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
7497         NULL.
7498         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
7500 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
7502         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
7503         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
7504         (cfi_vec): New typedef.
7505         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
7506         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
7507         (cie_cfi_vec): New static variable.
7508         (cie_cfi_head): Delete.
7509         (add_cfi): Accept a cfi_vec * as first argument. All callers and
7510         declaration changed. Use vector rather than list operations.
7511         (new_cfi): Don't initialize the dw_cfi_next field.
7512         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
7513         rather than list operations.
7514         (lookup_cfa): Use vector rather than list operations.
7515         (output_cfis): New argument upto. Accept a cfi_vec rather than
7516         a dw_cfi_ref list head as argument. All callers changed.
7517         Iterate over the vector using upto as a maximum index.
7518         (output_all_cfis): New static function.
7519         (output_fde): Use vector rather than list operations. Use the
7520         new upto argument for output_cfis rather than manipulating a
7521         list.
7522         (dwarf2out_begin_prologue): Change initializations to match
7523         new struct members.
7524         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
7525         from the vector length rather than searching for the end of a list.
7526         Use output_all_cfis.
7527         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
7529 2011-04-13  Nick Clifton  <nickc@redhat.com>
7531         * config/rx/rx.md (movmemsi): Do not use this pattern when
7532         volatile pointers are involved.
7534 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
7536         * config/i386/sse.md (pinsrbits): Remove.
7537         (sse2_packsswb): Merge with *avx_packsswb.
7538         (sse2_packssdw): Merge with *avx_packssdw.
7539         (sse2_packuswb): Merge with *avx_packuswb.
7540         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
7541         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
7542         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
7543         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
7544         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
7545         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
7546         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
7547         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
7548         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
7549         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
7550         (sse2_loadld): Merge with *avx_loadld.
7551         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
7552         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
7553         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
7554         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
7555         (vec_concatv2di): Merge with *vec_concatv2di_avx.
7557 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
7559         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
7560         calling TREE_CHAIN.
7561         * print-tree.c (print_node): Likewise.
7562         * tree-inline.c (copy_tree_r): Likewise.
7563         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
7564         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
7565         instead of TS_COMMON.
7566         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
7567         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
7568         (copy_node_stat): Zero TREE_CHAIN only if necessary.
7569         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
7570         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
7571         ...and these...
7572         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7573         * tree.h: ...here.
7574         (TREE_CHAIN): Check for a TS_COMMON structure.
7575         (TREE_TYPE): Check for a TS_TYPED structure.
7577 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
7579         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7580         cgraph_get_create_node instead of cgraph_node.
7582 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
7584         * c-parser.c (c_parser_initelt): Updated call to
7585         objc_build_message_expr.
7586         (c_parser_postfix_expression): Likewise.
7588 2011-04-12  Kai Tietz  <ktietz@redhat.com>
7590         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7591         MASK_MS_BITFIELD_LAYOUT bit.
7593 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
7595         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7596         assert it is always true.
7597         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7598         moves.
7600 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
7602         * c-parser.c (c_lex_one_token): Rewritten conditional used when
7603         compiling Objective-C to be more efficient.
7605 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
7607         * opts-common.c (decode_cmdline_options_to_array): Remove variable
7608         argv_copied.
7610 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
7612         * recog.h, genoutput.c, optabs.c: Revert last patch.
7614 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7616         PR target/48090
7617         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7619 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
7621         * recog.h (insn_operand_data): Add an "allows_mem" field.
7622         * genoutput.c (output_operand_data): Initialize it.
7623         * optabs.c (maybe_legitimize_operand_same_code): New function.
7624         (maybe_legitimize_operand): Use it when matching the original
7625         op->value.
7627 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
7629         * genpreds.c (process_define_predicate): Move most processing
7630         to gensupport.c.  Continue to validate the expression.
7631         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7632         (process_define_predicate): Move processing to gensupport.c.
7633         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7634         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7635         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
7636         argument.
7637         (valid_predicate_name_p): New function, split out from old
7638         genpreds.c:process_define_predicate.
7639         (process_define_predicate): New function, combining code from
7640         old genpreds.c and genrecog.c functions.
7641         (process_rtx): Call it for DEFINE_PREDICATE and
7642         DEFINE_SPECIAL_PREDICATE.
7644 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
7646         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7647         size of a '%A' memory reference.
7648         (T_DREG, T_QREG): New neon_builtin_type_bits.
7649         (arm_init_neon_builtins): Assert that the load and store operands
7650         are neon_struct_operands.
7651         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7652         (NEON_ARG_MEMORY): New builtin_arg.
7653         (neon_dereference_pointer): New function.
7654         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7655         Handle NEON_ARG_MEMORY.
7656         (arm_expand_neon_builtin): Update after above interface changes.
7657         Use NEON_ARG_MEMORY for loads and stores.
7658         * config/arm/predicates.md (neon_struct_operand): New predicate.
7659         * config/arm/iterators.md (V_two_elem): Tweak formatting.
7660         (V_three_elem): Use BLKmode for accesses that have no associated mode.
7661         (V_four_elem): Tweak formatting.
7662         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7663         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7664         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7665         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7666         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7667         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7668         (neon_vst4<mode>): Replace pointer operand with a memory operand.
7669         Use %A in the output template.
7670         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7671         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7672         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7673         the width of the memory access.  Remove post-increment.
7674         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7676 2011-04-12  Nick Clifton  <nickc@redhat.com>
7678         * config/v850/v850.c (expand_prologue): Do not use the CALLT
7679         instruction for interrupt handlers if the target is the basic V850
7680         architecture.
7681         (expand_epilogue): Likewise.
7683 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
7685         PR rtl-optimization/48549
7686         * combine.c (propagate_for_debug): Also stop after BB_END of
7687         this_basic_block.  Process LAST and just stop processing after it.
7688         (combine_instructions): If last_combined_insn has been deleted,
7689         set last_combined_insn to its PREV_INSN.
7691 2011-04-12  Richard Guenther  <rguenther@suse.de>
7693         PR tree-optimization/46076
7694         * gimple.h (struct gimple_statement_call): Add fntype field.
7695         (gimple_call_fntype): Adjust.
7696         (gimple_call_set_fntype): New function.
7697         * gimple.c (gimple_build_call_1): Set the call function type.
7698         * gimplify.c (gimplify_call_expr): Preserve the function
7699         type the frontend used for the call.
7700         (gimplify_modify_expr): Likewise.
7701         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7702         function type.
7703         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7704         function type.
7705         * tree-ssa.c (useless_type_conversion_p): Function pointer
7706         conversions are useless.
7708 2011-04-12  Martin Jambor  <mjambor@suse.cz>
7710         * cgraph.h (cgraph_node): Remove function declaration.
7711         (cgraph_create_node): Declare.
7712         (cgraph_get_create_node): Likewise.
7713         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7714         Updated all callers.
7715         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7716         the decl does not already exist.  Call cgraph_get_create_node instead
7717         of cgraph_node.
7718         (cgraph_get_create_node): New function.
7719         (cgraph_same_body_alias): Update comment.
7720         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7721         assert it does not return NULL.
7722         (cgraph_update_edges_for_call_stmt): Likewise.
7723         (cgraph_clone_edge): Likewise.
7724         (cgraph_create_virtual_clone): Likewise.
7725         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7726         instead of cgraph_node.
7727         (cgraph_add_new_function): Call cgraph_create_node or
7728         cgraph_get_create_node instead of cgraph_node.
7729         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7730         instead of cgraph_node.
7731         (record_eh_tables): Likewise.
7732         (mark_address): Likewise.
7733         (mark_load): Likewise.
7734         (build_cgraph_edges): Call cgraph_get_create_node instead
7735         of cgraph_node.
7736         (rebuild_cgraph_edges): Likewise.
7737         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7738         instead of cgraph_node.
7739         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7740         cgraph_node.
7741         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7742         cgraph_create_node instead of cgraph_node.
7743         * c-decl.c (finish_function): Call cgraph_get_create_node instead
7744         of cgraph_node.
7745         * lto-cgraph.c (input_node): Likewise.
7746         * lto-streamer-in.c (input_function): Likewise.
7747         * varasm.c (mark_decl_referenced): Likewise.
7748         (assemble_alias): Likewise.
7750 2011-04-12  Martin Jambor  <mjambor@suse.cz>
7752         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7753         instead of cgraph_node and assert it does not return NULL.
7754         * lto-streamer-in.c (lto_read_body): Likewise.
7755         * omp-low.c (new_omp_context): Likewise.
7756         (create_task_copyfn): Likewise.
7757         * tree-emutls.c (lower_emutls_function_body): Likewise.
7758         * matrix-reorg.c (transform_allocation_sites): Likewise.
7760 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
7762         PR c/48552
7763         * c-typeck.c (build_asm_expr): Error out on attempts to use
7764         void type outputs or inputs for constraints that allow reg or
7765         don't allow memory.
7767 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
7768             Richard Earnshaw  <rearnsha@arm.com>
7770         PR target/48250
7771         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7772         to use sign-magnitude offsets. Reject unsupported unaligned
7773         cases. Add detailed description in comments.
7774         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7775         condition from TARGET_32BIT to TARGET_ARM.
7777 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
7779         * tree.h (struct typed_tree): New.
7780         (struct tree_common): Include it instead of tree_base.
7781         (TREE_TYPE): Update for new location of type field.
7782         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7783         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7784         (union tree_node): Add typed field.
7785         * treestruct.def (TS_TYPED): New.
7786         * lto-streamer.c (check_handled_ts_structures): Handle it.
7787         * tree.c (MARK_TS_TYPED): New macro.
7788         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7790 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
7792         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7793         (force_nonfallthru): Do not alter the loop nest if no basic block
7794         was created.
7796 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
7798         * config/i386/sse.md (VI): New mode iterator.
7799         (SSEMODEI): Remove.
7800         (AVX256MODEI): Ditto.
7801         (AVXMODEF4P): Ditto.
7802         (avxvecpsmode): Ditto.
7803         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
7804         (sse2_andnot<mode>3): New expander.
7805         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7806         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
7807         (<any_logic:code><mode>3): Use VI mode iterator.
7808         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7809         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
7810         (*andnottf3): Handle AVX three-operand constraints.
7811         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7813 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
7814             Robert Millan  <rmh@gnu.org>
7816         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7817         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7818         GNU_USER_DYNAMIC_LINKER64): Define.
7819         (REG_NAME): Don't undefine.
7820         (MD_UNWIND_SUPPORT): Undefine.
7821         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7822         (REG_NAME): Don't undefine.
7823         (MD_UNWIND_SUPPORT): Undefine.
7824         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7826 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
7828         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7829         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7831 2011-04-11  Xinliang David Li  <davidxl@google.com>
7833         * value-profile.c (check_ic_target): New function.
7834         (gimple_ic_transform): Sanity check indirect call target.
7835         * gimple-low.c (gimple_check_call_args): Interface change.
7836         (gimple_check_call_matching_types): New function.
7837         * tree-inline.c (tree_can_inline_p): Call new function.
7839 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
7841         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7842         tree-pretty-print.h & realmpfr.h.
7844 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
7846         PR middle-end/48464
7847         * ira.c (setup_pressure_classes): Fix typo in loop condition.
7848         (setup_allocno_and_important_classes): Ditto.
7850 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
7852         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7853         GNU_USER_DYNAMIC_LINKER.
7854         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7855         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7856         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7857         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7858         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7859         GNU_USER_TARGET_OS_CPP_BUILTINS.
7860         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7861         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7862         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7863         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7864         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7865         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7866         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7867         GNU_USER_TARGET_OS_CPP_BUILTINS.
7868         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7869         GNU_USER_DYNAMIC_LINKER.
7870         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7871         GNU_USER_TARGET_OS_CPP_BUILTINS.
7872         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7873         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7874         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7875         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7876         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7877         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7878         GNU_USER_DYNAMIC_LINKER64): Remove.
7879         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7880         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7881         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7882         GNU_USER_DYNAMIC_LINKER.
7883         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7884         GNU_USER_TARGET_OS_CPP_BUILTINS.
7885         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7886         GNU_USER_TARGET_OS_CPP_BUILTINS.
7887         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7888         to GNU_USER_TARGET_OS_CPP_BUILTINS.
7889         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7890         GNU_USER_TARGET_OS_CPP_BUILTINS.
7891         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7892         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7893         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7894         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7895         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7896         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7897         GNU_USER_DYNAMIC_LINKER.
7898         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7899         GNU_USER_TARGET_OS_CPP_BUILTINS.
7900         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7901         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7902         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7903         GNU_USER_DYNAMIC_LINKER.
7904         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7905         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7906         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7907         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7908         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7909         GNU_USER_DYNAMIC_LINKER.
7910         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7911         GNU_USER_DYNAMIC_LINKERN32.
7912         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7913         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
7914         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
7915         GNU_USER_DYNAMIC_LINKER32.
7916         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7917         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7918         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7919         GNU_USER_DYNAMIC_LINKER.
7920         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7921         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7922         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7923         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7924         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7925         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7926         GNU_USER_DYNAMIC_LINKER32.
7927         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7928         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7929         GNU_USER_DYNAMIC_LINKER.
7930         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7931         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7932         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7933         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
7934         GNU_USER_DYNAMIC_LINKER64.
7935         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7936         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7937         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7938         GNU_USER_DYNAMIC_LINKER.
7939         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7940         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7941         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7942         GNU_USER_DYNAMIC_LINKER.
7943         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7944         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7945         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7946         GNU_USER_DYNAMIC_LINKER32.
7947         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7948         GNU_USER_DYNAMIC_LINKER64.
7949         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7950         GNU_USER_DYNAMIC_LINKER64.
7951         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7952         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7953         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7954         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7955         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7957 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
7959         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
7960         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7961         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7962         GNU_USER_DYNAMIC_LINKER.
7963         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7964         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
7965         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7966         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7967         GNU_USER_DYNAMIC_LINKER64.
7968         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7969         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7970         GNU_USER_LINK_EMULATION.
7971         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7972         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7973         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7974         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7975         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7976         CPP_SPEC, CC1_SPEC): Remove.
7977         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7978         (GNU_USER_DYNAMIC_LINKER): Define.
7979         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7980         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7981         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7982         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7983         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7984         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7985         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7986         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7987         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7988         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7989         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7990         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7991         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7992         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7993         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7994         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7995         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7996         GNU_USER_DYNAMIC_LINKER.
7997         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7998         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
7999         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8000         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
8001         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8002         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
8003         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
8004         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
8005         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
8006         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
8008 2011-04-11  Kai Tietz  <ktietz@redhat.com>
8010         PR target/9601
8011         PR target/11772
8012         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
8013         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
8014         comment.
8015         (ix86_is_msabi_thiscall): Removed.
8016         (ix86_is_type_thiscall): Likewise.
8017         (ix86_get_callcvt): New function.
8018         (ix86_comp_type_attributes): Simplify check.
8019         (ix86_function_regparm): Use ix86_get_callcvt for calling
8020         convention attribute checks.
8021         (ix86_return_pops_args): Likewise.
8022         (ix86_static_chain): Likewise.
8023         (x86_this_parameter): Likewise.
8024         (x86_output_mi_thunk): Likewise.
8025         (ix86_function_type_abi): Optimize check for types without attributes.
8026         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
8027         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
8028         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
8029         by flag-values.
8030         (IX86_BASE_CALLCVT): Helper macro.
8031         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
8032         Use ix86_get_callcvt for calling convention attribute checks and avoid
8033         symbol-decoration for stdcall in TARGET_RTD case.
8034         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
8035         Likewise.
8036         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
8037         for declaration.
8039 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
8041         * config/i386/sse.md (VI_128): New mode iterator.
8042         (VI12_128): Rename from SSEMODE12.
8043         (VI14_128): Rename from SSEMODE14.
8044         (VI124_128): New mode iterator.
8045         (VI24_128): Rename from SSEMODE248.
8046         (VI248_128): Rename from SSEMODE248.
8047         (SSEMODE124C8): Remove.
8048         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8049         (*sse2_<plusminus_insn><mode>3): Merge with
8050         *avx_<plusminus_insn><mode>3.
8051         (*mulv8hi3): Merge with *avx_mulv8hi3.
8052         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
8053         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
8054         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
8055         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
8056         (ashr<mode>3): Merge with *avx_ashr<mode>3.
8057         (lshr<mode>3): Merge with *avx_lshr<mode>3.
8058         (ashl<mode>3): Merge with *avx_ashl<mode>3.
8059         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
8060         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
8061         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8062         (*<smaxmin:code>v8hi3): Ditto.
8063         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
8064         (*<smaxmin:code>v16qi3): Ditto.
8065         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
8066         (*sse2_eq<mode>3): Ditto.
8067         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
8068         (*sse2_gt<mode>3): Ditto.
8069         (vcondv2di): Split out of vcond<mode>.
8070         (vconduv2di): Split out of vcondu<mode>.
8072 2011-04-11  Richard Guenther  <rguenther@suse.de>
8074         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
8075         before calling tree_low_cst.
8077 2011-04-11  Richard Guenther  <rguenther@suse.de>
8079         * stor-layout.c (layout_type): Compute all array index size operations
8080         in the original type.
8081         (initialize_sizetypes): Add comment.
8082         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
8084 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
8086         * common.opt (Tbss=, Tdata=, Ttext=): New options.
8088 2011-04-11  Martin Jambor  <mjambor@suse.cz>
8090         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
8091         of cgraph_node, handle NULL return value.
8092         (cgraph_global_info): Likewise.
8093         (cgraph_rtl_info): Likewise.
8094         * tree-inline.c (estimate_num_insns): Likewise.
8095         * gimplify.c (unshare_body): Likewise.
8096         (unvisit_body): Likewise.
8097         (gimplify_body): Likewise.
8098         * predict.c (optimize_function_for_size_p): Likewise.
8099         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8100         (call_may_clobber_ref_p_1): Likewise.
8101         * varasm.c (function_section_1): Likewise.
8102         (assemble_start_function): Likewise.
8104 2011-04-11  Martin Jambor  <mjambor@suse.cz>
8106         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
8107         of cgraph_node.
8108         * final.c (rest_of_clean_state): Likewise.
8109         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
8110         * passes.c (pass_init_dump_file): Likewise.
8111         (execute_all_ipa_transforms): Likewise.
8112         (function_called_by_processed_nodes_p): Likewise.
8113         * predict.c (maybe_hot_frequency_p): Likewise.
8114         (probably_never_executed_bb_p): Likewise.
8115         (compute_function_frequency): Likewise.
8116         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
8117         (unnest_nesting_tree_1): Likewise.
8118         (lower_nested_functions): Likewise.
8119         * tree-optimize.c (execute_fixup_cfg): Likewise.
8120         (tree_rest_of_compilation): Likewise.
8121         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
8122         * tree-sra.c (ipa_early_sra): Likewise.
8123         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
8124         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
8125         * ipa.c (record_cdtor_fn): Likewise.
8126         * ipa-inline.c (cgraph_early_inlining): Likewise.
8127         (compute_inline_parameters_for_current): Likewise.
8128         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8129         * ipa-pure-const.c (local_pure_const): Likewise.
8130         * ipa-split.c (split_function): Likewise.
8131         (execute_split_functions): Likewise.
8132         * cgraphbuild.c (build_cgraph_edges): Likewise.
8133         (rebuild_cgraph_edges): Likewise.
8134         (cgraph_rebuild_references): Likewise.
8135         (remove_cgraph_callee_edges): Likewise.
8136         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
8137         (verify_cgraph_node): Likewise.
8138         (cgraph_analyze_functions): Likewise.
8139         (cgraph_preserve_function_body_p): Likewise.
8140         (save_inline_function_body): Likewise.
8141         (save_inline_function_body): Likewise.
8142         * tree-inline.c (copy_bb): Likewise.
8143         (optimize_inline_calls): Likewise.
8145 2011-04-11  Martin Jambor  <mjambor@suse.cz>
8147         PR tree-optimization/48195
8148         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
8149         ipa_check_create_edge_args.
8150         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
8151         ipa_check_create_edge_args.
8152         * ipa-inline.c (inline_generate_summary): Do not call
8153         ipa_check_create_node_params and ipa_check_create_edge_args.
8154         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
8155         ipa_check_create_edge_args.
8157 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
8159         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
8160         instead of loop.
8161         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8162         * function.c (record_hard_reg_sets): Likewise.
8163         * ira.c (compute_regs_asm_clobbered): Likewise.
8164         * sched-deps.c (sched_analyze_1): Likewise.
8165         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
8167 2011-04-09  Xinliang David Li  <davidxl@google.com>
8169         PR tree-optimization/PR48484
8170         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
8171         has_valid_pred lazily
8173 2011-04-09  Duncan Sands  <baldrick@free.fr>
8175         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
8177 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
8179         * combine.c (combine_validate_cost): Adjust comments.  Set registered
8180         cost of I0 to zero at the end, if any.
8182 2011-04-08  Xinliang David Li  <davidxl@google.com>
8184         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
8185         to insane profile data.
8187 2011-04-08  Xinliang David Li  <davidxl@google.com>
8189         * ipa-cp.c (ipcp_update_profiling): Correct
8190          negative scale factor due to insane profile data.
8192 2011-04-08  Xinliang David Li  <davidxl@google.com>
8194         * final.c (dump_basic_block_info): New function.
8195         (final): Dump basic block.
8196         (final_scan_insn): Remove old dump.
8198 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
8200         PR target/47829
8201         * config.gcc (i386-*-freebsd): Disable unwind table generation for
8202         crtbegin/crtend.
8204 2011-04-08  Michael Matz  <matz@suse.de>
8206         PR middle-end/48389
8207         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
8208         functions.
8209         (rebuild_jump_labels): Call rebuild_jump_labels_1.
8210         * rtl.h (rebuild_jump_labels_chain): Declare.
8211         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
8212         insns inserted on edges.
8214 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
8216         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
8217         * config/arm/arm-arches.def: New.
8218         * config/arm/arm-opts.h: New.
8219         * config/arm/genopt.sh: New.
8220         * config/arm/arm-tables.opt: New (generated).
8221         * config/arm/arm.c (arm_handle_option, arm_target_help,
8222         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
8223         (all_architectures): Get most table contents from arm-arches.def.
8224         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
8225         arm_selected_tune here.
8226         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
8227         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
8228         (march=, mcpu=, mtune=): Use Enum and Var.
8229         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
8230         (arm.o): Update dependencies.
8232 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
8234         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
8235         of header_file.
8236         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
8237         (write_typed_alloc_defns): Likewise.
8238         (main): Calls write_typed_alloc_defns with output_header.
8240 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
8242         PR inline-asm/48435
8243         * ira-color.c (setup_profitable_hard_regs): Add comments.
8244         Don't take prohibited hard regs into account.
8245         (setup_conflict_profitable_regs): Rename to
8246         get_conflict_profitable_regs.
8247         (check_hard_reg_p): Check prohibited hard regs.
8249 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
8251         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
8252         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
8253         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
8255 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8257         PR target/48366
8258         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
8259         move from floating point to shift amount register.
8260         (emit_move_sequence): Remove secondary reload support for floating
8261         point to shift amount amount register copies.
8262         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
8263         amount register copies.
8264         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
8265         register, return false if mode isn't a scalar integer mode.
8266         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
8268 2011-04-08  Richard Guenther  <rguenther@suse.de>
8270         * gimple.c (gimple_call_flags): Remove kludge.
8272 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
8274         * sel-sched.c (sel_region_init): Move call to
8275         sel_setup_region_sched_flags after setup_current_loop_nest.
8277 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
8279         PR rtl-optimization/48272
8280         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
8281         init_insn_reg_pressure_info.  Adjust a caller.
8282         * sched-int.h (init_insn_reg_pressure_info): Declare.
8283         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
8284         when sched-pressure is enabled.
8286 2011-04-08  Richard Guenther  <rguenther@suse.de>
8288         * gimple.c (gimple_set_modified): Do not queue calls to
8289         MODIFIED_NORETURN_CALLS here ...
8290         * tree-ssa-operands.c (update_stmt_operands): ... but here.
8292 2011-04-08  Richard Guenther  <rguenther@suse.de>
8294         PR lto/48467
8295         * toplev.c (lang_dependent_init): Do not open asm_out_file
8296         in WPA mode, nor perform debug machinery initialization.
8297         (finalize): Do not unlink asm_out_file in WPA mode.
8299 2011-04-08  Richard Guenther  <rguenther@suse.de>
8301         * gimple.h (gimple_call_fntype): New function.
8302         (gimple_call_return_type): Use it.
8303         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
8304         * gimple-low.c (gimple_check_call_args): Likewise.
8305         * gimple.c (gimple_call_flags): Likewise.
8306         (gimple_call_arg_flags): Likewise.
8307         (gimple_call_return_flags): Likewise.
8308         * tree-cfg.c (verify_gimple_call): Likewise.
8309         (do_warn_unused_result): Likewise.
8310         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
8311         * value-prof.c (gimple_ic_transform): Fix fndecl check.
8313 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
8315         PR rtl-optimization/48235
8316         * sel-sched.c (code_motion_process_successors): Recompute the last
8317         insn in basic block if control flow changed.
8318         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
8319         Update condition for ilist_remove.
8321 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
8323         PR rtl-optimization/48302
8324         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
8325         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
8326         it to record added preheader blocks.
8327         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
8328         on to sel_add_loop_preheaders.
8329         (sel_region_init): Move call to setup_current_loop_nest after
8330         sel_init_bbs.
8332 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
8334         PR target/48273
8335         * cfgloop.h (loop_has_exit_edges): New helper.
8336         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
8337         non-clonable.
8338         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
8339         that have no exit edges.
8341 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
8343         PR rtl-optimization/48442
8344         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
8345         all callers.  Adjust assert.
8347 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
8349         PR tree-optimization/48377
8350         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
8351         is_packed to true even for types with smaller TYPE_ALIGN than
8352         TYPE_SIZE.
8354 2011-04-08  Richard Guenther  <rguenther@suse.de>
8356         PR bootstrap/48513
8357         * doc/tm.texi: Re-generate.
8359 2011-04-08  Wei Guozhi  <carrot@google.com>
8361         PR target/47855
8362         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
8363         * config/arm/arm.c (arm_attr_length_push_multi): New function.
8364         * config/arm/arm.md (*push_multi): Change the length computation to
8365         call a C function.
8367 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
8369         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
8370         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
8371         * doc/tm.texi: Regenerate.
8372         * system.h (ASM_OUTPUT_BSS): Poison.
8373         * varasm.c (asm_output_bss): Remove function.
8374         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
8376         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
8377         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
8378         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
8379         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8380         Likewise.
8381         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8382         Likewise.
8383         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8384         Likewise.
8385         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8387 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
8389         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
8390         EnumValue lines.
8392 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
8394         * config/m68k/m68k.c (m68k_handle_option): Don't handle
8395         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
8396         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
8397         OPT_mcpu32.
8398         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8399         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
8400         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
8401         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
8402         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
8403         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
8404         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8405         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
8406         options.  Don't map other m68k options manually.  Don't handle
8407         old-style options as canonical.
8408         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8409         * doc/install.texi (m68k-*-*): Document binutils version requirement.
8411 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
8413         * basic-block.h (force_nonfallthru): Move to...
8414         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
8415         (force_nonfallthru): ...here.
8416         * cfghooks.c (force_nonfallthru): New function.
8417         * cfgrtl.c (force_nonfallthru): Rename into...
8418         (rtl_force_nonfallthru): ...this.
8419         (commit_one_edge_insertion): Do not set AUX field.
8420         (commit_edge_insertions): Do not discover new basic blocks.
8421         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
8422         (cfg_layout_rtl_cfg_hooks): Likewise.
8423         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
8424         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
8425         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
8427 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
8429         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8430         Remove macros.
8432 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
8434         * config/i386/sse.md: Update copyright year.
8435         (avxcvtvecmode): Remove.
8436         (sse_movhlps): Merge with *avx_movhlps.
8437         (sse_movlhps): Merge with *avx_movlhps.
8438         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
8439         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
8440         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
8441         (sse_loadhps): Merge with *avx_loadhps.
8442         (sse_storelps): Merge with *avx_storelps.
8443         (sse_loadlps): Merge with *avx_loadlps.
8444         (sse_movss): Merge with *avx_movss.
8445         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
8446         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
8447         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
8448         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
8449         (vec_set<mode>_0): Ditto.
8450         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
8451         (sse4_1_insertps): Merge with *avx_insertps.
8452         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
8453         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
8454         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
8455         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
8456         (sse2_storehpd): Merge with *avx_storehpd.
8457         (sse2_loadhpd): Merge with *avx_loadhpd.
8458         (sse2_loadlpd): Merge with *avx_loadlpd.
8459         (sse2_movsd): Merge with *avx_movsd.
8460         (*vec_concatv2df): Merge with *vec_concatv2df.
8462 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
8464         PR debug/48343
8465         * combine.c (combine_instructions): Add last_combined_insn,
8466         update it if insn is after it, pass it to all try_combine calls.
8467         (try_combine): Add last_combined_insn parameter, pass it instead of
8468         i3 to propagate_for_debug.
8470 2011-04-07  Nick Clifton  <nickc@redhat.com>
8472         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
8473         to handle MDR <-> data register transfers.
8474         (movhi_internal): Likewise.
8476 2011-04-07  Alan Modra  <amodra@gmail.com>
8478         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
8479         previous stack info.
8481 2011-04-07  Tom de Vries  <tom@codesourcery.com>
8483         PR target/43920
8484         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
8485         flow_find_cross_jump.  Swap variables to implement backward replacement.
8486         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
8488 2011-04-07  Tom de Vries  <tom@codesourcery.com>
8490         PR target/43920
8491         * cfgcleanup.c (walk_to_nondebug_insn): New function.
8492         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
8493         and bb2.
8494         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
8495         src1 or src2.  Redirect edges to the last basic block.  Update
8496         frequency and count on multiple basic blocks in case of fallthru.
8498 2011-04-07  Tom de Vries  <tom@codesourcery.com>
8500         PR target/43920
8501         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
8502         function.
8503         (old_insns_match_p): Change return type.  Replace return false/true
8504         with return dir_none/dir_both.  Use can_replace_by.
8505         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
8506         direction from dir_p.  Register replacement direction in dir, last_dir
8507         and afterlast_dir.  Handle new return type of old_insns_match_p using
8508         merge_dir.  Return replacement direction in dir_p.
8509         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
8510         return type of old_insns_match_p.
8511         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
8512         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
8513         flow_find_cross_jump.
8514         * basic-block.h (enum replace_direction): New type.
8515         (flow_find_cross_jump): Add parameter to declaration.
8517 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
8519         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
8520         (AVXMODEDCVTPS2DQ): Ditto.
8521         (VEC_FLOAT_MODE): Ditto.
8522         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
8523         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8524         (<any_logic:code><mode>3): Use VF mode iterator.
8525         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
8526         Use VF mode iterator.
8527         (copysign<mode>3): Use VF mode iterator.
8528         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
8529         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8530         (*<any_logic:code><MODEF:mode>3): Merge with
8531         *avx_<any_logic:code><MODEF:mode>3.
8532         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
8533         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
8534         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
8535         (avx_cvtdq2ps<avxmodesuffix>): Remove.
8536         (sse2_cvtdq2ps): Use %v modifier.
8537         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
8538         (avx_cvtps2dq<avxmodesuffix>): Remove.
8539         (sse2_cvtps2dq): Use %v modifier.
8540         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
8541         (avx_cvttps2dq<avxmodesuffix>): Remove.
8542         (sse2_cvttps2dq): Use %v modifier.
8543         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
8544         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
8545         (sse2_cvtsd2siq): Fix insn template.
8546         (sse2_cvtsd2siq_2): Ditto.
8547         (sse2_cvttsd2siq): Ditto.
8548         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
8549         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
8551 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
8553         * gcov-io.c: Use GCC Runtime Library Exception.
8555 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
8557         PR debug/48466
8558         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
8559         as base_reg whatever register reg has been eliminated to, instead
8560         of hardcoding STACK_POINTER_REGNUM.
8562 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
8564         * doc/tm.texi.in: Document C target hooks as separate from general
8565         target hooks.
8566         * doc/tm.texi: Regenerate.
8567         * genhooks.c (struct hook_desc): Add docname field.
8568         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
8569         docname field.
8570         (hook_array): Include c-target.def.
8571         (emit_documentation): Use docname field in output.
8572         (emit_init_macros): Take docname argument.  Only emit definitions
8573         for hooks matching docname.
8574         (main): Expect additional arguments in all cases.  Pass argument
8575         to emit_init_macros.
8576         * target.def: Move initial macro definitions and comments to
8577         target-hooks-macros.h.
8578         (gcc_targetcm): Move to c-family/c-target.def.
8579         * target.h (targetcm): Move declaration to c-family/c-target.h.
8580         * targhooks.c (default_handle_c_option): Move to
8581         c-family/c-opts.c.
8582         * targhooks.h (default_handle_c_option): Move declaration to
8583         c-family/c-common.h.
8584         * target-hooks-macros.h: New file.
8585         * config.gcc (target_has_targetcm): Define and use to add to
8586         c_target_objs and cxx_target_objs.
8587         * config/default-c.c: New file.
8588         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8589         of target.h and target-def.h.
8590         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8591         (darwin_objc_construct_string, darwin_cfstring_ref_p,
8592         darwin_check_cfstring_format_arg): Make static.
8593         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8594         TARGET_STRING_OBJECT_REF_TYPE_P,
8595         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8596         * config/darwin-protos.h (darwin_objc_construct_string,
8597         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8598         declare.
8599         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8600         TARGET_STRING_OBJECT_REF_TYPE_P,
8601         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8602         * config/t-darwin (darwin-c.o): Update dependencies.
8603         * system.h (TARGET_HAS_TARGETCM): Poison.
8604         * Makefile.in (TARGET_H): Update.
8605         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8606         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8607         (default-c.o): New target.
8608         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8609         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8610         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
8611         c-target.def.
8612         (build/genhooks.o): Update dependencies.
8614 2011-04-06  Richard Guenther  <rguenther@suse.de>
8616         * ipa-inline.c (enum inlining_mode): Remove.
8617         (cgraph_flatten): Use some other token.
8618         (cgraph_edge_early_inlinable_p): New function, split out from ...
8619         (cgraph_perform_always_inlining): New function, split out from ...
8620         (cgraph_decide_inlining_incrementally): ... here.
8621         (cgraph_mark_inline_edge): Adjust.
8622         (cgraph_early_inlining): Re-structure.
8623         (pass_early_inline): Require SSA form.
8625 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
8626             Julian Brown  <julian@codesourcery.com>
8627             Mark Shinwell  <shinwell@codesourcery.com>
8629         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8630         LO_REGS only for Thumb-1.
8631         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8632         be used in short instructions when optimising for size on Thumb-2.
8634 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
8636         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8637         associated with user returns to be preserved.
8639 2011-04-06  Tristan Gingold  <gingold@adacore.com>
8641         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8642         symbol_queue_size, DBXOUT_DECR_NESTING,
8643         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8644         if XCOFF_DEBUGGING_INFO.
8646 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
8648         * config/i386/i386.md (attribute isa): New.
8649         (attribute enabled): New.
8650         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8651         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8652         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8653         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8654         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8655         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8656         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8657         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8659         * config/i386/sse.md (VF): New mode iterator.
8660         (VF1): Ditto.
8661         (VF2): Ditto.
8662         (VF_128): Ditto.
8663         (SSEMODEF4): Remove.
8664         (attribute sse): Handle V8SF and V4DF modes.
8665         (<absneg:code><mode>2): Use VF mode iterator.
8666         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
8667         mode iterator.
8668         (<plusminus_insn><mode>3): Use VF mode iterator.
8669         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8670         Use VF mode iterator.
8671         (<sse>_vm<plusminus_insn><mode>3): Merge with
8672         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
8673         (mul<mode>3): Use VF mode iterator.
8674         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
8675         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
8676         mode iterator.
8677         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8678         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8679         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
8680         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
8681         mode iterator.
8682         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8683         Use VF1 mode iterator.
8684         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8685         (sqrt<VF2:mode>2): New expander.
8686         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8687         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8688         and sqrtv2df2.  Use VF mode iterator.
8689         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
8690         mode iterator.
8691         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8692         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8693         Use VF1 mode iterator.
8694         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8695         (<smaxmin:code><mode>3): Use VF mode iterator.
8696         (*<smaxmin:code><mode>3_finite): Merge with
8697         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
8698         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8699         (<sse>_vm<smaxmin:code><mode>2): Merge with
8700         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
8701         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
8702         mode iterator.
8703         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
8704         mode iterator.
8705         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8706         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8707         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8708         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8709         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
8710         VF mode iterator.
8711         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8712         Use VF_128 mode iterator.
8713         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
8714         mode iterator.
8715         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
8716         VF_128 mode iterator.
8717         (vcond<mode>): Use VF mode iterator.
8718         * config/i386/predicates.md (sse_comparison_operator): Merge with
8719         avx_comparison_float_operator.  Do not declare as special_predicate.
8720         * config/i386/i386.c (struct builtin_description): Update for renamed
8721         compare patterns.
8722         (ix86_expand_args_builtin): Ditto.
8723         (ix86_expand_sse_compare_mask): Ditto.
8725 2011-04-06  Richard Guenther  <rguenther@suse.de>
8727         * tree-inline.c (estimate_num_insns): For calls simply account
8728         for all passed arguments and a used return value.
8730 2011-04-06  Richard Guenther  <rguenther@suse.de>
8732         PR tree-optimization/47663
8733         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8734         call_stmt_time fields.
8735         (cgraph_edge_inlinable_p): Declare.
8736         (cgraph_edge_recursive_p): New inline function.
8737         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8738         (cgraph_clone_edge): Copy it.
8739         * ipa-inline.c (cgraph_estimate_edge_time): New function.
8740         Account for call stmt time.
8741         (cgraph_estimate_time_after_inlining): Take edge argument.
8742         (cgraph_estimate_edge_growth): Account call stmt size.
8743         (cgraph_estimate_size_after_inlining): Take edge argument.
8744         (cgraph_mark_inline_edge): Adjust.
8745         (cgraph_check_inline_limits): Likewise.
8746         (cgraph_recursive_inlining_p): Remove.
8747         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8748         (cgraph_decide_recursive_inlining): Take edge argument and
8749         adjust.
8750         (cgraph_decide_inlining_of_small_functions): Do not avoid
8751         diags for recursive inlining here.
8752         (cgraph_flatten): Adjust.
8753         (cgraph_decide_inlining_incrementally): Likewise.
8754         (estimate_function_body_sizes): Remove call cost handling.
8755         (compute_inline_parameters): Initialize caller edge call costs.
8756         (cgraph_estimate_edge_growth): New function.
8757         (cgraph_estimate_growth): Use it.
8758         (cgraph_edge_badness): Likewise.
8759         (cgraph_check_inline_limits): Take an edge argument.
8760         (cgraph_decide_inlining_of_small_functions): Adjust.
8761         (cgraph_decide_inlining): Likewise.
8762         * tree-inline.c (estimate_num_insns): Only account for call
8763         return value if it is used.
8764         (expand_call_inline): Avoid diagnostics on recursive inline
8765         functions here.
8766         * lto-cgraph.c (lto_output_edge): Output edge call costs.
8767         (input_edge): Input edge call costs.
8769 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8771         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8773 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
8775         * doc/invoke.texi (Spec Files): Fix typo.
8777 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
8779         * profile.c (branch_prob): Move declaration of local variable.  Remove
8780         obsolete ??? comment.  Expand the location explicitly instead of using
8781         the LOCATION_FILE and LOCATION_LINE macros.
8783 2011-04-06  Wei Guozhi  <carrot@google.com>
8785         PR target/47855
8786         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8787         (arm_cond_branch): Likewise.
8788         (arm_cond_branch_reversed): Likewise.
8789         (arm_jump): Likewise.
8790         (push_multi): Likewise.
8791         * config/arm/constraints.md (Py): New constraint.
8793 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
8795         PR bootstrap/48471
8796         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8797         Move these...
8798         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8799         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8800         #ifdef DBX_DEBUGGING_INFO.
8802 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
8804         PR bootstrap/48403
8805         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8806         if old and new states differ.
8808 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
8810         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8811         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8812         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8813         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8814         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8815         mcfv4e): Use Alias.
8816         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8817         ColdFire options to -mcpu= options.
8819 2011-04-05  Jeff Law  <law@redhat.com>
8821         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8822         check if BB is a successor of LOOP->header and return
8823         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8825 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
8827         * cprop.c (struct reg_use): Remove.
8828         (reg_use_table): Make an array of RTX.
8829         (find_used_regs, constprop_register, local_cprop_pass,
8830         bypass_block): Simplify users of reg_use_table.
8831         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
8832         on one of the uses found by find_used_regs.
8834 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
8836         PR bootstrap/48469
8837         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8838         declaration.
8840 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
8842         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8843         as an rtx.
8844         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8846 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
8848         PR middle-end/48441
8849         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8851 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
8853         * combine.c: Include obstack.h.
8854         (struct insn_link): Define.
8855         (uid_log_links): Adjust type.
8856         (FOR_EACH_LOG_LINK): New macro.
8857         (insn_link_obstack): Declare.
8858         (alloc_insn_link): Define.
8859         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
8860         type of link variables.
8861         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8862         (try_combine, record_promoted_values, distribute_notes): Likewise.
8863         (distribute_links): Likewise.  Tweak prototype.
8864         (clear_log_links): Delete.
8865         (adjust_for_new_dest): Call alloc_insn_link.
8866         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8868 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
8870         * gcse.c (modify_mem_list): Convert to an array of VECs.
8871         (canon_modify_mem_list, compute_transp): Tweak formatting.
8872         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
8873         (load_killed_in_block_p): Likewise.
8874         (record_last_mem_set_info): Likewise.
8875         (clear_modify_mem_tables): Likewise.
8877 2011-04-05  Tom de Vries  <tom@codesourcery.com>
8879         PR middle-end/48461
8880         * function.c (emit_use_return_register_into_block): Only define if
8881         HAVE_return.
8883 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
8885         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8887 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
8889         * config/rx/rx-opts.h: New.
8890         * config/rx/rx.c (rx_cpu_type): Remove.
8891         (rx_handle_option): Don't assert that global structures are in
8892         use.  Access variables via opts pointer.  Defer most handling of
8893         OPT_mint_register_.  Use error_at.
8894         (rx_option_override): Handle deferred OPT_mint_register_ here.
8895         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8896         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8897         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8898         (rx_cpu_types): New Enum and EnumValue entries.
8899         (mint-register=): Use Defer and use Var accordingly.
8901 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
8903         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8904         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8905         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8906         Move these...
8907         (debug_free_queue, debug_nesting, symbol_queue_index):
8908         ...and these...
8909         * dbxout.c: ...to here.  Make static.
8911 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
8913         * gcse.c (modify_pair): Define.  Define a VEC of it.
8914         (canon_modify_mem_list): Convert to an array of VECs.
8915         (free_insn_expr_list_list): Delete.
8916         (clear_modify_mem_tables): Call VEC_free instead.
8917         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8918         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8919         (canon_list_insert, compute_transp): Likewise.
8921 2011-04-05  Tom de Vries  <tom@codesourcery.com>
8923         PR target/43920
8924         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8925         for size.
8927 2011-04-05  Tom de Vries  <tom@codesourcery.com>
8929         PR target/43920
8930         * function.c (emit_use_return_register_into_block): New function.
8931         (thread_prologue_and_epilogue_insns): Use
8932         emit_use_return_register_into_block.
8934 2011-04-05  Tom de Vries  <tom@codesourcery.com>
8936         PR target/43920
8937         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8938         insn.
8940 2011-04-05  Tom de Vries  <tom@codesourcery.com>
8942         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8944 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
8946         * config/arm/arm.md (define_constants for unspec): Replace with
8947         define_c_enum.
8948         (define_constants for unspecv): Replace with define_c_enum.
8949         * config/arm/neon.md (define_constants for unspec): Replace with
8950         define_c_enum.
8952 2011-04-04  Richard Henderson  <rth@redhat.com>
8954         PR bootstrap/48400
8955         * dwarf2out.c (output_line_info): Always emit line info from
8956         at least one section.
8957         (dwarf2out_init): Create text_section_line_info here ...
8958         (set_cur_line_info_table): ... not here.
8960 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
8962         PR target/48380
8963         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8964         not called.
8966         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8968 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
8970         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8971         (expr_equiv_p): Remove.
8972         (insert_set_in_table): Look at <dest, src> pair instead of expr.
8973         (hash_scan_set): Update call to insert_set_in_table.
8974         (dump_hash_table): Dump <dest, src> pair.
8975         (lookup_set): Simplify.  Lookup <dest, src> pair.
8976         (compute_transp): Remove, fold heavily simplified code into...
8977         (compute_local_properties): ...here.  Expect COMP and TRANSP
8978         unconditionally.
8979         (find_avail_set): Take set directly from struct expr.
8980         (find_bypass-set): Likewise.
8981         (bypass_block): Likewise.
8982         (cprop_insn): Likewise.  Remove redundant INSN_P test.
8984         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8985         checks on form of COND from find_implicit_sets to here.
8986         (find_implicit_sets): Cleanup control flow. Split critical edges
8987         if it exposes implicit sets.  Allocate/resize implicit_sets as
8988         necessary.
8989         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8990         changed something.  Run df_analyze after find_implicit_sets if any
8991         edges were split.  Do not allocate implicit_sets here.
8993         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8994         (gcse_obstack): Renamed to cprop_obstack.
8995         (GNEW, GNEWVEC, GNEWVAR): Remove.
8996         (gmalloc): Remove.
8997         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8998         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8999         (gcse_alloc): Likewise, and rename to cprop_alloc.
9000         (alloc_gcse_men, free_gcse_mem): Remove.
9001         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
9002         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
9003         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
9005         * cprop.c (oprs_not_set_p): Remove.
9006         (mark_set, mark_clobber): Remove.
9007         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
9008         (reg_not_set_p): New function.
9009         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
9010         (cprop_insn): Likewise.
9011         (cprop_jump): Use FOR_EACH_EDGE.
9013 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
9015         PR bootstrap/48403
9016         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
9017         (rank_for_schedule): Use scheduled_insns vector instead of
9018         last_scheduled_insn.
9019         (ok_for_early_queue_removal): Likewise.
9020         (queue_to_ready): Search forward in nonscheduled_insns_begin if
9021         we have a dbg_cnt.
9022         (choose_ready): Likewise.
9023         (commit_schedule): Use VEC_iterate.
9024         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
9025         a dbg_cnt, use it and ensure the first insn is in the ready list.
9026         (haifa_sched_init): Allocate scheduled_insns.
9027         (sched_extend_ready_list): Don't allocate it; reserve space.
9028         (haifa_sched_finish): Free it.
9030 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
9032         * optc-gen.awk: Always remove type from Variable entry before
9033         recording in var_seen.
9035 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
9037         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
9038         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
9039         call to tidy_fallthru_edges.
9041 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
9043         * doc/options.texi (ToLower): Document.
9044         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
9045         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
9046         * opts.h (cl_option): Add cl_tolower field.
9047         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
9048         arguments with lowercase strings.
9049         * config/rx/rx.opt (mcpu=): Add ToLower.
9050         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
9051         argument.
9053 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
9055         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
9057 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
9059         * config/vax/vax.c: Include reload.h.
9061 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
9063         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
9064         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9065         (sparc_preferred_reload_class): New function.
9067 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
9069         PR debug/48401
9070         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9071         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
9073 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
9075         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
9076         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
9078 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
9080         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
9081         (ASM_OUTPUT_ALIGNED_BSS): Define.
9083 2011-04-03  Michael Matz  <matz@suse.de>
9085         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
9086         and next_slot members.
9087         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
9088         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
9089         (lto_streamer_cache_append): Declare.
9090         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
9091         unsigned index, remove offset parameter, ensure that we append
9092         or update existing entries.
9093         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
9094         parameter, update next_slot for append.
9095         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
9096         parameter.
9097         (lto_streamer_cache_insert_at): Likewise.
9098         (lto_streamer_cache_append): New function.
9099         (lto_streamer_cache_lookup): Use unsigned index.
9100         (lto_streamer_cache_get): Likewise.
9101         (lto_record_common_node): Don't test tree_node_can_be_shared.
9102         (preload_common_node): Adjust call to lto_streamer_cache_insert.
9103         (lto_streamer_cache_delete): Don't free offsets member.
9104         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
9105         (lto_output_string_with_length): Use lto_output_data_stream.
9106         (lto_output_tree_header): Remove ix parameter, don't write it.
9107         (lto_output_builtin_tree): Likewise.
9108         (lto_write_tree): Adjust callers to above, don't track and write
9109         offset, write unsigned index.
9110         (output_unreferenced_globals): Don't emit all global vars.
9111         (write_global_references): Use unsigned indices.
9112         (lto_output_decl_state_refs): Likewise.
9113         (write_symbol): Likewise.
9114         * lto-streamer-in.c (lto_input_chain): Move earlier.
9115         (input_function): Use unsigned index.
9116         (input_alias_pairs): Don't read and then ignore all global vars.
9117         (lto_materialize_tree): Remove ix_p parameter, don't read index,
9118         don't pass it back, use lto_streamer_cache_append.
9119         (lto_register_var_decl_in_symtab): Use unsigned index.
9120         (lto_register_function_decl_in_symtab): Likewise.
9121         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
9122         index.
9123         (lto_get_builtin_tree): Don't read index, use
9124         lto_streamer_cache_append.
9125         (lto_read_tree): Adjust call to lto_materialize_tree.
9127         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
9128         don't use function calls in arguments to MIN.
9130         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
9131         twice.
9133         * gimple.c (gimple_type_leader_entry): Mark deletable.
9135 2011-04-03  Alan Modra  <amodra@gmail.com>
9137         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
9139 2011-04-03  Michael Matz  <matz@suse.de>
9141         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
9142         an integer.
9143         * tree.h (tree_decl_non_common.vindex): Adjust comment.
9145 2011-04-03  Michael Matz  <matz@suse.de>
9147         * cgraphbuild.c (record_reference): Canonicalize constructor values.
9148         * gimple-fold.c (canonicalize_constructor_val): Accept being called
9149         without function context.
9150         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
9151         current_function_decl and cfun.
9153 2011-04-03  Michael Matz  <matz@suse.de>
9155         * tree.c (decl_init_priority_insert): Don't create entry for
9156         default priority.
9157         (decl_fini_priority_insert): Ditto.
9158         (fields_compatible_p, find_compatible_field): Remove.
9159         * tree.h (fields_compatible_p, find_compatible_field): Remove.
9160         * gimple.c (gimple_compare_field_offset): Adjust block comment.
9162 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
9164         * combine.c (try_combine): Remove useless local variable.
9166 2011-04-03  Richard Guenther  <rguenther@suse.de>
9167             Ira Rosen  <ira.rosen@linaro.org>
9169         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
9170         non-variable offsets and compare the remaining bases of the two
9171         accesses instead of looking for exact same data-ref.
9173 2011-04-02  Kai Tietz  <ktietz@redhat.com>
9175         PR target/48416
9176         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
9178         * i386.c (ix86_is_msabi_thiscall): New helper function.
9179         (ix86_is_type_thiscall): New helper function.
9180         (ix86_comp_type_attributes): Handle thiscall for method-functions
9181         special.
9182         (init_cumulative_args): Likewise.
9183         (find_drap_reg): Likewise.
9184         (ix86_static_chain): Likewise.
9185         (x86_this_parameter): Likewise.
9186         (x86_output_mi_thunk): Likewise.
9188 2011-04-01  Olivier Hainque  <hainque@adacore.com>
9189             Nicolas Setton  <setton@adacore.com>
9190             Eric Botcazou  <ebotcazou@adacore.com>
9192         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
9193         (add_gnat_descriptive_type_attribute): New function.
9194         (gen_array_type_die): Call it.
9195         (gen_enumeration_type_die): Likewise.
9196         (gen_struct_or_union_type_die): Likewise.
9197         (modified_type_die): Likewise.
9198         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
9199         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
9200         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
9202 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
9204         PR bootstrap/48148
9205         * dwarf2out.c (resolve_addr): Don't call force_decl_die
9206         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
9208         Revert:
9209         2011-03-17  Richard Guenther  <rguenther@suse.de>
9211         PR bootstrap/48148
9212         * lto-cgraph.c (input_overwrite_node): Clear the abstract
9213         origin for decls in other ltrans units.
9214         (input_varpool_node): Likewise.
9216 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
9218         PR middle-end/48335
9219         * expr.c (expand_assignment): Handle all possibilities
9220         if TO_RTX is CONCAT.
9221         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
9222         (store_split_bit_field): If SUBREG_REG (op0) or
9223         op0 itself has smaller mode than word, return it
9224         for offset 0 and const0_rtx for out-of-bounds stores.
9225         If word is const0_rtx, skip it.
9227 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
9229         * config/h8300/h8300.c (print_operand_address): Rename to...
9230         (h8300_print_operand_address): ...this. Make static. Adjust comments.
9231         Call h8300_print_operand and h8300_print_operand_address instead of
9232         print_operand and print_operand_address. Declare.
9233         (print_operand): Renake to...
9234         (h8300_print_operand): ...this. Make static. Adjust comments.
9235         Call h8300_print_operand instead of print_operand. Declare.
9236         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
9237         (h8300_register_move_cost): Likewise.
9238         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
9239         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
9240         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
9241         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
9242         * config/h8300/h8300-protos.h (print_operand): Delete.
9243         (print_operand_address): Delete.
9245 2011-04-01  Richard Henderson  <rth@redhat.com>
9247         PR 48400
9248         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
9249         in strict mode before dwarf4.  Re-order tests to early out
9250         before switching sections.
9252 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
9254         * config/h8300/constraints.md: New file.
9255         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
9256         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
9257         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
9258         * config/h8300/predicates.md (bit_operand): Likewise.
9259         (incdec_operand): Use satisfies_constraint_M and
9260         satisfies_constraint_O.  Don't use C code block.
9261         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
9262         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
9263         (compute_mov_length): Use satisfies_constraint_G.
9264         (fix_bit_operand): Use satisfies_constraint_U.
9265         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
9266         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
9267         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
9268         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
9269         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
9270         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
9271         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9272         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
9273         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
9274         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
9275         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
9276         (EXTRA_MEMORY_CONSTRAINT): Delete.
9278 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
9279             Michael Meissner  <meissner@linux.vnet.ibm.com>
9281         PR target/48262
9282         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
9283         operands, as per the specifications.
9285         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
9286         (vec_extract_evenv4sf): Ditto.
9287         (vec_extract_evenv8hi): Ditto.
9288         (vec_extract_evenv16qi): Ditto.
9289         (vec_extract_oddv4si): Ditto.
9291 2011-03-31  Mark Wielaard  <mjw@redhat.com>
9293         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
9294         high_pc attribute if the CU has no associated code. Only output
9295         DW_AT_entry_pc for CU if not generating strict dwarf and
9296         dwarf_version < 4.
9298 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
9300         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
9301         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
9302         out of ...
9303         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
9304         * final.c (final_start_function): Call the new function rather
9305         than using a NULL argument for dwarf2out_frame_debug.
9307         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
9308         that contains the prologue.
9310         * haifa-sched.c (queue_insn): New arg REASON.  All callers
9311         changed.  Print it in debugging output.
9313         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
9315         * sched-ebb.c (begin_schedule_ready): Remove second argument.
9316         Split most of the code into...
9317         (begin_move_insn): ... here.  New function.
9318         (ebb_sched_info): Add a pointer to it.
9319         * haifa-sched.c (scheduled_insns): New static variable.
9320         (sched_extend_ready_list): Allocate it.
9321         (schedule_block): Use it to record the order of scheduled insns.
9322         Perform RTL changes to move insns only after all scheduling
9323         decisions have been made.
9324         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
9325         begin_move_insn field.
9326         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
9327         * sched-int.h (struct haifa_sched_info): Remove second argument
9328         from begin_schedule_ready hook.  Add new member begin_move_insn.
9329         * sched-rgn.c (begin_schedule_ready): Remove second argument.
9330         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
9332         * haifa-sched.c (prune_ready_list): New function, broken out of
9333         schedule_block.
9334         (schedule_block): Use it.
9336 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9338         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
9340 2011-04-01  Kai Tietz  <ktietz@redhat.com>
9342         * config.gcc (*-*-mingw*): Allow as option the
9343         posix threading model.
9344         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
9345         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
9346         definition.
9347         (CPP_SPEC): Add pthread/no-pthread handling.
9348         (LIB_SPEC): Likewise.
9349         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
9350         (LIB_SPEC): Likewise.
9351         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
9352         flag to pass -pthread option for shared libgcc build.
9353         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
9354         for shared libgcc build.
9355         * config/i386/t-mingw-pthread: New file.
9356         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
9357         New define to enable use of library pthread by default.
9358         * config/i386/mingw.opt (pthread): New driver option.
9359         (no-pthread): New driver option.
9360         * config/i386/cygming.opt: Make sure trailing empty line is retained.
9361         * config/i386/mingw-w64.opt: Likewise.
9363 2011-04-01  Gary Funck  <gary@intrepid.com>
9365         * c-decl.c (grokdeclarator): Fix formatting.
9367 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
9369         * expr.c (emit_block_move_via_movmem): Use n_generator_args
9370         instead of n_operands.
9371         (set_storage_via_setmem): Likewise.
9372         * optabs.c (maybe_gen_insn): Likewise.
9373         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
9374         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
9375         (mips_expand_builtin_direct): Likewise.
9376         * config/spu/spu.c (expand_builtin_args): Likewise.
9378 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
9380         * recog.h (insn_data_d): Add n_generator_args.
9381         * genoutput.c (data): Likewise.
9382         (output_insn_data): Print it.
9383         (max_opno, num_dups): Delete.
9384         (scan_operands): Just fill in "d->operand[...]".
9385         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
9387 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
9389         * gensupport.h (pattern_stats): New structure.
9390         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
9391         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
9392         (max_operand_1, max_operand_vec): Delete.
9393         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
9395 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
9397         * emit-rtl.c (emit_pattern_after_setloc): New function.
9398         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
9399         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
9400         (emit_pattern_after): New function.
9401         (emit_insn_after, emit_jump_insn_after): Call it.
9402         (emit_call_insn_after, emit_debug_insn_after): Likewise.
9403         (emit_pattern_before_setloc): New function.
9404         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
9405         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
9406         Likewise.
9407         (emit_pattern_before): New function.
9408         (emit_insn_before, emit_jump_insn_before): Call it.
9409         (emit_call_insn_before, emit_debug_insn_before): Likewise.
9411 2011-03-31  Richard Henderson  <rth@redhat.com>
9413         * dwarf2out.c (dw_separate_line_info_ref): Remove.
9414         (dw_separate_line_info_entry): Remove.
9415         (enum dw_line_info_opcode): New.
9416         (dw_line_info_entry): Use it.
9417         (dw_line_info_table, dw_line_info_table_p): New.
9418         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
9419         (line_info_table, line_info_label_num): Remove.
9420         (line_info_table_in_use): Remove.
9421         (separate_line_info_table): Remove.
9422         (separate_line_info_table_allocated): Remove.
9423         (separate_line_info_table_in_use): Remove.
9424         (LINE_INFO_TABLE_INCREMENT): Remove.
9425         (line_info_label_num): New.
9426         (cur_line_info_table): New.
9427         (text_section_line_info, cold_text_section_line_info): New.
9428         (separate_line_info): New.
9429         (SEPARATE_LINE_CODE_LABEL): Remove.
9430         (print_dwarf_line_table): Remove.
9431         (debug_dwarf): Don't dump it.
9432         (output_one_line_info_table): New.
9433         (output_line_info): Use it.
9434         (new_line_info_table): New.
9435         (set_cur_line_info_table): New.
9436         (dwarf2out_switch_text_section): Use it.
9437         (dwarf2out_begin_function): Likewise.
9438         (push_dw_line_info_entry): New.
9439         (dwarf2out_source_line): Rewrite for new line info tables.
9440         (dwarf2out_init): Remove dead initailizations.
9442 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
9444         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
9445         various flags.
9446         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
9447         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
9448         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
9449         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
9450         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
9451         * opt-functions.awk (flag_init, switch_bit_fields): New.
9452         (switch_flags): Don't handle flags moved to bit-fields.  Don't
9453         generate CL_MISSING_OK or CL_SAVE.
9454         * optc-gen.awk: Update to generate bit-field output as well as
9455         flags field.
9456         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
9457         bit-field instead of CL_REJECT_DRIVER flag.
9458         * opts-common.c (generate_canonical_option,
9459         decode_cmdline_option): Use bit-fields instead of CL_* flags.
9460         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
9461         instead of CL_REJECT_NEGATIVE flag.
9462         * toplev.c (print_switch_values): Use cl_report bit-field instead
9463         of CL_REPORT flag.
9465 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
9467         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
9468         a zero minimum index only if it is redundant.
9470 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
9472         PR rtl-optimization/48381
9473         * ira-color.c (assign_hard_reg): Use hard reg set intersection
9474         instead of ira_class_hard_reg_index for calculating conflicting
9475         hard registers.
9477 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
9479         * cprop.c: Clean up hash table building.
9480         (reg_avail_info): Remove.
9481         (oprs_available_p): Remove.
9482         (record_last_reg_set_info): Remove.
9483         (record_last_set_info): Remove.
9484         (reg_available_p): New function.
9485         (gcse_constant_p): Do not treat unfolded conditions as constants.
9486         (make_set_regs_unavailable): New function.
9487         (hash_scan_set): Simplify with new reg_available_p.
9488         (compute_hash_table_work): Traverse insns stream only once.
9489         Do not compute reg_avail_info. Traverse insns in reverse order.
9490         Record implicit sets after recording explicit sets from the block.
9492 2011-03-31  Michael Matz  <matz@suse.de>
9494         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
9496 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
9498         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
9499         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
9500         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9501         (h8300_mode_dependent_address_p): New function.
9502         (h8300_get_index): Make static.
9504 2011-03-31  Jeff Law  <law@redhat.com>
9506         * reload1.c (elimination_effects): Fix typo in recent change.
9508         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
9509         typo potentially leading to null pointer dereference.
9511         * caller-save.c (new_saved_hard_reg): Eliminate return value.
9512         (setup_save_areas): Corresponding changes to avoid useless
9513         assignments.
9515         * jump.c (reversed_comparison_code_parts): Avoid successive return
9516         statements when REVERSE_CONDITION is defined.
9518         * expr.c (expand_assignment): Avoid useless assignments.
9519         (expand_expr_real_1): Likewise.
9520         (expand_expr_real_2): Avoid useless statements.
9522         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
9524         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9526         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
9527         statements.
9529         * stmt.c (expand_expr_stmt): Avoid useless assignment.
9531 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
9533         PR target/47109
9534         * doc/tm.texi.in (TARGET_VERSION): Remove.
9535         * doc/tm.texi: Regenerate.
9536         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
9537         * collect2.c (main): Don't use TARGET_VERSION.
9538         * mips-tdump.c (main): Don't use TARGET_VERSION.
9539         * mips-tfile.c (main): Don't use TARGET_VERSION.
9540         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
9541         * config/rs6000/vxworksae.h: Remove.
9542         * config/alpha/alpha.h (TARGET_VERSION): Remove.
9543         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
9544         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
9545         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
9546         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9547         * config/arm/arm.h (TARGET_VERSION): Remove.
9548         * config/arm/coff.h (TARGET_VERSION): Remove.
9549         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
9550         * config/arm/elf.h (TARGET_VERSION): Remove.
9551         * config/arm/freebsd.h (TARGET_VERSION): Remove.
9552         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
9553         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
9554         * config/arm/pe.h (TARGET_VERSION): Remove.
9555         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
9556         * config/arm/semi.h (TARGET_VERSION): Remove.
9557         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
9558         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
9559         * config/arm/vxworks.h (TARGET_VERSION): Remove.
9560         * config/avr/avr.h (TARGET_VERSION): Remove.
9561         * config/bfin/bfin.h (TARGET_VERSION): Remove.
9562         * config/fr30/fr30.h (TARGET_VERSION): Remove.
9563         * config/frv/frv.h (TARGET_VERSION): Remove.
9564         * config/h8300/h8300.h (TARGET_VERSION): Remove.
9565         * config/i386/cygwin.h (TARGET_VERSION): Remove.
9566         * config/i386/darwin.h (TARGET_VERSION): Remove.
9567         * config/i386/darwin64.h (TARGET_VERSION): Remove.
9568         * config/i386/djgpp.h (TARGET_VERSION): Remove.
9569         * config/i386/freebsd.h (TARGET_VERSION): Remove.
9570         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
9571         * config/i386/gnu.h (TARGET_VERSION): Remove.
9572         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9573         * config/i386/i386elf.h (TARGET_VERSION): Remove.
9574         * config/i386/linux.h (TARGET_VERSION): Remove.
9575         * config/i386/linux64.h (TARGET_VERSION): Remove.
9576         * config/i386/lynx.h (TARGET_VERSION): Remove.
9577         * config/i386/mingw32.h (TARGET_VERSION): Remove.
9578         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9579         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9580         * config/i386/netware.h (TARGET_VERSION): Remove.
9581         * config/i386/nto.h (TARGET_VERSION): Remove.
9582         * config/i386/openbsd.h (TARGET_VERSION): Remove.
9583         * config/i386/vxworks.h (TARGET_VERSION): Remove.
9584         * config/ia64/elf.h (TARGET_VERSION): Remove.
9585         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9586         * config/ia64/hpux.h (TARGET_VERSION): Remove.
9587         * config/ia64/linux.h (TARGET_VERSION): Remove.
9588         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9589         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9590         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9591         * config/lm32/lm32.h (TARGET_VERSION): Remove.
9592         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9593         * config/m32c/m32c.h (TARGET_VERSION): Remove.
9594         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9595         * config/m32r/m32r.h (TARGET_VERSION): Remove.
9596         * config/m68k/linux.h (TARGET_VERSION): Remove.
9597         * config/m68k/m68k.h (TARGET_VERSION): Remove.
9598         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9599         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9600         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9601         * config/mep/mep.h (TARGET_VERSION): Remove.
9602         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9603         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9604         * config/mips/iris6.h (MACHINE_TYPE): Remove.
9605         * config/mips/linux.h (TARGET_VERSION): Remove.
9606         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9607         * config/mips/vxworks.h (TARGET_VERSION): Remove.
9608         * config/mmix/mmix.h (TARGET_VERSION): Remove.
9609         * config/mn10300/linux.h (TARGET_VERSION): Remove.
9610         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9611         * config/pa/pa.h (TARGET_VERSION): Remove.
9612         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9613         * config/picochip/picochip.h (TARGET_VERSION): Remove.
9614         * config/rs6000/aix.h (TARGET_VERSION): Remove.
9615         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9616         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9617         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9618         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9619         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9620         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9621         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9622         * config/rs6000/linux.h (TARGET_VERSION): Remove.
9623         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9624         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9625         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9626         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9627         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9628         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9629         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9630         * config/s390/linux.h (TARGET_VERSION): Remove.
9631         * config/s390/s390.h (TARGET_VERSION): Remove.
9632         * config/s390/tpf.h (TARGET_VERSION): Remove.
9633         * config/score/score.h (TARGET_VERSION): Remove.
9634         * config/sh/linux.h (TARGET_VERSION): Remove.
9635         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9636         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9637         * config/sh/sh.h (TARGET_VERSION): Remove.
9638         * config/sh/sh64.h (TARGET_VERSION): Remove.
9639         * config/sh/superh.h (TARGET_VERSION): Remove.
9640         * config/sh/vxworks.h (TARGET_VERSION): Remove.
9641         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9642         * config/sparc/linux.h (TARGET_VERSION): Remove.
9643         * config/sparc/linux64.h (TARGET_VERSION): Remove.
9644         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9645         TARGET_NAME32, TARGET_NAME): Remove.
9646         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9647         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9648         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9649         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9650         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9651         * config/spu/spu.h (TARGET_VERSION): Remove.
9652         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9653         * config/v850/v850.h (TARGET_VERSION): Remove.
9654         * config/vax/linux.h (TARGET_VERSION): Remove.
9655         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9656         * config/xtensa/elf.h (TARGET_VERSION): Remove.
9657         * config/xtensa/linux.h (TARGET_VERSION): Remove.
9659 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
9661         PR target/48142
9662         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9663         frame-related from frame-unrelated adjustments to the stack pointer.
9665 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
9667         * common.opt (fdebug-types-section): Move earlier.
9668         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9670 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
9672         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9673         var.
9675 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
9677         * tree.h (CASE_CHAIN): Define.
9678         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9679         (gimple_redirect_edge_and_branch): Likewise.
9681 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
9683         PR middle-end/48367
9684         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9685         calculation.
9687 2011-03-30  Jeff Law  <law@redhat.com>
9689         * PR bootstrap/48371
9690         * reload1.c (reload): Fix botch in last change.
9692         * reload.h (struct reload): Fix typo introduced in last change.
9694 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
9696         * config/arm/arm.opt (mhard-float, msoft-float): Mark
9697         Undocumented.  Remove help text.
9698         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9699         -mhard-float.
9701 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
9703         * doc/options.texi (NegativeAlias): Document.
9704         (Alias): Mention NegativeAlias.
9705         * opt-functions.awk: Handle NegativeAlias.
9706         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9707         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9708         * opts.h (CL_NEGATIVE_ALIAS): Define.
9709         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9710         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9711         OPT_mspe_.
9712         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9713         Alias entries.
9714         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9715         mno-spe and mno-isel instead of mspe=no and -misel=no.
9717 2011-03-29  Mark Wielaard  <mjw@redhat.com>
9719         * common.opt (fdebug-types-section): New flag.
9720         * doc/invoke.texi: Document new -fno-debug-types-section flag.
9721         * dwarf2out.c (use_debug_types): New define.
9722         (struct die_struct): Mark die_id with GTY desc use_debug_types.
9723         (print_die): Guard output of type unit signatures using
9724         use_debug_types.
9725         (build_abbrev_table): Replace assert of dwarf_version >= 4
9726         with assert on use_debug_types.
9727         (size_of_die): Likewise.
9728         (unmark_dies): Likewise.
9729         (value_format): Decide AT_ref_external form on use_debug_types.
9730         (output_die): Replace dwarf_version version check guard with
9731         use_debug_types where appropriate.
9732         (modified_type_die): Likewise.
9733         (gen_reference_type_die): Likewise.
9734         (dwarf2out_start_source_file): Likewise.
9735         (dwarf2out_end_source_file): Likewise.
9736         (prune_unused_types_walk_attribs): Likewise.
9737         (dwarf2out_finish): Likewise.
9739 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
9741         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9743 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
9745         PR rtl-optimization/48332
9746         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9747         mode of input operand N and modeN to its actual mode.
9749 2011-03-30  Jeff Law  <law@redhat.com>
9751         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9752         define accessor macro.
9753         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9754         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9755         (reg_equiv_init): Likewise.
9756         (reg_equivs_size): New variable.
9757         (reg_equiv_init_size): Remove.
9758         (allocate_initial_values): Move prototype to here from....
9759         * integrate.h (allocate_initial_values): Remove prototype.
9760         * integrate.c: Include reload.h.
9761         (allocate_initial_values): Corresponding changes.
9762         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9763         (fix_reg_equiv_init, no_equiv): Corresponding changes.
9764         (update_equiv_regs): Corresponding changes.
9765         (ira): Corresponding changes.
9766         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9767         (push_secondary_reload): Corresponding changes.
9768         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9769         (make_memloc, find_reloads_address): Corresponding changes.
9770         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9771         (find_reloads_address_1): Corresponding changes.
9772         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9773         (refers_to_regno_for_reload_p): Corresponding changes.
9774         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9775         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9776         * reload1.c: Include ggc.h.
9777         (grow_reg_equivs): New function.
9778         (replace_pseudos_in, reload): Corresponding changes.
9779         (calculate_needs_all_insns, alter_regs): Corresponding changes.
9780         (eliminate_regs_1, elimination_effects): Corresponding changes.
9781         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9782         (delete_output_reload): Likewise.
9783         * caller-save.c (mark_referenced_regs): Corresponding changes.
9784         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9785         * frv/predicates.md (frv_load_operand): Corresponding changes.
9786         * microblaze/microblaze.c (double_memory_operand): Corresponding
9787         changes.
9788         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9789         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9790         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9791         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9792         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9793         changes.
9794         * pa/pa.c (emit_move_sequence): Corresponding changes.
9795         * vax/vax.c (nonindexed_address_p): Corresponding changes.
9797 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
9799         PR target/47551
9800         * config/arm/arm.c (coproc_secondary_reload_class): Handle
9801         structure modes.  Don't check neon_vector_mem_operand for
9802         vector or structure modes.
9804 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
9805             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9807         PR target/43590
9808         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9809         operand 1 and reshuffle the operands to match.
9810         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9812 2011-03-30  Christian SchĂĽler  <cschueler@gmx.de>
9814         PR driver/48208
9815         * config/c.opt (F): Added 'Driver' to -F option.
9817         PR driver/48260
9818         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9819           handler function.
9820         * config/darwin.opt: Added '-arch' option.
9822 2011-03-30  Nick Clifton  <nickc@redhat.com>
9824         * config/rx/rx.md: Add peepholes and patterns to combine
9825         extending loads and simple arithmetic instructions.
9826         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9827         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9828         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9829         modes to use pre-decrement and post-increment addressing.
9830         (rx_is_restricted_memory_address): Add range checking of REG+INT
9831         addresses.
9832         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
9833         (rx_memory_move_cost): Adjust cost of stores.
9834         (rx_adjust_insn_length): New function.
9836 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
9838         PR c/48305
9839         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9840         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9841         matching arg00/arg01 types.
9843 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
9845         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9846         last_location to UNKNOWN_LOCATION.
9848 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
9850         PR target/48349
9851         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9852         FLOAT_SSE_REGS.
9854 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
9855             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9857         PR bootstrap/48337
9858         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9859         Init(PROCESSOR_V7).
9860         (sparc_cpu): Likewise.
9861         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9862         PROCESSOR_V7.
9864 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
9866         PR target/48336
9867         PR middle-end/48342
9868         PR rtl-optimization/48345
9869         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9870         hard regs for given mode from profitable regs when doing secondary
9871         allocation.
9873 2011-03-29  Jeff Law  <law@redhat.com>
9875         PR bootstrap/48327
9876         * tree-ssa-threadupdate.c (struct redirection_data): Remove
9877         do_not_duplicate field.
9878         (lookup_redirection_data): Corresponding changes.
9879         (create_duplicates): Always create a template block.
9880         (redirect_edges): Remove code which reused the original block
9881         when it was going to become unreachable code.
9882         (thread_block): Don't set do_not_duplicate field.
9884 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
9886         * lto-opts.c (register_user_option_p, lto_register_user_option):
9887         Make type argument unsigned.
9888         * lto-streamer.h (lto_register_user_option): Make type argument
9889         unsigned.
9890         * opth-gen.awk: Make CL_* macros unsigned.
9891         * opts-common.c (find_opt): Make lang_mask argument unsigned.
9892         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9893         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9894         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9895         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9896         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9897         (find_opt): Make lang_mask argument unsigned.
9899 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
9901         PR rtl-optimization/48331
9902         PR rtl-optimization/48334
9903         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9904         for any used algorithm.
9906 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
9908         * ira-conflicts.c (build_object_conflicts): Add unused attribute
9909         to parent_max.
9911 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
9913         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9914         (alpha_option_override): Don't set alpha_sr_alias_set.
9915         (emit_frame_store_1): Use gen_frame_mem rather than calling
9916         set_mem_alias_set.
9917         (alpha_expand_epilogue): Ditto.
9919 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
9921         PR tree-optimization/48290
9922         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9923         vectorization, check that relevant phis in the basic block after
9924         the inner loop are really inner loop's exit phis.
9926 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
9928         PR debug/48190
9929         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9930         (cached_dw_loc_list_def): New structure.
9931         (cached_dw_loc_list): New typedef.
9932         (cached_dw_loc_list_table): New variable.
9933         (cached_dw_loc_list_table_hash): New function.
9934         (cached_dw_loc_list_table_eq): Likewise.
9935         (add_location_or_const_value_attribute): Take a bool cache_p.
9936         Cache the list when the parameter is true.
9937         (gen_formal_parameter_die): Update caller.
9938         (gen_variable_die): Likewise.
9939         (dwarf2out_finish): Likewise.
9940         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9941         while generating debug info for the decl.
9942         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9943         (dwarf2out_init): Initialize cached_dw_loc_list_table.
9944         (resolve_addr): Cache the result of resolving a chain of
9945         location lists.
9947 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
9949         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9950         conflict object hard regset nodes have intersecting hard reg sets.
9952         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9953         after regstat_init_n_sets_and_refs.
9955         * ira.c: Add more comments at the top.
9956         (setup_stack_reg_pressure_class, setup_pressure_classes):
9957         Add comments how we compute the register pressure classes.
9958         (setup_allocno_and_important_classes): Add more comments.
9959         (setup_class_translate_array, reorder_important_classes)
9960         (setup_reg_class_relations): Add comments.
9962         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
9963         start of the file.
9965         * ira-color.c: Add 2011 to the Copyright line.
9966         (assign_hard_reg):  Add more comments.
9967         (improve_allocation): Ditto.
9969         * ira-costs.c: Add 2011 to the Copyright line.
9970         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9971         comments.
9972         (setup_regno_cost_classes_by_mode): Ditto.
9974         Initial patches from ira-improv branch:
9976         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
9978         * ira-build.c (ira_create_object): Remove initialization of
9979         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
9980         (ira_create_allocno): Remove initialization of
9981         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9982         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9983         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9984         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9985         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9986         Initialize ALLOCNO_ADD_DATA.
9987         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9988         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9989         ALLOCNO_REG.
9990         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
9991         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9993         * ira.c (ira_reallocate): Remove.
9994         (setup_pressure_classes): Call
9995         ira_init_register_move_cost_if_necessary.  Use
9996         ira_register_move_cost instead of ira_get_register_move_cost.
9997         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9998         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
10000         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
10001         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10002         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
10003         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
10004         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
10005         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
10006         Fix formatting.
10007         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
10008         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10009         (struct allocno_color_data): New.
10010         (allocno_color_data_t): New typedef.
10011         (allocno_color_data): New definition.
10012         (ALLOCNO_COLOR_DATA): New macro.
10013         (struct object_color_data): New.
10014         (object_color_data_t): New typedef.
10015         (object_color_data): New definition.
10016         (OBJECT_COLOR_DATA): New macro.
10017         (update_copy_costs, calculate_allocno_spill_cost): Call
10018         ira_init_register_move_cost_if_necessary.  Use
10019         ira_register_move_cost instead of ira_get_register_move_cost.
10020         (move_spill_restore, update_curr_costs): Ditto.
10021         (allocno_spill_priority): Make it inline.
10022         (color_pass): Allocate and free allocno_color_dat and object_color_data.
10023         (struct coalesce_data, coalesce_data_t): New.
10024         (allocno_coalesce_data): New definition.
10025         (ALLOCNO_COALESCE_DATA): New macro.
10026         (merge_allocnos, coalesced_allocno_conflict_p): Use
10027         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
10028         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
10029         (coalesce_allocnos): Ditto.
10030         (setup_coalesced_allocno_costs_and_nums): Ditto.
10031         (collect_spilled_coalesced_allocnos): Ditto.
10032         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
10033         (setup_slot_coalesced_allocno_live_ranges): Ditto.
10034         (coalesce_spill_slots): Ditto.
10035         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
10036         free allocno_coalesce_data.
10038         * ira-conflicts.c: Fix formatting.
10039         (process_regs_for_copy): Call
10040         ira_init_register_move_cost_if_necessary.  Use
10041         ira_register_move_cost instead of ira_get_register_move_cost.
10042         (build_object_conflicts): Optimize.
10044         * ira-costs.c (record_reg_classes): Optimize.  Call
10045         ira_init_register_move_cost_if_necessary.  Use
10046         ira_register_move_cost, ira_may_move_in_cost, and
10047         ira_may_move_out_cost instead of ira_get_register_move_cost and
10048         ira_get_may_move_cost.
10049         (record_address_regs): Ditto.
10050         (scan_one_insn): Optimize.
10051         (find_costs_and_classes): Optimize.
10052         (process_bb_node_for_hard_reg_moves): Call
10053         ira_init_register_move_cost_if_necessary.  Use
10054         ira_register_move_cost instead of ira_get_register_move_cost.
10056         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
10057         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
10058         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
10059         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
10060         definitions.
10061         (ira_initiate_emit_data, ira_finish_emit_data)
10062         (create_new_allocno): New functions.
10063         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
10064         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
10065         Use ira_register_move_cost instead of ira_get_register_move_cost.
10067         * ira-int.h: Fix some comments.
10068         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
10069         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10070         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
10071         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
10072         add_data.
10073         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
10074         bitfield after mode.  Make hard_regno a short int.  Make
10075         hard_regno short.  Remove first_coalesced_allocno and
10076         next_coalesced_allocno.  Move mem_optimized_dest_p,
10077         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
10078         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
10079         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
10080         temp, colorable_p.  Add new member add_data.
10081         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
10082         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
10083         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
10084         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
10085         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
10086         (ALLOCNO_ADD_DATA): New macro.
10087         (ira_emit_data_t): New typedef.
10088         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
10089         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
10090         from struct ira_allocno.
10091         (ALLOCNO_EMIT_DATA): New macro.
10092         (ira_allocno_emit_data, allocno_emit_reg): New.
10093         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
10094         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
10095         (OBJECT_ADD_DATA): New macro.
10096         (ira_reallocate): Remove.
10097         (ira_initiate_emit_data, ira_finish_emit_data): New.
10098         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
10099         (ira_init_register_move_cost_if_necessary): New.
10100         (ira_object_conflict_iter_next): Merge into
10101         ira_object_conflict_iter_cond.
10102         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
10104         * ira-live.c (process_single_reg_class_operands): Call
10105         ira_init_register_move_cost_if_necessary.  Use
10106         ira_register_move_cost instead of ira_get_register_move_cost.
10108         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
10110         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
10112         * ira-costs.c: Fix formatting.
10113         (cost_classes, cost_classes_num): Remove.
10114         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
10115         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
10116         (cost_classes_del, cost_classes_htab): New.
10117         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
10118         (initiate_regno_cost_classes, setup_cost_classes): New.
10119         (setup_regno_cost_classes_by_aclass): New.
10120         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
10121         (record_reg_classes): Use regno_cost_classes instead of
10122         cost_classes.  Move checking opposite operand up.
10123         (record_address_regs): Use regno_cost_classes
10124         instead of cost_classes.
10125         (scan_one_insn): Ditto.  Use always general register.
10126         (print_allocno_costs): Use regno_cost_classes instead of
10127         cost_classes.
10128         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
10129         (find_costs_and_classes): Set up cost classes for each registers.
10130         Use also their mode for this.  Use regno_cost_classes instead of
10131         cost_classes.
10132         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
10133         cost_classes.
10134         (free_ira_costs, ira_init_costs): Don't use cost_classes.
10135         (ira_costs, ira_set_pseudo_classes): Call
10136         initiate_regno_cost_classes and finish_regno_cost_classes.
10138         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
10140         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
10142         * target.def (ira_cover_classes): Remove.
10144         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
10146         * doc/tm.texi.in: Ditto.
10148         * ira-conflicts.c: Remove mentioning cover classes from the file.
10149         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
10150         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
10152         * targhooks.c (default_ira_cover_classes): Remove.
10154         * targhooks.h (default_ira_cover_classes): Ditto.
10156         * haifa-sched.c: Remove mentioning cover classes from the file.
10157         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
10158         ira_pressure_classes and ira_pressure_classes_num instead of
10159         ira_reg_class_cover_size and ira_reg_class_cover.  Use
10160         sched_regno_pressure_class instead of sched_regno_cover_class.
10161         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
10162         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10164         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
10165         classes from the file.
10166         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
10167         (struct object_hard_regs, struct object_hard_regs_node): New.
10168         (struct ira_object): New members profitable_hard_regs,
10169         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
10170         (struct ira_allocno): Rename cover_class to aclass.  Rename
10171         cover_class_cost and updated_cover_class_cost to class_cost and
10172         updated_class_cost.  Remove splay_removed_p and
10173         left_conflict_size.  Add new members colorable_p.
10174         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
10175         (ALLOCNO_COLORABLE_P): New macro.
10176         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
10177         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
10178         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
10179         (OBJECT_...): Rename parameter C to O.
10180         (OBJECT_PROFITABLE_HARD_REGS): New macro.
10181         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
10182         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
10183         (struct target_ira_int): New members x_ira_max_memory_move_cost,
10184         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
10185         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
10186         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
10187         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
10188         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
10189         x_ira_reg_class_subunion.
10190         (ira_max_memory_move_cost, ira_max_register_move_cost)
10191         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
10192         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
10193         (ira_important_class_nums, ira_reg_class_superunion): New macros.
10194         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
10195         (ira_reg_class_union): Rename to ira_reg_class_subunion.
10196         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10197         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10198         (ira_tune_allocno_costs_and_cover_classes): Rename to
10199         ira_tune_allocno_costs.
10200         (ira_debug_hard_regs_forest): New.
10201         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
10202         (ira_object_conflict_iter_next): Fix comments.
10203         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
10204         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
10205         cover_class to aclass.
10206         (ira_allocate_and_accumulate_costs): Ditto.
10207         (ira_allocate_and_set_or_copy_costs): Ditto.
10209         * opts.c (decode_options): Remove ira_cover_class check.
10211         * ira-color.c: Remove mentioning cover classes from the file.  Use
10212         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
10213         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
10214         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
10215         (splay-tree.h): Remove include.
10216         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
10217         before copy_freq_compare_func.
10218         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
10219         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
10220         New definitions.
10221         (hard_regs_roots, hard_regs_node_vec): Ditto.
10222         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
10223         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
10224         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
10225         (create_new_object_hard_regs_node): Ditto.
10226         (add_new_object_hard_regs_node_to_forest): Ditto.
10227         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
10228         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
10229         Ditto.
10230         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
10231         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
10232         (remove_unused_object_hard_regs_nodes): Ditto.
10233         (enumerate_object_hard_regs_nodes): Ditto.
10234         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
10235         (object_hard_regs_subnode_t): Ditto.
10236         (struct object_hard_regs_subnode): Ditto.
10237         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
10238         (setup_object_hard_regs_subnode_index): Ditto.
10239         (get_object_hard_regs_subnodes_num): Ditto.
10240         (form_object_hard_regs_nodes_forest): Ditto.
10241         (finish_object_hard_regs_nodes_tree): Ditto.
10242         (finish_object_hard_regs_nodes_forest): Ditto.
10243         (allocnos_have_intersected_live_ranges_p): Rename to
10244         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
10245         (pseudos_have_intersected_live_ranges_p): Rename to
10246         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
10247         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
10248         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
10249         (update_copy_costs): Remove assert.  Skip cost update if the hard
10250         reg does not belong the class.
10251         (assign_hard_reg): Process only profitable hard regs.
10252         (uncolorable_allocnos_num): Make it scalar.
10253         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
10254         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
10255         and ira_reg_class_max_nregs.
10256         (bucket_allocno_compare_func): Check frequency first.
10257         (sort_bucket): Add compare function as a parameter.
10258         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
10259         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
10260         (push_allocno_to_stack): Rewrite for checking new allocno
10261         colorability.
10262         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
10263         (push_only_colorable): Pass new parameter to sort_bucket.
10264         (push_allocno_to_spill): Remove.
10265         (allocno_spill_priority_compare): Make it inline and rewrite.
10266         (splay_tree_allocate, splay_tree_free): Remove.
10267         (allocno_spill_sort_compare): New function.
10268         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
10269         build and use splay tree.  Choose first allocno in uncolorable
10270         allocno bucket to spill.  Remove setting spill cost.
10271         (all_conflicting_hard_regs): Remove.
10272         (setup_allocno_available_regs_num): Check only profitable hard
10273         regs.  Print info about hard regs nodes.
10274         (setup_allocno_left_conflicts_size): Remove.
10275         (put_allocno_into_bucket): Don't call
10276         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
10277         (improve_allocation): New.
10278         (color_allocnos): Call setup_profitable_hard_regs,
10279         form_object_hard_regs_nodes_forest, improve_allocation,
10280         finish_object_hard_regs_nodes_forest.  Setup spill cost.
10281         (print_loop_title): Use pressure classes.
10282         (color_allocnso): Ditto.
10283         (do_coloring): Remove allocation and freeing splay_tree_node_pool
10284         and allocnos_for_spilling.
10285         (ira_sort_regnos_for_alter_reg): Don't setup members
10286         {first,next}_coalesced_allocno.
10287         (color): Remove allocating and freeing removed_splay_allocno_vec.
10288         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
10289         prohibited_class_mode_regs.
10291         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
10292         formatting.
10293         (update_allocno_pressure_excess_length): Use pressure classes.
10294         (inc_register_pressure, dec_register_pressure): Check for pressure
10295         class.
10296         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
10297         pressure class.  Use ira_reg_class_nregs instead of
10298         ira_reg_class_max_nregs.
10299         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
10300         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
10301         (single_reg_class): Use ira_reg_class_nregs instead of
10302         ira_reg_class_max_nregs.
10303         (process_bb_node_lives): Use pressure classes.
10305         * ira-emit.c: Remove mentioning cover classes from the file.  Use
10306         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
10307         (change_loop): Use pressure classes.
10308         (modify_move_list): Call ira_set_allocno_class instead of
10309         ira_set_allocno_cover_class.
10311         * ira-build.c: Remove mentioning cover classes from the file.  Use
10312         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
10313         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
10314         ALLOCNO_UPDATED_CLASS_COST instead of
10315         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
10316         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
10317         (ira_create_allocno): Remove initialization of
10318         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
10319         ALLOCNO_COLORABLE_P.
10320         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10321         Update conflict regs for the objects.
10322         (create_cap_allocno): Remove assert.  Don't propagate
10323         ALLOCNO_AVAILABLE_REGS_NUM.
10324         (ira_free_allocno_costs): New function.
10325         (finish_allocno): Change a part of code into call of
10326         ira_free_allocno_costs.
10327         (low_pressure_loop_node_p): Use pressure classes.
10328         (object_range_compare_func): Don't compare classes.
10329         (setup_min_max_conflict_allocno_ids): Ditto.
10331         * loop-invariant.c: Remove mentioning cover classes from the file.
10332         Use ira_pressure_classes and ira_pressure_classes_num instead of
10333         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
10334         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
10335         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10336         Use reg_allocno_class instead of reg_cover_class.
10337         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
10338         STACK_REG_COVER_CLASS.
10339         (get_regno_cover_class): Rename to get_regno_pressure_class.
10340         (move_loop_invariants): Initialize and finalize regstat.
10342         * ira.c: Remove mentioning cover classes from the file.  Add
10343         comments about coloring without cover classes.  Use ALLOCNO_CLASS
10344         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
10345         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
10346         setup_class_subset_and_memory_move_costs.
10347         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
10348         (setup_cover_and_important_classes): Rename to
10349         setup_allocno_and_important_classes.
10350         (setup_class_translate_array): New.
10351         (setup_class_translate): Call it for allocno and pressure classes.
10352         (cover_class_order): Rename to allocno_class_order.
10353         (comp_reg_classes_func): Use ira_allocno_class_translate instead
10354         of ira_class_translate.
10355         (reorder_important_classes): Set up ira_important_class_nums.
10356         (setup_reg_class_relations): Set up ira_reg_class_superunion.
10357         (print_class_cover): Rename to print_classes.  Add parameter.
10358         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10359         Print pressure classes too.
10360         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
10361         setup_reg_subclasses.
10362         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10363         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10364         (setup_prohibited_class_mode_regs): Use
10365         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
10366         (clarify_prohibited_class_mode_regs): New function.
10367         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
10368         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
10369         (ira_init_once): Initialize them.
10370         (free_register_move_costs): Process them.
10371         (ira_init): Move calls of find_reg_classes and
10372         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
10373         Call clarify_prohibited_class_mode_regs.
10374         (ira_no_alloc_reg): Remove.
10375         (too_high_register_pressure_p): Use pressure classes.
10377         * sched-deps.c: Remove mentioning cover classes from the file.
10378         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
10379         ira_pressure_classes and ira_pressure_classes_num instead of
10380         ira_reg_class_cover_size and ira_reg_class_cover.
10381         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
10382         sched_regno_pressure_class instead of sched_regno_cover_class.
10383         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
10384         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10386         * ira.h: Add 2010 to Copyright.
10387         (ira_no_alloc_reg): Remove external.
10388         (struct target_ira): Rename x_ira_hard_regno_cover_class,
10389         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
10390         x_ira_class_translate to x_ira_hard_regno_allocno_class,
10391         x_ira_allocno_classes_num, x_ira_allocno_classes, and
10392         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
10393         x_ira_pressure_classes, x_ira_pressure_class_translate, and
10394         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
10395         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
10396         x_ira_no_alloc_regs.
10397         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10398         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
10399         ira_allocno_classes_num and ira_allocno_classes.
10400         (ira_class_translate): Rename to ira_allocno_class_translate.
10401         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
10402         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
10403         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10404         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
10405         (ira_no_alloc_regs): New.
10407         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
10408         classes from the file.  Use ALLOCNO_CLASS instead of
10409         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
10410         ALLOCNO_COVER_CLASS_COST.
10411         (regno_cover_class): Rename to regno_aclass.
10412         (record_reg_classes): Use ira_reg_class_subunion instead of
10413         ira_reg_class_union.
10414         (record_address_regs): Check overflow.
10415         (scan_one_insn): Ditto.
10416         (print_allocno_costs): Print total mem cost fore regional allocation.
10417         (print_pseudo_costs): Use REG_N_REFS.
10418         (find_costs_and_classes): Use classes intersected with them on the
10419         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
10420         ira_reg_class_union.  Use ira_allocno_class_translate and
10421         regno_aclass instead of ira_class_translate and regno_cover_class.
10422         Modify code for finding regno_aclass.  Setup preferred classes for
10423         the next pass.
10424         (setup_allocno_cover_class_and_costs): Rename to
10425         setup_allocno_class_and_costs.  Use regno_aclass instead of
10426         regno_cover_class.  Use ira_set_allocno_class instead of
10427         ira_set_allocno_cover_class.
10428         (init_costs, finish_costs): Use regno_aclass instead of
10429         regno_cover_class.
10430         (ira_costs): Use setup_allocno_class_and_costs instead of
10431         setup_allocno_cover_class_and_costs.
10432         (ira_tune_allocno_costs_and_cover_classes): Rename to
10433         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
10434         by processing objects.  Use ira_reg_class_max_nregs instead of
10435         ira_reg_class_nregs.
10437         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
10439         * sched-int.h: Remove mentioning cover classes from the file.
10440         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
10442         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
10443         classes from the file.
10444         (struct reg_pref): Rename coverclass into allocnoclass.
10445         (reg_cover_class): Rename to reg_allocno_class.
10447         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
10449         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
10451         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
10453         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
10455         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
10457         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
10459         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
10461         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
10463         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
10465         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
10467         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
10468         (i386_ira_cover_classes): Ditto.
10470         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
10472         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
10474         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
10476         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
10478         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
10480         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
10482         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
10483         (mips_ira_cover_classes): Ditto.
10485         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
10487         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
10489         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
10491         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
10493         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
10495         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
10496         (IRA_COVER_CLASSES_VSX): Ditto.
10498         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
10499         (rs6000_ira_cover_classes): Ditto.
10501         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
10503         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
10505         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
10507         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
10509         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
10511         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
10513         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
10515         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
10517         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
10519         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
10521 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
10523         PR debug/48253
10524         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
10525         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
10526         dw_fde_unlikely_section_end_label, cold_in_std_section,
10527         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
10528         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
10529         fields.
10530         (output_fde): Use dw_fde_second_{begin,end} if second is
10531         true, otherwise dw_fde_{begin,end}.
10532         (output_call_frame_info): Test dw_fde_second_begin != NULL
10533         instead of dw_fde_switched_sections.
10534         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
10535         fields, initialize new fields.  Initialize in_std_section
10536         unconditionally from the first partition.
10537         (dwarf2out_end_epilogue): Don't override dw_fde_end when
10538         dw_fde_second_begin is non-NULL.
10539         (dwarf2out_switch_text_section): Stop initializing removed
10540         dw_fde_struct fields, initialize new fields, initialize
10541         also dw_fde_end here.  Set dw_fde_switch_cfi even when
10542         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
10543         (struct var_loc_list_def): Add last_before_switch field.
10544         (arange_table, arange_table_allocated, arange_table_in_use,
10545         ARANGE_TABLE_INCREMENT, add_arange): Removed.
10546         (size_of_aranges): Count !in_std_section and !second_in_std_section
10547         hunks in fdes, instead of looking at arange_table_in_use.
10548         (output_aranges): Add aranges_length argument, don't call
10549         size_of_aranges here.  Instead of using aranges_table*
10550         emit ranges for fdes when !in_std_section resp.
10551         !second_in_std_section.
10552         (dw_loc_list): Break ranges crossing section switch.
10553         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
10554         use dw_fde_second_end instead of dw_fde_end as end of last range.
10555         (gen_subprogram_die): Don't call add_arange.  Use
10556         dw_fde_{begin,end} for first partition and if switched
10557         section dw_fde_second_{begin,end} for the second.
10558         (var_location_switch_text_section_1,
10559         var_location_switch_text_section): New functions.
10560         (dwarf2out_begin_function): Initialize cold_text_section even
10561         when function_section () isn't text_section.
10562         (prune_unused_types): Don't walk arange_table.
10563         (dwarf2out_finish): Don't needlessly test
10564         flag_reorder_blocks_and_partition when testing cold_text_section_used.
10565         If info_section_emitted, call size_of_aranges and if it indicates
10566         non-empty .debug_aranges, call output_aranges with the computed
10567         size.  Stop using removed dw_fde_struct fields, use
10568         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
10569         for second.
10571         PR debug/48203
10572         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10573         create ENTRY_VALUE if incoming or address of incoming's MEM
10574         is a hard REG.
10575         * dwarf2out.c (mem_loc_descriptor): Don't emit
10576         DW_OP_GNU_entry_value of DW_OP_fbreg.
10577         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10578         on ENTRY_VALUE is able to find the canonical parameter VALUE.
10579         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10580         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10581         ENTRY_VALUE_EXPs.
10582         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10583         is a REG_P or MEM_P with REG_P address, compute hash directly
10584         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10585         (preserve_only_constants): Don't clear VALUES forwaring
10586         ENTRY_VALUE to some other VALUE.
10588 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
10590         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10591         instead of GEN_INT.
10593 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
10595         * cfgexpand.c (expand_gimple_cond): Always set the source location and
10596         block before expanding the statement.
10597         (expand_gimple_stmt_1): Likewise.  Set them here...
10598         (expand_gimple_stmt): ...and not here.  Tidy.
10599         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10600         unknown.
10602 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
10604         * Makefile.in: New rule for cprop.o.
10605         * gcse.c: Move constant/copy propagation to cprop.c.
10606         (compute_local_properties): Only handle expression tables.
10607         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10608         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10609         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10610         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10611         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10612         compute_cprop_data, find_used_regs, try_replace_reg,
10613         find_avail_set, cprop_jump, constprop_register, cprop_insn,
10614         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10615         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10616         find_bypass_set, reg_killed_on_edge, bypass_block,
10617         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10618         execute_rtl_cprop, pass_rtl_cprop): Move to...
10619         * cprop.c: ...here.  New file, constant/copy propagation for RTL
10620         moved from gcse.c to here with minor cleanups in duplicated code.
10622 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
10624         * config/i386/i386.c (flag_opts): Fix a typo in
10625         -mavx256-split-unaligned-store.
10627 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
10629         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10630         LIBCALL_VALUE): Remove macros.
10631         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10632         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10633         (h8300_function_value, h8300_libcall_value,
10634         h8300_function_value_regno_p): New functions.
10636 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
10638         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10640 2011-03-28  Jeff Law  <law@redhat.com>
10642         * tree-ssa-threadupdate.c (redirect_edges): Call
10643         create_edge_and_update_destination_phis as needed.
10644         (create_edge_and_update_destination_phis): Accept new BB argument.
10645         All callers updated.
10646         (thread_block): Do not update the profile when threading around
10647         intermediate blocks.
10648         (thread_single_edge): Likewise.
10649         (determine_bb_domination_status): If BB is not a successor of the
10650         loop header, return NONDOMINATING.
10651         (register_jump_thread): Note when we register a jump thread around
10652         an intermediate block.
10653         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10654         (thread_across_edge): Use it.
10656 2011-03-28  Tristan Gingold  <gingold@adacore.com>
10658         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10659         when for_return is 2.
10661 2011-03-28  Jeff Law  <law@redhat.com>
10663         * var-tracking.c (canonicalize_values_mark): Delete unused
10664         lhs assignment.
10665         (canonicalize_values_star, set_variable_part): Likewise.
10666         (clobber_variable_part, delete_variable_part): Likewise.
10668 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
10670         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10672 2011-03-28  Martin Jambor  <mjambor@suse.cz>
10674         * tree-inline.c (expand_call_inline): Do not check that destination
10675         node is analyzed.
10676         (optimize_inline_calls): Assert that destination node is analyzed.
10677         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10678         not call tree_lowering_passes.
10679         * cgraph.h (cgraph_analyze_function): Declare.
10680         * cgraphunit.c (cgraph_analyze_function): Make public.
10682 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
10684         * config/sparc/sparc-opts.h: New.
10685         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10686         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10687         (sparc_option_override): Store processor_type enumeration rather
10688         than string in cpu_default.  Remove name and enumeration from
10689         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
10690         without using sparc_select.  Use target_flags_explicit instead of
10691         fpu_option_set.
10692         * config/sparc/sparc.h (enum processor_type): Move to
10693         sparc-opts.h.
10694         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10695         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10696         HeaderInclude entry.
10697         (mcpu=, mtune=): Use Var and Enum.
10698         (sparc_processor_type): New Enum and EnumValue entries.
10700 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10701             Iain Sandoe  <iains@gcc.gnu.org>
10703         PR target/48245
10704         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10706 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
10708         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10709         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10710         Insert new statements at it in lieu of STMT.
10711         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10712         * tree-vect-stmts.c (vectorizable_store): Likewise.
10713         (vectorizable_load): Likewise.
10715 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
10717         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10718         (divtf3): Ditto.
10719         (multf3): Ditto.
10720         (subtf3): Ditto.
10722 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
10724         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10725         unaligned 256bit load/store.
10726         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10727         (*avx_movdqu<avxmodesuffix>): Likewise.
10729 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10731         PR target/48288
10732         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10733         * config/pa/pa.md (iordi3): Use new predicate in expander.
10734         (iorsi3): Likewise.
10736 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
10738         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10739         FUNCTION_VALUE_REGNO_P): Remove macros.
10740         * config/mips/mips-protos.h (mips_function_value): Remove.
10741         * config/mips/mips.c (mips_function_value): Rename to...
10742         (mips_function_value_1): ... this. Make static.  Handle receiving
10743         the function type in 'fn_decl_or_type' argument.
10744         (mips_function_value, mips_libcall_value,
10745         mips_function_value_regno_p): New function.
10746         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10747         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10749 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
10751         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10752         and -mavx256-split-unaligned-store.
10753         (ix86_option_override_internal): Split 32-byte AVX unaligned
10754         load/store by default.
10755         (ix86_avx256_split_vector_move_misalign): New.
10756         (ix86_expand_vector_move_misalign): Use it.
10758         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10759         -mavx256-split-unaligned-store.
10761         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10762         256bit load/store.  Generate unaligned store on misaligned memory
10763         operand.
10764         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10765         256bit load/store.
10766         (*avx_movdqu<avxmodesuffix>): Likewise.
10768         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10769         -mavx256-split-unaligned-store.
10771 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
10773         PR target/38598
10774         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10775         Update commentary.
10777 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
10779         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10780         opno arguments with an expand_operand.  Use create_input_operand.
10781         (mips_prepare_builtin_target): Delete.
10782         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10783         functions.
10784         (mips_expand_builtin_direct): Use create_output_operand and
10785         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
10786         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
10787         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10789 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
10791         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10792         function.
10793         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10795 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
10797         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10798         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
10799         basic blocks and call commit_edge_insertions directly.
10800         (fixup_abnormal_edges): Move from here to...
10801         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
10802         on the edges and return whether some have actually been inserted.
10803         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10804         compensation code.
10806 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
10808         PR rtl-optimization/48144
10809         * sel-sched-ir.c (merge_history_vect): Factor out from ...
10810         (merge_expr_data): ... here.
10811         (av_set_intersect): Rename to av_set_code_motion_filter.
10812         Update all callers.  Call merge_history_vect when an expression
10813         is found in both sets.
10814         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10816 2011-03-26  Alan Modra  <amodra@gmail.com>
10818         * config/rs6000/predicates.md (word_offset_memref_op): Handle
10819         cmodel medium addresses.
10820         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10821         64-bit gpr loads and stores.
10822         (rs6000_secondary_reload_ppc64): New function.
10823         * config/rs6000/rs6000-protos.h: Declare it.
10824         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10826 2011-03-26  Alan Modra  <amodra@gmail.com>
10828         PR target/47487
10829         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10830         GNU Go in traceback table.
10832 2011-03-25  Richard Henderson  <rth@redhat.com>
10834         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10835         if there are exactly 6 operands.
10836         (set_storage_via_setmem): Similarly.
10838 2011-03-25  Kai Tietz  <ktietz@redhat.com>
10840         * collect2.c (write_c_file_stat): Handle backslash
10841         as right-hand directory separator.
10842         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10843         checking just for slash.
10844         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10845         instead of checking for trailing slash.
10846         * gcc.c (record_temp_file): Use filename_cmp instead
10847         of strcmp.
10848         (do_spec_1): Likewise.
10849         (replace_outfile_spec_function): Likewise.
10850         (is_directory): Use filename_ncmp instead of strncmp.
10851         (print_multilib_info): Likewise.
10852         * gcov.c (find_source): Use filename_cmp instead
10853         instead of strcmp.
10854         (make_gcov_file_name): Fix order of slash/backslash
10855         checks.
10856         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10857         (add_standard_paths): Likewise.
10858         * mips-tfile.c (saber_stop): Handle backslash.
10859         * prefix.c (update_path): Use filename_ncmp instead of
10860         strncmp.
10861         * profile.c (output_location): Use filename_cmp instead
10862         of strcmp.
10863         * read-md.c (handle_toplevel_file): Handle backslash.
10864         * tlink.c (frob_extension):  Likewise.
10865         * tree-cfg.c (same_line_p): Use filename_cmp instead of
10866         strcmp.
10867         * tree-dump.c (dequeue_and_dump): Handle backslash.
10868         * tree.c (get_file_function_name): Likewise.
10869         * gengtype.c (read_input_list): Likewise.
10870         (get_file_realbasename): Likewise.
10871         (get_output_file_with_visibility): Use filename_cmp
10872         instead of strcmp.
10874 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
10876         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10877         case to VFPv1.
10879 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
10881         * fold-const.c (expr_location_or): New function.
10882         (fold_truth_not_expr): Call it.
10884 2011-03-25  Jeff Law  <law@redhat.com>
10886         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10887         va_end.
10888         * c-family/c-common.c (def_fn_type): Likewise.
10889         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10890         * emit-rtl.c (gen_rtvec): Likewise.
10891         * lto/lto-lang.c (def_fn_type): Likewise.
10893 2011-03-25  Richard Guenther  <rguenther@suse.de>
10895         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10896         also generate copies.
10897         (fini_copy_prop): Handle constant values properly.
10899 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
10901         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10902         mode size instead of bitsize with DWARF2_ADDR_SIZE.
10903         (hash_loc_operands, compare_loc_operands): Handle
10904         DW_OP_GNU_entry_value.
10906 2011-03-25  Kai Tietz  <ktietz@redhat.com>
10908         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10909         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10910         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10911         comment and use macro TARGET_64BIT_MS_ABI instead.
10912         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10913         and change default behavior for 32-bit MS_ABI.
10914         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10915         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10916         32-bit, too.
10917         (ix86_cfun_abi): Likewise.
10918         (ix86_maybe_switch_abi): Adjust comment.
10919         (init_cumulative_args): Check for bit-ness in MS_ABI case.
10920         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10921         instead of checking for SYSV_ABI.
10922         (ix86_nsaved_sseregs): Likewise.
10923         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10924         to 16 bytes.
10925         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10926         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10927         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10928         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10929         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10931 2011-03-25  Richard Guenther  <rguenther@suse.de>
10933         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10934         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10935         (verify_gimple): Remove.
10936         * tree-cfg.c (verify_gimple_call): Merge verification
10937         from verify_stmts.
10938         (verify_gimple_phi): Merge verification from verify_stmts.
10939         (verify_gimple_label): New function.
10940         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10941         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10942         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10943         (verify_stmts): Rename to verify_gimple_in_cfg.
10944         (verify_gimple_in_cfg): New function.
10945         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10946         * tree-ssa.c (verify_ssa): Likewise.
10947         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10949 2011-03-25  Richard Guenther  <rguenther@suse.de>
10951         * passes.c (init_optimization_passes): Add FRE pass after
10952         early SRA.
10954 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
10955             Andrew Stubbs  <ams@codesourcery.com>
10957         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10958         for Cortex-A8.
10959         (arm_movdi_vfp_cortexa8): New pattern.
10960         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10961         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10962         instructions when tuning for Cortex-A8.  Set attribute "arch".
10963         * config/arm/arm.md: Move include arm-tune.md up a bit.
10964         (define_attr "arch"): Add "onlya8" and "nota8" values.
10965         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10967 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
10969         PR bootstrap/48282
10970         Revert:
10971         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
10973         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10974         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
10975         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10976         * passes.c (init_optimization_passes): Move
10977         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10979 2011-03-25  Kai Tietz  <ktietz@redhat.com>
10981         * c-typeck.c (comptypes_internal): Replace target
10982         hook call of comp_type_attributes by version in tree.c file.
10983         * gimple.c (gimple_types_compatible_p_1): Likewise.
10984         * tree-ssa.c (useless_type_conversion_p): Likewise.
10985         * tree.c (build_type_attribute_qual_variant): Likewise.
10986         (attribute_value_equal): New static helper function.
10987         (comp_type_attributes): New function.
10988         (merge_attributes): Use attribute_value_equal for comparison.
10989         (attribute_list_contained): Likewise.
10990         * tree.h (comp_type_attributes): New prototype.
10992 2011-03-25  Richard Guenther  <rguenther@suse.de>
10994         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10995         of complex types at -O0.
10996         (verify_gimple_assign_binary): Likewise.
10997         (verify_gimple_assign_ternary): Likewise.
10999 2011-03-24  Mark Wielaard  <mjw@redhat.com>
11001         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
11002         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
11004 2011-03-24  Mark Wielaard  <mjw@redhat.com>
11006         PR debug/48041
11007         * dwarf2out.c (output_abbrev_section): Only write table when
11008         abbrev_die_table_in_use > 1.
11010 2011-02-24  Richard Henderson  <rth@redhat.com>
11012         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
11013         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
11014         (alpha_expand_unaligned_load_words): Use extql.
11015         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
11016         (emit_insxl): Handle all modes for consistency.
11018 2011-02-24  Richard Henderson  <rth@redhat.com>
11020         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
11021         (alpha_expand_unaligned_load): Likewise.
11022         (alpha_expand_unaligned_store): Likewise.
11023         (alpha_expand_unaligned_load_words): Likewise.
11024         (alpha_expand_unaligned_store_words): Likewise.
11025         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
11026         (alpha_split_lock_test_and_set_12): Likewise.
11027         (print_operand, alpha_fold_builtin_extxx): Likewise.
11028         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
11029         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
11030         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
11031         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
11032         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
11033         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
11034         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
11035         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
11036         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
11037         (extwl, extll, extql): Similarly.
11038         (inswh, inslh, insqh): Similarly.
11039         (mskbl, mskwl, mskll, mskql): Similarly.
11040         (mskwh, msklh, mskqh): Similarly.
11042 2011-02-24  Richard Henderson  <rth@redhat.com>
11044         * config/alpha/alpha.md (attribute isa): Add er, ner.
11045         (attribute enabled): Handle them.
11046         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
11048 2011-02-24  Richard Henderson  <rth@redhat.com>
11050         * config/alpha/alpha.md (attribute isa): Add vms.
11051         (attribute enabled): Handle it.
11052         (*movsf): Merge *movsf_{nofix,fix,nofp}.
11053         (*movdf): Merge *movdf_{nofix,fix,nofp}.
11054         (*movtf): Rename from *movtf_internal for consistency.
11055         (*movsi): Merge with *movsi_nt_vms.
11056         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
11057         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
11058         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
11059         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
11061 2011-02-24  Richard Henderson  <rth@redhat.com>
11063         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
11064         (extendqisi2, extendhisi2): Likewise.
11065         (extendqidi2): Simplify BWX/non-BWX expansions.
11066         (extendhidi2): Similarly.
11068 2011-02-24  Richard Henderson  <rth@redhat.com>
11070         * config/alpha/alpha.md (attribute isa): New.
11071         (attribute enabled): New.
11072         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
11073         (zero_extendqisi2, zero_extendqidi2): Similarly.
11074         (zero_extendhisi2, zero_extendhidi2): Similarly.
11075         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
11077 2011-02-24  Richard Henderson  <rth@redhat.com>
11079         * config/alpha/predicates.md (input_operand): Revert last change;
11080         update comment to mention 32-bit VMS rather than Windows.
11082 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
11084         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11085         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
11086         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11087         * passes.c (init_optimization_passes): Move
11088         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11090 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
11092         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
11094 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
11096         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
11097         correctly.
11099 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
11101         PR debug/48204
11102         * simplify-rtx.c (simplify_const_unary_operation): Call
11103         real_convert when changing mode class with FLOAT_EXTEND.
11105 2011-03-24  Nick Clifton  <nickc@redhat.com>
11107         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
11108         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11109         * config/rx/rx.c (rx_option_override): Set align_jumps,
11110         align_loops and align_labels if not set by the user.
11111         (rx_align_for_label): New function.
11112         (rx_max_skip_for_label): New function.
11113         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
11114         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
11115         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
11116         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
11117         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
11119 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
11121         PR rtl-optimization/48263
11122         * optabs.c (expand_binop_directly): Reinstate convert_modes code
11123         and original commutative_p handling.  Use maybe_gen_insn.
11125 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11127         * reload.c (find_reloads_subreg_address): Add address_reloaded
11128         parameter and return true there if the full address has been
11129         reloaded.
11130         (find_reloads_toplev): Pass address_reloaded flag.
11131         (find_reloads_address_1): Don't use address_reloaded parameter.
11133 2011-03-24  Jeff Law  <law@redhat.com>
11135         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
11136         unused variable "ann".
11137         (remove_unused_locals): Likewise.
11139         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
11140         statement.
11142         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
11143         after it is freed.
11145 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11147         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
11148         for invalid symbolic addresses.
11149         (s390_secondary_reload): Don't use s390_check_symref_alignment for
11150         larl operands.
11152 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
11154         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
11155         the argument in calls to fold_truth_not_expr.
11157 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
11159         * tree.c (record_node_allocation_statistics): New function.
11160         (make_node_stat, copy_node_stat, build_string): Call it.
11161         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
11162         (build1_stat, build_omp_clause): Likewise.
11164 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
11166         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
11167         last commit.
11169 2011-03-24  Richard Guenther  <rguenther@suse.de>
11171         PR tree-optimization/48271
11172         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
11173         blocks that still exist.
11175 2011-03-24  Richard Guenther  <rguenther@suse.de>
11177         PR tree-optimization/48270
11178         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
11179         not free datarefs before ddrs.
11181 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
11183         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
11184         from the address built for a reference with variable offset.
11186 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
11188         PR target/48237
11189         * config/i386/i386.md (*movdf_internal_rex64): Do not split
11190         alternatives that can be handled with movq or movabsq insn.
11191         (*movdf_internal): Disable for !TARGET_64BIT.
11192         (*movdf_internal_nointeger): Ditto.
11193         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
11195 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
11197         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11198         (FUNCTION_ARG_ADVANCE): Likewise.
11199         * tm.texi.in: Change references to them to hook references.
11200         * tm.texi: Regenerate.
11201         * targhooks.c (default_function_arg): Eliminate check for target macro.
11202         (default_function_incoming_arg): Likewise.
11203         (default_function_arg_advance): Likewise.
11204         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11205         (function_arg_advance): Likewise.
11206         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11208 2011-03-24  Richard Guenther  <rguenther@suse.de>
11210         PR middle-end/48269
11211         * tree-object-size.c (addr_object_size): Do not double-account
11212         for MEM_REF offsets.
11214 2011-03-24  Diego Novillo  <dnovillo@google.com>
11216         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
11217         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
11218         (lto_input_data_block): Move from lto-opts.c.  Make extern.
11219         Update all users.
11220         (lto_input_string): Rename from input_string.  Make extern.
11221         Update all users.
11222         * lto-streamer-out.c (lto_output_string_with_length): Rename from
11223         output_string_with_length.
11224         Output 0 to indicate a non-NULL string.  Update all callers to
11225         not emit 0.
11226         (lto_output_string): Rename from output_string.  Make extern.
11227         Update all users.
11228         (lto_output_decl_state_streams): Make extern.
11229         (lto_output_decl_state_refs): Make extern.
11230         * lto-streamer.h (lto_input_string): Declare.
11231         (lto_input_data_block): Declare.
11232         (lto_output_string): Declare.
11233         (lto_output_string_with_length): Declare.
11234         (lto_output_decl_state_streams): Declare.
11235         (lto_output_decl_state_refs): Declare.
11237 2011-03-24  Richard Guenther  <rguenther@suse.de>
11239         PR tree-optimization/46562
11240         * tree.c (build_invariant_address): New function.
11241         * tree.h (build_invariant_address): Declare.
11242         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
11243         a renamed function moved ...
11244         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
11245         Take valueization callback parameter.
11246         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
11247         * gimple-fold.h: New file.
11248         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
11249         (ccp_fold, fold_const_aggregate_ref,
11250         fold_ctor_reference, fold_nonarray_ctor_reference,
11251         fold_array_ctor_reference, fold_string_cst_ctor_reference,
11252         get_base_constructor): Move ...
11253         * gimple-fold.c: ... here.
11254         (gimple_fold_stmt_to_constant_1): New function
11255         split out from ccp_fold.  Take a valueization callback parameter.
11256         Valueize all operands.
11257         (gimple_fold_stmt_to_constant): New wrapper function.
11258         (fold_const_aggregate_ref_1): New function split out from
11259         fold_const_aggregate_ref.  Take a valueization callback parameter.
11260         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
11261         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
11262         invariant POINTER_PLUS_EXPRs to invariant form.
11263         (vn_valueize): New function.
11264         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
11265         * tree-vrp.c (vrp_valueize): New function.
11266         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
11267         to fold statements to constants.
11268         * tree-ssa-pre.c (eliminate): Properly guard propagation of
11269         function declarations.
11270         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
11271         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
11273 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
11275         * config/h8300/predicates.md (jump_address_operand): Fix register
11276         mode check.
11278 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
11280         * doc/invoke.texi (max-stores-to-sink): Document.
11281         * params.h (MAX_STORES_TO_SINK): Define.
11282         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
11283         if either vectorization or if-conversion is disabled.
11284         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
11285         tree-vect-data-refs.c vect_equal_offsets.
11286         (dr_equal_offsets_p): New function.
11287         (find_data_references_in_bb): Remove static.
11288         * tree-data-ref.h (find_data_references_in_bb): Declare.
11289         (dr_equal_offsets_p): Likewise.
11290         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
11291         (vect_drs_dependent_in_basic_block): Update calls to
11292         vect_equal_offsets.
11293         (vect_check_interleaving): Likewise.
11294         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
11295         (cond_if_else_store_replacement): Rename to...
11296         (cond_if_else_store_replacement_1): ... this.  Change arguments and
11297         documentation.
11298         (cond_if_else_store_replacement): New function.
11299         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
11300         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
11302 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
11304         PR target/46934
11305         * config/arm/arm.md (casesi): Use the gen_int_mode() function
11306         to subtract lower bound instead of GEN_INT().
11308 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
11310         PR other/48179
11311         PR other/48221
11312         PR other/48234
11313         * doc/extend.texi (Alignment): Move section to match order in TOC.
11314         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
11315         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
11317 2011-03-23  Jeff Law  <law@redhat.com>
11319         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
11320         before removing the edge.
11322         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
11323         it may have been freed by redirect_branch_edge or
11324         redirect_edge_succ_nodup.
11326 2011-03-23  Richard Guenther  <rguenther@suse.de>
11328         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
11329         (check_va_list_escapes): Likewise.
11330         (check_all_va_list_escapes): Likewise.
11332 2011-03-23  Richard Guenther  <rguenther@suse.de>
11334         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
11335         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
11336         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
11337         (alias.o): Likewise.
11338         (ipa-type-escape.o): Remove.
11339         (ipa-struct-reorg.o): Likewise.
11340         (GTFILES): Remove ipa-struct-reorg.c.
11341         * alias.c: Do not include ipa-type-escape.h.
11342         * tree-ssa-alias.c: Likewise.
11343         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
11344         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
11345         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
11346         and ipa-type-escape passes.
11347         * tree-pass.h (pass_ipa_type_escape): Remove.
11348         (pass_ipa_struct_reorg): Likewise.
11349         * ipa-struct-reorg.h: Remove.
11350         * ipa-struct-reorg.c: Likewise.
11351         * ipa-type-escape.h: Likewise.
11352         * ipa-type-escape.c: Likewise.
11353         * doc/invoke.texi (-fipa-struct-reorg): Remove.
11354         (--param struct-reorg-cold-struct-ratio): Likewise.
11355         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11356         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11357         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
11359 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11361         * config/s390/2084.md: Enable all insn reservations also for z9_ec
11362         cpu attribute value.
11363         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
11364         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
11365         * config/s390/s390.c (processor_flags_table): New constant array.
11366         (s390_handle_arch_option): Remove.
11367         (s390_handle_option): Remove s390_handle_arch_option invocations
11368         and OPT_mwarn_framesize_ handling.
11369         (s390_option_override): Remove s390_handle_arch_option invocation.
11370         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
11371         warnings.
11372         * config/s390/s390.md (cpu attribute): Add z9_ec value.
11373         * config/s390/s390.opt (s390_tune, s390_arch)
11374         (march=): Replace s390_arch_option enum and values with
11375         processor_type.  Set variable name to s390_arch.  Set
11376         initialization value.
11377         (mtune=): Replace s390_arch_option with processor_type.  Set
11378         variable name to s390_tune.  Set initialization value.
11380 2011-03-23  Julian Brown  <julian@codesourcery.com>
11382         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
11383         accesses which are not naturally aligned.
11385 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
11387         PR target/47553
11388         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
11390 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
11392         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
11393         parameter from "int" to "enum insn_code".
11394         (expand_operand_type): New enum.
11395         (expand_operand): New structure.
11396         (create_expand_operand): New function.
11397         (create_fixed_operand, create_output_operand): Likewise
11398         (create_input_operand, create_convert_operand_to): Likewise.
11399         (create_convert_operand_from, create_address_operand): Likewise.
11400         (create_integer_operand): Likewise.
11401         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
11402         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11403         (expand_insn, expand_jump_insn): Likewise.
11404         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
11405         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
11406         (expand_movstr, expand_builtin___clear_cache): Likewise.
11407         (expand_builtin_lock_release): Likewise.
11408         * explow.c (allocate_dynamic_stack_space): Likewise.
11409         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
11410         and use the default handling in that case.
11411         * expmed.c (check_predicate_volatile_ok): Delete.
11412         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
11413         (emit_cstore): Likewise.
11414         * expr.c (emit_block_move_via_movmem): Likewise.
11415         (set_storage_via_setmem, expand_assignment): Likewise.
11416         (emit_storent_insn, try_casesi): Likewise.
11417         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
11418         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
11419         (expand_vec_shift_expr, expand_binop_directly): Likewise.
11420         (expand_twoval_unop, expand_twoval_binop): Likewise.
11421         (expand_unop_direct, emit_indirect_jump): Likewise.
11422         (emit_conditional_move, vector_compare_rtx): Likewise.
11423         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
11424         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
11425         (expand_sync_lock_test_and_set): Likewise.
11426         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
11427         (emit_unop_insn): Likewise.
11428         (expand_copysign_absneg): Change icode to an insn_code.
11429         (create_convert_operand_from_type): New function.
11430         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
11431         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11432         (expand_insn, expand_jump_insn): Likewise.
11433         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
11434         than const_int_operand for operand 2.
11436 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11438         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
11439         if possible.
11441 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
11443         * emit-rtl.c (emit_pattern_before_noloc): New function.
11444         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
11445         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
11446         (emit_pattern_after_noloc): New function.
11447         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
11448         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
11450 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
11452         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
11453         (__ffsDI2): Likewise.
11455 2011-03-22  Richard Henderson  <rth@redhat.com>
11457         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
11458         of !TARGET_ABI_OPEN_VMS.
11459         (alpha_trampoline_init, alpha_start_function): Likewise.
11460         (alpha_expand_epilogue, alpha_file_start): Likewise.
11461         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
11462         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
11463         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
11464         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
11465         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
11467 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11469         * config/s390/s390-opts.h: New.
11470         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
11471         s390_arch_flags, s390_warn_framesize, s390_stack_size,
11472         s390_stack_guard): Remove.
11473         (s390_handle_arch_option): Return void.  Take enum
11474         s390_arch_option value instead of string and searching array.
11475         (s390_handle_option): Don't assert that global structures are in
11476         use.  Access variables via opts pointer.  Use error_at.  Don't use
11477         sscanf for -mstack-guard= or -mstack-size=.  Update call to
11478         s390_handle_arch_option.
11479         (s390_option_override): Update call to s390_handle_arch_option.
11480         (s390_emit_prologue): Use %d format for s390_stack_size in
11481         diagnostic.  Use %wd for HOST_WIDE_INT.
11482         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
11483         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
11484         * config/s390/s390.opt (config/s390/s390-opts.h): New
11485         HeaderInclude entry.
11486         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
11487         s390_arch_flags, s390_warn_framesize): New Variable entries.
11488         (s390_arch_option): New Enum and EnumValue entries.
11489         (march=): Use Enum instead of Var.
11490         (mstack-guard=, mstack-size=): Use UInteger and Var.
11491         (mtune=): Use Enum.
11493 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11495         * config/score/score.c (score_handle_option): Don't assert that
11496         global structures are in use.  Access target_flags via opts
11497         pointer.  Use value of -march= option to determine target_flags
11498         settings.
11499         * config/score/score.opt (march=): Use Enum.
11500         (score_arch): New Enum and EnumValue entries.
11502 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11504         * config/mep/mep.c (option_mtiny_specified): Remove.
11505         (mep_option_override): Move register handling for -mivc2 from
11506         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
11507         instead of option_mtiny_specified.
11508         (mep_handle_option): Access target_flags via opts pointer.  Don't
11509         assert that global structures are in use.  Defer part of -mivc2
11510         handling and move it to mep_option_override.
11511         * config/mep/mep.opt (IVC2): New Mask entry.
11512         (mivc2): Use Var and Defer instead of Mask.
11514 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11516         * config/v850/v850-opts.h: New.
11517         * config/v850/v850.c (small_memory): Replace with
11518         small_memory_physical_max array.  Make that array static const.
11519         (v850_handle_memory_option): Take integer value of argument.  Take
11520         gcc_options pointer, option text and location.  Return void.
11521         Update for changes to small memory structures.
11522         (v850_handle_option): Access target_flags via opts pointer.  Don't
11523         assert that global structures are in use.  Update calls to
11524         v850_handle_memory_option.
11525         (v850_encode_data_area): Update references to small memory settings.
11526         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
11527         (enum small_memory_type): Move to v850-opts.h.
11528         * config/v850/v850.opt (config/v850/v850-opts.h): New
11529         HeaderInclude entry.
11530         (small_memory_max): New Variable entry.
11531         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
11532         (mtda, mzda): Likewise.
11534 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11536         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
11537         pointer.  Don't assert that global structures are in use.
11539 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11541         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
11542         via opts pointer.  Don't assert that global structures are in use.
11544 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11546         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
11547         (munix=93): Use Var.
11548         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
11549         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
11550         * config/pa/pa-opts.h: New.
11551         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
11552         (pa_handle_option): Don't assert that global structures are in
11553         use.  Access target_flags via opts pointer.  Don't handle
11554         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
11555         OPT_munix_98 here.
11556         (pa_option_override): Handle deferred OPT_mfixed_range_.
11558 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11560         * config/mn10300/mn10300-opts.h: New.
11561         * config/mn10300/mn10300.c (mn10300_processor,
11562         mn10300_tune_string): Remove.
11563         (mn10300_handle_option): Don't assert that global structures are
11564         in use.  Access mn10300_processor via opts pointer.  Don't handle
11565         OPT_mtune_ here.
11566         * config/mn10300/mn10300.h (enum processor_type): Move to
11567         mn10300-opts.h.
11568         (mn10300_processor): Remove.
11569         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
11570         HeaderInclude entry.
11571         (mn10300_processor): New Variable entry.
11572         (mtune=): Use Var.
11574 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11576         * config/microblaze/microblaze.c: Don't include opts.h.
11577         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11578         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11579         (mno-clearbss): Use Var and Warn.
11581 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11583         * config/m32r/m32r-opts.h: New.
11584         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11585         (m32r_handle_option): Don't assert that global structures are in
11586         use.  Access target_flags and m32r_cache_flush_func via opts
11587         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
11588         OPT_mno_flush_trap here.
11589         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11590         include of m32r-opts.h.
11591         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11592         HeaderInclude entry.
11593         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11594         (mmodel=): Use Enum and Var.
11595         (m32r_model): New Enum and EnumValue entries.
11596         (mno-flush-trap): Use Var.
11597         (msdata=): Use Enum and Var.
11598         (m32r_sdata): New Enum and EnumValue entries.
11600 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11602         * config/m32c/m32c.c: Don't include opts.h.
11603         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11604         m32c_handle_option): Remove.
11605         (m32c_option_override): Check global_options_set.x_target_memregs
11606         instead of target_memregs_set.
11607         * config/m32c/m32c.h (target_memregs): Remove.
11608         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11609         variable.
11611 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11613         * config/iq2000/iq2000-opts.h: New.
11614         * config/iq2000/iq2000.c: Don't include opts.h.
11615         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11616         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11617         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11618         HeaderInclude entry.
11619         (iq2000_tune): New Variable entry.
11620         (march=): Add comment.  Use Enum.
11621         (iq2000_arch): New Enum and EnumValue entries.
11622         (mcpu=): Use Enum and Var.
11623         (iq2000_tune): New Enum and EnumValue entries.
11625 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11627         * config/ia64/ia64-opts.h: New.
11628         * config/ia64/ia64.c (ia64_tune): Remove.
11629         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11630         here.  Use error_at.
11631         (ia64_option_override): Handle deferred OPT_mfixed_range_.
11632         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11633         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11634         HeaderInclude entry.
11635         (ia64_tune): New Variable entry.
11636         (mfixed-range=): Use Defer and Var.
11637         (mtune=): Use Enum and Var.
11638         (ia64_tune): New Enum and EnumValue entries.
11640 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11642         * config/frv/frv-opts.h: New.
11643         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11644         frv-opts.h.
11645         (frv_cpu_type): Remove.
11646         * config/frv/frv.c: Don't include opts.h.
11647         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11648         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11649         (frv_cpu_type): New Variable entry.
11650         (frv_cpu): New Enum and EnumValue entries.
11652 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11654         * config/cris/cris.c (cris_handle_option): Access target_flags via
11655         opts pointer.  Don't assert that global structures are in use.
11656         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11657         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11659 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11661         * config/bfin/bfin-opts.h: New.
11662         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11663         bfin_si_revision, bfin_workarounds): Remove.
11664         (bfin_cpus): Make static const.
11665         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11666         not bfin_lib_id_given.
11667         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
11668         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11669         pointer. Use error_at.  Don't assert that global structures are in use.
11670         * config/bfin/bfin.h: Include bfin-opts.h.
11671         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11672         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11673         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11674         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11675         entries.
11677 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11679         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11680         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11681         or -msoft-float here.
11682         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11683         -msoft-float and -mhard-float.
11684         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11685         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11686         msoft-float.
11687         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11688         -msoft-float.
11689         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11690         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11691         not mhard-float.
11692         (LIBGCC_SPEC): Don't handle -msoft-float.
11693         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11694         -mhard-float.
11695         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11696         msoft-float.
11697         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11698         -mfloat-abi=*, not -msoft-float and -mhard-float.
11699         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11700         -msoft-float.
11701         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11702         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11703         mhard-float and msoft-float.
11704         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11705         mfloat-abi=soft in comments, not mhard-float and msoft-float.
11706         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11707         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11708         mhard-float.
11709         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11710         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11711         msoft-float.
11712         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11713         not mhard-float.
11714         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11715         not msoft-float.
11717 2011-03-22  Richard Henderson  <rth@redhat.com>
11719         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11720         TARGET_ABI_WINDOWS_NT.
11721         (alpha_output_function_end_prologue): Likewise.
11722         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11723         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11724         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11725         (trap, *movsi_nt_vms): Likewise.
11726         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11727         (*tablejump_osf_nt_internal): Remove.
11728         * config/alpha/predicates.md (input_operand): Only test Pmode.
11730 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11732         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11733         via opts pointer.  Use error_at.  Don't assert that global
11734         structures are in use.
11736 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11738         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11739         (ix86_handle_option): Access ix86_isa_flags and
11740         ix86_isa_flags_explicit via opts pointer.  Don't assert that
11741         global structures are in use.
11742         (ix86_function_specific_save, ix86_function_specific_restore):
11743         Update ix86_isa_flags_explicit field name.
11744         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11745         (ix86_isa_flags_explicit): Rename TargetSave entry to
11746         x_ix86_isa_flags_explicit.
11748 2011-03-22  Richard Henderson  <rth@redhat.com>
11750         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11751         (alpha_option_override, direct_return): Likewise.
11752         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11753         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11754         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11755         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11756         (alpha_expand_epilogue, alpha_end_function): Likewise.
11757         (alpha_init_libfuncs): Likewise.
11758         (struct machine_function): Remove unicosmk members.
11759         (print_operand) ['t']: Remove.
11760         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11761         unicosmk_output_module_name, unicosmk_output_common,
11762         current_section_align, unicosmk_output_text_section_asm_op,
11763         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11764         unicosmk_section_type_flags, unicosmk_unique_section,
11765         unicosmk_asm_named_section, unicosmk_insert_attributes,
11766         unicosmk_output_align, unicosmk_defer_case_vector,
11767         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11768         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11769         unicosmk_output_ssib, unicosmk_add_call_info_word,
11770         unicosmk_extern_head, unicosmk_output_default_externs,
11771         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11772         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11773         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11774         * config/alpha/alpha-protos.h: Update.
11775         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11776         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11777         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11778         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11779         (*mulsi_se, mulvsi3): Likewise.
11780         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11781         (*divmodsi_internal, call, call_value, realign): Likewise.
11782         (moddi3, umoddi3): Likewise; remove duplicate expander.
11783         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11784         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11785         (*movdi_nofix): Remove r/U alternative.
11786         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11787         * config/alpha/constraints.md ("U"): Remove.
11788         * config/alpha/predicates.md (call_operand"): Don't test
11789         TARGET_ABI_UNICOSMK.
11791 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11793         * target.def (handle_option): Take gcc_options and
11794         cl_decoded_option pointers and location_t.
11795         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11796         * doc/tm.texi: Regenerate.
11797         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11798         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11799         * lto-opts.c (lto_reissue_options): Generate option structure for
11800         targetm.handle_option call.
11801         * opts.c (target_handle_option): Update call to
11802         targetm.handle_option.  Remove assertions about values now passed
11803         down to hook.
11804         * targhooks.c (default_target_handle_option): New.
11805         * targhooks.h (default_target_handle_option): Declare.
11806         * config/alpha/alpha.c: Include opts.h.
11807         (alpha_handle_option): Update to new hook interface.
11808         * config/arm/arm.c: Include opts.h.
11809         (arm_handle_option): Update to new hook interface.
11810         * config/arm/t-arm (arm.o): Update dependencies.
11811         * config/bfin/bfin.c: Include opts.h.
11812         (bfin_handle_option): Update to new hook interface.
11813         * config/cris/cris.c: Include opts.h.
11814         (cris_handle_option): Update to new hook interface.
11815         * config/frv/frv.c: Include opts.h.
11816         (frv_handle_option): Update to new hook interface.
11817         * config/i386/i386.c: Include opts.h.
11818         (ix86_handle_option): Update to new hook interface.
11819         (ix86_valid_target_attribute_inner_p): Generate option structure
11820         for call to ix86_handle_option.
11821         * config/i386/t-i386 (i386.o): Update dependencies.
11822         * config/ia64/ia64.c: Include opts.h.
11823         (ia64_handle_option): Update to new hook interface.
11824         * config/ia64/t-ia64 (ia64.o): Update dependencies.
11825         * config/iq2000/iq2000.c: Include opts.h.
11826         (iq2000_handle_option): Update to new hook interface.
11827         * config/m32c/m32c.c: Include opts.h.
11828         (m32c_handle_option): Update to new hook interface.
11829         * config/m32r/m32r.c: Include opts.h.
11830         (m32r_handle_option): Update to new hook interface.
11831         * config/m68k/m68k.c: Include opts.h.
11832         (m68k_handle_option): Update to new hook interface.
11833         * config/mep/mep.c: Include opts.h.
11834         (mep_handle_option): Update to new hook interface.
11835         * config/microblaze/microblaze.c: Include opts.h.
11836         (microblaze_handle_option): Update to new hook interface.
11837         * config/mips/mips.c: Include opts.h.
11838         (mips_handle_option): Update to new hook interface.
11839         * config/mn10300/mn10300.c: Include opts.h.
11840         (mn10300_handle_option): Update to new hook interface.
11841         * config/pa/pa.c: Include opts.h.
11842         (pa_handle_option): Update to new hook interface.
11843         * config/pdp11/pdp11.c: Include opts.h.
11844         (pdp11_handle_option): Update to new hook interface.
11845         * config/rs6000/rs6000.c: Include opts.h.
11846         (rs6000_handle_option): Update to new hook interface.
11847         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11848         * config/rx/rx.c: Include opts.h.
11849         (rx_handle_option): Update to new hook interface.
11850         * config/s390/s390.c: Include opts.h.
11851         (s390_handle_option): Update to new hook interface.
11852         * config/score/score.c: Include opts.h.
11853         (score_handle_option): Update to new hook interface.
11854         * config/sh/sh.c: Include opts.h.
11855         (sh_handle_option): Update to new hook interface.
11856         * config/sparc/sparc.c: Include opts.h.
11857         (sparc_handle_option): Update to new hook interface.
11858         * config/v850/v850.c: Include opts.h.
11859         (v850_handle_option): Update to new hook interface.
11861 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11863         * gcc.c (driver_unknown_option_callback): Only permit and save
11864         unknown -Wno- options.
11865         (driver_wrong_lang_callback): Save options directly instead of via
11866         driver_unknown_option_callback.
11868 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
11870         * combine.c (simplify_set): Try harder to find the best CC mode when
11871         simplifying a nested COMPARE on the RHS.
11873 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11875         * config/alpha/gnu.h: Remove.
11876         * config/arc: Remove directory.
11877         * config/arm/netbsd.h: Remove.
11878         * config/arm/t-pe: Remove.
11879         * config/crx: Remove directory.
11880         * config/i386/netbsd.h: Remove.
11881         * config/m68hc11: Remove directory.
11882         * config/m68k/uclinux-oldabi.h: Remove.
11883         * config/mcore/mcore-pe.h: Remove.
11884         * config/mcore/t-mcore-pe: Remove.
11885         * config/netbsd-aout.h: Remove.
11886         * config/rs6000/gnu.h: Remove.
11887         * config/sh/sh-symbian.h: Remove.
11888         * config/sh/symbian-base.c: Remove.
11889         * config/sh/symbian-c.c: Remove.
11890         * config/sh/symbian-cxx.c: Remove.
11891         * config/sh/symbian-post.h: Remove.
11892         * config/sh/symbian-pre.h: Remove.
11893         * config/sh/t-symbian: Remove.
11894         * config/svr3.h: Remove.
11895         * config/vax/netbsd.h: Remove.
11896         * config.build: Don't handle i[34567]86-*-pe.
11897         * config.gcc: Remove handling of deprecations for most deprecated
11898         targets.
11899         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11900         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11901         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11902         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11903         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11904         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11905         Remove cases.
11906         * config.host: Don't handle i[34567]86-*-pe.
11907         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11908         (ASM_SPEC32): Don't handle -mcall-gnu.
11909         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11910         -mcall-gnu.
11911         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11912         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11913         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11914         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11915         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11916         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11917         conditional on SYMBIAN.
11918         * configure.ac: Don't handle powerpc*-*-gnu*.
11919         * configure: Regenerate.
11920         * doc/extend.texi (interrupt attribute): Don't mention CRX.
11921         * doc/install-old.texi (m6811, m6812): Don't mention.
11922         * doc/install.texi (arc-*-elf*): Don't document multilib option.
11923         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11924         (m68k-uclinuxoldabi): Don't mention.
11925         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11926         Remove.
11927         (-mcall-gnu): Remove.
11928         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11929         families): Remove constraint documentation.
11931 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
11933         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11934         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11935         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11937 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
11939         PR target/48226
11940         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11941         vector when peeking at the next token for vector, don't expand the
11942         keywords.
11944 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
11946         * config/avr/avr-protos.h (expand_epilogue): Change prototype
11947         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11948         * config/avr/avr.c (init_cumulative_args)
11949         (avr_function_arg_advance): Use it.
11950         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11951         sibcall epilogues.
11952         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11953         (avr_function_ok_for_sibcall): ...this new function.
11954         (avr_lookup_function_attribute1): New static Function.
11955         (avr_naked_function_p, interrupt_function_p)
11956         (signal_function_p, avr_OS_task_function_p)
11957         (avr_OS_main_function_p): Use it.
11958         * config/avr/avr.md ("sibcall", "sibcall_value")
11959         ("sibcall_epilogue"): New expander.
11960         ("*call_insn", "*call_value_insn"): New insn.
11961         ("call_insn", "call_value_insn"): Remove
11962         ("call", "call_value", "epilogue"): Change expander to handle
11963         sibling calls.
11965 2011-03-21  Nick Clifton  <nickc@redhat.com>
11967         * doc/invoke.texi (Overall Options): Move closing brace to end of
11968         options list.
11969         (Optimization Options): Add missing @gol.
11970         (Directory Options): Likewise.
11971         (i386 and x86-64 Options): Likewise.
11972         (RS6000 and PowerPC Options): Likewise.
11973         (i386 and x86-64 Windows Options): Likewise.
11974         (V850 Options): Add text missing from descriptions.
11976 2011-03-22  Richard Henderson  <rth@redhat.com>
11978         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11979         (avr_incoming_return_addr_rtx): New.
11980         (emit_push_byte): New.
11981         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
11982         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
11983         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
11984         (emit_pop_byte): New.
11985         (expand_epilogue): Use it.  Pop frame pointer by bytes.
11986         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11987         (INCOMING_RETURN_ADDR_RTX): New.
11988         (INCOMING_FRAME_SP_OFFSET): New.
11989         (ARG_POINTER_CFA_OFFSET): New.
11990         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11991         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11992         (pophi): Remove.
11994         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11996 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
11998         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11999         (FUNCTION_ARG_ADVANCE): Likewise.
12000         * tm.texi.in: Change references to them to hook references.
12001         * tm.texi: Regenerate.
12002         * targhooks.c (default_function_arg): Eliminate check for target
12003         macro.
12004         (default_function_incoming_arg): Likewise.
12005         (default_function_arg_advance): Likewise.
12006         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12007         (function_arg_advance): Likewise.
12008         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12010 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
12012         * tree.c (build_call_1): New function.
12013         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
12015 2011-03-22  Richard Guenther  <rguenther@suse.de>
12017         PR tree-optimization/48228
12018         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
12019         for single-arg PHIs.
12021 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
12023         PR rtl-optimization/48143
12024         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
12025         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
12026         sse2_cvtps2pd): Likewise.
12028 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12030         * recog.c (canonicalize_change_group): Use validate_unshare_change.
12032 2011-03-22  Richard Guenther  <rguenther@suse.de>
12034         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
12035         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
12036         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
12037         and REALIGN_LOAD_EXPR.
12038         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
12039         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
12040         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
12041         DOT_PROD_EXPR case ...
12042         (expand_expr_real_2): ... here.
12043         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
12044         and REALIGN_LOAD_EXPR.
12045         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
12046         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
12047         (vect_create_epilog_for_reduction): Likewise.
12048         (vectorizable_reduction): Likewise.
12049         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
12050         * tree-vect-stmts.c (vectorizable_load): Likewise.
12052 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
12054         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
12056 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12058         * config/s390/s390.c (s390_delegitimize_address): Fix offset
12059         handling for PLTOFF/GOTOFF.
12061 2011-03-22  Nick Clifton  <nickc@redhat.com>
12063         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
12064         trailing backslash from the end of the macro definition.
12066 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12068         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
12069         and PLT unspecs.
12071 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
12073         * expr.h (prepare_operand): Move to...
12074         * optabs.h (prepare_operand): ...here and change the insn code
12075         parameter from "int" to "enum insn_code".
12076         (insn_operand_matches): Declare.
12077         * expr.c (init_expr_target): Use insn_operand_matches.
12078         (compress_float_constant): Likewise.
12079         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
12080         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
12081         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
12082         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
12083         Likewise.
12084         (gen_cond_trap): Likewise.
12085         (prepare_operand): Likewise.  Change icode to an insn_code.
12086         (insn_operand_matches): New function.
12087         * reload.c (find_reloads_address_1): Use insn_operand_matches.
12088         * reload1.c (gen_reload): Likewise.
12089         * targhooks.c (default_secondary_reload): Likewise.
12091 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
12093         * config/alpha/alpha.md (unspec): New define_c_enum.
12094         (unspecv): Ditto.
12096 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
12098         PR debug/48214
12099         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
12100         between a call and its CALL_ARG_LOCATION note.
12102 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
12104         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
12106 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
12108         PR c/42544
12109         PR c/48197
12110         * c-common.c (shorten_compare): If primopN is first sign-extended
12111         to opN and then zero-extended to result type, set primopN to opN.
12113 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
12115         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
12116         for barrier handlers.
12118 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
12120         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
12121         UNSPEC constants to be in the unspec enumeration, and redefine
12122         all UNSPECV constants to be in the unspecv enumeration, so that
12123         dumps print which unspec/unspec_volatile this is.
12124         * config/rs6000/vector.md (UNSPEC_*): Ditto.
12125         * config/rs6000/paired.md (UNSPEC_*): Ditto.
12126         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
12127         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
12128         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
12130         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
12131         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
12132         UNSPECV_LWSYNC, since these are used as unspec_volatile.
12133         * config/rs6000/sync.md (isync, lwsync): Ditto.
12135 2011-03-21  Richard Guenther  <rguenther@suse.de>
12137         * params.def (lto-min-partition): Fix typo.
12139 2011-03-21  Richard Guenther  <rguenther@suse.de>
12141         PR c/47939
12142         * c-decl.c (grokdeclarator): Drop to the main variant only
12143         for array types.  Drop flag_gen_aux_info check.
12145 2011-03-21  Richard Guenther  <rguenther@suse.de>
12147         PR translation/47911
12148         * params.def (lto-partitions): Fix typo.
12149         (lto-min-partition): Fix wording.
12151 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
12153         * config/rs6000/t-freebsd: Remove duplication from file.
12155 2011-03-21  Richard Guenther  <rguenther@suse.de>
12157         PR middle-end/47661
12158         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
12160 2011-03-21  Richard Guenther  <rguenther@suse.de>
12162         PR lto/48210
12163         * params.def (lto-partitions): Require at least 1 partition.
12165 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12167         * gthr-solaris.h: Remove.
12168         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
12169         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
12170         (LIB_SPEC): Likewise.
12171         * config/sol2.opt (threads): Remove.
12172         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
12173         (sparc*-*-solaris2*): Likewise.
12174         * configure.ac (enable_threads): Enable solaris support.
12175         * configure: Regenerate.
12176         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
12177         * doc/install.texi (Configuration, --enable-threads=lib): Remove
12178         solaris.
12180 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12182         * config.gcc: Obsolete *-*-solaris2.8*.
12183         * doc/install.texi (Specific, *-*-solaris2*): Document it.
12185 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12187         PR bootstrap/48135
12188         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
12189         reference.  Solaris 8 perl works.
12191 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12193         PR bootstrap/48135
12194         * doc/install.texi (Prerequisites): Move jar etc. up.
12195         Explain support library version requirements.
12197 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12199         PR bootstrap/48135
12200         * doc/install.texi (Prerequisites): Move Perl to build
12201         requirements.  Always necessary on Solaris 2 with Sun ld.
12203 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12205         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
12206         binutils 2.21.
12207         (Specific, i?86-*-solaris2.[89]): Likewise.
12208         (Specific, i?86-*-solaris2.10): Likewise.
12209         (Specific, mips-sgi-irix6): Likewise.
12210         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
12211         Update for binutils 2.21.
12213 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12215         * configure.ac (gcc_cv_lto_plugin): Fix typo.
12216         Allow -fuse-linker-plugin for non-default plugin linker.
12217         * configure: Regenerate.
12219 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
12221         PR bootstrap/48167
12222         * gengtype.c (files_rules): Added rule for cp/parser.h.
12224 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
12226         PR target/48213
12227         * config/s390/s390.c (s390_delegitimize_address): Don't call
12228         lowpart_subreg if orig_x has BLKmode.
12230 2011-03-21  Kai Tietz  <ktietz@redhat.com>
12232         PR target/12171
12233         * doc/plugins.texi: Adjust documentation for plugin register_callback.
12234         * tree.h (attribute_spec): Add new member affects_type_identity.
12235         * attribs.c (empty_attribute_table): Adjust attribute_spec
12236         initializers.
12237         * config/alpha/alpha.c: Likewise.
12238         * config/arc/arc.c: Likewise.
12239         * config/arm/arm.c: Likewise.
12240         * config/avr/avr.c: Likewise.
12241         * config/bfin/bfin.c: Likewise.
12242         * config/crx/crx.c: Likewise.
12243         * config/darwin.h: Likewise.
12244         * config/h8300/h8300.c: Likewise.
12245         * config/i386/cygming.h: Likewise.
12246         * config/i386/i386.c: Likewise.
12247         * config/ia64/ia64.c: Likewise.
12248         * config/m32c/m32c.c: Likewise.
12249         * config/m32r/m32r.c: Likewise.
12250         * config/m68hc11/m68hc11.c: Likewise.
12251         * config/m68k/m68k.c: Likewise.
12252         * config/mcore/mcore.c: Likewise.
12253         * config/mep/mep.c: Likewise.
12254         * config/microblaze/microblaze.c: Likewise.
12255         * config/mips/mips.c: Likewise.
12256         * config/rs6000/rs6000.c: Likewise.
12257         * config/rx/rx.c: Likewise.
12258         * config/sh/sh.c: Likewise.
12259         * config/sol2.h: Likewise.
12260         * config/sparc/sparc.c: Likewise.
12261         * config/spu/spu.c: Likewise.
12262         * config/stormy16/stormy16.c: Likewise.
12263         * config/v850/v850.c: Likewise.
12265 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
12267         * simplify-rtx.c (simplify_binary_operation_1): Handle
12268         (xor (and A B) C) case when B and C are both constants.
12270 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
12272         * tree-dfa.c (add_referenced_var): Fix typo in comment.
12274 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
12276         PR bootstrap/48168
12277         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
12279 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
12281         PR rtl-optimization/48156
12282         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
12283         assume df and df_lr are not NULL.
12285 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12287         PR debug/48023
12288         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
12289         between a call and its CALL_ARG_LOCATION note.
12291 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
12293         PR debug/48178
12294         * config/sh/sh.c (find_barrier): Don't emit a constant pool
12295         between a call and its corresponding CALL_ARG_LOCATION note.
12297 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
12299         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
12300         instead of loop. Use HARD_REGISTER_NUM_P predicate.
12301         * haifa-sched.c (setup_ref_regs): Ditto.
12302         * caller-save.c (add_used_regs_1): Ditto.
12303         * dse.c (look_for_hardregs): Ditto.
12304         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
12305         * sched-rgn.c (check_live_1): Ditto.
12307 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
12309         * c-decl.c (diagnose_mismatched_decls): Give an error for
12310         redefining a typedef with variably modified type.
12312 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
12314         * c-decl.c (grokfield): Don't allow typedefs for structures or
12315         unions with no tag by default.
12316         * doc/extend.texi (Unnamed Fields): Update.
12318 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
12320         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
12321         Rewrite using indirect functions.
12322         (lwp_slwpcb): Ditto.
12323         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
12324         (avx_vinsertf128<mode>): Ditto.
12326 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12328         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
12329         unspecs.
12331 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12333         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
12334         splitting between a call and its corresponding CALL_ARG_LOCATION note.
12336 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
12338         PR rtl-optimization/48170
12339         * gcse.c (hoist_code): Remove bogus asserts.
12341 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
12343         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
12344         computation for prologue/epilogue.
12346 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12348         * Makefile.in (check-consistency): Remove.
12350 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
12352         PR debug/48176
12353         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
12354         arange_table_in_use is 0, but either text_section_used or
12355         cold_text_section_used is true.  Don't call it if
12356         !info_section_emitted.
12358 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
12360         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
12361         FUNCTION_VALUE_REGNO_P): Remove.
12362         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
12363         Remove.
12364         * config/avr/avr.c (avr_ret_register): Make static inline.
12365         (avr_function_value_regno_p): New function.
12366         (avr_libcall_value): Make static. Add 'func' argument.
12367         (avr_function_value): Make static. Rename 'func' argument to
12368         'fn_decl_or_type', forward it to avr_libcall_value. Call
12369         avr_ret_register function instead of RET_REGISTER macro.
12370         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12372 2011-03-18  Jason Merrill  <jason@redhat.com>
12374         PR c++/23372
12375         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
12377 2011-03-18  Richard Guenther  <rguenther@suse.de>
12379         * doc/install.texi (--enable-gold): Remove.
12380         (--with-plugin-ld): Document.
12381         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
12383 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
12385         PR middle-end/47790
12386         * expr.c (optimize_bitfield_assignment_op): Revamp to work
12387         again after expansion changes.
12389 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
12391         * combine.c (try_combine): Do simplification only call of
12392         subst() on i2 even when i1 is present. Update comments.
12394 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
12396         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
12397         and UNSPEC_PCREL_SYMOFF.
12399 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12401         * config/s390/s390.md: Use define_c_enum for the unspec constant
12402         definitions.
12404 2011-03-18  Richard Henderson  <rth@redhat.com>
12405             Jakub Jelinek  <jakub@redhat.com>
12407         PR bootstrap/48161
12408         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
12409         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
12411 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12413         PR middle-end/47725
12414         * combine.c (cant_combine_insn_p): Don't check zero/sign
12415         extended hard registers.
12417 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12419         PR middle-end/47725
12420         * combine.c (cant_combine_insn_p): Check zero/sign extended
12421         hard registers.
12423 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
12425         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12426         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
12427         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
12428         Change return type to bool.
12429         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12431 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
12433         PR debug/48163
12434         * var-tracking.c (prepare_call_arguments): If CALL target
12435         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
12436         pc instead of looking it up using cselib_lookup and use
12437         Pmode for it if x has VOIDmode.
12438         * dwarf2out.c (gen_subprogram_die): If also both first and
12439         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
12441         PR debug/48163
12442         * function.c (assign_parms): For data.passed_pointer parms
12443         use MEM of data.entry_parm instead of data.entry_parm itself
12444         as DECL_INCOMING_RTL.
12445         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
12446         also when passed and declared mode is the same, DECL_RTL
12447         is a MEM with pseudo as address and DECL_INCOMING_RTL is
12448         a MEM too.
12450 2011-03-16  Jeff Law  <law@redhat.com>
12452         PR rtl-optimization/37273
12453         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12454         handle them like argument loads from stack slots.  Do not double
12455         count memory for memory constants and argument loads from stack slots.
12457 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12459         PR debug/48160
12460         * var-tracking.c (prepare_call_arguments): Check SUBREG.
12462 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12464         PR target/48171
12465         * config/i386/i386.opt: Add Save to -mavx and -mfma.
12467 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
12469         PR bootstrap/48153
12470         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
12471         if dwarf_strict.
12472         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
12473         Clear call_arg_locations and call_arg_loc_last always.
12475         PR middle-end/48152
12476         * var-tracking.c (prepare_call_arguments): If argument needs to be
12477         passed by reference, adjust argtype and mode.
12479 2011-03-17  Richard Guenther  <rguenther@suse.de>
12481         PR middle-end/48134
12482         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
12483         a value make sure to fold the statement.
12485 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
12487         PR target/43872
12488         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
12489         return condition with !cfun->calls_alloca.
12491 2011-03-17  Richard Guenther  <rguenther@suse.de>
12493         PR bootstrap/48148
12494         * lto-cgraph.c (input_overwrite_node): Clear the abstract
12495         origin for decls in other ltrans units.
12496         (input_varpool_node): Likewise.
12498 2011-03-17  Richard Guenther  <rguenther@suse.de>
12500         PR middle-end/48165
12501         * tree-object-size.c (compute_object_offset): Properly return
12502         the offset operand of MEM_REFs as sizetype.
12504 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
12506         PR rtl-optimization/48141
12507         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
12508         * dse.c: Include params.h.
12509         (active_local_stores_len): New variable.
12510         (add_wild_read, dse_step1): Clear it when setting active_local_stores
12511         to NULL.
12512         (record_store, check_mem_read_rtx): Decrease it when removing
12513         from the chain.
12514         (scan_insn): Likewise.  Increase it when adding to chain, if it
12515         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
12516         set active_local_stores to NULL before the addition.
12517         * Makefile.in (dse.o): Depend on $(PARAMS_H).
12519         PR rtl-optimization/48141
12520         * dse.c (record_store): If no positions are needed in an insn
12521         that cannot be deleted, at least unchain it from active_local_stores.
12523 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
12525         PR debug/47510
12526         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
12527         (lookup_type_die_strip_naming_typedef): ... here.
12528         (get_context_die): Use it.
12529         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
12530         the anonymous struct named by the naming typedef.
12532 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12534         PR target/48154
12535         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
12536         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12538 2011-03-16  Jeff Law  <law@redhat.com>
12540         * tree-vrp.c (identify_jump_threads): Slightly simplify type
12541         check for operands of conditional.  Allow type to be a pointer.
12543 2011-03-16  Richard Guenther  <rguenther@suse.de>
12545         PR tree-optimization/48149
12546         * fold-const.c (fold_binary_loc): Fold
12547         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
12549 2011-03-16  Richard Guenther  <rguenther@suse.de>
12551         PR tree-optimization/26134
12552         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
12553         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
12554         (non_rewritable_mem_ref_base): Handle complex type component
12555         accesses, constrain offsets for vector and complex extracts
12556         more properly.
12558 2011-03-16  Richard Guenther  <rguenther@suse.de>
12560         PR tree-optimization/48146
12561         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
12562         operands avoiding the need for renaming.
12564 2011-03-16  Richard Guenther  <rguenther@suse.de>
12566         * gimple-fold.c (maybe_fold_reference): Open-code relevant
12567         constant folding.  Move MEM_REF canonicalization first.
12568         Rely on fold_const_aggregate_ref for initializer folding.
12569         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
12571 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
12573         PR middle-end/48136
12574         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12575         arg0/arg1 or their arguments are always fold converted to matching
12576         types.
12578         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12579         to nargs.
12581 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12583         PR lto/46944
12584         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12585         Handle in-tree gold.
12586         (ld_vers): Extract binutils version for gold.
12587         (gcc_cv_ld_hidden): Handle gold here.
12588         (gcc_cv_lto_plugin): Determine level of linker plugin support.
12589         * configure: Regenerate.
12590         * config.in: Regenerate.
12591         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12592         -fuse-linker-plugin otherwise.
12593         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
12594         (LINK_COMMAND_SPEC): Use it.
12595         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12597 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
12599         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12600         * calls.c: Remove debug.h include.
12601         (emit_call_1): Don't call virtual_call_token debug hook.
12602         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12603         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12604         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12605         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12606         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12607         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12608         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12609         dwarf2out_virtual_call): Remove.
12610         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12611         copy_call_info and virtual_call hooks.
12612         (dwarf2out_init): Don't initialize vcall_insn_table,
12613         debug_dcall_section and debug_vcall_section.
12614         (prune_unused_types): Don't mark nodes from dcall_table.
12615         (dwarf2out_finish): Don't output dcall or vcall tables.
12616         * final.c (final_scan_insn): Don't call direct_call or
12617         virtual_call debug hooks.
12618         * debug.h (struct gcc_debug_hooks): Remove direct_call,
12619         virtual_call_token, copy_call_info and virtual_call hooks.
12620         (debug_nothing_uid): Remove prototype.
12621         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12622         copy_call_info and virtual_call hooks.
12623         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12624         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12625         * debug.c (do_nothing_debug_hooks): Likewise.
12626         (debug_nothing_uid): Remove.
12627         * doc/invoke.texi (-fenable-icf-debug): Remove.
12628         * common.opt (-fenable-icf-debug): Likewise.
12630         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12631         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12632         call's MEM.  Handle functions returning aggregate through a hidden
12633         first pointer.  For virtual calls add clobbered pc to call arguments
12634         chain.
12635         * dwarf2out.c (gen_subprogram_die): Emit
12636         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12637         can't be emitted.
12639         PR debug/45882
12640         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12641         * rtl.h (ENTRY_VALUE_EXP): Define.
12642         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12643         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12644         * print-rtl.c (print_rtx): Likewise.
12645         * gengtype.c (adjust_field_rtx_def): Likewise.
12646         * var-tracking.c (vt_add_function_parameter): Adjust
12647         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12648         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12649         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12650         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12651         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12653         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12654         Call var_location debug hook even on CALL_INSNs.
12655         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12656         * rtl.def (ENTRY_VALUE): New.
12657         * dwarf2out.c: Include cfglayout.h.
12658         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12659         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12660         (struct call_arg_loc_node): New type.
12661         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12662         tail_call_site_count): New variables.
12663         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12664         DW_TAG_GNU_call_site_parameter.
12665         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12666         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12667         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12668         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12669         and DW_AT_GNU_all_source_call_sites.
12670         (mem_loc_descriptor): Handle ENTRY_VALUE.
12671         (add_src_coords_attributes): Don't add enything if
12672         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12673         (dwarf2out_abstract_function): Save and clear call_arg_location,
12674         call_site_count and tail_call_site_count around dwarf2out_decl call.
12675         (gen_call_site_die): New function.
12676         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12677         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12678         (dwarf2out_function_decl): Clear call_arg_locations,
12679         call_arg_loc_last, set call_site_count and tail_call_site_count
12680         to -1 and free block_map.
12681         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12682         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
12683         followed by any real instructions.
12684         (dwarf2out_begin_function): Set call_site_count and
12685         tail_call_site_count to 0.
12686         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12687         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12688         attempt to force a DIE for it and worst case remove the attribute.
12689         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12690         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12691         the decl itself.
12692         * var-tracking.c: Include tm_p.h.
12693         (vt_stack_adjustments): For calls call note_register_arguments.
12694         (argument_reg_set): New variable.
12695         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12696         ensure the VALUE is resolved.
12697         (call_arguments): New variable.
12698         (prepare_call_arguments): New function.
12699         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12700         (struct expand_loc_callback_data): Add ignore_cur_loc field.
12701         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12702         always use the best expression.
12703         (vt_expand_loc): Add ignore_cur_loc argument.
12704         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12705         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12706         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12707         note for all calls.
12708         (vt_add_function_parameter): Use cselib_lookup_from_insn.
12709         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12710         argument.  Don't call cselib_preserve_only_values and
12711         cselib_reset_table.
12712         (note_register_arguments): New function.
12713         (vt_initialize): Compute argument_reg_set.  Call
12714         vt_add_function_parameters before processing basic blocks instead of
12715         afterwards.  For calls call prepare_call_arguments before calling
12716         cselib_process_insn.
12717         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12718         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12719         (var-tracking.o): Depend on $(TM_P_H).
12720         * cfglayout.h (insn_scope): New prototype.
12721         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12722         * cfglayout.c (insn_scope): No longer static.
12723         * insn-notes.def (CALL_ARG_LOCATION): New.
12724         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12725         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12726         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12727         nothing for DECL_EXTERNAL BLOCK_VARS.
12729 2011-03-16  Alan Modra  <amodra@gmail.com>
12731         PR target/45844
12732         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12733         create invalid offset address for vsx splat insn.
12734         * config/rs6000/predicates.md (splat_input_operand): New.
12735         * config/rs6000/vsx.md (vsx_splat_*): Use it.
12737 2011-03-15  Xinliang David Li  <davidxl@google.com>
12739         PR c/47837
12740         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12741         (normalize_preds): New function.
12742         (is_use_properly_guarded): Normalize def predicates.
12744 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12746         PR target/46788
12747         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12748         in the output template.
12750 2011-03-15  Richard Guenther  <rguenther@suse.de>
12752         PR middle-end/47650
12753         * tree-pretty-print.c (dump_function_declaration): Properly
12754         dump unprototyped and varargs function types.
12756 2011-03-15  Richard Guenther  <rguenther@suse.de>
12758         PR tree-optimization/13954
12759         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12760         and friends.
12762 2011-03-15  Richard Guenther  <rguenther@suse.de>
12764         PR tree-optimization/48037
12765         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12766         selects into BIT_FIELD_REFs.
12767         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12768         vector select.
12770 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
12772         PR tree-optimization/48129
12773         * builtins.c (fold_builtin_snprintf): Convert to type of
12774         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12775         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12777 2011-03-15  Richard Guenther  <rguenther@suse.de>
12779         PR tree-optimization/41490
12780         * tree-ssa-dce.c (propagate_necessity): Handle returns without
12781         value but with VUSE.
12782         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12783         return statements.
12784         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12785         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12786         * tree-tailcall.c (find_tail_calls): Ignore returns.
12788 2011-03-15  Richard Guenther  <rguenther@suse.de>
12790         PR middle-end/48031
12791         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12792         or variable-indexed array accesses when in gimple form.
12794 2011-03-15  Richard Guenther  <rguenther@suse.de>
12796         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12798 2011-03-15  Alan Modra  <amodra@gmail.com>
12800         PR target/48032
12801         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12802         presume symbol_refs without a symbol_ref_decl are suitably
12803         aligned, nor other trees we may see here.  Handle anchor symbols.
12804         (legitimate_constant_pool_address_p): Comment.  Add mode param.
12805         Check cmodel=medium addresses.  Adjust all calls.
12806         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12807         creating cmodel=medium optimized access to locals.
12808         * config/rs6000/constraints.md (R): Pass QImode to
12809         legitimate_constant_pool_address_p.
12810         * config/rs6000/predicates.md (input_operand): Pass mode to
12811         legitimate_constant_pool_address_p.
12812         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12813         Update prototype.
12815 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
12817         PR target/48053
12818         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12819         64-bit constants being loaded into registers other than GPRs such
12820         as loading 0 into a VSX register.
12822 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12824         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12826 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
12828         PR middle-end/47917
12829         * builtins.c (fold_builtin_snprintf): New function.
12830         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12831         (fold_builtin_4): Likewise.
12833         PR middle-end/38878
12834         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12835         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
12836         and C - X == X also strip nops from +/-/p+ operand.
12837         When optimizing -X == C, fold C to arg0's type.
12839         PR debug/47946
12840         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12841         emit it as add_AT_int instead of add_AT_unsigned.
12843 2011-03-14  Tom Tromey  <tromey@redhat.com>
12845         * unwind-dw2.c: Include sys/sdt.h if it exists.
12846         (_Unwind_DebugHook): Use STAP_PROBE2.
12847         * config.in, configure: Rebuild.
12848         * configure.ac: Check for sys/sdt.h.
12850 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
12852         * config/i386/i386.md (ROUND_FLOOR): New constant.
12853         (ROUND_CEIL): Ditto.
12854         (ROUND_TRUNC): Ditto.
12855         (ROUND_MXCSR): Ditto.
12856         (ROUND_NO_EXC): Ditto.
12857         (rint<mode>2): Use new defines instead of numerical constants.
12858         (floor<mode>2): Ditto.
12859         (ceil<mode>2): Ditto.
12860         (btrunc<mode>2): Ditto.
12861         * config/i386/i386-builtin-types.def: Define ROUND function type
12862         aliases.
12863         * config/i386/i386.c (enum ix86_builtins): Add
12864         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12865         (struct builtin_description): Add
12866         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12867         (ix86_expand_sse_round): New static function.
12868         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12869         function types.
12870         (ix86_builtin_vectorized_function): Handle
12871         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12873 2011-03-14  Tom Tromey  <tromey@redhat.com>
12875         * c-parser.c (c_parser_asm_string_literal): Clear
12876         warn_overlength_strings.
12878 2011-03-14  Tom Tromey  <tromey@redhat.com>
12880         * c-parser.c (disable_extension_diagnostics): Save
12881         warn_overlength_strings.
12882         (restore_extension_diagnostics): Restore warn_overlength_strings.
12884 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
12886         * BASE-VER: Change to 4.7.0.
12888 2011-03-14  Richard Guenther  <rguenther@suse.de>
12890         PR middle-end/48098
12891         * tree.c (build_vector_from_val): Adjust assert to requirements
12892         and reality.
12894 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
12896         PR bootstrap/48102
12897         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12899 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
12901         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12902         terms of target_flags_explicit. Adjust copyright year.
12904         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12905         * config/rs6000/t-freebsd: New file. Add override for
12906         LIB2FUNCS_EXTRA.
12908 2011-03-13  Chris Demetriou  <cgd@google.com>
12910         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12911         (-fno-diagnostics-show-option): this, to reflect current default.
12912         (-Werror=): Update text about -fno-diagnostics-show-option.
12914 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
12916         PR target/48053
12917         * config/rs6000/predicates.md (easy_vector_constant_add_self,
12918         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12919         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12920         mode is not V2DImode or V2DFmode.
12921         (vspltis_constant): Do not handle V2DImode and V2DFmode.
12922         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12923         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12924         registers to 0.
12925         (movdi_internal64): Likewise.
12927 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
12929         PR tree-optimization/47127
12930         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12931         parameter.
12932         (set_cloog_options): Same.
12933         (scop_to_clast): Same.
12934         (print_clast_stmt): Do not call cloog_state_malloc and
12935         cloog_state_free.
12936         (print_generated_program): Same.
12937         (gloog): Same.
12938         * graphite-clast-to-gimple.h (cloog_state): Declared.
12939         (scop_to_clast): Adjust declaration.
12940         * graphite.c (cloog_state): Defined here.
12941         (graphite_initialize): Call cloog_state_malloc.
12942         (graphite_finalize): Call cloog_state_free.
12944 2011-03-11  Jason Merrill  <jason@redhat.com>
12946         * attribs.c (lookup_attribute_spec): Take const_tree.
12947         * tree.h: Adjust.
12949 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
12951         * config/sparc/sparc.c (sparc_option_override): Use
12952         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12954 2011-03-11  Richard Guenther  <rguenther@suse.de>
12956         PR tree-optimization/48067
12957         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12958         multiplication result will be only used once on the target
12959         stmt.
12961 2011-03-11  Richard Guenther  <rguenther@suse.de>
12963         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12965 2011-03-11  Richard Guenther  <rguenther@suse.de>
12967         PR lto/48073
12968         * tree.c (find_decls_types_r): Do not walk types only reachable
12969         from IDENTIFIER_NODEs.
12971 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
12973         PR middle-end/48044
12974         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12975         all vnode->force_output nodes as needed.
12977 2011-03-11  Jason Merrill  <jason@redhat.com>
12979         PR c++/48069
12980         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12981         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12983 2011-03-11  Martin Jambor  <mjambor@suse.cz>
12985         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12986         cgraph_node.
12988 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
12990         PR tree-optimization/48063
12991         * ipa-inline.c (cgraph_decide_inlining): Don't try to
12992         inline functions called once if !tree_can_inline_p (node->callers).
12994 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
12996         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12997         extra_objs.
12998         * config/score/score3.c: Delete.
12999         * config/score/score3.h: Delete.
13000         * config/score/mul-div.S: Delete.
13001         * config/score/sfp-machine.h: Add new file.
13002         * config/score/constraints.md: Add new file.
13003         * config/score/t-score-softfp: Add new file.
13004         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
13005         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
13006         (score7_extra_constraint): Delete.
13007         (score7_option_override): Remove unused code.
13008         * config/score/score.c: Remove score3 and score5 define and code.
13009         * config/score/score.h: Remove score3 and score5 define and code.
13010         * config/score/score.md: Remove score3 template and unusual insn.
13011         * config/score/score.opt: Remove score3 and score5 options.
13013 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13015         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
13016         when _HPUX_SOURCE is defined.
13017         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
13019 2011-03-10  Jason Merrill  <jason@redhat.com>
13021         PR c++/48029
13022         * stor-layout.c (layout_type): Don't set structural equality
13023         on arrays of incomplete type.
13024         * tree.c (type_hash_eq): Handle comparing them properly.
13026 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
13028         PR debug/48043
13029         * config/s390/s390.c (s390_delegitimize_address): Make sure the
13030         result mode matches original rtl mode.
13032 2011-03-10  Nick Clifton  <nickc@redhat.com>
13034         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
13035         (andsi3, andsi3_flags): Fix timings for three operand alternative.
13037 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
13039         PR rtl-optimization/47866
13040         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
13041         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
13042         if target wasn't scalar.
13043         * function.c (assign_stack_temp_for_type): Assert that neither
13044         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
13045         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
13046         macro.
13047         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
13049 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13051         * config/s390/s390-protos.h (s390_label_align): New prototype.
13052         * config/s390/s390.c (s390_label_align): New function.
13053         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
13055 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
13057         PR target/47755
13058         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
13059         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
13060         (output_vec_const_move): Ditto.
13062 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
13064         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
13065         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
13066         * config/mips/mips.c (mips_preferred_reload_class): Make static.
13067         Change 'rclass' argument and result type to reg_class_t.
13068         (TARGET_PREFERRED_RELOAD_CLASS): Define.
13070 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
13072         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13073         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
13074         (TARGET_MEMORY_MOVE_COST): Define.
13075         (avr_register_move_cost, avr_memory_move_cost): New Functions.
13077 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
13079         PR debug/47881
13080         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
13081         removed anything.
13083         PR tree-optimization/48022
13084         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
13085         for EQ/NE_EXPR.
13087 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
13089         PR debug/47991
13090         * var-tracking.c (find_use_val): Return NULL for
13091         cui->sets && cui->store_p BLKmode MEMs.
13093 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
13095         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
13096         Remove.
13097         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
13098         xstormy16_print_operand_address): Remove.
13099         * config/stormy16/stormy16.c (xstormy16_print_operand,
13100         xstormy16_print_operand_address): Make static.
13101         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13103 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
13105         PR target/47862
13106         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13107         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
13108         before definition.
13110 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
13112         PR bootstrap/48000
13113         * cfgloopmanip.c (fix_bb_placements): Return immediately
13114         if FROM is BASE_LOOP's header.
13116 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
13118         * gimplify.c (gimplify_function_tree): Fix building calls
13119         to __builtin_return_address.
13121 2011-03-07  Alan Modra  <amodra@gmail.com>
13123         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
13124         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
13125         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
13126         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
13127         return_mode args.
13128         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
13129         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
13130         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
13131         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
13132         * config/rs6000/rs6000.c
13133         (rs6000_elf_end_indicate_exec_stack): Rename to..
13134         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
13135         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
13136         (rs6000_file_start): ..here.
13137         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
13138         file scope variables.
13139         (call_ABI_of_interest): New function.
13140         (init_cumulative_args): Set above vars when function return value
13141         is a float, vector, or small struct.
13142         (rs6000_function_arg_advance_1): Likewise for function args.
13143         (rs6000_va_start): Set rs6000_passes_float if variable arg function
13144         references float args.
13146 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
13148         * doc/cfg.texi: Remove "See" before @ref.
13149         * doc/invoke.texi: Likewise.
13151 2011-03-05  Jason Merrill  <jason@redhat.com>
13153         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
13155 2011-03-05  Anthony Green  <green@moxielogic.com>
13157         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
13159 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
13161         PR rtl-optimization/47899
13162         * cfgloopmanip.c (fix_bb_placements): Fix first argument
13163         to flow_loop_nested_p when moving the loop upward.
13165 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
13167         PR target/47719
13168         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
13170 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
13172         PR tree-optimization/47967
13173         * ipa-cp.c (build_const_val): Return NULL instead of creating
13174         VIEW_CONVERT_EXPR for mismatching sizes.
13175         (ipcp_create_replace_map): Return NULL if build_const_val failed.
13176         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
13177         give up on versioning.
13179 2011-03-05  Alan Modra  <amodra@gmail.com>
13181         PR target/47986
13182         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13183         full cmodel medium/large lo_sum + high addresses.
13185 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13187         * config/s390/s390.c (s390_decompose_address): Reject non-literal
13188         pool references in UNSPEC_LTREL_OFFSET.
13190 2011-03-04  Jan Hubicka  <jh@suse.cz>
13192         PR lto/47497
13193         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
13194         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
13195         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
13196         Add node pointers.
13197         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
13198         cgraph_add_thunk): Add node pointers.
13199         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
13200         associated to right node.
13201         (input_node): Update use of cgraph_same_body_alias
13202         and cgraph_add_thunk.
13204 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
13206         * config/i386/i386.opt (mprefer-avx128): New flag.
13207         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
13208         modes when the flag -mprefer-avx128 is on.
13210 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
13212         * dwarf2out.c (compare_loc_operands): Fix address handling.
13214 2011-03-04  Alan Modra  <amodra@gmail.com>
13216         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
13218 2011-03-04  Richard Guenther  <rguenther@suse.de>
13220         PR middle-end/47968
13221         * expmed.c (extract_bit_field_1): Prefer vector modes that
13222         vec_extract patterns can handle.
13224 2011-03-04  Richard Guenther  <rguenther@suse.de>
13226         PR middle-end/47975
13227         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
13229 2011-03-04  Richard Henderson  <rth@redhat.com>
13231         * explow.c (emit_stack_save): Remove 'after' parameter.
13232         (emit_stack_restore): Likewise.
13233         * expr.h: Update to match.
13234         * builtins.c, calls.c, stmt.c: Likewise.
13235         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
13236         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
13237         * function.c (expand_function_end): Insert the emit_stack_save
13238         sequence before parm_birth_insn instead of after.
13240 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
13242         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
13243         (ssse3_pmaddubsw128): Ditto.
13244         (ssse3_pmaddubsw): Ditto.
13246 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
13248         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
13250 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
13252         PR c/47963
13253         * gimplify.c (omp_add_variable): Only call omp_notice_variable
13254         on TYPE_SIZE_UNIT if it is a DECL.
13256         PR debug/47283
13257         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
13258         first operand is not is_gimple_mem_ref_addr, try to fold it.
13259         If the operand still isn't is_gimple_mem_ref_addr, clear
13260         MEM_EXPR on op0.
13262 2011-03-03  Richard Guenther  <rguenther@suse.de>
13264         PR middle-end/47283
13265         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
13266         match comment.
13267         (refs_may_alias_p_1): For release branches return true if
13268         we are confused by our input.
13270 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13272         * config/s390/s390.c (s390_function_value): Rename to ...
13273         (s390_function_and_libcall_value): ... this.
13274         (s390_function_value): New function.
13275         (s390_libcall_value): New function.
13276         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
13277         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
13278         target macro definitions.
13279         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
13281 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
13283         * config/i386/freebsd64.h (CC1_SPEC): Define.
13284         * config/i386/linux64.h (CC1_SPEC): Define.
13285         * config/i386/x86-64.h (CC1_SPEC): Don't define.
13287 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
13289         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13290         Remove.
13291         * config/stormy16/stormy16.c: Include reload.h.
13292         (xstormy16_memory_move_cost): New function.
13293         (TARGET_MEMORY_MOVE_COST): Define.
13295 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
13297         PR rtl-optimization/47925
13298         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
13299         with side effects.  Remove the more-specific check for volatile asms.
13301 2011-03-02  Alan Modra  <amodra@gmail.com>
13303         PR target/47935
13304         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
13305         toc relative addresses for valid offsets.
13307 2011-03-01  Richard Guenther  <rguenther@suse.de>
13309         PR tree-optimization/47890
13310         * tree-vect-loop.c (get_initial_def_for_induction): Set
13311         related stmt properly.
13313 2011-03-01  Richard Guenther  <rguenther@suse.de>
13315         PR lto/47924
13316         * lto-streamer.c (lto_record_common_node): Also register
13317         the canonical type.
13319 2011-03-01  Richard Guenther  <rguenther@suse.de>
13321         PR lto/46911
13322         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13323         Do not stream DECL_ABSTRACT_ORIGIN.
13324         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13325         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13326         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13327         Do not stream DECL_ABSTRACT_ORIGIN.
13328         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13329         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13331 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
13333         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
13334         FUNCTION_VALUE_REGNO_P): Remove.
13335         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
13336         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
13337         Add 'outgoing' argument.
13338         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
13339         function.
13340         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13341         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13343 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
13345         PR debug/28047
13346         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
13347         (lookup_filename): Likewise.
13348         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
13350 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
13351             Jakub Jelinek  <jakub@redhat.com>
13353         PR middle-end/47893
13354         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
13355         (assign_stack_local_1): Change last argument type to int.
13356         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
13357         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
13358         don't record padding space into frame_space_list nor use those areas.
13359         (assign_stack_local): Adjust caller.
13360         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
13361         of assign_stack_local, pass 0 as last argument.
13362         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
13363         callers.
13365 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
13367         PR debug/47283
13368         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
13369         Use target address_mode and pointer_mode hooks instead of hardcoded
13370         Pmode and ptr_mode.  Handle some simple cases of extending if
13371         POINTERS_EXTEND_UNSIGNED < 0.
13372         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
13373         Call convert_debug_memory_address.
13374         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
13375         convert_debug_memory_address.
13377         PR middle-end/46790
13378         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
13379         * configure: Regenerated.
13380         * config.in: Regenerated.
13381         * varasm.c (default_function_section): Return NULL
13382         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
13384 2011-02-28  Martin Jambor  <mjambor@suse.cz>
13386         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
13387         the description to match the printed values.
13389 2011-02-28  Richard Guenther  <rguenther@suse.de>
13391         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
13392         of the copied scope tree.
13394 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13396         * doc/extend.texi (Function Attributes): Avoid deeply (and
13397         wrongly) nested tables.
13399 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
13401         PR middle-end/47903
13402         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
13403         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
13404         r isn't op0 nor op1.
13406 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
13408         * config/avr/avr.md: Remove magic comment for emacs.
13410 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
13412         PR target/45261
13413         * config/avr/avr.c (avr_option_override): Use error on bad options.
13414         (avr_help): New function.
13415         (TARGET_HELP): Define.
13417 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
13419         PR target/42240
13420         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
13421         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
13423 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
13425         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
13426         (ARM Options): Ditto.
13427         (i386 and x86-64 Options): Ditto.
13428         (RX Options): Ditto.
13429         (SPARC Options): Ditto.
13431 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
13433         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
13434         FreeBSD 6 and later.  Generally use cpu generic.
13436 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
13438         * doc/cpp.texi: Update copyright years.
13440 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
13442         PR target/46898
13443         * config/lm32/lm32.md (ashrsi3): Added needed variable.
13445 2011-02-25  Jon Beniston  <jon@beniston.com>
13447         PR target/46898
13448         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
13449         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
13450         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
13451         (lm32_block_move_inline): Add type cast to remove warning.
13452         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
13453         (gen_int_relational): Move declarations to start of function.
13455 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
13457         PR tree-optimization/45470
13458         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
13459         can throw internally only.
13460         * tree-vect-stmts.c (vectorizable_call): Likewise.
13462 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
13464         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
13465         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13466         * config/stormy16/stormy16-protos.h
13467         (xstormy16_preferred_reload_class): Remove.
13468         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
13469         static. Change 'rclass' argument and return type to reg_class_t.
13470         (TARGET_PREFERRED_RELOAD_CLASS,
13471         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13473 2011-02-24  Richard Guenther  <rguenther@suse.de>
13475         * lto-streamer-in.c (input_bb): Do not find referenced vars
13476         in debug statements.
13478 2011-02-23  Jason Merrill  <jason@redhat.com>
13480         * common.opt (fabi-version): Document v5 and v6.
13482 2011-02-23  Richard Guenther  <rguenther@suse.de>
13484         PR tree-optimization/47849
13485         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
13487 2011-02-23  Jie Zhang  <jie@codesourcery.com>
13489         * opts-common.c (decode_cmdline_option): Print empty string
13490         argument as "" in decoded->orig_option_with_args_text.
13491         * gcc.c (execute): Print empty string argument as ""
13492         in the verbose output.
13493         (do_spec_1): Keep empty string argument.
13495 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
13497         * config.gcc: Declare score-* and crx-* obsolete.
13499 2011-02-23  Jie Zhang  <jie@codesourcery.com>
13501         PR rtl-optimization/47763
13502         * web.c (web_main): Ignore naked clobber when replacing register.
13504 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
13506         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13507         Remove.
13509 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
13511         PR doc/47848
13512         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
13514 2011-02-22  Mike Stump  <mikestump@comcast.net>
13516         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
13517         assembler.
13518         * configure: Regenerate.
13520 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
13522         PR rtl-optimization/46002
13523         * ira-color.c (update_copy_costs): Change class intersection
13524         test to reg_class_contents[] test of 'hard_regno'.
13526 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
13528         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
13529         than Driver option.
13530         * config/hpux11.opt (mt): Likewise.
13531         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
13532         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
13533         * config/vax/elf.opt (mno-asm-pic): Likewise.
13534         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
13536 2011-02-21  Mike Stump  <mikestump@comcast.net>
13538         PR target/47822
13539         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
13540         tree so we can get save the type.
13541         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
13542         for CFString instead of trying to use past the end of the builtins.
13543         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
13544         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
13545         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
13546         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
13547         Rename to darwin_builtin_cfstring.
13548         (darwin_init_cfstring_builtins): Return the built type.
13550 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
13552         PR target/47840
13553         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
13554         (_mm256_insert_epi64): Use _mm_insert_epi64.
13556 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
13558         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13559         * config/stormy16/stormy16-protos.h
13560         (xstormy16_mode_dependent_address_p): Remove.
13561         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
13562         Make static. Change return type to bool. Change argument type to
13563         const_rtx. Remove dead code.
13564         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13566 2011-02-21  Richard Guenther  <rguenther@suse.de>
13568         PR lto/47820
13569         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13570         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13571         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13572         TUs context.
13573         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13574         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13576 2011-02-20  Richard Guenther  <rguenther@suse.de>
13578         PR lto/47822
13579         * tree.c (free_lang_data_in_decl): Clean builtins from
13580         the TU decl BLOCK_VARS.
13582 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
13584         PR debug/47620
13585         PR debug/47630
13586         * haifa-sched.c (fix_tick_ready): Skip tick computation
13587         for debug insns.
13589 2011-02-19  Richard Guenther  <rguenther@suse.de>
13591         PR lto/47647
13592         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13593         Remove lazy BLOCK_VARS streaming.
13594         (lto_input_ts_block_tree_pointers): Likewise.
13595         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13597 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
13599         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13601 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
13603         * config/i386/biarch32.h, config/i386/mach.h,
13604         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13606 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
13608         PR target/47800
13609         * config/i386/i386.md (peephole2 for shift and plus): Use
13610         operands[1] original mode in the first insn.
13612 2011-02-18  Mike Stump  <mikestump@comcast.net>
13614         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13616 2011-02-18  Jan Hubicka  <jh@suse.cz>
13618         PR middle-end/47788
13619         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13620         to zero when the function is not inlinable at all.
13622 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13624         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13625         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13626         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13627         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13628         * config/pa/t-pa64: Likewise.
13629         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13631 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
13633         PR driver/47787
13634         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13636 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13638         PR target/47792
13639         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13641 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
13643         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13644         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13645         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13646         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13647         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13648         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13649         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13650         m32r_load_postinc_p, m32r_store_preinc_predec_p,
13651         m32r_legitimate_address_p): New functions.
13652         * config/m32r/constraints.md (constraint "S"): Don't use
13653         STORE_PREINC_PREDEC_P.
13654         (constraint "U"): Don't use LOAD_POSTINC_P.
13656 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
13658         PR rtl-optimization/46178
13659         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13660         compute ira_hard_regno_cover_class[].
13662 2011-02-18  Richard Guenther  <rguenther@suse.de>
13664         PR lto/47798
13665         * lto-streamer.h (lto_global_var_decls): Declare.
13666         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13667         statics for global var processing.
13669 2011-02-18  Richard Guenther  <rguenther@suse.de>
13671         PR tree-optimization/47737
13672         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13673         edge dominance check.
13675 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
13677         PR debug/47780
13678         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13679         avoid invalid rtx sharing.
13681 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
13683         * doc/cpp.texi (Obsolete Features): Add background on the
13684         origin of assertions.
13686 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
13688         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13689         objc_abi == 2.
13690         * config/darwin.c (output_objc_section_asm_op): Added support for
13691         ABI v1 and v2.
13692         (is_objc_metadata): New.
13693         (darwin_objc2_section): New.
13694         (darwin_objc1_section): New.
13695         (machopic_select_section): Added support for ABI v1 and v2.
13696         (darwin_emit_objc_zeroed): New.
13697         (darwin_output_aligned_bss): Detect objc metadata and treat it
13698         appropriately.
13699         (darwin_asm_output_aligned_decl_common): Same.
13700         (darwin_asm_output_aligned_decl_local): Same.
13701         * config/darwin-sections.def: Updated for ABI v1 and v2.
13702         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13703         compiling Objective-C code for the NeXT runtime, default to using
13704         ABI version 0 for 32-bit, and version 2 for 64-bit.
13706 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
13708         * common.opt (optimize_fast): New Variable.
13709         * opts.c (default_options_optimization): Use opts->x_optimize_fast
13710         instead of local variable ofast.
13712 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
13714         * doc/invoke.texi (fobjc-abi-version): Documented.
13715         (fobjc-nilcheck): Documented.
13716         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13717         version.
13719 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
13721         PR driver/47390
13722         * common.opt (export-dynamic): New Driver option.
13723         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13725 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
13727         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13729 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
13730             Jan Hubicka  <jh@suse.cz>
13732         PR debug/47106
13733         PR debug/47402
13734         * cfgexpand.c (account_used_vars_for_block): Remove.
13735         (estimated_stack_frame_size): Use referenced vars.
13736         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13737         that were referenced in the original function.  Test src_fn
13738         rather than cfun.  Drop redundant get_var_ann.
13739         (setup_one_parameter): Drop redundant get_var_ann.
13740         (declare_return_variable): Likewise.
13741         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13742         (copy_arguments_for_versioning): Drop redundant get_var_ann.
13743         * ipa-inline.c (compute_inline_parameters): Do not compute
13744         disregard_inline_limits here.
13745         (compute_inlinable_for_current, pass_inlinable): New.
13746         (pass_inline_parameters): Require PROP_referenced_vars.
13747         * cgraphunit.c (cgraph_process_new_functions): Don't run
13748         compute_inline_parameters explicitly unless function is in SSA form.
13749         (cgraph_analyze_function): Set .disregard_inline_limits.
13750         * tree-sra.c (convert_callers): Compute inliner parameters
13751         only for functions already in SSA form.
13753 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
13755         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13756         -mlittle-endian-data.
13758 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
13760         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13761         -mno-fpu, not -fpu and -no-fpu.
13762         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13763         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13765 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
13767         PR target/43653
13768         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13769         input reload with PLUS RTX.
13771 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
13773         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13774         of InverseVar(MDMX).
13776 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
13778         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13779         --m4-340.
13781 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
13783         * config/mn10300/mn10300.opt (mno-crt0): New.
13785 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
13787         * config/m68k/uclinux.opt (static-libc): New Driver option.
13789 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
13791         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13793 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
13795         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13796         %{muser-extend-enabled}.
13798 2011-02-16  Richard Guenther  <rguenther@suse.de>
13800         PR tree-optimization/47738
13801         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13802         the TODO from tree_predictive_commoning.
13804 2011-02-15  Jeff Law  <law@redhat.com>
13806         Revert
13807         2011-01-25  Jeff Law  <law@redhat.com>
13809         PR rtl-optimization/37273
13810         * ira-costs.c (scan_one_insn): Detect constants living in memory and
13811         handle them like argument loads from stack slots.  Do not double
13812         count memory for memory constants and argument loads from stack slots.
13814 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
13816         PR middle-end/47725
13817         * combine.c (cant_combine_insn_p): Revert the last change.
13819 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
13821         PR target/47755
13822         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13823         mode for vector constants.  Remove code that checks for TImode.
13825 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
13827         PR debug/47106
13828         PR debug/47402
13829         * cgraph.h (compute_inline_parameters): Return void.
13830         * ipa-inline.c (compute_inline_parameters): Adjust.
13832 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
13834         PR debug/47106
13835         PR debug/47402
13836         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13837         rather than decl.
13838         * cfgexpand.c (estimated_stack_frame_size): Likewise.
13839         * ipa-inline.c (compute_inline_parameters): Adjust.
13841 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
13843         PR debug/47106
13844         PR debug/47402
13845         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13846         Adjust all users.  Pass FN to...
13847         * tree-flow-inline.h (first_referenced_var): ... this.  Add
13848         fn argument.
13849         * ipa-struct-reorg.c: Adjust.
13850         * tree-dfa.c: Adjust.
13851         * tree-into-ssa.c: Adjust.
13852         * tree-sra.c: Adjust.
13853         * tree-ssa-alias.c: Adjust.
13854         * tree-ssa-live.c: Adjust.
13855         * tree-ssa.c: Adjust.
13856         * tree-ssanames.c: Adjust.
13857         * tree-tailcall.c: Adjust.
13859 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
13861         PR debug/47106
13862         PR debug/47402
13863         * tree-flow.h (referenced_var_lookup): Add fn parameter.
13864         Adjust all callers.
13865         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13866         * tree-flow-inline.h: Adjust.
13867         * gimple-pretty-print.c: Adjust.
13868         * tree-into-ssa.c: Adjust.
13869         * tree-ssa.c: Adjust.
13870         * cfgexpand.c: Adjust.
13872 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
13874         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13875         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13876         (EXTRA_CONSTRAINT): Delete.
13877         * config/iq2000/constraints.md: New file.
13878         * config/iq2000/iq2000.md: Include it.
13879         (define_insn ""): Delete.
13880         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13881         unsupported constraint letters from patterns.
13882         (call_value, call_value_internal1): Likewise.
13883         (call_value_multiple_internal1): Likewise.
13885 2011-02-15  Nick Clifton  <nickc@redhat.com>
13887         * config/mn10300/mn10300.c: Include tm-constrs.h.
13888         (struct liw_data): New data structure describing an LIW candidate
13889         instruction.
13890         (extract_bundle): Use struct liw_data.  Allow small integer
13891         operands for some instructions.
13892         (check_liw_constraints): Use struct liw_data.  Remove swapped
13893         parameter.  Add comments describing the checks.  Fix bug when
13894         assigning the source of liw1 to the source of liw2.
13895         (liw_candidate): Delete.  Code moved into extract_bundle.
13896         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
13897         before swapping.
13898         * config/mn10300/predicates.md (liw_operand): New predicate.
13899         Allows registers and small integer constants.
13900         * config/mn10300/constraints.md (O): New constraint.  Accetps
13901         integers in the range -8 to +7 inclusive.
13902         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13903         for moving a small integer into a register.  Give this alternative
13904         LIW attributes.
13905         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13906         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13907         using the J,K,L and M constraints,
13908         (liw): Remove SI mode on second operands to allow for HI and QI
13909         mode values.
13910         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
13911         instruction.
13913 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
13915         PR middle-end/47725
13916         * combine.c (cant_combine_insn_p): Check zero/sign extended
13917         hard registers.
13919 2011-02-15  Richard Guenther  <rguenther@suse.de>
13921         PR tree-optimization/47743
13922         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13923         for a non-type-compatible VN lookup bail out.
13925 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
13927         * config/fr30/constraints.md: New file.
13928         * config/fr30/fr30.md: Include it.
13929         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13930         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13931         (EXTRA_CONSTRAINT): Delete.
13933 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
13935         * config/frv/constraints.md: New file.
13936         * config/frv/predicates.md: Include it.
13937         * config/frv/frv.c (reg_class_from_letter): Delete.
13938         (frv_option_override): Don't initialize it.
13939         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13940         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13941         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13942         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13943         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13944         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13945         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13946         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13947         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13948         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13949         (REG_CLASS_FROM_CONSTRAINT): Delete.
13951 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
13953         PR middle-end/47581
13954         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13955         if frame size is 0 in a leaf function.
13957 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13959         PR pch/14940
13960         * config/alpha/host-osf.c: New file.
13961         * config/alpha/x-osf: New file.
13962         * config.host (alpha*-dec-osf*): Use it.
13964 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
13966         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13967         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13968         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13969         (rx_mode_dependent_address_p): ...this. Make static. Change argument
13970         type to const_rtx.
13971         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13973 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
13975         * config/stormy16/constraints.md: New file.
13976         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13977         Use satisfies_constraint_Q and satisfies_constraint_R.
13978         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13979         Delete.
13980         (xstormy16_legitiamte_address_p): Declare.
13981         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13982         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13983         (EXTRA_CONSTRAINT): Delete.
13984         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13985         Un-staticize.
13986         (xstormy16_extra_constraint_p): Delete.
13988 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
13990         PR tree-optimization/46494
13991         * loop-unroll.c (split_edge_and_insert): Adjust comment.
13992         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13993         (pass_rtl_loop_done): Add TODO_verify_flow.
13994         * fwprop.c (pass_rtl_fwprop): Likewise.
13995         * modulo-sched.c (pass_sms): Likewise.
13996         * tree-ssa-dom.c (pass_dominator): Likewise.
13997         * tree-ssa-loop-ch.c (pass_ch): Likewise.
13998         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13999         (pass_tree_loop_done): Likewise.
14000         * tree-ssa-pre.c (execute_pre): Likewise.
14001         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
14002         * tree-ssa-sink.c (pass_sink_code): Likewise.
14003         * tree-vrp.c (pass_vrp): Likewise.
14005 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
14007         * config/v850/constraints.md: New file.
14008         * config/v850/v850.md: Include it.
14009         * config/v850/predicates.md (reg_or_0_operand): Use
14010         satisfies_constraint_G.
14011         (special_symbolref_operand): Use satisfies_constraint_K.
14012         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
14013         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
14014         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
14015         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14016         (EXTRA_CONSTRAINT): Delete.
14017         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
14018         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
14019         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
14021 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
14023         PR target/47696
14024         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
14025         description.
14027 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
14029         * config/mcore/constraints.md: New file.
14030         * config/mcore/mcore.md: Include it.
14031         * config/mcore/mcore.c (reg_class_from_letter): Delete.
14032         * config/mcore/mcore.h (reg_class_from_letter): Delete.
14033         (REG_CLASS_FROM_LETTER): Delete.
14034         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
14035         insn_const_int_ok_for_constraint.
14036         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
14037         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
14038         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14039         (EXTRA_CONSTRAINT): Delete.
14041 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14043         PR ada/41929
14044         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
14045         (IS_SIGHANDLER): Define.
14046         (sparc64_is_sighandler): New function, split off from
14047         sparc64_fallback_frame_state.
14048         (sparc_is_sighandler): New function, split off from
14049         sparc_fallback_frame_state.
14050         (sparc64_fallback_frame_state): Merge with ...
14051         (sparc_fallback_frame_state): ... this into ...
14052         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
14053         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
14054         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
14055         stack instead of hardcoded offsets.
14057 2011-02-14  Andriy Gapon  <avg@freebsd.org>
14059         PR target/45808
14060         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
14062 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14064         * configure: Regenerate.
14066 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
14068         PR driver/45731
14069         * gcc.c (asm_options): Correct spec matching --target-help.
14071 2011-02-12  Martin Jambor  <mjambor@suse.cz>
14073         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
14074         to gimple call error.
14076 2011-02-12  Mike Stump  <mikestump@comcast.net>
14078         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
14079         comments in backslash regions.
14081 2011-02-12  Mike Stump  <mikestump@comcast.net>
14082             Jakub Jelinek  <jakub@redhat.com>
14083             Iain Sandoe  <iains@gcc.gnu.org>
14085         PR target/47324
14086         * dwarf2out.c (output_cfa_loc): When required, apply the
14087         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
14088         (output_loc_sequence): Likewise.
14089         (output_loc_operands_raw): Likewise.
14090         (output_loc_sequence_raw): Likewise.
14091         (output_cfa_loc): Likewise.
14092         (output_loc_list): Suppress register number adjustment when
14093         calling output_loc_sequence()
14094         (output_die): Likewise.
14096 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
14098         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14099         Remove macros.
14100         * config/xtensa/xtensa.c (xtensa_register_move_cost,
14101         xtensa_memory_move_cost): New functions.
14102         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
14104 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
14106         PR lto/47225
14107         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
14108         in the current directory.
14109         * configure: Rebuilt.
14111 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
14113         * config/darwin.c (darwin_override_options): Add a hunk missed
14114         from the commit of r168571.  Trim comment line lengths and
14115         correct indents of the preceding block.
14117 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
14119         * gcc.c (driver_handle_option): Concatenate the argument to -F with
14120         the switch.
14122 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
14124         * common.opt (nostartfiles): New Driver option.
14126 2011-02-11  Xinliang David Li  <davidxl@google.com>
14128         PR tree-optimization/47707
14129         * tree-chrec.c (convert_affine_scev): Keep type precision.
14131 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
14133         PR tree-optimization/47420
14134         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
14136 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
14138         PR rtl-optimization/47614
14139         * rtl.h (check_for_inc_dec): Declare.
14140         * dse.c (check_for_inc_dec): Externalize...
14141         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
14142         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
14144 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
14146         PR driver/47678
14147         * gcc.c (main): Do not compile inputs if there were errors in
14148         option handling.
14149         * opts-common.c (read_cmdline_option): Check for wrong language
14150         after other error checks.
14152 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
14154         * cgraph.c: Fix comment typos.
14155         * cgraph.h: Likewise.
14156         * cgraphunit.c: Likewise.
14157         * ipa-cp.c: Likewise.
14158         * ipa-inline.c: Likewise.
14159         * ipa-prop.c: Likewise.
14160         * ipa-pure-const.c: Likewise.
14161         * ipa-ref.c: Likewise.
14162         * ipa-reference.c: Likewise.
14164 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
14166         PR debug/47684
14167         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
14169 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14171         PR testsuite/47400
14172         * doc/sourcebuild.texi (Require Support): Document
14173         dg-require-ascii-locale.
14175 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
14177         * doc/lto.texi (Write summary): Fix missing parentheses.
14179 2011-02-10  DJ Delorie  <dj@redhat.com>
14181         * config/m32c/m32c.c (m32c_option_override): Disable
14182         -fcombine-stack-adjustments until flag value tracking and compare
14183         optimization can be rewritten.
14185 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
14187         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
14188         PROCESSOR_POWER7.
14189         (PROCESSOR_DEFAULT64): Likewise.
14191 2011-02-10  Richard Henderson  <rth@redhat.com>
14193         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
14194         change from 2011-02-03.
14195         * config/rx/rx.c (flags_from_code): Likewise.
14196         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
14197         is valid, n/pz otherwise.
14198         (rx_select_cc_mode): Return CCmode if Y is not zero.
14200 2011-02-10  Richard Guenther  <rguenther@suse.de>
14202         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
14204 2011-02-10  Richard Guenther  <rguenther@suse.de>
14206         PR tree-optimization/47677
14207         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
14209 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
14211         PR target/47665
14212         * combine.c (make_compound_operation): Only change shifts into
14213         multiplication for SCALAR_INT_MODE_P.
14215 2011-02-10  Jie Zhang  <jie@codesourcery.com>
14217         PR testsuite/47622
14218         Revert
14219         2011-02-05  Jie Zhang  <jie@codesourcery.com>
14220         PR debug/42631
14221         * web.c (entry_register): Don't clobber the number of the
14222         first uninitialized reference in used[].
14224 2011-02-09  Richard Guenther  <rguenther@suse.de>
14226         PR tree-optimization/47664
14227         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
14228         all edges again.
14230 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
14232         PR target/46481
14233         PR target/47032
14234         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
14235         PROCESSOR_POWER7.
14236         (PROCESSOR_DEFAULT64): Same.
14237         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
14239 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14241         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
14243 2011-02-09  Martin Jambor  <mjambor@suse.cz>
14245         PR middle-end/45505
14246         * tree-sra.c (struct access): New flags grp_scalar_read and
14247         grp_scalar_write.  Changed description of assignment read and write
14248         flags.
14249         (dump_access): Dump new flags, reorder all of them.
14250         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
14251         to detect multiple scalar reads.
14252         (analyze_access_subtree): Use the new scalar read write flags instead
14253         of the old flags.  Adjusted comments.
14255 2011-02-08  DJ Delorie  <dj@redhat.com>
14257         PR target/47548
14258         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
14259         patterns.
14261 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
14263         * config/m68k/uclinux.opt: New.
14264         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
14266 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
14268         * config/cris/elf.opt (sim): New Driver option.
14270 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
14272         * config/xtensa/elf.opt: New.
14273         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
14275 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
14277         * config/vax/elf.opt: New.
14278         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
14280 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
14282         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
14284 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
14286         * config/gnu-user.opt: New.
14287         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
14288         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
14289         *-*-uclinux*): Use gnu-user.opt.
14291 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
14293         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
14294         * config/i386/gnu.h (CPP_SPEC): Likewise.
14296 2011-02-08  Ian Lance Taylor  <iant@google.com>
14298         * common.opt (fcx-limited-range): Add SetByCombined flag.
14299         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
14300         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
14301         (fassociative-math, freciprocal-math): Likewise.
14302         (funsafe-math-optimizations): Likewise.
14303         * opth-gen.awk: Handle SetByCombined.
14304         * optc-gen.awk: Likewise.
14305         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
14306         (set_unsafe_math_optimizations_flags): Likewise.
14307         * doc/options.texi (Option properties): Document SetByCombined.
14309 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
14311         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
14312         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
14313         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
14314         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
14315         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
14317 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
14319         PR tree-optimization/46834
14320         PR tree-optimization/46994
14321         PR tree-optimization/46995
14322         * graphite-sese-to-poly.c (used_outside_reduction): New.
14323         (detect_commutative_reduction): Call used_outside_reduction.
14324         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
14325         translate_scalar_reduction_to_array only when at least one
14326         loop-phi/close-phi tuple has been detected.
14328 2011-02-08  Richard Guenther  <rguenther@suse.de>
14330         PR middle-end/47639
14331         * tree-vect-generic.c (expand_vector_operations_1): Update
14332         stmts here ...
14333         (expand_vector_operations): ... not here.  Cleanup EH info
14334         and the CFG if required.
14336 2011-02-08  Richard Guenther  <rguenther@suse.de>
14338         PR tree-optimization/47641
14339         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
14340         require type compatibility.
14342 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14344         * gimple-low.c (lower_function_body): Don't remove the location of
14345         the return statement here.
14346         (lower_gimple_return): Do it here instead but only if the return
14347         statement is actually used twice.
14349 2011-02-08  Richard Guenther  <rguenther@suse.de>
14351         PR tree-optimization/47632
14352         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
14353         unused up_to_stmt parameter, return whether cfg-cleanup is
14354         necessary, remove EH info properly.
14355         (forward_propagate_into_gimple_cond): Adjust caller.
14356         (forward_propagate_into_cond): Likewise.
14357         (forward_propagate_comparison): Likewise.
14358         (tree_ssa_forward_propagate_single_use_vars): Make
14359         forward_propagate_comparison case similar to the two others.
14361 2011-02-08  Nick Clifton  <nickc@redhat.com>
14363         * config/mn10300/mn10300.opt (mliw): New command line option.
14364         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
14365         (liw_bundling): New automaton.
14366         (liw): New attribute.
14367         (liw_op): New attribute.
14368         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
14369         (movsi_internal): Add LIW attributes.
14370         (andsi3): Likewise.
14371         (iorsi3): Likewise.
14372         (xorsi3): Likewise.
14373         (addsi3): Separate register and immediate alternatives.
14374         Add LIW attributes.
14375         (subsi3): Likewise.
14376         (cmpsi): Likewise.
14377         (aslsi3): Likewise.
14378         (lshrsi3): Likewise.
14379         (ashrsi3): Likewise.
14380         (liw): New pattern.
14381         * config/mn10300/mn10300.c (liw_op_names): New
14382         (mn10300_print_operand): Handle 'W' operand descriptor.
14383         (extract_bundle): New function.
14384         (check_liw_constraints): New function.
14385         (liw_candidate): New function.
14386         (mn10300_bundle_liw): New function.
14387         (mn10300_reorg): New function.
14388         (TARGET_MACHINE_DEPENDENT_REORG): Define.
14389         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
14390         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
14391         __LIW__ or __NO_LIW__.
14392         * doc/invoke.texi: Describe the -mliw command line option.
14394 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14396         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
14397         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14398         pthread_mutex_unlock): Remove.
14399         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
14400         * config/pa/t-pa64: Likewise.
14401         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
14402         shared libc if not linking against libpthread.
14403         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14405 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
14407         PR target/47558
14408         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
14409         on 10.6 and later to ensure that we always use the unwinder from
14410         the system.  Only add -no_compact_unwind when tarteting darwin
14411         10.6 or later.
14413 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
14415         PR target/46997
14416         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
14417         (vec_interleave_lowv2sf): Ditto.
14418         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
14419         (vec_extract_oddv2sf): Ditto.
14421 2011-02-07  Mike Stump  <mikestump@comcast.net>
14423         PR target/42333
14424         Add __ieee_divdc3 entry point.
14425         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
14426         entry point.
14427         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
14428         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
14429         * config/darwin.c (darwin_rename_builtins): Add.
14430         * config/darwin-protos.h (darwin_rename_builtins): Add.
14432 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
14434         PR target/47636
14435         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
14436         for the condition.
14438 2011-02-07  Mike Stump  <mikestump@comcast.net>
14440         * config/darwin.opt (mmacosx-version-min): Update default OS version.
14442 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
14444         PR target/47534
14445         * config/avr/libgcc.S (exit): Move .endfunc
14447 2011-02-07  Richard Guenther  <rguenther@suse.de>
14449         PR tree-optimization/47615
14450         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
14451         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
14452         (run_scc_vn): Initialize it.
14453         (visit_reference_op_load): Use it.
14454         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
14456 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14458         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
14459         DImode trapping arithmetic libfuncs.
14461 2011-02-07  Richard Guenther  <rguenther@suse.de>
14463         PR tree-optimization/47621
14464         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
14465         two duplicates ...
14466         (execute_update_addresses_taken): ... here.  Make it more
14467         conservative in what we accept.
14469 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
14471         * config/sparc/freebsd.h (ASM_SPEC): Define.
14472         * config/sparc/vxworks.h (ASM_SPEC): Define.
14474 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
14476         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14478 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
14480         * doc/invoke.texi: Remove reference to compiler internals from
14481         user documentation.
14483         * reg-notes.def: Remove REG_VALUE_PROFILE.
14484         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
14486 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
14488         PR middle-end/47610
14489         * varasm.c (default_section_type_flags): If decl is NULL,
14490         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
14492 2011-02-05  Jie Zhang  <jie@codesourcery.com>
14494         PR debug/42631
14495         * web.c (entry_register): Don't clobber the number of the
14496         first uninitialized reference in used[].
14498 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
14500         PR tree-optimization/46194
14501         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
14502         (build_classic_dist_vector_1): Do not represent classic distance
14503         vectors when the access functions are variating in different loops.
14505 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
14507         * config/mips/iris6.opt: New.
14508         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
14510 2011-02-04  Richard Henderson  <rth@redhat.com>
14511             Steve Ellcey  <sje@cup.hp.com>
14513         PR target/46997
14514         * config/ia64/predicates.md (mux1_brcst_element): New.
14515         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
14516         * config/ia64/ia64.c (ia64_unpack_assemble): New.
14517         (ia64_unpack_sign): New.
14518         (ia64_expand_unpack): Rewrite using new routines.
14519         (ia64_expand_widen_sum): Ditto.
14520         (ia64_expand_dot_prod_v8qi): Ditto.
14521         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
14522         routines, add endian check.
14523         (pmpy2_even): Rename from pmpy2_r, add endian check.
14524         (pmpy2_odd): Rename from pmpy2_l, add endian check.
14525         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
14526         (vec_widen_smult_hi_v4hi): Ditto.
14527         (vec_widen_umult_lo_v4hi): Ditto.
14528         (vec_widen_umult_hi_v4hi): Ditto.
14529         (mulv2si3): Change endian checks.
14530         (sdot_prodv4hi): Rewrite with new calls.
14531         (udot_prodv4hi): New.
14532         (vec_pack_ssat_v4hi): Add endian check.
14533         (vec_pack_usat_v4hi): Ditto.
14534         (vec_pack_ssat_v2si): Ditto.
14535         (max1_even): Rename from max1_r, add endian check.
14536         (max1_odd): Rename from max1_l, add endian check.
14537         (*mux1_rev): Format change.
14538         (*mux1_mix): Ditto.
14539         (*mux1_shuf): Ditto.
14540         (*mux1_alt): Ditto.
14541         (*mux1_brcst_v8qi): Use new predicate.
14542         (vec_extract_evenv8qi): Remove endian check.
14543         (vec_extract_oddv8qi): Ditto.
14544         (vec_interleave_lowv4hi): Format change.
14545         (vec_interleave_highv4hi): Ditto.
14546         (mix2_even): Rename from mix2_r, add endian check.
14547         (mix2_odd): Rename from mux2_l, add endian check.
14548         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
14549         (vec_extract_evenodd_helper): Format change.
14550         (vec_extract_evenv4hi): Remove endian check.
14551         (vec_extract_oddv4hi): Remove endian check.
14552         (vec_interleave_lowv2si): Format change.
14553         (vec_interleave_highv2si): Format change.
14554         (vec_initv2si): Remove endian check.
14555         (vecinit_v2si): Add endian check.
14556         (reduc_splus_v2sf): Add endian check.
14557         (reduc_smax_v2sf): Ditto.
14558         (reduc_smin_v2sf): Ditto.
14559         (vec_initv2sf): Remove endian check.
14560         (fpack): Add endian check.
14561         (fswap): Add endian check.
14562         (vec_interleave_highv2sf): Add endian check.
14563         (vec_interleave_lowv2sf): Add endian check.
14564         (fmix_lr): Add endian check.
14565         (vec_setv2sf): Format change.
14566         (*vec_extractv2sf_0_be): Use shift to extract operand.
14567         (*vec_extractv2sf_1_be): New.
14568         (vec_pack_trunc_v4hi): Add endian check.
14569         (vec_pack_trunc_v2si): Format change.
14571 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
14573         PR inline-asm/23200
14574         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
14575         do bb, locus and block comparison and disallow loads if it is not set.
14576         (stmt_is_replaceable_p): New function.
14577         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14578         callers.
14579         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14580         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14581         SSA_NAME_DEF_STMT.
14582         * tree-flow.h (stmt_is_replaceable_p): New prototype.
14584 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
14586         * config/rs6000/xilinx.opt: New.
14587         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14589 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
14591         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14593 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
14595         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14596         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14597         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14598         secondary_reload_info, xtensa_secondary_reload): Remove.
14599         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14600         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14601         (xtensa_preferred_reload_class): Make static. Change return and
14602         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14603         Use CONST_DOUBLE_P predicate.
14604         (xtensa_preferred_output_reload_class): New function.
14605         (xtensa_secondary_reload): Make static.
14607 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
14609         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14610         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14611         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14613 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
14615         PR middle-end/31490
14616         * output.h (SECTION_RELRO): Define.
14617         (SECTION_MACH_DEP): Adjust.
14618         (get_variable_section): New prototype.
14619         * varpool.c (varpool_finalize_named_section_flags): New function.
14620         (varpool_assemble_pending_decls): Call it.
14621         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14622         * cgraphunit.c (cgraph_output_in_order): Call
14623         varpool_finalize_named_section_flags.
14624         * varasm.c (get_section): Allow section flags conflicts between
14625         relro and read-only sections if the section hasn't been declared yet.
14626         Set SECTION_OVERRIDE after diagnosing section type conflict.
14627         (get_variable_section): No longer static.
14628         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14629         readonly sections that need relocations.
14630         (decl_readonly_section_1): New function.
14631         (decl_readonly_section): Use it.
14633         Revert:
14634         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
14635                     Steve Ellcey  <sje@cup.hp.com>
14637         PR middle-end/31490
14638         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14639         if section attribute used.
14641 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
14643         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14644         * config/darwin.c (SECTION_NO_ANCHOR): Define.
14645         (darwin_init_sections): Remove assertion.
14647 2011-02-03  Nick Clifton  <nickc@redhat.com>
14649         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14650         lt and ge.
14651         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14652         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14653         instead of "n" and "pz".
14654         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14655         CC_FLAG_S.
14657 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
14659         PR target/47312
14660         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14661         fma, expand FMA_EXPR as fma{,f,l} call.
14663         PR lto/47274
14664         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14665         copy them into a unsigned char variable and pass address of it to
14666         lto_output_data_stream.
14668         PR target/47564
14669         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14670         around backend_init_target and lang_dependent_init_target calls.
14671         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14672         (verify_cgraph_node): Don't call set_cfun here.  Use
14673         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14674         Set error_found for incorrectly represented calls to thunks.
14676 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
14678         PR debug/43092
14679         PR rtl-optimization/43494
14680         * rtl.h (for_each_inc_dec_fn): New type.
14681         (for_each_inc_dec): Declare.
14682         * rtlanal.c (struct for_each_inc_dec_ops): New type.
14683         (for_each_inc_dec_find_inc_dec): New fn.
14684         (for_each_inc_dec_find_mem): New fn.
14685         (for_each_inc_dec): New fn.
14686         * dse.c (struct insn_size): Remove.
14687         (replace_inc_dec, replace_inc_dec_mem): Remove.
14688         (emit_inc_dec_insn_before): New fn.
14689         (check_for_inc_dec): Use it, along with for_each_inc_dec.
14690         (canon_address): Pass mem modes to cselib_lookup.
14691         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
14692         (cselib_lookup_from_insn): Likewise.
14693         (cselib_subst_to_values): Likewise.
14694         * cselib.c (find_slot_memmode): New var.
14695         (cselib_find_slot): New fn.  Use it instead of
14696         htab_find_slot_with_hash everywhere.
14697         (entry_and_rtx_equal_p): Use find_slot_memmode.
14698         (autoinc_split): New fn.
14699         (rtx_equal_for_cselib_p): Rename and implement in terms of...
14700         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
14701         Deal with autoinc.  Special-case recursion into MEMs.
14702         (cselib_hash_rtx): Likewise.
14703         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
14704         address and MEM modes.
14705         (cselib_subst_to_values): Add memmode, pass it on.
14706         Deal with autoinc.
14707         (cselib_lookup): Add memmode argument, pass it on.
14708         (cselib_lookup_from_insn): Add memmode.
14709         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14710         (struct cselib_record_autoinc_data): New.
14711         (cselib_record_autoinc_cb): New fn.
14712         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
14713         mode to cselib_lookup.  Reset autoinced REGs here instead of...
14714         (cselib_process_insn): ... here.
14715         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14716         to cselib_lookup.
14717         (add_uses): Likewise, also to cselib_subst_to_values.
14718         (add_stores): Likewise.
14719         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
14720         cselib_subst_to_values.
14721         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
14722         * gcse.c (do_local_cprop): Adjusted.
14723         * postreload.c (reload_cse_simplify_set): Adjusted.
14724         (reload_cse_simplify_operands): Adjusted.
14725         * sel-sched-dump (debug_mem_addr_value): Pass mode.
14727 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
14729         PR tree-optimization/45122
14730         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14731         unsafe assumptions when there's more than one loop exit.
14733 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
14735         PR target/47272
14736         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14737         Document using vector double with the load/store builtins, and
14738         that the load/store builtins always use Altivec instructions.
14740         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14741         to use altivec memory instructions, even on VSX.
14742         (vector_altivec_store_<mode>): Ditto.
14744         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14745         function.
14747         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14748         V2DF, V2DI support to load/store overloaded builtins.
14750         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14751         altivec load/store builtins for V2DF/V2DI types.
14753         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14754         set avoid indexed addresses on power6 if -maltivec.
14755         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14756         vector_altivec_load/vector_altivec_store builtins.
14757         (altivec_expand_st_builtin): Ditto.
14758         (altivec_expand_builtin): Add VSX memory builtins.
14759         (rs6000_init_builtins): Add V2DI types to internal types.
14760         (altivec_init_builtins): Add support for V2DF/V2DI altivec
14761         load/store builtins.
14762         (rs6000_address_for_altivec): Insure memory address is appropriate
14763         for Altivec.
14765         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14766         vec_vsx_ld and vec_vsx_st.
14767         (vsx_store_<mode>): Ditto.
14769         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14770         variables to hold long long types for VSX vector memory builtins.
14771         (RS6000_BTI_unsigned_long_long): Ditto.
14772         (long_long_integer_type_internal_node): Ditti.
14773         (long_long_unsigned_type_internal_node): Ditti.
14775         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14776         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14777         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14779         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14780         short cuts.
14781         (vec_vsx_st): Ditto.
14783 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
14785         * config/pa/pa-hpux10.opt: New.
14786         * config/hpux11.opt (pthread): New Driver option.
14787         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14788         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14790 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
14792         * config/ia64/vms.opt: New.
14793         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14795 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
14797         PR target/47580
14798         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14799         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14800         generator functions.
14801         (vsx_floatuns<VSi><mode>2): Ditto.
14802         (vsx_fix_trunc<mode><VSi>2): Ditto.
14803         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14805 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
14807         * config/i386/djgpp.opt (posix): New Driver option.
14809 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
14811         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14812         Move to the unsupported targets list.
14814 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
14816         PR rtl-optimization/47525
14817         * df-scan.c: Update copyright years.
14818         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14819         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14821 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14823         * config/i386/sysv4.h (TARGET_VERSION): Remove.
14824         (SUBTARGET_RETURN_IN_MEMORY): Remove.
14825         (ASM_OUTPUT_ASCII): Remove.
14826         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14828 2011-02-02  Jeff Law  <law@redhat.com>
14830         PR middle-end/47543
14831         * reload.c (find_reloads_address): Handle reg+d address where both
14832         components are invalid by reloading the entire address.
14834 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
14835             Richard Guenther  <rguenther@suse.de>
14837         PR tree-optimization/40979
14838         PR bootstrap/47044
14839         * passes.c (init_optimization_passes): After LIM call copy_prop
14840         and DCE to clean up.
14841         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14843 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
14845         PR tree-optimization/47576
14846         PR tree-optimization/47555
14847         * doc/invoke.texi (scev-max-expr-complexity): Documented.
14848         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14849         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14850         * tree-scalar-evolution.c (follow_ssa_edge): Use
14851         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14853 2011-02-02  Richard Guenther  <rguenther@suse.de>
14855         PR tree-optimization/47566
14856         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14858 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
14860         PR debug/47106
14861         PR debug/47402
14862         * tree-inline.c (declare_return_variable): Remove unused caller
14863         variable.
14865         PR debug/47106
14866         PR debug/47402
14867         * tree-flow-inline.h (clear_is_used, is_used_p): New.
14868         * cfgexpand.c (account_used_vars_for_block): Use them.
14869         * tree-nrv.c (tree_nrv): Likewise.
14870         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14871         (dump_scope_block): Likewise.
14872         (remove_unused_locals): Likewise.
14874         PR debug/47106
14875         PR debug/47402
14876         * tree-inline.c (declare_return_variable): Add result decl to
14877         local decls only once.
14878         * gimple-low.c (record_vars_into): Mark newly-created variables
14879         as referenced.
14881 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
14883         PR debug/47498
14884         PR debug/47501
14885         PR debug/45136
14886         PR debug/45130
14887         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14888         debug insns.
14889         (no_real_insns_p, schedule_block, set_priorities): Drop special
14890         treatment of boundary debug insns.
14891         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14892         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14893         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14894         (BOUNDARY_DEBUG_INSN_P): Likewise.
14895         (SCHEDULE_DEBUG_INSN_P): Likewise.
14896         * sched-rgn.c (init_ready_list): Drop special treatment of
14897         boundary debug insns.
14898         * final.c (rest_of_clean_state): Clear notes' BB.
14900 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
14902         * config/openbsd.opt (assert=): New Driver option.
14904 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
14906         * config/i386/nto.opt: New.
14907         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14909 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
14911         * config/i386/netware.opt: New.
14912         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14914 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
14916         * config/interix.opt (posix): New Driver option.
14918 2011-02-01  DJ Delorie  <dj@redhat.com>
14920         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14922         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14923         class for A0/A1.
14925 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
14927         PR tree-optimization/47561
14928         * toplev.c (process_options): Print the Graphite flags.  Add
14929         flag_loop_flatten to the list of options requiring Graphite.
14931 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
14933         * config/i386/cygming.opt (posix): New Driver option.
14935 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
14937         * config/arm/vxworks.opt: New.
14938         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14940 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
14942         * config/alpha/elf.opt: New.
14943         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14944         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14946 2011-02-01  Richard Guenther  <rguenther@suse.de>
14948         PR tree-optimization/47559
14949         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14950         store-motion on references that can throw.
14952 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
14954         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14955         * tree-pass.h (TDF_CSELIB): New macro.
14956         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14957         cselib_lookup): Check for it rather than for TDF_DETAILS.
14959 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
14961         PR driver/47547
14962         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14963         is HOST_BIT_BUCKET.
14965         * opts.c (finish_options): Don't add x_aux_base_name if it is
14966         HOST_BIT_BUCKET.
14968 2011-02-01  Richard Guenther  <rguenther@suse.de>
14970         PR tree-optimization/47555
14971         Revert
14972         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
14974         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14976 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
14978         PR gcc/46692
14979         * config/lm32/t-lm32: Add multilib for all CPU options.
14981 2011-02-01  Richard Guenther  <rguenther@suse.de>
14983         PR tree-optimization/47541
14984         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14985         sure to have a field at offset zero.
14987 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
14989         * config/arc/arc.opt (EB, EL): New Driver options.
14991 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
14993         * config/alpha/osf5.opt: New.
14994         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14996 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
14998         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
15000 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
15002         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
15003         -floop-interchange.
15004         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
15005         is an alias of -floop-interchange and that it requires the
15006         Graphite infrastructure.
15007         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
15008         flag_loop_interchange based on the value of flag_tree_loop_linear.
15010 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
15011             Richard Guenther  <rguenther@suse.de>
15013         PR tree-optimization/47538
15014         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
15015         type instead of r1type, except for comparisons.  For right
15016         shifts and comparisons punt if there are mismatches in
15017         sizetype vs. non-sizetype types.
15019 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15021         * doc/sourcebuild.texi (Effective-Target Keywords): Document
15022         avx_runtime.
15024 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15026         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
15027         version number.
15028         * configure: Regenerate.
15030 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15032         * configure.ac (gcc_cv_ld_static_option): Define.
15033         (gcc_cv_ld_dynamic_option): Define.
15034         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
15035         instead.
15036         (HAVE_LD_STATIC_DYNAMIC): Update message.
15037         (LD_STATIC_OPTION): Define.
15038         (LD_DYNAMIC_OPTION): Define.
15039         * configure: Regenerate.
15040         * config.in: Regenerate.
15041         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
15042         HAVE_LD_STATIC_DYNAMIC]: Use them.
15044 2011-01-31  Nick Clifton  <nickc@redhat.com>
15046         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
15047         registers inside interrupt handlers if the handler is not a leaf
15048         function.
15050 2011-01-31  Nick Clifton  <nickc@redhat.com>
15052         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
15053         reg_renumber returning an INVALID_REGNUM.
15055 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
15057         PR libgcj/44341
15058         * doc/install.texi: Document host options discarded when cross
15059         configuring target libraries.
15061 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
15063         Reverted:
15064         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
15065         PR debug/45136
15066         PR debug/45130
15067         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15068         debug insns.
15069         (no_real_insns_p, schedule_block, set_priorities): Drop special
15070         treatment of boundary debug insns.
15071         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15072         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15073         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15074         (BOUNDARY_DEBUG_INSN_P): Likewise.
15075         (SCHEDULE_DEBUG_INSN_P): Likewise.
15076         * sched-rgn.c (init_ready_list): Drop special treatment of
15077         boundary debug insns.
15078         * final.c (rest_of_clean-state): Clear notes' BB.
15080 2011-01-31  Alan Modra  <amodra@gmail.com>
15082         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
15083         toc relative expressions as we do in print_operand_address.
15085 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
15087         * doc/extend.texi: Follow spelling conventions.
15088         * doc/invoke.texi: Fix a typo.
15090 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
15092         * config/hpux11.opt: New.
15093         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
15094         ia64*-*-hpux*): Use hpux11.opt.
15096 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
15098         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
15099         to tmake_file.
15101 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
15103         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
15104         support sites.
15106 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
15108         * doc/install.texi (Binaries): Remove outdated reference for
15109         Motorola 68HC11/68HC12 downloads.
15111 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
15113         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
15114         Drepper's paper.
15116 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
15118         PR bootstrap/47147
15119         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
15120         used by NetBSD.
15122 2011-01-28  Ahmad Sharif  <asharif@google.com>
15124         * value-prof.c (check_counter): Corrected error message.
15126 2011-01-29  Jie Zhang  <jie@codesourcery.com>
15128         * config/arm/arm.c (arm_legitimize_reload_address): New.
15129         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15130         arm_legitimize_reload_address.
15131         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
15133 2011-01-28  Ian Lance Taylor  <iant@google.com>
15135         * godump.c (go_define): Ignore macros whose definitions include
15136         two adjacent operands.
15138 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
15140         PR target/42894
15141         * varasm.c (force_const_mem): Store copy of x in desc->constant
15142         instead of x itself.
15143         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
15144         itself into REG_EQUAL note.
15146 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
15148         * config/freebsd.opt (posix, rdynamic): New Driver options.
15150 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15152         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
15153         -Bstatic/-Bdynamic.
15154         * configure: Regenerate.
15156 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
15158         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
15159         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
15161 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
15163         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
15164         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
15165         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
15166         (s390_preferred_reload_class): Make static. Change return and
15167         'rclass' argument type to reg_class_t.
15169 2011-01-27  Jan Hubicka  <jh@suse.cz>
15171         PR middle-end/46949
15172         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
15173         (process_function_and_variable_attributes): Check defined weakrefs.
15175 2011-01-27  Martin Jambor  <mjambor@suse.cz>
15177         PR tree-optimization/47228
15178         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
15179         build_ref_for_offset.
15181 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15183         * config/spu/spu-elf.h (ASM_SPEC): Remove.
15185 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
15187         PR rtl-optimization/46856
15188         * postreload.c (reload_combine_recognize_const_pattern): Do not
15189         separate cc0 setter and user on cc0 targets.
15191 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
15193         PR c/43082
15194         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
15195         passed a VOID_TYPE expression, immediately emit an error and
15196         return error_mark_node.
15198 2011-01-26  Jeff Law  <law@redhat.com>
15200         PR rtl-optimization/47464
15201         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
15202         rather than may_trap_p as needed.
15204 2011-01-26  DJ Delorie  <dj@redhat.com>
15206         PR rtl-optimization/46878
15207         * combine.c (insn_a_feeds_b): Check for the implicit cc0
15208         setter/user dependency as well.
15210 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
15212         PR rtl-optimization/44469
15213         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
15214         after removing trivially dead basic blocks.
15216 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
15218         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
15219         * config/frv/frv.h (LINK_SPEC): Likewise.
15220         * config/i386/netware.h (LINK_SPEC): Likewise.
15221         * config/m68k/linux.h (ASM_SPEC): Likewise.
15222         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
15223         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15224         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15225         * config/sparc/linux.h (ASM_SPEC): Likewise.
15226         * config/sparc/linux64.h (ASM_SPEC): Likewise.
15227         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15229 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
15231         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
15232         * config/frv/frv.h (ASM_SPEC): Likewise.
15233         * config/m68k/linux.h (ASM_SPEC): Likewise.
15234         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15235         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
15236         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15237         * config/sparc/linux.h (ASM_SPEC): Likewise.
15238         * config/sparc/linux64.h (ASM_SPEC): Likewise.
15239         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15241 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
15243         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
15244         * config/frv/frv.h (LINK_SPEC): Likewise.
15245         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15247 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
15249         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
15250         * config/frv/frv.h (ASM_SPEC): Likewise.
15251         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
15252         * config/m68k/linux.h (ASM_SPEC): Likewise.
15253         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15254         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
15255         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15256         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
15257         * config/sparc/linux.h (ASM_SPEC): Likewise.
15258         * config/sparc/linux64.h (ASM_SPEC): Likewise.
15259         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15260         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
15262 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
15264         PR target/46997
15265         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
15266         (*mux2): Ditto.
15267         (vec_extract_evenodd_help): Ditto.
15268         (vec_extract_evenv4hi): Ditto.
15269         (vec_extract_oddv4hi): Ditto.
15270         (vec_interleave_lowv2si): Ditto.
15271         (vec_interleave_highv2si): Ditto.
15272         (vec_extract_evenv2si): Ditto.
15273         (vec_extract_oddv2si: Ditto.
15274         (vec_pack_trunc_v2si): Ditto.
15276 2011-01-22  Jan Hubicka  <jh@suse.cz>
15278         PR target/47237
15279         * cgraph.h (cgraph_local_info): New field can_change_signature.
15280         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
15281         signature can change.
15282         (ipcp_estimate_growth): Call sequence simplify only if calle signature
15283         can change.
15284         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
15285         (cgraph_function_versioning): We can not change signature of functions
15286         that don't allow that.
15287         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
15288         (lto_input_node): Likewise.
15289         * ipa-inline.c (compute_inline_parameters): Compute
15290         local.can_change_signature.
15291         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
15292         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
15293         functions that can not change signature.
15294         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
15295         init_cumulative_args): Do not use local calling conventions
15296         for functions that can not change signature.
15298 2011-01-22  Jan Hubicka  <jh@suse.cz>
15300         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
15302 2011-01-26  Richard Guenther  <rguenther@suse.de>
15304         PR tree-optimization/47190
15305         * cgraphunit.c (process_common_attributes): New function.
15306         (process_function_and_variable_attributes): Use it.
15308 2011-01-26  Richard Guenther  <rguenther@suse.de>
15310         PR lto/47423
15311         * cgraphbuild.c (record_eh_tables): Record reference to personality
15312         function.
15314 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
15316         PR debug/45454
15317         * sel-sched.c (moveup_expr): Don't let debug insns prevent
15318         non-debug insns from moving up.
15320 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
15322         PR target/40125
15323         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
15324         t-dlldir{,-x} fragment for build and add it to tmake_file.
15325         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
15326         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
15327         * config/i386/t-dlldir: New file.
15328         (SHLIB_DLLDIR): Define.
15329         * config/i386/t-dlldir-x: New file.
15330         (SHLIB_DLLDIR): Define.
15331         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
15332         (SHLIB_INSTALL): Use it.
15334 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
15336         PR target/47246
15337         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
15338         lower bound of the allowed Thumb-2 coprocessor load/store
15339         index range to -256. Add explaining comment.
15341 2011-01-25  Ian Lance Taylor  <iant@google.com>
15343         * godump.c (go_define): Improve lexing of macro expansion to only
15344         accept expressions which match Go spec.
15346 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
15348         PR c++/43601
15349         * tree.c (handle_dll_attribute): Handle it.
15350         * doc/extend.texi (@item dllexport): Mention it.
15351         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
15353 2011-01-25  Ian Lance Taylor  <iant@google.com>
15355         PR tree-optimization/26854
15356         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
15357         (decl_jump_unsafe): Move higher in file, with no other change.
15358         (bind): Set has_jump_unsafe_decl if appropriate.
15359         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
15360         (check_earlier_gotos): Likewise.
15361         (c_check_switch_jump_warnings): Likewise.
15363 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
15365         * doc/invoke.texi (Warning Options): Add missing hyphen.
15366         (-fprofile-dir): Minor grammatical fixes.
15367         (-fbranch-probabilities): Likewise.
15369 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
15371         PR debug/45136
15372         PR debug/45130
15373         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15374         debug insns.
15375         (no_real_insns_p, schedule_block, set_priorities): Drop special
15376         treatment of boundary debug insns.
15377         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15378         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15379         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15380         (BOUNDARY_DEBUG_INSN_P): Likewise.
15381         (SCHEDULE_DEBUG_INSN_P): Likewise.
15382         * sched-rgn.c (init_ready_list): Drop special treatment of
15383         boundary debug insns.
15384         * final.c (rest_of_clean-state): Clear notes' BB.
15386 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15388         * Makefile.in (LAMBDA_H): Removed.
15389         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
15390         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
15391         lambda-trans.o, and tree-loop-linear.o.
15392         (lto-symtab.o): Remove dependence on LAMBDA_H.
15393         (tree-loop-linear.o): Remove rule.
15394         (lambda-mat.o): Same.
15395         (lambda-trans.o): Same.
15396         (lambda-code.o): Same.
15397         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
15398         (tree-vect-slp.o): Same.
15399         * hwint.h (gcd): Moved here.
15400         (least_common_multiple): Same.
15401         * lambda-code.c: Removed.
15402         * lambda-mat.c: Removed.
15403         * lambda-trans.c: Removed.
15404         * lambda.h: Removed.
15405         * tree-loop-linear.c: Removed.
15406         * lto-symtab.c: Do not include lambda.h.
15407         * omega.c (gcd): Removed.
15408         * passes.c (init_optimization_passes): Remove pass_linear_transform.
15409         * tree-data-ref.c (print_lambda_vector): Moved here.
15410         (lambda_vector_copy): Same.
15411         (lambda_matrix_copy): Same.
15412         (lambda_matrix_id): Same.
15413         (lambda_vector_first_nz): Same.
15414         (lambda_matrix_row_add): Same.
15415         (lambda_matrix_row_exchange): Same.
15416         (lambda_vector_mult_const): Same.
15417         (lambda_vector_negate): Same.
15418         (lambda_matrix_row_negate): Same.
15419         (lambda_vector_equal): Same.
15420         (lambda_matrix_right_hermite): Same.
15421         * tree-data-ref.h: Do not include lambda.h.
15422         (lambda_vector): Moved here.
15423         (lambda_matrix): Same.
15424         (dependence_level): Same.
15425         (lambda_transform_legal_p): Removed declaration.
15426         (lambda_collect_parameters): Same.
15427         (lambda_compute_access_matrices): Same.
15428         (lambda_vector_gcd): Same.
15429         (lambda_vector_new): Same.
15430         (lambda_vector_clear): Same.
15431         (lambda_vector_lexico_pos): Same.
15432         (lambda_vector_zerop): Same.
15433         (lambda_matrix_new): Same.
15434         * tree-flow.h (least_common_multiple): Removed declaration.
15435         * tree-parloops.c (lambda_trans_matrix): Moved here.
15436         (LTM_MATRIX): Same.
15437         (LTM_ROWSIZE): Same.
15438         (LTM_COLSIZE): Same.
15439         (LTM_DENOMINATOR): Same.
15440         (lambda_trans_matrix_new): Same.
15441         (lambda_matrix_vector_mult): Same.
15442         (lambda_transform_legal_p): Same.
15443         * tree-pass.h (pass_linear_transform): Removed declaration.
15444         * tree-ssa-loop.c (tree_linear_transform): Removed.
15445         (gate_tree_linear_transform): Removed.
15446         (pass_linear_transform): Removed.
15447         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
15448         flag_loop_interchange.
15450 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
15452         PR tree-optimization/47265
15453         PR tree-optimization/47443
15454         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
15455         if name still has some uses.
15457 2011-01-25  Martin Jambor  <mjambor@suse.cz>
15459         PR tree-optimization/47382
15460         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
15461         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
15463 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
15465         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
15466         sjlj_except_unwind_info.
15468 2011-01-25  Richard Guenther  <rguenther@suse.de>
15470         PR tree-optimization/47426
15471         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
15472         visible functions results escape.
15474 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
15476         PR target/45701
15477         * config/arm/arm.c (any_sibcall_uses_r3): New function.
15478         (arm_get_frame_offsets): Use it.
15480 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15481             Jakub Jelinek  <jakub@redhat.com>
15483         PR tree-optimization/47271
15484         * tree-if-conv.c (bb_postdominates_preds): New.
15485         (if_convertible_bb_p): Call bb_postdominates_preds.
15486         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
15487         (predicate_scalar_phi): Call bb_postdominates_preds.
15489 2011-01-25  Nick Clifton  <nickc@redhat.com>
15491         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
15492         * config/rx/rx.c (rx_function_value): Likewise.
15493         (rx_promote_function_mode): Likewise.
15494         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
15495         in order to make it legitimate.
15496         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
15497         make sure that the first operand is the same as the result register.
15498         (addsi3_unspec): Delete.
15499         (subdi3): Do not accept immediate operands.
15500         (subdi3_internal): Likewise.
15502 2011-01-25  Jeff Law  <law@redhat.com>
15504         PR rtl-optimization/37273
15505         * ira-costs.c (scan_one_insn): Detect constants living in memory and
15506         handle them like argument loads from stack slots.  Do not double
15507         count memory for memory constants and argument loads from stack slots.
15509 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
15511         PR tree-optimization/47427
15512         PR tree-optimization/47428
15513         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15514         coalesce if the new root var would be TREE_READONLY.
15516 2011-01-25  Richard Guenther  <rguenther@suse.de>
15518         PR middle-end/47414
15519         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
15520         correct type for TBAA.
15522 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15524         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
15525         (close_phi_written_to_memory): Call for_each_index with
15526         dr_indices_valid_in_loop.
15528 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15530         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
15531         when it is initialized.
15533 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15535         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
15536         call to graphite_find_data_references_in_stmt.
15537         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
15538         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
15539         call to graphite_find_data_references_in_stmt.
15540         (analyze_drs_in_stmts): Same.
15541         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
15542         in which the scalar analysis of indices is performed.
15543         (create_data_ref): Same.  Update call to dr_analyze_indices.
15544         (find_data_references_in_stmt): Update call to create_data_ref.
15545         (graphite_find_data_references_in_stmt): Same.
15546         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
15547         declaration.
15548         (create_data_ref): Same.
15549         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
15550         call to create_data_ref.
15552 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15554         * graphite-sese-to-poly.c (build_poly_scop): Move
15555         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
15557 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15559         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
15560         VAR_DECL, PARM_DECL, and RESULT_DECL.
15562 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15564         * graphite-dependences.c (reduction_dr_1): Allow several reductions
15565         in a reduction PBB.
15566         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
15567         that have already been marked as PBB_IS_REDUCTION.
15569 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15571         * graphite-scop-detection.c (same_close_phi_node): New.
15572         (remove_duplicate_close_phi): New.
15573         (make_close_phi_nodes_unique): New.
15574         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15576 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15578         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15579         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15580         of both data references to be the same.
15582 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15584         * graphite-dependences.c (build_lexicographical_constraint): Remove
15585         the gdim parameter.
15586         (build_lexicographical_constraint): Adjust call to
15587         ppl_powerset_is_empty.
15588         (dependence_polyhedron): Same.
15589         (graphite_legal_transform_dr): Same.
15590         (graphite_carried_dependence_level_k): Same.
15591         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15592         parameter.
15593         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15595 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15597         * graphite-sese-to-poly.c
15598         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15599         (close_phi_written_to_memory): New.
15600         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15601         and unshare_expr.
15603 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15605         * doc/install.texi: Update the expected version number of PPL to 0.11.
15606         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15607         #if PPL_VERSION_MINOR < 11.
15609 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15611         * graphite-dependences.c: Include graphite-cloog-util.h.
15612         (new_poly_ddr): Inlined into dependence_polyhedron.
15613         (free_poly_ddr): Moved close by new_poly_ddr.
15614         (dependence_polyhedron_1): Renamed dependence_polyhedron.
15615         Early return NULL when ppl_powerset_is_empty returns true.
15616         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
15617         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
15618         (graphite_legal_transform_dr): Call new_poly_ddr.
15619         (graphite_carried_dependence_level_k): Same.
15620         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
15621         (dot_transformed_deps_stmt_1): Removed.
15622         (dot_deps_stmt_1): Call dot_deps_stmt_2.
15623         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
15624         (dot_deps_1): Call dot_deps_2.
15625         * Makefile.in (graphite-dependences.o): Add missing dependence on
15626         graphite-cloog-util.h.
15628 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15630         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15631         (build_lexicographical_constraint): Same.
15632         (dependence_polyhedron_1): Same.
15633         (graphite_legal_transform_dr): Same.
15634         (graphite_carried_dependence_level_k): Same.
15635         * graphite-ppl.c (ppl_powerset_is_empty): New.
15636         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15637         * tree-data-ref.c (dump_data_reference): Print the basic block index.
15639 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15641         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15642         the "a followed by b" relation and document it.
15644 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15646         * graphite-dependences.c (build_lexicographical_constraint): Stop the
15647         iteration when the bag of constraints is empty.
15649 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15651         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15653 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15655         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15656         nest and two loop depths as parameters.
15657         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15658         lst_perfect_nestify.
15660 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15662         * graphite-dependences.c (print_pddr): Call
15663         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15665 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15667         * graphite-ppl.c (debug_gmp_value): New.
15668         * graphite-ppl.h (debug_gmp_value): Declared.
15670 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
15672         * doc/install.texi: Document availability of cloog-0.16.
15674 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
15676         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15677         invalid postdominance info.
15679 2011-01-24  Jan Hubicka  <jh@suse.cz>
15681         PR c/21659
15682         * doc/extend.texi (weak pragma): Drop claim that it must
15683         appear before definition.
15684         * varasm.c (merge_weak, declare_weak): Only sanity check
15685         that DECL is not output at a time it is declared weak.
15687 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
15689         * machmode.def: Fixed comments.
15691 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
15693         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15695 2011-01-24  Paul Koning  <ni1d@arrl.net>
15697         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15698         WORDS_BIG_ENDIAN.
15700 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
15702         PR target/46519
15703         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15704         (block_info): Add scanned and prev.
15705         (move_or_delete_vzeroupper_2): Return if the basic block
15706         has been scanned and the upper 128bit state is unchanged
15707         from the last scan.
15708         (move_or_delete_vzeroupper_1): Return true if the exit
15709         state is changed.
15710         (move_or_delete_vzeroupper): Visit basic blocks using the
15711         work-list based algorithm based on vt_find_locations in
15712         var-tracking.c.
15714         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15716 2011-01-24  Nick Clifton  <nickc@redhat.com>
15718         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15719         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15720         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
15721         then define __v850e1__.
15722         * doc/invoke.texi: Document -mv850es.
15724 2011-01-24  Richard Henderson  <rth@redhat.com>
15726         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15727         compound unordered comparisons.
15728         * config/rx/rx.c (rx_split_fp_compare): Remove.
15729         * config/rx/rx-protos.h: Update.
15730         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15731         (cbranchsf4): Don't call rx_split_fp_compare.
15732         (*cbranchsf4): Use rx_split_cbranch.
15733         (*cmpsf): Don't accept "i" constraint.
15734         (*conditional_branch): Only valid after reload.
15735         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
15737 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
15739         PR target/47385
15740         * config/rs6000/altivec.md (vector constant splitters): Add
15741         support for creating vector single precision constants if -mvsx is
15742         used and we would create the constant using Altivec primitives.
15744 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
15745             Richard Sandiford  <rdsandiford@googlemail.com>
15747         PR rtl-optimization/47166
15748         * reload1.c (emit_reload_insns): Disable the spill_reg_store
15749         mechanism for PRE_MODIFY and POST_MODIFY.
15750         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15751         reloadreg.
15753 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
15755         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15757 2011-01-22  Jan Hubicka  <jh@suse.cz>
15759         PR lto/47333
15760         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15762 2011-01-22  Jan Hubicka  <jh@suse.cz>
15764         PR tree-optimization/43884
15765         PR lto/44334
15766         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15767         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15769 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
15771         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15772         * config/s390/s390.c (s390_register_move_cost,
15773         s390_memory_move_cost): New.
15774         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15776 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15778         PR middle-end/47401
15779         * except.c (sjlj_assign_call_site_values): Move setting the
15780         crtl->uses_eh_lsda flag to ...
15781         (sjlj_mark_call_sites): ... here.
15782         (sjlj_emit_function_enter): Support NULL dispatch label.
15783         (sjlj_build_landing_pads): In a function with no landing pads
15784         that still has must-not-throw regions, generate code to register
15785         a personality function with empty LSDA.
15787 2011-01-21  Richard Henderson  <rth@redhat.com>
15789         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15791         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15793         * compare-elim.c: New file.
15794         * Makefile.in (OBJS-common): Add it.
15795         (compare-elim.o): New.
15796         * common.opt (fcompare-elim): New.
15797         * opts.c (default_options_table): Add OPT_fcompare_elim.
15798         * tree-pass.h (pass_compare_elim_after_reload): New.
15799         * passes.c (init_optimization_passes): Add it.
15800         * recog.h: Protect against re-inclusion.
15801         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15802         * doc/invoke.texi (-fcompare-elim): Document it.
15803         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15804         * doc/tm.texi: Rebuild.
15806 2011-01-22  Nick Clifton  <nickc@redhat.com>
15808         * config/rx/rx.md (cstoresf4): Pass comparison operator to
15809         rx_split_fp_compare.
15811 2011-01-22  Nick Clifton  <nickc@redhat.com>
15813         * config/rx/rx.md (UNSPEC_CONST): New.
15814         (deallocate_and_return): Wrap the amount popped off the stack in
15815         an UNSPEC_CONST in order to stop it being rejected by
15816         -mmax-constant-size.
15817         (pop_and_return): Add a "(return)" rtx.
15818         (call): Drop the immediate operand.
15819         (call_internal): Likewise.
15820         (call_value): Likewise.
15821         (call_value_internal): Likewise.
15822         (sibcall_internal): Likewise.
15823         (sibcall_value_internal): Likewise.
15824         (sibcall): Likewise.  Generate an explicit call using
15825         sibcall_internal.
15826         (sibcall_value): Likewise.
15827         (mov<>): FAIL if a constant operand is not legitimate.
15828         (addsi3_unpsec): New pattern.
15830         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15831         (ok_for_max_constant): New function.
15832         (gen_safe_add): New function.
15833         (rx_expand_prologue): Use gen_safe_add.
15834         (rx_expand_epilogue): Likewise.
15835         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
15836         UNSPEC CONSTs.
15838 2011-01-21  Jeff Law  <law@redhat.com>
15840         PR tree-optimization/47053
15841         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15842         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15843         statements are deleted.
15844         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
15845         is nonempty, then purge dead edges and cleanup the CFG.
15847 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
15849         PR debug/47402
15850         Temporarily revert:
15851         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
15852         PR debug/47106
15853         * tree-dfa.c (create_var_ann): Mark variable as used.
15855 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
15857         PR middle-end/45566
15858         * except.c (convert_to_eh_region_ranges): Emit queued no-region
15859         notes from other section in hot/cold partitioning even if
15860         last_action is -3.  Increment call_site_base.
15862         PR rtl-optimization/47366
15863         * fwprop.c (forward_propagate_into): Return bool.  If
15864         any changes are made, -fnon-call-exceptions is used and
15865         REG_EH_REGION note is present, call purge_dead_edges
15866         and return true if it purged anything.
15867         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15868         any EH edges were purged.
15870 2011-01-21  Jeff Law  <law@redhat.com>
15872         PR rtl-optimization/41619
15873         * caller-save.c (setup_save_areas): Break out code to determine
15874         which hard regs are live across calls by examining the reload chains
15875         so that it is always used.
15876         Eliminate code which checked REG_N_CALLS_CROSSED.
15878 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
15880         PR tree-optimization/47355
15881         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15882         NOP has non-debug uses beyond PHIs in new_bb.
15884 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
15886         PR debug/47106
15887         * cfgexpand.c (account_used_vars_for_block): Only account vars
15888         that are annotated as used.
15889         (estimated_stack_frame_size): Don't set TREE_USED.
15890         * tree-dfa.c (create_var_ann): Mark variable as used.
15892 2011-01-21  Richard Guenther  <rguenther@suse.de>
15894         PR middle-end/47395
15895         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15897 2011-01-21  Richard Guenther  <rguenther@suse.de>
15899         PR tree-optimization/47365
15900         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15901         (vn_reference_lookup_pieces): Adjust.
15902         (vn_reference_lookup): Likewise.
15903         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15904         (vn_reference_lookup_3): Only look through kills if in
15905         VN_WALKREWRITE mode.
15906         (vn_reference_lookup_pieces): Adjust.
15907         (vn_reference_lookup): Likewise.
15908         (visit_reference_op_load): Likewise.
15909         (visit_reference_op_store): Likewise.
15910         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15911         (compute_avail): Likewise.
15912         (eliminate): Likewise.
15914 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
15916         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15917         DECL_IGNORED_P non-reg vars if they are used.
15919         PR tree-optimization/47391
15920         * varpool.c (const_value_known_p): Return false if
15921         decl is volatile.
15923 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
15925         PR bootstrap/47215
15926         * config/i386/i386.c (ix86_local_alignment): Handle
15927         case for va_list_type_node is nil.
15928         (ix86_canonical_va_list_type): Likewise.
15930 2011-01-21  Alan Modra  <amodra@gmail.com>
15932         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15933         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15935 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15937         * config/arm/arm.md (define_attr type): Rename f_load
15938         and f_store to f_fpa_load and f_fpa_store. Update.
15939         (write_conflict): Deal with rename fallout.
15940         (*push_fp_multi): Likewise.
15941         * config/arm/fpa.md (f_load): Use f_fpa_load.
15942         (f_store): Use f_fpa_store.
15943         (*movsf_fpa): Likewise.
15944         (*movdf_fpa): Likewise.
15945         (*movxf_fpa): Likewise.
15946         (*thumb2_movsf_fpa): Likewise.
15947         (*thumb2_movdf_fpa): Likewise.
15948         (*thumb2_movxf_fpa): Likewise.
15949         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15950         f_loadd and f_stored.
15951         (*thumb2_movdi_vfp): Likewise.
15952         (*thumb2_movsf_vfp): Fix attribute to f_loads.
15953         (*thumb2_movsi_vfp): Likewise.
15954         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15955         Use f_loads instead of f_load.
15956         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15958 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
15960         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15961         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15962         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15963         (xtensa_mode_dependent_address_p): New function.
15964         (constantpool_address_p): Make static. Change return type to bool.
15965         Change argument type to const_rtx. Use CONST_INT_P predicate.
15967 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
15969         PR debug/46583
15970         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15972 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
15974         PR debug/47283
15975         * cfgexpand.c (expand_debug_expr): Instead of generating
15976         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15977         etc. handling.
15979 2011-01-20  Richard Guenther  <rguenther@suse.de>
15981         PR middle-end/47370
15982         * tree-inline.c (remap_gimple_op_r): Recurse manually for
15983         the pointer operand of MEM_REFs.
15985 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
15987         PR tree-optimization/46130
15988         * ipa-split.c (consider_split): If return_bb contains non-virtual
15989         PHIs other than for retval or if split_function would not adjust it,
15990         refuse to split.
15992 2011-01-20  Richard Guenther  <rguenther@suse.de>
15994         PR tree-optimization/47167
15995         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15996         Revert previous change, only avoid enumeral type changes.
15998 2011-01-19  Mike Stump  <mikestump@comcast.net>
16000         * doc/tm.texi.in (BRANCH_COST): Englishify.
16001         * doc/tm.texi (BRANCH_COST): Likewise.
16003 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
16005         PR c++/47291
16006         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
16007         (gen_scheduled_generic_parms_dies): New functions.
16008         (gen_struct_or_union_type_die): Schedule template parameters DIEs
16009         generation for the end of CU compilation.
16010         (dwarf2out_finish): Generate template parameters DIEs here.
16012 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
16014         PR debug/46240
16015         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
16016         debug bind stmt on merge edges.
16018 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
16020         PR debug/47079
16021         PR debug/46724
16022         * function.c (instantiate_expr): Instantiate incoming rtl of
16023         implicit arguments, and recurse on VALUE_EXPRs.
16024         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
16025         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
16027 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
16029         * c-parser.c (c_parser_for_statement): Initialize
16030         collection_expression.
16032 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
16034         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
16036 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
16038         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
16039         (LINK_SHLIB_SPEC): Don't use %(link_path).
16040         (SUBTARGET_EXTRA_SPECS): Remove link_path.
16042 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
16044         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
16045         (NO_SHARED_LIB_SUPPORT): Remove.
16046         (LINK_SHLIB_SPEC): Remove one conditional definition.
16048 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
16050         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
16051         %{call_shared}.
16052         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
16053         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
16054         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
16055         %{call_shared} and conditionals on these options not being passed.
16056         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
16057         %{call_shared}.
16059 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
16061         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
16062         simplify.
16064         * ipa-split.c: Spelling fixes.
16066 2011-01-19  Richard Henderson  <rth@redhat.com>
16068         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
16069         (*mulsi3): Likewise.
16071         * longlong.h [__mn10300__] (count_leading_zeros): New.
16072         [__mn10300__] (umul_ppmm, smul_ppmm): New.
16073         [__mn10300__] (add_ssaaaa, subddmmss): New.
16074         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
16075         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
16077 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16079         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
16081 2011-01-19  Richard Henderson  <rth@redhat.com>
16083         * config/mn10300/mn10300.md (addsi3_flags): New.
16084         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
16085         (subsi3_flags, subc_internal, subdi3): New.
16086         (subdi3_internal, *subdi3_degenerate): New.
16087         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
16089         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
16090         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
16091         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
16092         * config/mn10300/mn10300-protos.h: Update.
16093         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
16094         (return_ret): Likewise.  Rename from return_internal_regs.
16095         (return_internal): Remove.
16097         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
16098         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
16099         (mn10300_legitimate_constant_p): Likewise.
16100         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
16101         (mn10300_frame_size): New.
16102         (mn10300_expand_prologue): Use it.
16103         (mn10300_expand_epilogue): Likewise.
16104         (mn10300_initial_offset): Likewise.
16105         * config/mn10300/mn10300-protos.h: Update.
16106         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
16107         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
16108         (prologue, epilogue, return_internal): Tidy output code.
16109         (mn10300_store_multiple_operation, return): Likewise.
16110         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
16111         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
16112         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
16113         (load_pic, am33_load_pic): New.
16114         (mn10300_load_pic0, mn10300_load_pic1): New.
16116         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
16117         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
16118         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
16119         (cc_flags_for_mode, cc_flags_for_code): New.
16120         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
16121         overflow flag is not valid.  Validate that the flags we need
16122         for the comparison are valid.
16123         (mn10300_output_cmp): Remove.
16124         (mn10300_output_add): New.
16125         (mn10300_select_cc_mode): Use cc_flags_for_code.
16126         (mn10300_split_cbranch): New.
16127         (mn10300_match_ccmode): New.
16128         (mn10300_split_and_operand_count): New.
16129         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
16130         to the function.
16131         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
16132         (addsi3): ... here.  Use mn10300_output_add.
16133         (*addsi3_flags): New.
16134         (*am33_subsi3, *mn10300_subsi3): Merge...
16135         (subsi3): ... here.  Use attribute isa.
16136         (*subsi3_flags): New.
16137         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
16138         when possible.
16139         (*am33_andsi3, *mn10300_andsi3): Merge...
16140         (andsi3): ... here.
16141         (*andsi3_flags): New.
16142         (andsi3 splitters): New.
16143         (*am33_iorsi3, *mn10300_iorsi3): Merge...
16144         (iorsi3): ... here.
16145         (*iorsi3_flags): New.
16146         (*am33_xorsi3, *mn10300_xorsi3): Merge...
16147         (xorsi3): ... here.
16148         (*xorsi3_flags): New.
16149         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
16150         (one_cmplsi2): ... here.
16151         (*one_cmplsi2_flags): New.
16152         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
16153         instead of "dax" in constraints.  Use mn10300_split_cbranch.
16154         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
16155         use matching constraints to eliminate a self-comparison.
16156         (*integer_conditional_branch): Rename from integer_conditional_branch.
16157         Use int_mode_flags to match CC_REG.
16158         (*cbranchsi4_btst, *btstsi): New.
16159         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
16160         mn10300_split_cbranch.
16161         (*am33_cmpsf): Rename from am33_cmpsf.
16162         (*float_conditional_branch): Rename from float_conditional_branch.
16163         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
16164         (zero_extendqisi2): ... here.
16165         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
16166         (zero_extendhisi2): ... here.
16167         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
16168         (extendqisi2): ... here.
16169         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
16170         (extendhisi2): ... here.
16171         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
16172         (ashlsi3): ... here.
16173         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
16174         (lshrsi3): ... here.
16175         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
16176         (ashrsi3): ... here.
16177         (consecutive add peephole): Remove.
16178         * config/mn10300/predicates.md (label_ref_operand): New.
16179         (int_mode_flags): New.
16180         (CCZN_comparison_operator): New.
16182         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
16183         (throughput_42_latency_43): New reservation.
16184         (mulsidi3, umulsidi3): New expanders.
16185         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
16186         the MDR register to allocation; separately allocate the low and
16187         high parts of the DImode result.
16188         (umulsidi3_internal): Similarly.
16189         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
16190         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
16191         (udivsi3, umodsi3): Remove.
16192         (udivmodsi4, divmodsi4): New expanders.
16193         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
16194         (*divmodsi4): Simiarly.
16195         (ext_internal): New.
16197         * config/mn10300/constraints.md ("z"): New constraint.
16198         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
16199         (FIXED_REGISTERS): Don't fix MDR.
16200         (CALL_USED_REGSITERS): Reformat nicely.
16201         (REG_ALLOC_ORDER): Add MDR.
16202         (enum regclass): Add MDR_REGS.
16203         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
16204         (IRA_COVER_CLASSES): Add MDR_REGS.
16205         (REGNO_REG_CLASS): Handle MDR_REG.
16206         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
16207         (mn10300_register_move_cost): Likewise.
16208         * config/mn10300/mn10300.md (MDR_REG): New.
16209         (*movsi_internal): Handle moves to/from MDR_REGS.
16211         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
16212         POST_MODIFY.
16213         (mn10300_secondary_reload): Tidy combination reload classes.
16214         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
16215         addresses for AM33.  Allow symbolic offsets for reg+imm.
16216         (mn10300_regno_in_class_p): New.
16217         (mn10300_legitimize_reload_address): New.
16218         * config/mn10300/mn10300.h (enum reg_class): Remove
16219         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
16220         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
16221         SP_OR_GENERAL_REGS.
16222         (REG_CLASS_NAMES): Update to match.
16223         (REG_CLASS_CONTENTS): Likewise.
16224         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
16225         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
16226         (REGNO_IN_RANGE_P): Remove.
16227         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
16228         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
16229         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
16230         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
16231         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
16232         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
16233         (REGNO_GENERAL_P): New.
16234         (HAVE_POST_MODIFY_DISP): New.
16235         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
16236         (LEGITIMIZE_RELOAD_ADDRESS): New.
16237         * config/mn10300/mn10300-protos.h: Update.
16239         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
16240         DATA_REGS for AM33 stack-pointer destination.
16241         (mn10300_preferred_output_reload_class): Likewise.
16242         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
16243         into a form appropriate for ...
16244         (TARGET_SECONDARY_RELOAD): New.
16245         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
16246         * config/mn10300/mn10300-protos.h: Update.
16247         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
16248         reload_insi; use the "A" constraint for the scratch; handle AM33
16249         moves of sp to non-address registers.
16251         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
16252         (*movqi_internal): ... here.
16253         (*am33_movhi, *mn10300_movhi): Merge into...
16254         (*movhi_internal): ... here.
16255         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
16256         as the source/destination of moves from/to SP.
16257         (movsf): Only allow for AM33-2.
16258         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
16259         any integer constant constraint.  Only allow for AM33-2.  Tidy
16260         all of the alternative outputs.
16261         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
16262         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
16263         for MN103.
16264         (udivsi3, umodsi3): New patterns for MN103 only.
16266 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
16268         * doc/tm.texi.in: Spell out that a lack of register class unions
16269         can lead to ICEs.
16270         * doc/tm.texi: Regenerate.
16272 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
16274         PR rtl-optimization/47337
16275         * dce.c (check_argument_store): New function.
16276         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
16278         PR tree-optimization/47290
16279         * tree-eh.c (infinite_empty_loop_p): New function.
16280         (cleanup_empty_eh): Use it.
16282 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
16284         PR target/46997
16285         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
16286         (a64_expand_widen_sum): Ditto.
16287         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
16288         (vec_extract_evenodd_help): Ditto.
16289         (vec_extract_evenv4hi): Ditto.
16290         (vec_extract_oddv4hi): Ditto.
16291         (vec_extract_evenv2si): Ditto.
16292         (vec_extract_oddv2si): Ditto.
16293         (vec_extract_evenv2sf): Ditto.
16294         (vec_extract_oddv2sf): Ditto.
16295         (vec_pack_trunc_v4hi: Ditto.
16296         (vec_pack_trunc_v2si): Ditto.
16297         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
16298         (vec_interleave_highv8qi): Ditto.
16299         (mix1_r): Ditto.
16300         (vec_extract_oddv8qi): Ditto.
16301         (vec_interleave_lowv4hi): Ditto.
16302         (vec_interleave_highv4hi): Ditto.
16303         (vec_interleave_lowv2si): Ditto.
16304         (vec_interleave_highv2si): Ditto.
16306 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16308         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
16309         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
16310         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
16311         (pa_c_mode_for_suffix): New.
16312         (TARGET_EXPAND_BUILTIN): Define.
16313         (TARGET_C_MODE_FOR_SUFFIX): Define.
16314         (pa_builtins): Define.
16315         (pa_init_builtins): Register __float128 type and init new support
16316         builtins.
16317         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
16318         * config/pa/quadlib.c (_U_Qfcopysign): New.
16320 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
16322         PR middle-end/46894
16323         * explow.c (allocate_dynamic_stack_space): Do not assume more than
16324         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
16325         are defined.
16327 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16329         PR tree-optimization/47179
16330         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
16331         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
16333 2011-01-18  Richard Guenther  <rguenther@suse.de>
16335         PR rtl-optimization/47216
16336         * emit-rtl.c: Include tree-flow.h.
16337         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
16338         of replicating it with different semantics.
16339         * Makefile.in (emit-rtl.o): Adjust.
16341 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16343         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
16344         (cortex_a9_dp): Handle neon types correctly.
16346 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
16348         PR rtl-optimization/47299
16349         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
16350         subtarget.  Use normal multiplication if both operands are constants.
16351         * expmed.c (expand_widening_mult): Don't try to optimize constant
16352         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
16353         before using it.
16355 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16357         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
16358         spacing after 'e.g.', typos, comma, hyphenation.
16360 2011-01-17  Richard Henderson  <rth@redhat.com>
16362         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
16363         (rx_restricted_mem_operand): New.
16364         (rx_shift_operand): Use register_operand.
16365         (rx_source_operand, rx_compare_operand): Likewise.
16366         * config/rx/rx.md (addsi3_flags): New expander.
16367         (adddi3): Rewrite as expander.
16368         (adc_internal, *adc_flags, adddi3_internal): New patterns.
16369         (subsi3_flags): New expander.
16370         (subdi3): Rewrite as expander.
16371         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
16373         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
16374         (rx_init_builtins): Remove sat builtin.
16375         (rx_expand_builtin): Likewise.
16376         * config/rx/rx.md (ssaddsi3): New.
16377         (*sat): Rename from sat.  Represent the CC_REG input.
16379         * config/rx/predicates.md (rshift_operator): New.
16380         * config/rx/rx.c (rx_expand_insv): Remove.
16381         * config/rx/rx-protos.h: Update.
16382         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
16383         operand to the canonical position.
16384         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
16385         (*bitclr, *bitclr_in_memory): Similarly.
16386         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
16387         (insv): Retain the zero_extract in the expansion.
16389         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
16390         (bswaphi2, bitinvert, revw): Likewise.
16392         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
16393         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
16394         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
16395         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
16396         (bitset, bitset_in_memory): Likewise.
16397         (bitinvert, bitinvert_in_memory): Likewise.
16398         (bitclr, bitclr_in_memory): Likewise.
16399         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
16400         (rx_strend, rx_cmpstrn): Likewise.
16401         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
16402         (bitop peep2 patterns): Remove.
16404         * config/rx/rx.c (rx_match_ccmode): New.
16405         * config/rx/rx-protos.h: Update.
16406         * config/rx/rx.md (abssi2): Clobber, don't set flags.
16407         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
16408         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
16409         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
16410         (fix_truncsfsi2, floatsisf2): Likewise.
16411         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
16412         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
16413         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
16414         (*subsi3_flags, *xorsi3_flags): New.
16416         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
16418         * config/rx/rx.c (rx_print_operand): Remove workaround for
16419         unsplit comparison operations.
16421         * config/rx/rx.md (movsicc): Split after reload.
16422         (*movsicc): Merge *movsieq and *movsine via match_operator.
16423         (*stcc): New pattern.
16425         * config/rx/rx.c (rx_float_compare_mode): Remove.
16426         * config/rx/rx.h (rx_float_compare_mode): Remove.
16427         * config/rx/rx.md (cstoresi4): Split after reload.
16428         (*sccc): New pattern.
16430         * config/rx/predicates.md (label_ref_operand): New.
16431         (rx_z_comparison_operator): New.
16432         (rx_zs_comparison_operator): New.
16433         (rx_fp_comparison_operator): New.
16434         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
16435         Validate that the flags are set properly for the comparison.
16436         (rx_gen_cond_branch_template): Remove.
16437         (rx_cc_modes_compatible): Remove.
16438         (mode_from_flags): New.
16439         (flags_from_code): Rename from flags_needed_for_conditional.
16440         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
16441         (rx_select_cc_mode): Likewise.
16442         (rx_split_fp_compare): New.
16443         (rx_split_cbranch): New.
16444         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
16445         (*cbranchsi4): Use match_operator and rx_split_cbranch.
16446         (*cbranchsf4): Similarly.
16447         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
16448         match_operator and rx_split_cbranch.
16449         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
16450         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
16451         (*cmpsi): Rename from cmpsi.
16452         (*tstsi): Rename from tstsi.
16453         (*cmpsf): Rename from cmpsf; use CC_Fmode.
16454         (*conditional_branch): Rename from conditional_branch.
16455         (*reveresed_conditional_branch): Remove.
16456         (b<code>): Remove expander.
16457         * config/rx/rx-protos.h: Update.
16459         * config/rx/rx.c (rx_compare_redundant): Remove.
16460         * config/rx/rx.md (cmpsi): Don't use it.
16461         * config/rx/rx-protos.h: Update.
16463         * config/rx/rx-modes.def (CC_F): New mode.
16464         * config/rx/rx.c (rx_select_cc_mode): New.
16465         * config/rx/rx.h (SELECT_CC_MODE): Use it.
16466         * config/rx/rx-protos.h: Update.
16468 2011-01-17  Richard Henderson  <rth@redhat.com>
16470         * except.c (dump_eh_tree): Fix stray ; after for statement.
16472 2011-01-17  Richard Guenther  <rguenther@suse.de>
16474         PR tree-optimization/47313
16475         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
16476         handling before copying the body.  Properly deal with
16477         by-reference result in SSA form.
16479 2011-01-17  Ian Lance Taylor  <iant@google.com>
16481         PR target/47219
16482         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
16483         (struct_value_alias_set): Don't define.
16484         (sparc_option_override): Don't set sparc_sr_alias_set and
16485         struct_value_alias_set.
16486         (save_or_restore_regs): Use gen_frame_mem rather than calling
16487         set_mem_alias_set.
16488         (sparc_struct_value_rtx): Likewise.
16490 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
16492         PR target/47318
16493         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
16494         (_mm_maskstore_pd): Likewise.
16495         (_mm_maskload_ps): Likewise.
16496         (_mm_maskstore_ps): Likewise.
16497         (_mm256_maskload_pd): Change mask to __m256i.
16498         (_mm256_maskstore_pd): Likewise.
16499         (_mm256_maskload_ps): Likewise.
16500         (_mm256_maskstore_ps): Likewise.
16502         * config/i386/i386-builtin-types.def: Updated.
16503         (ix86_expand_special_args_builtin): Likewise.
16505         * config/i386/i386.c (bdesc_special_args): Update
16506         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
16507         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
16508         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
16509         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
16511         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
16512         Use <avxpermvecmode> on mask register.
16513         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
16515 2011-01-17  Olivier Hainque  <hainque@adacore.com>
16516             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
16517             Eric Botcazou  <ebotcazou@adacore.com>
16519         PR target/46655
16520         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
16521         if <= USHRT_MAX in 32-bit mode.
16523 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16525         * doc/install.texi (Configuration, Specific): Wrap long
16526         lines in examples.  Allow line wrapping in long options
16527         and URLs where beneficial for PDF output.
16529 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
16531         * config/mips/mips.c (mips_classify_symbol): Don't return
16532         SYMBOL_PC_RELATIVE for nonlocal labels.
16534 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
16536         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
16538 2011-01-15  Jan Hubicka  <jh@suse.cz>
16540         PR tree-optimization/47276
16541         * ipa.c (function_and_variable_visibility): Do not try to mark alias
16542         declarations as needed.
16544 2011-01-15  Martin Jambor  <mjambor@suse.cz>
16546         * common.opt (fdevirtualize): New flag.
16547         * doc/invoke.texi (Option Summary): Document it.
16548         * opts.c (default_options_table): Add devirtualize flag.
16549         * ipa-prop.c (detect_type_change): Return immediately if
16550         devirtualize flag is not set.
16551         (detect_type_change_ssa): Likewise.
16552         (compute_known_type_jump_func): Likewise.
16553         (ipa_analyze_virtual_call_uses): Likewise.
16555 2011-01-14  Martin Jambor  <mjambor@suse.cz>
16557         PR tree-optimization/45934
16558         PR tree-optimization/46302
16559         * ipa-prop.c (type_change_info): New type.
16560         (stmt_may_be_vtbl_ptr_store): New function.
16561         (check_stmt_for_type_change): Likewise.
16562         (detect_type_change): Likewise.
16563         (detect_type_change_ssa): Likewise.
16564         (compute_complex_assign_jump_func): Check for dynamic type change.
16565         (compute_complex_ancestor_jump_func): Likewise.
16566         (compute_known_type_jump_func): Likewise.
16567         (compute_scalar_jump_functions): Likewise.
16568         (ipa_analyze_virtual_call_uses): Likewise.
16569         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
16571 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16573         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16574         * config/i386/i386.opt (msse5): New Alias.
16576 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16578         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16579         * config/sparc/linux64.h (CC1_SPEC): Likewise.
16580         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16581         * config/sparc/sparc.h (CC1_SPEC): Likewise.
16583 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16585         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16586         -mcpu options.
16587         * config/sparc/linux64.h (CC1_SPEC): Likewise.
16588         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16589         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16590         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16591         Likewise.
16592         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16594 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16596         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16598 2011-01-14  Mike Stump  <mikestump@comcast.net>
16600         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16601         * config/fr30/fr30.md: Likweise
16602         (movsi_push): Likewise.
16603         (movsi_pop): Likewise.
16604         (enter_func): Likewise.
16605         * config/moxie/moxie.md (movsi_push): Likewise.
16606         (movsi_pop): Likewise.
16608 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16610         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16611         %{no_archive} %{exact_version}.
16612         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16613         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16614         %{no_archive} %{exact_version}.
16615         * config/mips/openbsd.h (LINK_SPEC): Likewise.
16616         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16617         * config/mips/vxworks.h: Likewise.
16619 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16621         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16623 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16625         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16626         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16628 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16630         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16631         -nodefaultlib.
16633 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16635         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16636         for mcpu not cpu.
16637         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16638         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16639         not cpu.
16640         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16641         Don't handle -shlib.
16643 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16645         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16646         (CC1_SPEC): Don't handle -profile.
16648 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16650         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16651         * config/mips/mips.h (CC1_SPEC): Likewise.
16653 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16655         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16656         * config/mips/mips.h (CC1_SPEC): Likewise.
16658 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16660         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16661         * config/m32r/linux.h (LINK_SPEC): Likewise.
16662         * config/mips/linux.h (LINK_SPEC): Likewise.
16663         * config/mips/linux64.h (LINK_SPEC): Likewise.
16664         * config/sparc/linux.h (LINK_SPEC): Likewise.
16665         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16666         LINK_SPEC): Likewise.
16667         * config/xtensa/linux.h (LINK_SPEC): Likewise.
16669 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16671         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16672         %{version:-v}.
16673         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16675 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16677         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16678         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16680 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16682         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16684 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16686         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16687         supports -Bstatic/-Bdynamic.
16688         * configure: Regenerate.
16690 2011-01-14  Jan Hubicka  <jh@suse.cz>
16691             Jack Howarth  <howarth@bromo.med.uc.edu>
16693         PR target/46037
16694         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16695         when checking debug_info_level. Test write_symbols instead of
16696         debug_hooks->var_location when setting flag_var_tracking_uninit.
16698 2011-01-14  Richard Guenther  <rguenther@suse.de>
16700         PR tree-optimization/47179
16701         * target.def (ref_may_alias_errno): New target hook.
16702         * targhooks.h (default_ref_may_alias_errno): Declare.
16703         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16704         (default_ref_may_alias_errno): New function.
16705         * target.h (struct ao_ref_s): Declare.
16706         * tree-ssa-alias.c: Include target.h.
16707         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16708         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16709         (targhooks.o): Likewise.
16710         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16711         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16713 2011-01-14  Richard Guenther  <rguenther@suse.de>
16715         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
16717 2011-01-14  Richard Guenther  <rguenther@suse.de>
16719         PR tree-optimization/47280
16720         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16721         return CFG changes.
16722         (tree_ssa_forward_propagate_single_use_vars): Deal with
16723         CFG changes from associate_plusminus.
16725 2011-01-14  Richard Guenther  <rguenther@suse.de>
16727         PR middle-end/47281
16728         Revert
16729         2011-01-11  Richard Guenther  <rguenther@suse.de>
16731         PR tree-optimization/46076
16732         * tree-ssa.c (useless_type_conversion_p): Conversions from
16733         unprototyped to empty argument list function types are useless.
16735 2011-01-14  Richard Guenther  <rguenther@suse.de>
16737         PR tree-optimization/47286
16738         * tree-ssa-structalias.c (new_var_info): Register variables are global.
16740 2011-01-14  Martin Jambor  <mjambor@suse.cz>
16742         PR middle-end/46823
16743         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16745 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
16747         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16748         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16749         * config/xtensa/xtensa.c (xtensa_libcall_value,
16750         xtensa_function_value_regno_p): New functions.
16751         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16753 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
16755         PR c++/47213
16756         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16757         PE specific hook.
16758         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16759         New function prototype.
16760         * config/i386/winnt.c (i386_pe_assemble_visibility):
16761         Warn only if attribute was specified by user.
16763 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
16765         PR target/47251
16766         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16767         floating point.
16768         (floatunsdidf2_fcfidu): Ditto.
16770 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16772         * config/s390/s390.c (print_operand_address): Replace 'error' with
16773         'output_operand_lossage'.
16774         (print_operand): Likewise.
16776 2011-01-13  Jeff Law  <law@redhat.com>
16778         PR rtl-optimization/39077
16779         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16780         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16781         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16782         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16783         * gcse.c (prune_insertions_deletions): New function.
16784         (compute_pre_data): Use it.
16786 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
16788         PR debug/PR46973
16789         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16790         static function.
16791         (prune_unused_types_mark): Use it.
16793 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
16795         PR rtl-optimization/45352
16796         * sel-sched.c: Update copyright years.
16797         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16798         in the advancing loop when we have issued issue_rate insns.
16800 2011-01-12  Richard Henderson  <rth@redhat.com>
16802         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16803         (TARGET_MD_ASM_CLOBBERS): New.
16805         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16806         (TARGET_DELEGITIMIZE_ADDRESS): New.
16808         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16809         (clzsi2, *bsch): New patterns.
16811         * config/mn10300/mn10300.md (INT): New mode iterator.
16812         (*mov<INT>_clr): New pattern, and peep2 to generate it.
16814         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16815         flag_split_wide_types.
16817         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16818         (mn10300_trampoline_init): Rewrite without a template, an immediate
16819         load and a direct branch.
16820         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16822 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
16824         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16825         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16826         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16827         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16829 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
16831         PR debug/47209
16832         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16833         of type.
16835 2011-01-12  Jan Hubicka  <jh@suse.cz>
16837         PR driver/47244
16838         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16839         (PLUGIN_COND_CLOSE): New macro.
16840         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16842 2011-01-12  Richard Guenther  <rguenther@suse.de>
16844         PR lto/47259
16845         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16846         register variables in a MEM_REF.
16848 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
16850         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16851         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16852         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16853         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16854         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16855         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16856         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16857         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16858         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16859         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16860         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16861         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16862         * config/gnu-user.h: New.  Copied from linux.h.
16863         (LINUX_TARGET_STARTFILE_SPEC): Rename to
16864         GNU_USER_TARGET_STARTFILE_SPEC.
16865         (LINUX_TARGET_ENDFILE_SPEC): Rename to
16866         GNU_USER_TARGET_ENDFILE_SPEC.
16867         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16868         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16869         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16870         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16871         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16872         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16873         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16874         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16875         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16876         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16877         * config/arm/linux-eabi.h (CC1_SPEC): Use
16878         GNU_USER_TARGET_CC1_SPEC.
16879         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16880         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16881         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16882         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16883         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16884         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16885         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16886         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16888 2011-01-12  Richard Guenther  <rguenther@suse.de>
16890         PR other/46946
16891         * doc/invoke.texi (ffast-math): Document it is turned on
16892         with -Ofast.
16894 2011-01-12  Jan Hubicka  <jh@suse.cz>
16896         PR tree-optimization/47233
16897         * opts.c (common_handle_option): Disable ipa-reference with profile
16898         feedback.
16900 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
16902         * c-parser.c (c_parser_objc_at_property_declaration): Improved
16903         error message.
16905 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
16907         * c-parser.c (c_lex_one_token): Updated and reindented some
16908         comments.  No changes in code.
16910 2011-01-11  Ian Lance Taylor  <iant@google.com>
16912         * godump.c (go_output_var): Don't output the variable if there is
16913         already a type with the same name.
16915 2011-01-11  Ian Lance Taylor  <iant@google.com>
16917         * godump.c (go_format_type): Don't generate float80.
16919 2011-01-11  Richard Henderson  <rth@redhat.com>
16921         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16922         declaration.  Rewrite for both speed and size.
16923         (mn10300_address_cost_1): Remove.
16924         (mn10300_register_move_cost): New.
16925         (mn10300_memory_move_cost): New.
16926         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
16927         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
16928         extensions, shifts, BSWAP, CLZ.
16929         (mn10300_wide_const_load_uses_clr): Remove.
16930         (TARGET_REGISTER_MOVE_COST): New.
16931         (TARGET_MEMORY_MOVE_COST): New.
16932         * config/mn10300/mn10300-protos.h: Update.
16933         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16935         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16936         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16937         * config/mn10300/mn10300-protos.h: Update.
16938         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16939         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16940         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16941         (*test_int_bitfield, *test_byte_bitfield): Remove.
16942         (*bit_test, *subreg_bit_test): Remove.
16943         * config/mn10300/predicates.md (const_8bit_operand): Remove.
16945         * config/mn10300/constraints.md ("c"): Rename from "A".
16946         ("A", "D"): New constraint letters.
16947         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16948         (fmssf4, fnmasf4, fnmssf4): Likewise.
16950         * config/mn10300/mn10300.md (isa): New attribute.
16951         (enabled): New attribute.
16953         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16954         (abssf2, negsf2): Define only for hardware fp.
16955         (sqrtsf2): Reformat.
16956         (addsf3, subsf3, mulsf3): Merge expander and insn.
16958         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16959         (DEBUGGER_AUTO_OFFSET): Remove.
16960         (DEBUGGER_ARG_OFFSET): Remove.
16962         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16963         Emit register stores with the same offsets as the hardware.
16964         (mn10300_store_multiple_operation): Don't check that the register
16965         save offsets are monotonic.
16966         * config/mn10300/mn10300-protos.h: Update.
16968         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16970         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16971         in terms of the value on the stack, not the MDR register.
16973 2011-01-11  Jan Hubicka  <jh@suse.cz>
16975         PR lto/45721
16976         PR lto/45375
16977         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16978         (symbol_alias_set_destroy, symbol_alias_set_contains,
16979         propagate_aliases_backward): Declare.
16980         * lto-streamer-out.c (struct sets): New sturcture.
16981         (trivally_defined_alias): New function.
16982         (output_alias_pair_p): Rewrite.
16983         (output_unreferenced_globals): Fix output of alias pairs.
16984         (produce_symtab): Likewise.
16985         * ipa.c (function_and_variable_visibility): Set weak alias destination
16986         as needed in lto.
16987         * varasm.c (symbol_alias_set_t): Remove.
16988         (symbol_alias_set_destroy): Export.
16989         (propagate_aliases_forward, propagate_aliases_backward): New functions
16990         based on ...
16991         (compute_visible_aliases): ... this one; remove.
16992         (trivially_visible_alias): New
16993         (trivially_defined_alias): New.
16994         (remove_unreachable_alias_pairs): Rewrite.
16995         (finish_aliases_1): Reorganize code checking if alias is defined.
16996         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16997         in LTO mode.
16999 2011-01-11  Richard Guenther  <rguenther@suse.de>
17001         PR tree-optimization/46076
17002         * tree-ssa.c (useless_type_conversion_p): Conversions from
17003         unprototyped to empty argument list function types are useless.
17005 2011-01-11  Richard Guenther  <rguenther@suse.de>
17007         PR middle-end/45235
17008         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
17009         volatile MEMs as MEM_READONLY_P.
17011 2011-01-11  Richard Guenther  <rguenther@suse.de>
17013         PR tree-optimization/47239
17014         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
17016 2011-01-11  Jeff Law  <law@redhat.com>
17018         PR tree-optimization/47086
17019         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
17020         IVs from statements that might throw.
17022 2011-01-10  Jan Hubicka  <jh@suse.cz>
17024         PR lto/45375
17025         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
17027 2011-01-10  Jan Hubicka  <jh@suse.cz>
17029         PR lto/45375
17030         * profile.c (read_profile_edge_counts): Ignore profile inconistency
17031         when correcting profile.
17033 2011-01-10  Jan Hubicka  <jh@suse.cz>
17035         PR lto/46083
17036         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
17037         DECL_FINI_PRIORITY.
17038         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
17039         Restore DECL_FINI_PRIORITY.
17041 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17043         * doc/gimple.texi: Fix quoting of multi-word return values in
17044         @deftypefn statements.  Ensure presence of return value.  Wrap
17045         overlong @deftypefn lines.
17046         (is_gimple_operand, is_gimple_min_invariant_address): Remove
17047         descriptions of removed functions.
17048         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
17049         of multi-word return value in @deftypefn statement.
17051 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17053         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
17054         (Conditional Expressions, Logical Operators)
17055         (Statement and operand traversals): Do not indent smallexample
17056         code.  Fix duplicate function argument in example.
17058 2011-01-10  Jeff Law  <law@redhat.com>
17060         PR tree-optimization/47141
17061         * ipa-split.c (split_function): Handle case where we are
17062         returning a value and the return block has a virtual operand phi.
17064 2011-01-10  Jan Hubicka  <jh@suse.cz>
17066         PR tree-optimization/47234
17067         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
17068         (pass_feedback_split_functions): Declare.
17069         * passes.c (init_optimization_passes): Add ipa-split as subpass of
17070         tree-profile.
17071         * ipa-split.c (gate_split_functions): Update comments; disable
17072         split-functions for profile_arc_flag and branch_probabilities.
17073         (gate_feedback_split_functions): New function.
17074         (execute_feedback_split_functions): New function.
17075         (pass_feedback_split_functions): New global var.
17077 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
17079         PR lto/46760
17080         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
17081         calling gimple_call_set_cannot_inline.
17083 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
17085         * config/darwin-sections.def: Remove unused section.
17087 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
17089         PR c++/47218
17090         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
17092 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
17094         PR objc/47232
17095         * c-parser.c (c_parser_declaration_or_fndef): Improved
17096         error message.
17098 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
17100         * config/i386/winnt.c (i386_pe_start_function): Make sure
17101         to switch back to function's section.
17103 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
17105         PR gcc/46902
17106         PR testsuite/46912
17107         * plugin.c: Move include of dlfcn.h from here...
17108         * system.h: ... to here.
17110 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17112         * doc/cpp.texi (C++ Named Operators): Fix markup for header
17113         file name.
17114         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
17115         two extra empty pages in PDF output.
17117 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
17119         PR objc/47078
17120         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
17121         for error recovery purposes behave as if it was not specified so
17122         that the default type is usd.
17124 2011-01-07  Jan Hubicka  <jh@suse.cz>
17126         PR tree-optmization/46469
17127         * ipa.c (function_and_variable_visibility): Clear needed flags on
17128         nodes with external decls; handle weakrefs merging correctly.
17130 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
17132         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
17133         not false.
17135 2011-01-07  Jan Hubicka  <jh@suse.cz>
17137         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
17138         and no longer claim that gold is required for linker plugin.
17139         * configure: Regenerate.
17140         * gcc.c (PLUGIN_COND): New macro.
17141         (LINK_COMMAND_SPEC): Use it.
17142         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
17143         * config.in (HAVE_LTO_PLUGIN): New.
17144         * configure.ac (--with-lto-plugin): New parameter; autodetect
17145         HAVE_LTO_PLUGIN.
17147 2011-01-07  Jan Hubicka  <jh@suse.cz>
17149         PR tree-optimization/46367
17150         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
17151         when we can update original.
17152         (cgraph_mark_inline_edge): Sanity check.
17153         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
17155 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17157         * config/spu/spu.h (ASM_COMMENT_START): Define.
17159 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
17161         PR driver/42445
17162         * gcc.c (%>S): New.
17163         (SWITCH_KEEP_FOR_GCC): Likewise.
17164         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
17165         (do_spec_1): Handle "%>".
17167         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
17169 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
17171         PR target/47201
17172         * config/i386/i386.c (ix86_delegitimize_address): If
17173         simplify_gen_subreg fails, return orig_x.
17175         PR bootstrap/47187
17176         * value-prof.c (gimple_stringop_fixed_value): Handle
17177         lhs of the call properly.
17179 2011-01-07  Jan Hubicka  <jh@suse.cz>
17181         PR lto/45375
17182         * lto-opt.c (lto_reissue_options): Set flag_shlib.
17184 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
17186         * target.def (function_switched_text_sections): New hook.
17187         * doc/tm.texi: Regenerated.
17188         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17189         * final.c (default_function_switched_text_sections): New.
17190         (final_scan_insn): Call function_switched_text_sections when a
17191         mid-function section change occurs.
17192         * output.h (default_function_switched_text_sections): Declare.
17193         * config/darwin-protos.h (darwin_function_switched_text_sections):
17194         Likewise.
17195         * config/darwin.c (darwin_function_switched_text_sections): New.
17196         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17198 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
17200         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
17201         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
17202         the secondary code fragment when outputting for DWARF == 2.
17204 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
17206         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17207         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
17208         Remove.
17209         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
17210         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17212 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
17214         PR debug/46704
17215         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
17216         when it is not empty.
17218 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
17220         Bobcat Enablement
17221         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
17222         (case ${target}): Add btver1.
17223         * config/i386/driver-i386.c (host_detect_local_cpu): Let
17224         -march=native recognize btver1 processors.
17225         * config/i386/i386-c.c (ix86_target_macros_internal): Add
17226         btver1 def_and_undef
17227         * config/i386/i386.c (struct processor_costs btver1_cost): New
17228         btver1 cost table.
17229         (m_BTVER1): New definition.
17230         (m_AMD_MULTIPLE): Includes m_BTVER1.
17231         (initial_ix86_tune_features): Add btver1 tune.
17232         (processor_target_table): Add btver1 entry.
17233         (static const char *const cpu_names): Add btver1 entry.
17234         (software_prefetching_beneficial_p): Add btver1.
17235         (ix86_option_override_internal): Add btver1 instruction sets.
17236         (ix86_issue_rate): Add btver1.
17237         (ix86_adjust_cost): Add btver1.
17238         * config/i386/i386.h (TARGET_BTVER1): New definition.
17239         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
17240         (enum processor_type): Add PROCESSOR_BTVER1.
17241         * config/i386/i386.md (define_attr "cpu"): Add btver1.
17243 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17245         PR target/43309
17246         * config/i386/i386.c (legitimize_tls_address)
17247         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
17248         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
17249         (tls_initial_exec_64_sun): New pattern.
17251 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
17253         * doc/invoke.texi (Overall Options): Improve wording and markup
17254         of the description of -wrapper.
17256 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
17258         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
17259         rdynamic, threads): New Driver options.
17261 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17263         PR target/38118
17264         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
17265         if coming from .tdata.
17266         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
17268 2011-01-06  Jan Hubicka  <jh@suse.cz>
17270         PR lto/47188
17271         * collect2.c (main): Do not enable LTOmode when plugin is active.
17273 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17275         PR other/45915
17276         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
17277         --version output if supported.
17278         * configure: Regenerate.
17280 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
17282         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
17283         Driver options.
17285 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
17287         PR c/47150
17288         * c-convert.c (convert): When converting a complex expression
17289         other than COMPLEX_EXPR to a different complex type, ensure
17290         c_save_expr is called instead of save_expr, unless in_late_binary_op.
17291         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
17292         when converting COMPLEX_TYPE.
17294 2011-01-06  Ira Rosen  <irar@il.ibm.com>
17296         PR tree-optimization/47139
17297         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
17298         only the last reduction value is used outside the loop.  Update
17299         documentation.
17301 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
17303         * config/rtems.opt: New.
17304         * config.gcc (*-*-rtems*): Use rtems.opt.
17306 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
17308         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
17309         processors do not support 3DNow instructions.
17311 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17313         * config/spu/spu.c (spu_option_override): Set parameter
17314         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
17316 2011-01-05  Jan Hubicka  <jh@suse.cz>
17318         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
17319         at the command line.
17321 2011-01-05  Martin Jambor  <mjambor@suse.cz>
17323         PR lto/47162
17324         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
17325         deltas on streamed outgoing edges.
17326         (output_node_opt_summary): Output info for outgoing edges only when
17327         the node is in new parameter set.
17328         (output_cgraph_opt_summary): New parameter set, passed to the two
17329         aforementioned functions.  Update its forward declaration and its
17330         callee too.
17332 2011-01-05  Tom Tromey  <tromey@redhat.com>
17334         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
17335         operator to c_finish_omp_atomic.
17336         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
17337         (build_unary_op): Update.
17338         (build_modify_expr): Update.
17339         (build_asm_expr): Update.
17341 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17343         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
17344         newly inserted insns.
17345         (pad_bb): Likewise.
17346         (spu_emit_branch_hint): Likewise.
17347         (insert_hbrp_for_ilb_runout): Likewise.
17348         (spu_machine_dependent_reorg): Call df_finish_pass after
17349         schedule_insns returns.
17351 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17353         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
17355 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
17357         PR tree-optimization/47005
17358         * tree-sra.c (struct access): Add 'non_addressable' bit.
17359         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
17360         (decide_one_param_reduction): Return 0 if the parameter is passed by
17361         reference and one of the accesses in the group is non_addressable.
17363 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
17365         PR tree-optimization/47056
17366         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
17367         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
17368         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
17370 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
17372         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
17373         initializer.  Skip view conversions from aggregate types.
17375 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
17377         PR bootstrap/47055
17378         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
17380 2011-01-04  Philipp Thomas  <pth@suse.de>
17382         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
17383         obvious typo.
17385 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17387         * function.c (thread_prologue_and_epilogue_insns): Do not crash
17388         on empty epilogue sequences.
17390 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
17392         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
17393         non-static): New Driver options.
17395 2011-01-04  Jie Zhang  <jie@codesourcery.com>
17397         PR driver/47137
17398         * gcc.c (default_compilers[]): Set combinable field to 0
17399         for all assembly languages.
17401 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
17403         * config/mips/loongson3a.md: New file.
17404         * config/mips/mips.md: Include loongson3a.md.
17405         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
17406         TUNE_LOONGSON_3A.
17408 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
17410         PR middle-end/47017
17411         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
17412         instead of convert_memory_address_addr_space on the base expression.
17414 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17416         * config/spu/spu.c (spu_option_override): Update error text
17417         for bad -march= / -mtune= values.
17419 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17421         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
17422         if branch-hint optimization will be performed.
17424 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
17426         PR tree-optimization/47148
17427         * ipa-split.c (split_function): Convert arguments to
17428         DECL_ARG_TYPE if possible.
17430         PR tree-optimization/47155
17431         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
17432         when computing uns.
17434         PR rtl-optimization/47157
17435         * combine.c (try_combine): If undobuf.other_insn becomes
17436         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
17437         and set *new_direct_jump_p too.
17439 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
17441         PR tree-optimization/47021
17442         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
17444 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
17446         * gcc.c (process_command): Update copyright notice dates.
17447         * gcov.c (print_version): Likewise.
17448         * gcov-dump.c (print_version): Likewise.
17449         * mips-tfile.c (main): Likewise.
17450         * mips-tdump.c (main): Likewise.
17452 2011-01-03  Martin Jambor  <mjambor@suse.cz>
17454         PR tree-optimization/46801
17455         * tree-sra.c (type_internals_preclude_sra_p): Check whether
17456         aggregate fields start at byte boundary instead of the bit-field flag.
17458 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
17460         PR driver/47137
17461         * gcc.c (main): Revert revision 168407.
17463 2011-01-03  Martin Jambor  <mjambor@suse.cz>
17465         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
17467 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17469         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
17470         vector optab to expand vector/scalar shift, update gimple to vector.
17472 2011-01-03  Martin Jambor  <mjambor@suse.cz>
17474         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
17475         a thunk.
17477 2011-01-03  Martin Jambor  <mjambor@suse.cz>
17479         PR tree-optimization/46984
17480         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
17481         HOST_WIDE_INT.
17482         (cgraph_create_indirect_edge): Fixed line length.
17483         (cgraph_indirect_call_info): Declare.
17484         (cgraph_make_edge_direct) Update declaration.
17485         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
17486         (cgraph_create_indirect_edge): Use it.
17487         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
17488         callees.
17489         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
17490         the new thunk_delta representation.
17491         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
17492         HOST_WIDE_INT.
17493         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
17494         (ipa_read_indirect_edge_info): Likewise.
17495         * lto-cgraph.c (output_edge_opt_summary): New function.
17496         (output_node_opt_summary): Call it on all outgoing edges.
17497         (input_edge_opt_summary): New function.
17498         (input_node_opt_summary): Call it on all outgoing edges.
17500 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
17502         PR driver/47137
17503         * gcc.c (main): Don't check have_o when settting combine_inputs.
17505 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
17507         * regrename.c: Add general comment describing the pass.
17508         (struct du_head): Remove 'length' field.
17509         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
17510         (regrename_optimize): Do not sort chains.  Rework comments, add others.
17511         Force renaming to the preferred class (if any) in the first pass and do
17512         not consider registers that belong to it in the second pass.
17513         (create_new_chain): Do not set 'length' field.
17514         (scan_rtx_reg): Likewise.
17516 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
17518         PR tree-optimization/47140
17519         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
17520         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
17521         to bit_value_binop.
17523         PR rtl-optimization/47028
17524         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
17525         parm_birth_insn instead of at the beginning of first bb.
17527 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
17529         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
17530         Remove the word "see" before "@pxref".
17531         * doc/rtl.texi: Remove the word "see" before "@pxref".
17533 2011-01-01  Jan Hubicka  <jh@suse.cz>
17535         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
17536         memory.
17538 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
17540         PR target/38662
17541         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
17544 Copyright (C) 2011 Free Software Foundation, Inc.
17546 Copying and distribution of this file, with or without modification,
17547 are permitted in any medium without royalty provided the copyright
17548 notice and this notice are preserved.