Mark ChangeLog
[official-gcc.git] / gcc / ChangeLog
blobbf378c0f1f62628b60e771f613634da0a238b4fd
1 2010-07-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3         Backport from mainline.
4         2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6         PR target/43698
7         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
8         Set *arm_rev to be predicable.
10 2010-07-27  Nick Clifton  <nickc@redhat.com>
12         * Import this patch from the mainline:
14         2010-06-30  Nick Clifton  <nickc@redhat.com>
16         * config/rx/rx-modes.def: New file.
17         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
18         (CC_REGNUM): Define.
19         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
20         register.
21         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
22         (SELECT_CC_MODE): Define.
23         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
24         (reg:CC CC_REG) instead of (cc0).
25         (attr "cc"): Delete.
26         (cbranchsi4): Do not split compare and branch here. Instead move
27         it to...
28         (cbranchsi4_<code>): ... here.  New patterns.
29         (cmpsi): Call rx-compare_redundant to find out if it is necessary
30         to emit the compare instruction.
31         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
32         cc_status flags.
33         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
34         FIRST_PSEUDO_REGNUM.
35         (rx_expand_prologue, rx_expand_epilogue): Likewise.
36         (rx_notice_update_cc): Delete.
37         (rx_cc_modes_compatible): New function.
38         (flags_needed_for_conditional): New function.
39         (flags_from_mode): New function.
40         (rx_compare_redundant): New function - scans backwards through
41         insn list to find out if condition flags are already set correctly.
42         (TARGET_CC_MODES_COMPATIBLE): Define.
43         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
45         * config/rx/rx.h (BRANCH_COST): Define.
46         (REGISTER_MOVE_COST): Define.
47         * config/rx/predicates (rx_source_operand): Allow all constant types.
48         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
49         (tstsi4): New pattern.
50         * config/rx/rx.c (rx_memory_move_cost): Define.
51         (TARGET_MEMORY_MOVE_COST): Define.
53 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
54             Richard Guenther  <rguenther@suse.de>
56         PR tree-optimization/45047
57         * tree-vect-stmts.c (vectorizable_assignment): Return false
58         if vectype_out is NULL for conversion statement.
60 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
62         PR debug/45015
63         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
64         ASM_OPERANDS_OUTPUT_IDX.
65         (adjust_insn): For inline asm with multiple sets ensure first
66         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
67         the insn.
69         Backport from mainline
70         2010-07-16  Jakub Jelinek  <jakub@redhat.com>
72         PR target/44942
73         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
74         argument to const_tree.
75         * config/i386/i386.c (function_arg_advance): If padding needs to be
76         inserted before argument, increment cum->words by number of padding
77         words as well.
78         (contains_aligned_value_p): Change argument to const_tree.
79         (ix86_function_arg_boundary): Change second argument to const_tree.
81 2010-07-21  Martin Jambor  <mjambor@suse.cz>
83         PR tree-optimization/44900
84         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
85         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
87 2010-07-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
89         Backport from mainline:
90         2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
92         * doc/sourcebuild.texi (Effective-Target Keywords): Document
93         sse_runtime, sse2_runtime.
95 2010-07-20  Richard Guenther  <rguenther@suse.de>
97         PR tree-optimization/44977
98         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
99         SSA form.
101 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
103         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
104         of a loop.
105         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
107 2010-07-15  Jie Zhang  <jie@codesourcery.com>
109         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
110         cortex_a8_issue_ls.
112 2010-07-14  Jie Zhang  <jie@codesourcery.com>
114         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
115         cortex_a8_default when neon_type is not none.
117 2010-07-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
119         Backport from mainline:
120         2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
122         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
123         ix86_solaris_return_in_memory.
124         * config/i386-protos.h: Reflect this.
125         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
126         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
127         Move ...
128         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
130 2010-07-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
132         Backport from mainline:
133         2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
135         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
136         pentiumpro on Solaris 8 and 9/x86.
137         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
138         Document SSE/SSE2 support.
139         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
141 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
143         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
144         explanation.
145         Find ucontext_t * on Solaris 11.
146         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
147         Handle new Solaris 11 __sighndlr patterns.
149 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
151         Backport from mainline:
152         2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
154         PR pch/14940
155         * config/host-solaris.c (mmap_fixed): New function.
156         (sol_gt_pch_get_address): Use it.
157         (sol_gt_pch_use_address): Likewise.
159 2010-07-12  Jie Zhang  <jie@codesourcery.com>
161         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
162         align the stack when it's going to be saved.
164 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
166         Merged back from trunk
167         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
168         in directive -export.
170 2010-07-09  Richard Guenther  <rguenther@suse.de>
172         PR tree-optimization/44886
173         * tree-vect-stmts.c (vectorizable_assignment): Fixup backport
174         of the fix for PR44284.
176 2010-07-09  Richard Guenther  <rguenther@suse.de>
178         Backport from mainline
179         2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
181         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
182         build1_stat.
184 2010-07-09  Dave Korn  <dave.korn.cygwin@gmail.com>
186         Backport from mainline
187         2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
189         PR target/43888
190         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
191         handling to still return true for x64 targets.
193 2010-07-08  Richard Guenther  <rguenther@suse.de>
195         Backport from mainline
196         2010-05-27  Richard Guenther  <rguenther@suse.de>
198         PR tree-optimization/44284
199         * tree-vect-stmts.c (vectorizable_assignment): Handle
200         sign-changing conversions as simple copy.
202         2010-07-06  Richard Guenther  <rguenther@suse.de>
204         PR middle-end/44828
205         * convert.c (convert_to_integer): Watch out for overflowing
206         MULT_EXPR as well.
208 2010-07-07  Duncan Sands  <baldrick@free.fr>
210         PR middle-end/41355
211         * tree.c (build_function_type_skip_args): Copy the original type using
212         build_distinct_type_copy rather than copy_node.
214 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
216         * doc/gimple.texi (GIMPLE_DEBUG): Document.
217         * doc/rtl.texi (Debug Information): New node.
218         (NOTE_INSN_VAR_LOCATION): Document.
219         (debug_insn): Likewise.
220         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
222 2010-07-05  Kaz Kojima  <kkojima@gcc.gnu.org>
224         Backport from mainline:
225         PR target/44531
226         * config.gcc (sh*-*-*): Use regular expressions instead of
227         the 'i' modifier for sed substitutions.
229 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
231         PR bootstrap/44820
232         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
234 2010-07-05  Jie Zhang  <jie@codesourcery.com>
236         * config/arm/arm.c (arm_attr_length_move_neon): New.
237         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
238         * config/arm/neon.md (define_mode_attr V_slen): Remove.
239         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
240         to compute length attribute.
242 2010-07-05  Jie Zhang  <jie@codesourcery.com>
244         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
245         as predicate for operand 1 and remove its constraint.
246         * config/arm/predicates.md (vfp_register_operand): New.
247         * config/arm/arm.md (*push_multi): Remove the constraint of
248         operand 1.
249         (*push_fp_multi): Likewise.
251 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
253         PR target/44597
254         * config/pa/predicates.md (prefetch_cc_operand): Remove.
255         (prefetch_nocc_operand): Likewise.
256         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
257         (prefetch_20): New insn.
258         (prefetch_cc): Remove.
259         (prefetch_nocc): Likewise.
261         PR target/44705
262         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
264 2010-07-02  Richard Guenther  <rguenther@suse.de>
266         PR middle-end/44777
267         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
269 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
271         PR debug/44694
272         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
273         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
275 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
277         Backport from mainline
278         2010-06-29  Jakub Jelinek  <jakub@redhat.com>
280         PR tree-optimization/43801
281         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
282         if old_decl was DECL_ONE_ONLY.
284         2010-06-21  Jakub Jelinek  <jakub@redhat.com>
286         PR target/44575
287         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
288         va_arg from a set of register save slots into a temporary,
289         if the container is bigger than type size, do the copying
290         using smaller mode or using memcpy.
292         2010-05-13  Jakub Jelinek  <jakub@redhat.com>
294         PR debug/44104
295         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
296         if it is NULL.
298 2010-06-30  Jan Hubicka  <jh@suse.cz>
300         Backport from mainline
301         2010-06-27  Jan Hubicka  <jh@suse.cz>
303         PR middle-end/44671
304         PR middle-end/44686
305         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
306         signature change.
307         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
308         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
310         2010-06-28  Jan Hubicka  <jh@suse.cz>
312         PR tree-optimization/44357
313         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to uninlinable
314         functions.
316 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
318         Backport from mainline
319         2010-06-30  Jakub Jelinek  <jakub@redhat.com>
321         PR debug/44694
322         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
323         * cselib.c (cfa_base_preserved_regno): New static variable.
324         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
325         of REGNO (cfa_base_preserved_val->locs->loc).
326         (cselib_preserve_cfa_base_value): Add regno argument, set
327         cfa_base_preserved_regno to it.
328         (cselib_invalidate_regno): Allow removal of registers other than
329         cfa_base_preserved_regno from cfa_base_preserved_val.
330         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
331         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
332         of MEM addresses, if not on LHS.
333         (reverse_op): Don't add reverse ops for cfa_base_rtx.
334         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
336         2010-06-25  Jakub Jelinek  <jakub@redhat.com>
338         PR middle-end/43866
339         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
340         true or always false, return NULL_TREE.
341         (tree_unswitch_single_loop): Optimize conditions even when reaching
342         max-unswitch-level parameter.  If num > 0, optimize first all conditions
343         using entry checks, then do still reachable block discovery and consider
344         only conditions in still reachable basic blocks in the loop.
346         2010-05-12  Jakub Jelinek  <jakub@redhat.com>
348         PR debug/42278
349         * dwarf2out.c (base_type_die): Don't add name attribute here.
350         (modified_type_die): Instead of sizetype use
351         its underlying original type.  If a DW_TAG_base_type doesn't
352         have name added, add __unknown__.
353         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
354         always call force_type_die instead.
356         2010-05-11  Jakub Jelinek  <jakub@redhat.com>
358         PR c++/44059
359         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
360         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
361         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
362         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
363         on DW.ref.* decls.
365 2010-06-30  Martin Jambor  <mjambor@suse.cz>
367         PR tree-optimization/43905
368         * tree-sra.c (encountered_recursive_call): Removed with all its uses.
369         (convert_callers): Do not handle recursive calls specially.
370         (create_abstract_origin): Removed.
371         (modify_function): Version the call graph node instead of creating
372         abstract origins and dealing with same_body aliases.
373         (ipa_sra_preliminary_function_checks): Check whether the function
374         is versionable.
375         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
377 2010-06-30  Martin Jambor  <mjambor@suse.cz>
379         Backport from mainline
380         2010-05-29  Jan Hubicka  <jh@suse.cz>
382         * cgraph.c (clone_function_name): Made public.
383         * cgraph.h (clone_function_name): Declare.
384         * cgraphunit.c (cgraph_function_versioning): Produce new name.
386 2010-06-29  Martin Jambor  <mjambor@suse.cz>
388         Backport from mainline
389         2010-05-17  Martin Jambor  <mjambor@suse.cz>
391         PR middle-end/44133
392         * tree-sra.c (create_access_replacement): New parameter rename, mark
393         the replaement for renaming only when it is true.
394         (get_access_replacement): Pass true in the rename parameter of
395         create_access_replacement.
396         (get_unrenamed_access_replacement): New function.
397         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
398         replacement declaration from it.
400 2010-06-29  Martin Jambor  <mjambor@suse.cz>
402         Backport from mainline
403         2010-04-13  Martin Jambor  <mjambor@suse.cz>
405         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
406         (sra_modify_assign): Delete stmts loading dead data even if racc has no
407         children.  Call replace_uses_with_default_def_ssa_name to handle
408         SSA_NAES on lhs.
410 2010-06-27  Jan Hubicka  <jh@suse.cz>
412         Backport inliner heruistic fixes from mainline
413         2010-05-27  Jan Hubicka  <jh@suse.cz>
415         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
416         (update_caller_keys): Return early if there are no callers;
417         only update fibheap when decresing the key.
418         (update_callee_keys): Avoid recursion.
419         (decide_inlining_of_small_functions): When badness does not match;
420         re-insert into fibheap.
422         2010-05-11  Jan Hubicka  <jh@suse.cz>
424         PR tree-optimize/44063
425         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
426         queue.
428         2010-04-13  Jan Hubicka  <jh@suse.cz>
430         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
431         of optimized out static functions.
432         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
433         cost computation.  Also sanity check for overflows.
434         (update_caller_keys): Update cgraph_edge_badness call; properly
435         update fibheap and sanity check that it is up to date.
436         (add_new_edges_to_heap): Update cgraph_edge_badness.
437         (cgraph_decide_inlining_of_small_function): Likewise;
438         add sanity checking that badness in heap is up to date;
439         improve dumping of reason; Update badness of calls to the
440         offline copy of function currently inlined; dump badness
441         of functions not inlined because of unit growth limits.
443 2010-06-27  Richard Guenther  <rguenther@suse.de>
445         PR tree-optimization/44683
446         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
447         false edge from the inverted condition.
449 2010-06-27  Eric Botcazou  <ebotcazou@adacore.com>
451         Backport from mainline
452         2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
454         PR rtl-optimization/43332
455         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
457 2010-06-27  Richard Guenther  <rguenther@suse.de>
459         PR middle-end/44684
460         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
461         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
462         for register LHS.  Or non-store assignments.
464 2010-06-26  Richard Guenther  <rguenther@suse.de>
466         PR tree-optimization/44393
467         * tree-loop-distribution.c (generate_loops_for_partition): Fix
468         stmt removal and VOP renaming.
469         (generate_memset_zero): Remove redundant stmt updating.
470         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
471         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
473 2010-06-26  Richard Guenther  <rguenther@suse.de>
475         PR middle-end/44674
476         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
477         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
479 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
481         PR debug/44610
482         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
483         address if the offset is unknown.
485 2010-06-25  Richard Guenther  <rguenther@suse.de>
487         Backport from mainline
488         2010-06-16  Richard Guenther  <rguenther@suse.de>
490         PR c/44555
491         * c-common.c (c_common_truthvalue_conversion): Remove
492         premature and wrong optimization concering ADDR_EXPRs.
494 2010-06-24  Steven Bosscher  <steven@gcc.gnu.org>
496         Backport from mainline:
497         2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
499         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
500         lto-macho as lto_binary_reader.
501         * target.h (struct gcc_target): New hooks lto_start and lto_end.
502         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
503         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
504         in lto_start and lto_end calls.
505         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
506         magic numbers.
507         (scan_prog_file): Update is_elf_or_coff call.
508         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
510         * collect2.c (main): Fix enum comparison.
512         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
513         Add prototypes.
514         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
515         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
516         and TARGET_ASM_LTO_END.
517         * darwin.c: Include obstack.h and lto-streamer.h.
518         (lto_section_names_offset, lto_section_names_obstack,
519         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
520         global variables.
521         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
522         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
523         to a temporary file.
524         (darwin_asm_lto_end): New function.  Restore asm_out_file.
525         (darwin_asm_named_section): For LTO sections, replace the name with
526         the offset of the section name in a string table, and build this
527         table.
528         (darwin_file_start): Initialize global vars for LTO support.
529         (darwin_file_end): If output to asm_out_file was redirected, append it
530         to the proper asm_out_file here.  Add the section names section.
532         Backport from mainline:
533         2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
535         * darwin.c (darwin_asm_named_section): Do not add assembler comment
536         after .section directive; just print it before the directive
537         instead.
539 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
541         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
542         new statement and adjust VDEF only if necessary.  Remove superfluous
543         call to maybe_clean_or_replace_eh_stmt.
544         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
545         copy the flags.
546         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
547         * tree-inline.c (copy_bb): ...and not there.
549 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
551         Backport from mainline
552         2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
554         * config/i386/i386.md (unit): Also check sseishft1.
556 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
558         PR target/39690
559         * config/pa/pa.c (override_options): Disable
560         -freorder-blocks-and-partition.
562 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
564         Backport from mainline
565         2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
567         PR target/44615
568         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
570         * config/i386/i386.md (type): Add sseishft1
572         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
573         (ppro_insn_load): Likewise.
574         (ppro_insn_store): Likewise.
575         (ppro_insn_both): Likewise.
577         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
578         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
579         for type.
580         (*vec_extractv2di_1_avx): Likewise.
581         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
582         type.  Remove atom_unit.
583         (*vec_extractv2di_1_sse2): Likewise.
585 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
587         PR bootstrap/44426
588         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
589         prototype.
590         (sel_print_to_dot): Remove macro.
591         (sel_print): Likewise.  New prototype.
592         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
593         (sel_print): New function.
595 2010-06-21  Uros Bizjak  <ubizjak@gmail.com>
597         PR target/44546
598         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
599         New predicate.
600         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
601         ix86_swapped_fp_comparsion_operator instead of
602         ix86_fp_comparison_operator.
604         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
605         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
606         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
607         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
608         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
609         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
611 2010-06-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
613         Backport from mainline
614         2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
616         PR target/44261
617         * config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
618         (negdf2): Adjust expander pattern and use negdf2_slow.
619         (negsf2): Likewise.
621 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
623         PR target/43740
624         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
625         for SET source operand from SET destination operand.
627 2010-06-16  Martin Jambor  <mjambor@suse.cz>
629         PR lto/44464
630         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
631         on the newly dead SSA name.
633 2010-06-15  Eric Botcazou  <ebotcazou@adacore.com>
635         Backport from mainline
636         2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
638         PR rtl-optimization/42461
639         * dce.c (deletable_insn_p): Return true for const or pure calls again.
640         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
642 2010-06-15  Eric Botcazou  <ebotcazou@adacore.com>
644         Backport from mainline
645         2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
647         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
648         computed cost.
650 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
652         PR fortran/44536
653         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
654         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
655         (LANG_HOOKS_DECLS): Add it.
656         * gimplify.c (omp_notice_variable): Call
657         lang_hooks.decls.omp_report_decl.
659 2010-06-15  Martin Jambor  <mjambor@suse.cz>
661         PR tree-optimization/44258
662         * tree-sra.c (build_access_subtree): Return false iff there is a
663         partial overlap.
664         (build_access_trees): Likewise.
665         (analyze_all_variable_accesses): Disqualify candidates if
666         build_access_trees returns true for them.
668 2010-06-15  Martin Jambor  <mjambor@suse.cz>
670         PR tree-optimization/44423
671         * tree-sra.c (dump_access): Dump also grp_assignment_read.
672         (analyze_access_subtree): Pass negative allow_replacements to children
673         if the current type is scalar.
675 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
677         Backport from mainline
678         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
679         anything if the argument is not a MEM.
681 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
683         Backport from mainline
684         2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
686         PR target/44534
687         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
688         (vec_extract_lo_v16hi): Likewise.
689         (vec_extract_lo_v32qi): Likewise.
691 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
693         PR bootstrap/44426
694         * tree.h (build_call_expr): Don't define as vararg macro, instead
695         add a prototype.
696         * builtins.c (build_call_nofold): Remove.
697         (expand_builtin_int_roundingfn, expand_builtin_pow,
698         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
699         expand_builtin_memset_args, expand_builtin_strcmp,
700         expand_builtin_strncmp, expand_builtin_memory_chk): Use
701         build_call_nofold_loc instead of build_call_nofold.
702         (build_call_expr): New function.
704         PR tree-optimization/44508
705         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
706         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
707         don't eliminate trivially dead stmts.
708         * tree-vrp.c (vrp_finalize): Pass false as last argument
709         to substitute_and_fold.
710         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
711         to substitute_and_fold.
712         * tree-ssa-ccp.c (ccp_finalize): Likewise.
714 2010-06-14  Ira Rosen  <irar@il.ibm.com>
716         PR tree-optimization/44507
717         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
718         to build initial vector for BIT_AND_EXPR.
720 2010-06-14  Dave Korn  <dave.korn.cygwin@gmail.com>
722         Backport from mainline:
723         2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
725         PR lto/42776
726         * configure.ac (gcc_cv_as_section_has_align): Set if installed
727         binutils supports extended .section directive needed by LTO, or
728         warn if older binutils found.
729         (LTO_BINARY_READER): New AC_SUBST'd variable.
730         (LTO_USE_LIBELF): Likewise.
731         * config.gcc (lto_binary_reader): New target-specific configure
732         variable.
733         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
734         (LTO_USE_LIBELF): Likewise.
735         * configure: Regenerate.
736         * collect2.c (is_elf): Rename from this ...
737         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
738          object files in addition to ELF-formatted ones.
739         (scan_prog_file): Caller updated.  Also allow for LTO info marker
740         symbol to be prefixed or not by an extra underscore.
741         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
742         * config/i386/winnt.c: Also #include lto-streamer.h
743         (i386_pe_asm_named_section): Specify 1-byte section alignment for
744         LTO named sections.
745         (i386_pe_asm_output_aligned_decl_common): Add comment.
746         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
748 2010-06-12  Uros Bizjak  <ubizjak@gmail.com>
750         PR target/44481
751         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
752         (paritydi2_cmp): Use UNSPEC_PARITY unspec insted of parity RTX.
753         (partiysi2_cmp): Ditto.
754         (*partiyhi2_cmp): Ditto.
755         (*parityqi2_cmp): Remove.
757 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
759         PR debug/41371
760         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
761         tail-recurse into canonical node.  Fast-forward over
762         non-canonical VALUEs.
764 2010-06-10  Jan Beulich  <jbeulich@novell.com>
766         PR bootstrap/37304
767         * configure.ac: Replace $() with ${} when intending to expand
768         variables rather than invoking commands.
769         * configure: Re-generate.
771 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
773         * opts-common.c (prune_options): Ensure replacement argv array
774         is correctly terminated by a NULL entry.
776 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
778         Backport from mainline:
779         2010-04-28  Mike Stump  <mikestump@comcast.net>
780         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for
781         now.
783 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
785         Backport from mainline:
786         2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
787         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
789 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
791         PR target/44067
792         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
793         e500v2 target.
795 2010-06-08  Uros Bizjak  <ubizjak@gmail.com>
797         * config/i386/i386.md (*movsi_1) <TYPE_LEA>: Use %a modifier
798         to output operand 1.
799         (ashift_zext lea splitter): Use DImode for multiplication.
801         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
802         to generate addition.
804 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
806         * doc/sourcebuild.texi (Effective-Target Keywords, Other
807         attributes): Document gas.
809 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
811         Backport from mainline:
812         2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
814         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
815         linker emulations.
816         * configure: Regenerate.
817         * config.in: Regenerate.
819         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
820         (X86_64_EMULATION): Define.
821         (TARGET_LD_EMULATION): Use them.
823         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
824         (SPARC64_EMULATION): Define.
825         (LINK_ARCH_SPEC): Use them.
827 2010-06-07  Kai Tietz  <kai.tietz@onevision.com>
829         Backport from mainline:
830         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
831         argument for fprintf.
832         (ix86_output_addr_diff_elt): Likewise.
833         (x86_function_profiler): Likewise.
834         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
835         (LPREFIX): Likewise.
836         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
838 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
840         PR debug/41371
841         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
842         recursing.  Check that recursion is bounded.  Rename inner var
843         to avoid hiding incoming argument.
845 2010-06-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
847         Backport from mainline:
848         2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
850         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
851         * configure: Regenerate.
852         * config.in: Regenerate.
853         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
854         works.
856         2010-04-19  Richard Guenther  <rguenther@suse.de>
858         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
859         * configure: Re-generated.
861 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
863         * config/i386/i386.md (*addqi_4): Check for incdec_operand in QImode.
865 2010-06-04  Richard Guenther  <rguenther@suse.de>
867         Backport from mainline:
868         2010-05-25  Jakub Jelinek  <jakub@redhat.com>
870         PR debug/41371
871         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
872         ENABLE_CHECKING.
873         (intersect_loc_chains): Walk the s2var's loc_chain together
874         with s1node chain as long as the locations are equal, don't
875         call find_loc_in_1pdv in that case.
877         2010-05-18  Jakub Jelinek  <jakub@redhat.com>
879         PR debug/41371
880         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
881         rtx_equal_p inline.
883 2010-06-04  Alan Modra  <amodra@gmail.com>
885         PR target/44075
886         * gcc/config/rs6000/rs6000.c (struct machine_function): Reorder
887         fields for better packing.  Add lr_save_state.
888         (rs6000_ra_ever_killed): Return lr_save_state if set.
889         (rs6000_emit_eh_reg_restore): Set lr_save_state.
891 2010-06-03  Richard Guenther  <rguenther@suse.de>
893         Backport from mainline:
894         2010-05-10  Richard Guenther  <rguenther@suse.de>
896         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
897         marked if the entry identifier is marked.
899 2010-06-03  Richard Guenther  <rguenther@suse.de>
901         Backport from mainline:
902         2010-05-16  Richard Guenther  <rguenther@suse.de>
904         * var-tracking.c (vars_copy_1): Inline ...
905         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
906         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
907         (variable_merge_over_cur): Adjust.  Merge asserts.
908         (variable_merge_over_src): Likewise.
909         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
910         (variable_post_merge_new_vals): Merge asserts.
911         (variable_post_merge_perm_vals): Likewise.
912         (find_mem_expr_in_1pdv): Likewise.
913         (dataflow_set_different_value): Remove.
914         (onepart_variable_different_p): Merge asserts.
915         (variable_different_p): Likewise.
916         (dataflow_set_different_1): Inline ...
917         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
918         (emit_notes_for_differences_1): Merge asserts.
920 2010-06-03  Jan Hubicka  <jh@suse.cz>
921             Jakub Jelinek  <jakub@redhat.com>
923         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
924         set->regs[i] is NULL or has just one entry.
926 2010-06-03  Alan Modra  <amodra@gmail.com>
928         PR target/44169
929         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
930         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
931         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
932         (rs6000_emit_load_toc_table): Likewise.
934 2010-06-02  Richard Guenther  <rguenther@suse.de>
936         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
938 2010-06-02  Richard Guenther  <rguenther@suse.de>
940         Backport from mainline:
941         2010-05-27  Jan Hubicka  <jh@suse.cz>
943         * sched-ebb.c: Rename struct deps to struct deps_desc.
944         * ddg.c: Likewise.
945         * sel-sched-ir.c: Likewise.
946         * sched-deps.c: Likewise.
947         * sched-int.h: Likewise.
948         * sched-rgn.c: Likewise.
950 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
952         * config/s390/2097.md (z10_fhex): Remove insn reservation.
953         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
954         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
955         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
956         instruction.
957         * config/s390/s390.c: Don't accept fp zeros as valid constants
958         anymore.
960 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
962         PR target/44338
963         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
964         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
965         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
966         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
967         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
968         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
969         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
970         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
971         TARGET_FUSED_MADD.
973         PR middle-end/44337
974         * expr.c (expand_assignment): Don't store anything for out-of-bounds
975         array accesses with non-MEM.
977         PR tree-optimization/44182
978         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
979         newly needs to end a bb is followed by debug stmts, instead return
980         true from the function at the end.
981         (maybe_move_debug_stmts_to_successors): New function.
982         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
984 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
986         Merged from trunk
987         PR target/44161
988         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle
989         flag_pic.
991 2010-05-28  Richard Guenther  <rguenther@suse.de>
993         PR lto/44312
994         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
995         Stream fixed-point constants mode.
996         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
997         and TYPE_PRECISION.
998         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
999         Stream fixed-point constants mode.
1000         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
1001         and TYPE_PRECISION.
1003 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1005         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
1007 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
1009         PR target/43636
1010         * builtins.c (expand_movstr): Use a temporary pseudo instead
1011         of target even when target is not NULL and not const0_rtx, but
1012         fails movstr predicate.
1013         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
1015 2010-05-27  Jon Beniston  <jon@beniston.com>
1017         PR 43726
1018         * config/lm32/lm32.h: Remove definition of
1019         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
1021 2010-05-26  Richard Guenther  <rguenther@suse.de>
1023         PR rtl-optimization/44164
1024         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
1025         no-common access-path disambiguation.
1026         (indirect_ref_may_alias_decl_p): Adjust.
1027         (indirect_refs_may_alias_p): Likewise.
1028         (refs_may_alias_p_1): Likewise.
1030 2010-05-26  Richard Guenther  <rguenther@suse.de>
1032         PR middle-end/44069
1033         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Avoid generating
1034         out-of-bounds array accesses.
1036 2010-05-26  Richard Guenther  <rguenther@suse.de>
1038         Backport from mainline:
1039         2010-04-15  Richard Guenther  <rguenther@suse.de>
1041         * alias.c (alias_set_subset_of): Handle alias-set zero
1042         child properly.
1044 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
1046         PR target/44199
1047         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
1048         or total_size is larger than red zone size for non-V4 ABI, emit a
1049         stack_tie resp. frame_tie insn before stack pointer restore.
1050         * config/rs6000/rs6000.md (frame_tie): New insn.
1052 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1054         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
1055         stderr to /dev/null instead of grep -q.
1056         * configure: Regenerate.
1058 2010-05-25  Richard Guenther  <rguenther@suse.de>
1060         * gimple.c (gimple_types_compatible_p): Check type qualifications
1061         before merging pointer to complete and pointer to incomplete type.
1062         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
1063         we use our own resolution algorithm.  The gold linker plugin
1064         doesn't do the job we want it to do here.
1066 2010-05-24  Richard Guenther  <rguenther@suse.de>
1068         PR lto/44196
1069         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
1071 2010-05-24  Uros Bizjak  <ubizjak@gmail.com>
1073         Backport from mainline:
1074         2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
1076         PR target/43733
1077         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
1078         * configure: Regenerate.
1079         * config.in: Regenerate.
1080         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
1081         instead of sahf only for 64bit targets.
1083 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1085         Backport from mainline
1086         2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1088         * config/i386/ia32intrin.h (__crc32q): Define only if
1089         __SSE4_2__ is defined.
1091 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1093         Backport from mainline
1094         2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1096         PR target/44245
1097         * config/i386/i386.c (def_builtin): Properly check
1098         OPTION_MASK_ISA_64BIT.
1100 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
1102         Merged from trunk
1103         PR target/43869
1104         * config/i386/i386.c: Make sure that the correct regparm is passed.
1106 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
1108         PR debug/44223
1109         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
1110         unchain each use from the cyclic next_regno_use chain first.
1112 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1114         * config/s390/s390.c (override_options): Increase the default
1115         of max-completely-peel-times.
1117 2010-05-21  Richard Guenther  <rguenther@suse.de>
1119         PR tree-optimization/44038
1120         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
1121         taking the address of a V_C_E of a constant.
1123 2010-05-21  Richard Guenther  <rguenther@suse.de>
1125         PR tree-optimization/43949
1126         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigend types.
1127         (extract_range_from_binary_expr): Handle TRUNC_MOD_EXPR.
1129 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
1131         PR debug/44205
1132         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
1133         at -O0 goto_locus of any of the incoming edges differs from
1134         goto_locus of outgoing edge, or gimple_location of any of the
1135         labels differs.
1137 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
1139         PR debug/44178
1140         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
1141         setup_ref_regs for DEBUG_INSNs.
1143 2010-05-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
1145         PR bootstrap/43870
1146         * df-scan.c (df_ref_compare): Stabilize sort.
1148 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
1150         PR target/44202
1151         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
1152         settings for 16-bit-constant "addo" alternative.
1154 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1156         Backport from mainline:
1157         2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1159         PR target/44074
1160         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
1161         * configure: Regenerate.
1162         * config.in: Regenerate.
1163         * config/i386/i386.c (print_operand) <case ;>: Also print ; if
1164         !HAVE_AS_IX86_REP_LOCK_PREFIX.
1165         Don't emit whitespace.
1166         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
1167         (*rep_movsi): Likewise.
1168         (*rep_movsi_rex64): Likewise.
1169         (*rep_movqi): Likewise.
1170         (*rep_movqi_rex64): Likewise.
1171         (*rep_stosdi_rex64): Likewise.
1172         (*rep_stossi): Likewise.
1173         (*rep_stossi_rex64): Likewise.
1174         (*rep_stosqi): Likewise.
1175         (*rep_stosqi_rex64): Likewise.
1176         (*cmpstrnqi_nz_1): Use {%;} after repz.
1177         (*cmpstrnqi_nz_rex_1): Likewise.
1178         (*cmpstrnqi_1): Likewise.
1179         (*cmpstrnqi_rex_1): Likewise.
1180         (*strlenqi_1): Use {%;} after repnz.
1181         (*strlenqi_rex_1): Likewise.
1182         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
1183         (*sync_compare_and_swap<mode>): Likewise.
1184         (sync_double_compare_and_swap<mode>): Likewise.
1185         (*sync_double_compare_and_swapdi_pic): Likewise.
1186         (sync_old_add<mode>): Likewise.
1187         (sync_add<mode>): Likewise.
1188         (sync_sub<mode>): Likewise.
1189         (sync_<code><mode>): Likewise.
1191 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1193         * doc/sourcebuild.texi (Effective-Target Keywords): Document
1194         3dnow, sse3, sse2.
1195         (Directives): Document optional dg-require-effective-target
1196         selector.
1198 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1200         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
1201         pentiumpro on Solaris 8/x86 with Sun as.
1202         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
1203         hidden alias bug.
1204         (gcc_cv_as_ix86_quad): Check for .quad directive.
1205         * configure: Regenerate.
1206         * config.in: Regenerate.
1207         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
1209 2010-05-19  Richard Guenther  <rguenther@suse.de>
1211         PR tree-optimization/43987
1212         * tree-ssa-structalias.c (could_have_pointers): For possibly
1213         address-taken variables force pointers to be recorded.
1214         (create_variable_info_for_1): Likewise.
1215         (push_fields_onto_fieldstack): Pass in wheter all fields
1216         must have pointers.
1217         (find_func_aliases): Query types instead of vars whether
1218         they contain pointers where appropriate.
1220 2010-05-19  Richard Guenther  <rguenther@suse.de>
1222         Backport from mainline:
1223         2010-04-26  Richard Guenther  <rguenther@suse.de>
1225         PR lto/43455
1226         * tree-inline.c (tree_can_inline_p): Also check compatibility
1227         of return types.
1229         2010-04-23  Richard Guenther  <rguenther@suse.de>
1231         PR lto/42653
1232         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
1233         of FUNCTION_DECLs.
1235         2010-04-26  Richard Guenther  <rguenther@suse.de>
1237         PR lto/42425
1238         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
1239         if emitting debug information and it is either a function
1240         or a namespace decl.
1242         2010-04-26  Richard Guenther  <rguenther@suse.de>
1244         PR lto/43080
1245         * gimple.c (gimple_decl_printable_name): Deal gracefully
1246         with a NULL DECL_NAME.
1248         2010-04-30  Richard Guenther  <rguenther@suse.de>
1250         PR lto/43946
1251         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
1252         first after all lowering passes.
1254 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
1256         PR lto/44184
1257         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
1258         in a GIMPLE_ASM.
1259         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
1260         in a GIMPLE_ASM.
1262 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1264         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
1266 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
1268         PR bootstrap/42347
1269         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
1270         to have no fallthru edge.
1272         PR middle-end/44102
1273         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
1274         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
1275         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
1276         add BARRIER after previous bb if needed.
1278 2010-05-17  Alan Modra  <amodra@gmail.com>
1280         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
1281         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
1282         with copy_reg rtx param.
1283         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
1284         Correct cases where code for ABI_V4 did not initialise the reg
1285         used to access frame.  Also leave frame_reg_rtx as sp for large
1286         frames that save no regs.
1288 2010-05-17  Eric Botcazou  <ebotcazou@adacore.com>
1290         Backport from mainline
1291         2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
1293         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
1294         (decode_options): Likewise.
1295         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
1297 2010-05-14  Jason Merrill  <jason@redhat.com>
1299         PR c++/44127
1300         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
1301         (gimple_call_set_nothrow): New.
1302         * gimple.c (gimple_build_call_from_tree): Call it.
1303         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
1305         PR c++/44127
1306         * gimplify.c (gimplify_seq_add_stmt): No longer static.
1307         * gimple.h: Declare it.
1308         * gimple.c (gimple_build_eh_filter): No ops.
1310 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
1312         PR debug/44136
1313         * cfgexpand.c (expand_debug_expr): If non-memory op0
1314         has BLKmode, return NULL.
1316 2010-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1318         Backport from mainline
1319         2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1321         PR target/44088
1322         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
1324 2010-05-14  Richard Guenther  <rguenther@suse.de>
1326         PR tree-optimization/44124
1327         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
1329 2010-05-13  Jason Merrill  <jason@redhat.com>
1331         * gimplify.c (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the
1332         rhs didn't change.
1334         PR c++/43787
1335         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
1336         returns GS_OK.
1337         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
1339 2010-05-12  Wolfgang Gellerich  <gellerich@de.ibm.com>
1341         * config/s390/s390.c (override_options): Adjust the z10 defaults
1342         for max-unroll-times, max-completely-peeled-insns
1343         and max-completely-peel-times.
1345 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
1347         PR middle-end/44085
1348         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
1349         change value of ORT_TASK.
1350         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
1351         (omp_notice_threadprivate_variable): New function.
1352         (omp_notice_variable): Call it for threadprivate variables.
1353         If enclosing ctx is a task, print enclosing task rather than
1354         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
1355         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
1356         if task has untied clause.
1358 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
1360         PR middle-end/44071
1361         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
1362         no fallthru edge.
1363         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
1364         optimizing away empty bb with no successors, move over its
1365         footer chain to fallthru predecessor.
1366         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
1367         (rtl_split_edge): For asm goto call patch_jump_insn even if
1368         splitting fallthru edge.
1370 2010-05-11  Martin Jambor  <mjambor@suse.cz>
1372         PR middle-end/43812
1373         * ipa.c (dissolve_same_comdat_group_list): New function.
1374         (function_and_variable_visibility): Call
1375         dissolve_same_comdat_group_list when comdat group contains external or
1376         newly local nodes.
1377         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
1378         lists are circular and that they contain only DECL_ONE_ONLY nodes.
1380 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
1382         PR debug/44028
1383         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
1384         clear also INSN_REG_USE_LIST.
1386 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1388         Backport from mainline
1389         2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1390                     Vladimir Makarov  <vmakarov@redhat.com>
1392         PR rtl-optimization/44012
1393         * ira-build.c (remove_unnecessary_allocnos): Nullify
1394         regno_allocno_map of the removed allocno.
1396 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1398         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
1399         to /dev/null.
1400         * configure: Regenerate.
1402 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1404         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
1405         unused.
1406         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
1407         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
1408         support in Sun ld.
1409         * configure: Regenerate.
1411 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1413         Backport from mainline
1414         2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1416         PR target/44046
1417         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
1418         detect Atom, Core 2 and Core i7.
1420 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1422         PR documentation/44016
1423         * doc/standards.texi (Standards): Link to unversioned
1424         cxx0x_status.html page.
1426 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1428         * config/mips/iris.h (LINK_SPEC): Don't pass -init, -fini with -r.
1430 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1432         * config/mips/dbxmdebug.h: Remove.
1433         * config.gcc (mips-sgi-irix[56]*): Remove mips/dbxmdebug.h.
1435 2010-05-05  Kaz Kojima  <kkojima@gcc.gnu.org>
1437         Backport from mainline:
1438         2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
1440         PR target/43744
1441         * config/sh/sh.c (find_barrier): Don't emit a constant pool
1442         in the middle of insns for casesi_worker_2.
1444 2010-05-05  Jason Merrill  <jason@redhat.com>
1446         PR debug/43370
1447         * c-common.c (handle_aligned_attribute): Respect
1448         ATTR_FLAG_TYPE_IN_PLACE.
1450 2010-05-05  Richard Guenther  <rguenther@suse.de>
1452         PR c++/43880
1453         * tree-inline.c (copy_bind_expr): Also copy bind expr vars
1454         value-exprs.
1456 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1458         Backport from mainline
1459         2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
1461         PR middle-end/43671
1462         * alias.c (true_dependence): Handle the same VALUE in x and mem.
1463         (canon_true_dependence): Likewise.
1464         (write_dependence_p): Likewise.
1466 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
1468         PR debug/43972
1469         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
1470         result mode matches original rtl mode.
1472 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
1474         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
1475         when processing flag options.
1477 2010-05-02  H.J. Lu  <hongjiu.lu@intel.com>
1479         Backport from mainline
1480         2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
1482         PR target/43921
1483         * config/i386/i386.c (get_some_local_dynamic_name): Replace
1484         INSN_P with NONDEBUG_INSN_P.
1485         (distance_non_agu_define): Likewise.
1486         (distance_agu_use): Likewise.
1488 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
1490         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
1491         the variable part of the offset as well.  Use highest_pow2_factor for
1492         all alignment checks.
1494 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
1496         PR debug/43942
1497         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
1499 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
1501         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
1502         type if available.
1504 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
1506         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
1507         record or union type with RECORD_OR_UNION_TYPE_P predicate.
1508         (lto_input_ts_type_tree_pointers): Likewise.
1509         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
1510         (lto_output_ts_type_tree_pointers): Likewise.
1512 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
1514         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
1515         hash_tree, eq_tree): New tree hash table.
1516         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
1517         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
1518         lto_orig_address_remove): Reimplement.
1520 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1522         PR target/22224
1523         * config/alpha/osf.h (ASM_OUTPUT_LOCAL): Redefine.
1525 2010-04-28  Martin Jambor  <mjambor@suse.cz>
1527         PR tree-optimization/43846
1528         * tree-sra.c (struct access): New flag grp_assignment_read.
1529         (build_accesses_from_assign): Set grp_assignment_read.
1530         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
1531         (enum mark_read_status): New type.
1532         (analyze_access_subtree): Propagate grp_assignment_read, create
1533         accesses also if both direct_read and root->grp_assignment_read.
1535 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
1537         Back-merged from trnnk.
1538         * collect2.c (TARGET_64BIT): Redefine to target's default.
1539         * tlink.c: Likewise.
1540         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
1541         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
1542         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
1543         for underscoring __USER_LABEL_PREFIX__.
1544         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
1545         (SUB_LINK_ENTRY32): New.
1546         (SUB_LINK_ENTRY64): New.
1547         (LINK_SPEC): Replace entry point spec by
1548         SUB_LINK_ENTRY.
1549         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
1550         (SUB_LINK_ENTRY64): New.
1551         (SUB_LINK_ENTRY): New.
1552         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
1553         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
1554         x64 target is choosen.
1555         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
1556         * configure: Regenerated.
1557         * configure.ac (leading-mingw64-underscores): Option added.
1559 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
1561         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
1562         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
1563         or DW_CFA_def_cfa_offset{,_sf}.
1565         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
1567 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
1569         PR target/43889
1570         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
1571         Add missing earlyclobber for second alternative.
1573 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
1575         PR c/43893
1576         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
1578 2010-04-26  Jie Zhang  <jie@codesourcery.com>
1580         PR tree-optimization/43833
1581         * tree-vrp.c (range_int_cst_p): New.
1582         (range_int_cst_singleton_p): New.
1583         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
1584         when both operands are constants.  Use range_int_cst_p in
1585         BIT_IOR_EXPR case.
1587 2010-04-23  Martin Jambor  <mjambor@suse.cz>
1589         PR middle-end/43835
1590         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
1591         function does not have type attributes.
1593 2010-04-23  Richard Guenther  <rguenther@suse.de>
1595         PR tree-optimization/43572
1596         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
1598 2010-04-23  Richard Guenther  <rguenther@suse.de>
1600         Backport from mainline
1601         2010-04-22  Richard Guenther  <rguenther@suse.de>
1603         PR tree-optimization/43845
1604         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
1605         lookup the CALL_EXPR function and arguments.
1607 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
1609         PR middle-end/43570
1610         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
1611         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
1612         (lower_copyprivate_clauses): Use private var in outer
1613         context instead of original var.  Make sure the types
1614         are correct for VLAs.
1616 2010-04-20  Richard Guenther  <rguenther@suse.de>
1618         PR tree-optimization/43783
1619         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
1620         constant ARRAY_REF operands two and three if possible.
1622 2010-04-20  Richard Guenther  <rguenther@suse.de>
1624         PR tree-optimization/43796
1625         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
1626         from SCEV in the lattice.
1627         (vrp_visit_phi_node): Dump change.
1629 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
1631         PR middle-end/43337
1632         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
1633         with non-local decl doesn't need chain.
1635 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1637         PR target/43635
1638         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
1639         calls for -fpic -m31 if they have been sibcall optimized.
1641 2010-04-19  DJ Delorie  <dj@redhat.com>
1643         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
1644         POINTER_PLUS_EXPR and fix them.
1646 2010-04-19  Jie Zhang  <jie@codesourcery.com>
1648         PR target/43662
1649         * reginfo.c (reinit_regs): Set caller_save_initialized_p
1650         to false.
1652 2010-04-19  Richard Guenther  <rguenther@suse.de>
1654         PR tree-optimization/43572
1655         * tree-tailcall.c (find_tail_calls): Verify the tail call
1656         properly.
1658 2010-04-19 Ira Rosen <irar@il.ibm.com>
1660         PR tree-optimization/43771
1661         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
1662         load permutation doesn't have gaps.
1664 2010-04-18  Matthias Klose  <doko@ubuntu.com>
1666         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
1668 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1670         Backport from mainline:
1671         2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1673         * configure.ac (plugin -rdynamic test): Log result.
1674         * configure: Regenerate.
1675         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
1676         (RDYNAMIC_SPEC): Define.
1677         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
1679 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1681         Backport from mainline:
1682         2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1684         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
1685         * config/sol2-gld.h: ... here.
1686         * config.gcc (sparc*-*-solaris2*): Reflect this.
1687         (i[34567]86-*-solaris2*): Use it.
1689 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1691         Backport from mainline:
1692         2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1694         * configure.ac: Determine Sun ld version numbers.
1695         (comdat_group): Restrict GNU ld version checks to gld.
1696         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
1697         (enable_comdat): Support --enable-comdat.
1698         * configure: Regenerate.
1699         * doc/install.texi (Configuration): Document --enable-comdat.
1701 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
1703         Backport from mainline:
1704         2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1706         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
1707         splitter condition.
1708         (*udivmod<mode>4): Ditto.
1710         2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1712         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
1713         from insn template.
1715 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
1717         Backport from mainline:
1718         2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
1720         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
1722 2010-04-15  Richard Guenther  <rguenther@suse.de>
1724         PR tree-optimization/43627
1725         * tree-vrp.c (extract_range_from_unary_expr): Widenings
1726         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
1727         not varying.
1729 2010-04-14  Richard Guenther  <rguenther@suse.de>
1731         * DEV-PHASE: Set back to prerelease.
1732         * BASE-VER: Bump to 4.5.1.
1734 2010-04-14  Release Manager
1736         * GCC 4.5.0 released.
1738 2010-04-13  Michael Matz  <matz@suse.de>
1740         PR middle-end/43730
1741         * builtins.c (expand_builtin_interclass_mathfn): Also create
1742         a register if the predicate doesn't match.
1744 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1746         * doc/contrib.texi (Contributors, Rainer Orth): Update.
1748 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1750         PR target/43643
1751         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
1753 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1755         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
1756         (Specific, *-*-solaris2*): Likewise.
1757         Don't prefer Sun as over GNU as.
1759 2010-04-08  Richard Guenther  <rguenther@suse.de>
1761         PR tree-optimization/43679
1762         * tree-ssa-pre.c (eliminate): Only propagate copies.
1764 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
1766         PR debug/43670
1767         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
1768         op0 is not a MEM, just return NULL instead of assertion
1769         failure.
1770         (discover_nonconstant_array_refs): Don't walk debug stmts.
1772 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
1774         PR target/43668
1775         * config/i386/i386.c (setup_incoming_varargs_64): Align stack to
1776         16byte for FP register save area.
1778 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1780         * doc/install.texi (Configuration): Move description of
1781         --enable-lto, --with-libelf*, --enable-gold from Java section to
1782         general section.
1784         * doc/generic.texi (Working with declarations)
1785         (Function Properties, C and C++ Trees): Fix typos.
1786         * doc/sourcebuild.texi (Top Level): Likewise.
1788 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1790         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to
1791         generic.
1793 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
1795         PR target/43667
1796         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
1797         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
1798         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
1799         MULTI_* defines for 4 argument vpermil2p* builtins.
1801 2010-04-06  Joseph Myers  <joseph@codesourcery.com>
1803         * doc/invoke.texi, doc/standards.texi: Refer to
1804         gcc-4.5/c99status.html.
1806 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
1808         PR target/43638
1809         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
1810         handling.
1812 2010-04-06  Richard Guenther  <rguenther@suse.de>
1814         PR middle-end/43661
1815         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
1817 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1819         * doc/invoke.texi (Optimize Options): Document that LTO
1820         won't remove object access purely due to incompatible
1821         declarations.
1823 2010-04-04  Matthias Klose  <doko@ubuntu.com>
1825         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
1826         Initialize variable.
1828 2010-04-03  Richard Guenther  <rguenther@suse.de>
1830         PR middle-end/42509
1831         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
1832         require a non-NULL MEM_OFFSET.
1834 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
1836         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
1837         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
1838         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
1839         config/alpha/predicates.md, config/arm/arm.md,
1840         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
1841         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
1842         config/darwin9.h, config/darwin.c, config/darwin.h,
1843         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
1844         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
1845         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
1846         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
1847         config/mips/mips.md, config/mn10300/mn10300.c,
1848         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
1849         config/rs6000/aix.h, config/rs6000/dfp.md,
1850         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
1851         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
1852         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
1853         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
1854         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
1855         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
1856         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
1857         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
1858         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
1859         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
1860         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
1861         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
1862         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
1863         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
1864         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
1865         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
1866         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
1867         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
1868         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
1869         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
1870         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
1871         opt-functions.awk, opth-gen.awk, params.def, passes.c,
1872         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
1873         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
1874         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
1875         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
1876         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
1877         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
1878         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
1879         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
1880         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
1881         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
1882         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
1883         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
1884         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
1885         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
1887 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1889         PR other/43620
1890         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
1891         * aclocal.m4: Regenerate.
1893 2010-04-02  Richard Guenther  <rguenther@suse.de>
1895         PR tree-optimization/43629
1896         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
1897         if we have seen a constant value.
1899 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
1901         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for
1902         ']'.
1904 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
1906         PR target/43469
1907         * arm.c (legitimize_tls_address): Adjust call to
1908         gen_tls_load_dot_plus_four.
1909         (arm_note_pic_base): New function.
1910         (arm_cannot_copy_insn_p): Use it.
1911         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
1912         constraint.
1914 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1916         PR bootstrap/43531
1918         Revert:
1919         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1921         * Makefile.in ($(out_object_file)): Depend on
1922         gt-$(basename $(notdir $(out_file))).h.
1924 2010-04-01  Ralf Corsépius <ralf.corsepius@rtems.org>
1926         * config.gcc (lm32-*-rtems*): Add t-lm32.
1928 2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>
1930         * config.gcc: Add lm32-*-rtems*.
1931         * config/lm32/rtems.h: New file.
1933 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
1935         PR target/42609
1936         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
1938 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
1940         * dwarf2out.c (output_compilation_unit_header): For
1941         -gdwarf-4 use version 4 instead of version 3.
1942         (output_line_info): For version 4 and above emit additional
1943         maximum ops per insn header field.
1944         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
1946         * dwarf2out.c (is_c_family, is_java): Remove.
1947         (lower_bound_default): New function.
1948         (add_bound_info, gen_descr_array_type_die): Use it.
1950 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
1952         PR debug/43325
1953         * dwarf2out.c (gen_variable_die): Allow debug info for variable
1954         re-declaration when it happens in a function.
1956 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
1958         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
1959         (cgraph_remove_function_insertion_hook): Same.
1960         (cgraph_call_function_insertion_hooks): Same.
1962 2010-04-01  Richard Guenther  <rguenther@suse.de>
1964         PR middle-end/43614
1965         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
1966         and TREE_THIS_VOLATILE.
1967         (copy_ref_info): Likewise.
1968         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
1969         * tree.c (build6_stat): Ignore side-effects of all but arg5
1970         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
1971         TARGET_MEM_REF.
1973 2010-04-01  Richard Guenther  <rguenther@suse.de>
1975         PR tree-optimization/43607
1976         * ipa-type-escape.c (check_call): Do not access non-existing
1977         arguments.
1979 2010-04-01  Richard Guenther  <rguenther@suse.de>
1981         PR middle-end/43602
1982         Revert
1983         2010-03-30  Seongbae Park <seongbae.park@gmail.com>
1984             Jack Howarth <howarth@bromo.med.uc.edu>
1986         * tree-profile.c (tree_init_ic_make_global_vars): Make static
1987         variables TLS.
1989 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1991         * doc/install.texi (Prerequisites): Document libelf usability on
1992         IRIX 5/6 and Solaris 2.
1993         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
1994         Update GNU as, GNU ld requirements.
1995         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
1996         Document Sun Studio compiler download.
1997         Update and simplify as, ld recommendations.
1998         (Specific, *-*-solaris2.7): Note obsoletion, removal.
2000 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2002         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
2003         with_tune_32 to pentium4.
2005 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
2007         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
2009 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2011         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
2012         obsoletion, removal.
2013         Update IDO URL.
2014         Document GNU as requirement.
2015         Update configure requirements.
2016         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion,
2017         removal.
2018         Recomment IRIX 6.5.18+.
2019         Document IDF/IDL requirement.
2020         Document GNU as requirement.
2021         Document GNU ld bootstrap failure.
2022         Remove freeware.sgi.com reference.
2024 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2026         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
2027         UNIX V4.0, V5.0 obsoletion, removal.
2028         Remove --with-gc=simple reference.
2029         Update VM requirements during bootstrap.
2030         Remove -oldas bootstrap description.
2031         Update binutils reference.
2032         Remove comparison failure note.
2034 2010-03-31  Richard Guenther  <rguenther@suse.de>
2035             Zdenek Dvorak  <ook@ucw.cz>
2036             Sebastian Pop  <sebastian.pop@amd.com>
2038         PR middle-end/43464
2039         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
2040         with multiple arguments.
2041         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
2043 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
2045         * graphite-dependences.c (print_pddr): Call print_pdr with an
2046         extra argument.
2047         * graphite-poly.c (debug_pdr): Add an extra argument for the
2048         verbosity level.
2049         (print_pdr): Same.
2050         (print_pbb_domain): Same.
2051         (print_pbb): Same.
2052         (print_scop_context): Same.
2053         (print_scop): Same.
2054         (print_cloog): Same.
2055         (debug_pbb_domain): Same.
2056         (debug_pbb): Same.
2057         (print_pdrs): Same.
2058         (debug_pdrs): Same.
2059         (debug_scop_context): Same.
2060         (debug_scop): Same.
2061         (debug_cloog): Same.
2062         (print_scop_params): Same.
2063         (debug_scop_params): Same.
2064         (print_iteration_domain): Same.
2065         (print_iteration_domains): Same.
2066         (debug_iteration_domain): Same.
2067         (debug_iteration_domains): Same.
2068         (print_scattering_function): Same.
2069         (print_scattering_functions): Same.
2070         (debug_scattering_function): Same.
2071         (debug_scattering_functions): Same.
2072         * graphite-poly.h (debug_pdr): Update declaration.
2073         (print_pdr): Same.
2074         (print_pbb_domain): Same.
2075         (print_pbb): Same.
2076         (print_scop_context): Same.
2077         (print_scop): Same.
2078         (print_cloog): Same.
2079         (debug_pbb_domain): Same.
2080         (debug_pbb): Same.
2081         (print_pdrs): Same.
2082         (debug_pdrs): Same.
2083         (debug_scop_context): Same.
2084         (debug_scop): Same.
2085         (debug_cloog): Same.
2086         (print_scop_params): Same.
2087         (debug_scop_params): Same.
2088         (print_iteration_domain): Same.
2089         (print_iteration_domains): Same.
2090         (debug_iteration_domain): Same.
2091         (debug_iteration_domains): Same.
2092         (print_scattering_function): Same.
2093         (print_scattering_functions): Same.
2094         (debug_scattering_function): Same.
2095         (debug_scattering_functions): Same.
2097 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
2099         * graphite-poly.c (print_scattering_function_1): New.
2100         (print_scattering_function): Call it.
2101         (print_scop_params): Remove spaces at the end of lines.
2102         (print_cloog): New.
2103         (debug_cloog): New.
2104         * graphite-poly.h (print_cloog): Declared.
2105         (debug_cloog): Declared.
2107 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
2109         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
2110         in loop->header.
2111         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
2112         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
2113         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
2114         to switch between adding the IV bump in loop->latch or in loop->header.
2116 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
2118         * graphite-poly.c (print_scattering_function): Pretty print following
2119         the scoplib format.
2120         (print_pdr): Same.
2121         (print_pbb_domain): Same.
2122         (dump_gbb_cases): Same.
2123         (dump_gbb_conditions): Same.
2124         (print_pdrs): Same.
2125         (print_pbb): Same.
2126         (print_scop_params): Same.
2127         (print_scop_context): Same.
2128         (print_scop): Same.
2129         (print_pbb_body): New.
2130         (lst_indent_to): New.
2131         (print_lst): Start new lines with a #.
2132         * graphite-poly.h (pbb_bb): New.
2133         (pbb_index): Use pbb_bb.
2134         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
2135         disjuncts.
2136         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
2138 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
2140         * dwarf2out.c (size_of_die): For -gdwarf-4 use
2141         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
2142         and 0 instead of 1 for dw_val_class_flag.
2143         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
2144         dw_val_class_range_list, dw_val_class_loc_list,
2145         dw_val_class_lineptr and dw_val_class_macptr, use
2146         DW_FORM_flag_present for dw_val_class_flag and
2147         DW_FORM_exprloc for dw_val_class_loc.
2148         (output_die): For -gdwarf-4 print dw_val_class_loc
2149         size as uleb128 instead of 1 or 2 bytes and don't print
2150         anything for dw_val_class_flag.
2152         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
2153         instead of cselib_lookup following by tweaking locs->setting_insn.
2155         PR bootstrap/43596
2156         * cselib.c (cselib_process_insn): Clear cselib_current_insn
2157         even before returning from label, setjmp call or volatile asm
2158         handling.
2160 2010-03-31  Richard Guenther  <rguenther@suse.de>
2162         PR middle-end/43600
2163         * cgraphunit.c (cgraph_output_in_order): Do not allocate
2164         temporary data on stack.
2166 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2168         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
2169         (PUSHSECTION_ASM_OP): Remove.
2170         (POPSECTION_ASM_OP): Remove.
2171         (PUSHSECTION_FORMAT): Remove.
2172         * config/sol2.h (PUSHSECTION_FORMAT): Define.
2173         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
2174         * config/sol2.c (solaris_output_init_fini): Use it.
2176 2010-03-31  Jie Zhang  <jie@codesourcery.com>
2178         PR 43574
2179         * opt-functions.awk (var_type_struct): Use signed char type
2180         for simple variables.
2182 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2184         * config/sol2.c: Include output.h.
2185         (solaris_assemble_visibility): New function.
2186         * config/t-sol2 (sol2.o): Add output.h dependency.
2187         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
2188         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
2189         Redefine.
2191 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
2193         PR target/43580
2194         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
2195         V2SImode or XFmode on PRE_DEC.
2197         PR debug/43557
2198         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
2199         BLKmode.
2201 2010-03-31  Jie Zhang  <jie@codesourcery.com>
2203         PR 43562
2204         * reload.h (caller_save_initialized_p): Declare.
2205         * toplev.c (backend_init_target): Don't call
2206         init_caller_save but set caller_save_initialized_p to false.
2207         * caller-save.c (caller_save_initialized_p): Define.
2208         (init_caller_save): Check caller_save_initialized_p.
2209         * ira.c (ira): Call init_caller_save if flag_caller_saves.
2211 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2213         PR target/39048
2214         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
2215         and soft-fp/t-softfp to tmake_file.
2216         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
2217         (LIBGCC2_TF_CEXT): Define.
2218         (TF_SIZE): Define.
2220 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
2222         PR debug/42977
2223         * cselib.c (n_useless_values): Document handling of debug locs.
2224         (n_useless_debug_values, n_debug_values): New variables.
2225         (new_elt_loc_list): Don't add to debug values, keep count.
2226         (promote_debug_loc): New.
2227         (cselib_reset_table): Zero new variables.
2228         (entry_and_rtx_equal_p): Promote debug locs.
2229         (discard_useless_locs): Increment n_useless_debug_values for
2230         debug values.
2231         (remove_useless_values): Adjust n_useless_values and n_debug_values
2232         with n_useless_debug_values.
2233         (add_mem_for_addr): Promote debug locs.
2234         (cselib_lookup_mem): Likewise.
2235         (cselib_lookup_addr): Renamed to...
2236         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
2237         (cselib_log_lookup): ... this.  Turn into...
2238         (cselib_lookup_addr): ... new wrapper.
2239         (cselib_lookup_from_insn): New.
2240         (cselib_invalidate_regno): Increment n_useless_debug_values for
2241         debug values.
2242         (cselib_invalidate_mem): Likewise.
2243         (cselib_process_insn): Take n_deleted and n_debug_values into
2244         account to guard remove_useless_value call.
2245         (cselib_finish): Zero n_useless_debug_values.
2246         * cselib.h (cselib_lookup_from_insn): Declare.
2247         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
2248         (sched_analyze_2): Likewise.
2250 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
2252         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
2253         functions.
2254         (adjust_mems): Replace narrowing SUBREG of expression containing
2255         just PLUS, MINUS, MULT and ASHIFT of registers and constants
2256         with operations in the narrower mode.
2258         PR debug/43593
2259         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
2260         regs_invalidated_by_call instead all call_used_reg_set registers.
2262 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
2264         PR middle-end/43430
2265         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
2266         pointer comparisons with types_compatible_p.
2267         * tree-vect-stmts.c (vectorizable_call): Same.
2268         (vectorizable_condition): Same.
2270 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2272         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
2273         stack check if the mask would be zero.
2275 2010-03-30  Seongbae Park <seongbae.park@gmail.com>
2276             Jack Howarth <howarth@bromo.med.uc.edu>
2278         * tree-profile.c (tree_init_ic_make_global_vars): Make static
2279         variables TLS.
2281 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
2283         PR other/25232
2284         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
2285         and __unordtf2.
2286         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
2287         Include ___unordxf2 and ___unordtf2.
2288         * config/i386/libgcc-glibc.ver: Do not define inheritance from
2289         GCC_4.4.0 here.
2291 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
2293         * config/lm32/t-lm32: New file.
2294         * config.gcc: Use the above file when targetting lm32.
2296 2010-03-28  Duncan Sands  <baldrick@free.fr>
2298         * Makefile.in (PLUGIN_HEADERS): Add except.h.
2300 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
2302         PR middle-end/43431
2303         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
2304         Improve vectorization cost model diagnostic.
2306 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
2308         PR middle-end/43436
2309         * tree-vect-data-refs.c (vect_analyze_data_refs): When
2310         compute_data_dependences_for_loop returns false, early exit
2311         and output an extra diagnostic for the failed data reference
2312         analysis.
2314 2010-03-29  Richard Guenther  <rguenther@suse.de>
2316         PR tree-optimization/43560
2317         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
2318         (can_sm_ref_p): Treat stores to readonly locations as trapping.
2320 2010-03-29  Jie Zhang  <jie@codesourcery.com>
2322         PR 43564
2323         * toplev.c (process_options): Set optimization_default_node
2324         and optimization_current_node.
2325         * opts.c (decode_options): Don't set optimization_default_node
2326         and optimization_current_node.
2328 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
2330         * config/rtems.h: Abandon -qrtems_debug.
2332 2010-03-28  Jan Hubicka  <jh@suse.cz>
2334         PR tree-optimization/43505
2335         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
2336         map should not be copied.
2338 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2340         PR middle-end/41674
2341         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
2342         cdtors, set DECL_PRESERVE_P.
2343         * ipa.c (cgraph_externally_visible_p): Return true if declaration
2344         should be preseved.
2346 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
2348         PR tree-optimization/43528
2349         * stor-layout.c (place_field): Check that constant fits into
2350         unsigned HWI when skipping calculation of MS bitfield layout.
2352 2010-03-27  Jan Hubicka  <jh@suse.cz>
2354         PR middle-end/43391
2355         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
2356         notice_global_symbol work.
2358 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
2360         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
2361         instead of dwarf2out_decl.
2362         (struct var_loc_node): Remove section_label field.
2363         (dwarf2out_function_decl): New function.
2364         (dwarf2out_var_location): Don't set section_label field.
2365         (dwarf2out_begin_function): Don't empty decl_loc_table here.
2367 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
2369         PR tree-optimization/43544
2370         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
2371         First argument for builtin vectorized function hook is now a
2372         tree to be able to distinguish between machine specific and
2373         standard builtins.
2374         * targhooks.c (default_builtin_vectorized_function): Ditto.
2375         * targhooks.h (default_builtin_vectorized_function): Ditto.
2376         * target.h (struct gcc_target): Ditto.
2377         * tree-vect-stmts.c (vectorizable_function): Ditto.
2378         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
2379         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
2380         Ditto.
2382 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
2384         PR c/43381
2385         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
2386         nested binding iff it is a FUNCTION_DECL.
2387         (store_parm_decls_newstyle): Pass nested=true to bind for
2388         FUNCTION_DECLs amongst parameters.
2390 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
2392         * var-tracking.c (vt_expand_loc_callback): Don't run
2393         cselib_expand_value_rtx_cb in dummy mode if
2394         cselib_dummy_expand_value_rtx_cb returned false.
2396         * var-tracking.c (emit_note_insn_var_location): For one part
2397         notes with offset 0, don't add EXPR_LIST around the location.
2398         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
2399         add_location_or_const_value_attribute): Adjust for that change.
2401         PR debug/43540
2402         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
2403         into first operand and location into second.
2404         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
2405         dw_cfi_oprnd_loc for DW_CFA_expression.
2406         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
2407         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
2408         assume first argument is regnum and second argument is location.
2410 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
2412         PR target/42113
2413         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
2414         of scratch register to DImode.  Split to DImode comparison operator.
2415         Use SImode subreg of scratch register in the multiplication.
2416         (*cmp_sadd_sidi): Ditto.
2417         (*cmp_ssub_si): Ditto.
2418         (*cmp_ssub_sidi): Ditto.
2420 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
2422         PR target/43524
2423         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
2424         Remove invalid assert and wrong comment.
2426 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
2428         PR debug/43516
2429         * flags.h (final_insns_dump_p): New extern.
2430         * final.c (final_insns_dump_p): New variable.
2431         (rest_of_clean_state): Set it before -fdump-final-insns=
2432         dumping, clear afterwards.
2433         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
2434         MEM_ALIAS_SET on MEMs.
2436 2010-03-26  David S. Miller  <davem@davemloft.net>
2438         * configure.ac: Fix sparc GOTDATA_OP bug check.
2439         * configure: Rebuild.
2441 2010-03-26  Alan Modra  <amodra@gmail.com>
2443         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
2445 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2447         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
2448         TLS_SECTION_ASM_FLAG.
2450 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
2452         PR bootstrap/43511
2453         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
2454         Clear first_function_block_is_cold.
2456         PR c/43385
2457         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
2458         argument if the argument is truth_value_p.
2460 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
2462         * config/rs6000/constraints.md: Update copyright year for my changes.
2464         PR target/43484
2465         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
2466         used in reg+reg addressing, swap registers.
2468 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
2470         PR debug/43293
2471         * target.h (struct gcc_target): Add code_end hook.
2472         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
2473         if not yet defined.
2474         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
2475         * toplev.c (compile_file): Call targetm.asm_out.code_end
2476         hook before unwind info/debug info output.
2477         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
2478         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
2479         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
2480         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
2481         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
2482         * config/i386/i386.c (ix86_file_end): Renamed to...
2483         (ix86_code_end): ... this.  Make static.  Don't call
2484         file_end_indicate_exec_stack.  Emit unwind info using
2485         final_start_function/final_end_function.
2486         (darwin_x86_file_end): Remove.
2487         (TARGET_ASM_CODE_END): Define.
2488         * config/i386/i386.h (TARGET_ASM_FILE_END,
2489         NEED_INDICATE_EXEC_STACK): Don't define.
2490         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
2491         (TARGET_ASM_FILE_END): Define to darwin_file_end.
2492         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
2493         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
2495         PR target/43498
2496         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
2497         at the beginning and final_end_function at the end.
2498         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
2500 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2502         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
2503         and Sun as TLS syntax.
2504         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
2505         * configure: Regenerate.
2506         * config.in: Regenerate.
2507         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
2508         (default_elf_asm_named_section): Use it.
2509         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
2510         (i386_output_dwarf_dtprel): Likewise.
2511         (output_addr_const_extra): Likewise.
2512         (output_pic_addr_const): Lowercase @GOTTPOFF.
2513         (output_addr_const_extra): Likewise.
2514         (output_pic_addr_const): Lowercase @GOTNTPOFF.
2515         (output_addr_const_extra): Likewise.
2516         (output_pic_addr_const): Lowercase @INDNTPOFF.
2517         (output_addr_const_extra): Likewise.
2518         (output_pic_addr_const): Lowercase @NTPOFF.
2519         (output_addr_const_extra): Likewise.
2520         (output_pic_addr_const): Lowercase @TPOFF.
2521         (output_addr_const_extra): Likewise.
2522         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
2523         (*tls_global_dynamic_64): Likewise.
2524         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
2525         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
2527         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
2528         (ASM_OUTPUT_TLS_COMMON): Use it.
2529         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
2531         PR target/38118
2532         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
2533         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
2534         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
2535         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
2536         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
2537         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
2539 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2541         * config/i386/i386.c (override_options): Don't accept
2542         -mtls-dialect=sun any longer.
2543         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
2544         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
2545         (*tls_local_dynamic_base_32_sun): Likewise.
2546         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
2548 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
2550         PR debug/43508
2551         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
2552         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
2554         PR debug/43479
2555         * ira.c (adjust_cleared_regs): New function.
2556         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
2558         PR debug/19192
2559         PR debug/43479
2560         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
2561         from gimple_block.
2562         * expr.c (expand_expr_real): Restore previous
2563         curr_insn_source_location and curr_insn_block after
2564         expand_expr_real_1 call.
2565         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
2566         instead of expand_expr_real_1.
2568 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
2570         PR rtl-optimization/43413
2571         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
2572         hard regs too.
2574 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
2576         PR target/43348
2577         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
2578         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
2580 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
2582         * config/i386/i386.c (ix86_target_string): Add -mfma.
2583         Fix a typo in comment.
2585 2010-03-22  Mike Stump  <mikestump@comcast.net>
2587         PR target/23071
2588         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
2589         Don't overly align based upon packed packed fields.
2591 2010-03-22  Jason Merrill  <jason@redhat.com>
2593         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
2594         Use () rather than [], and move before the element type.
2596 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2598         * doc/configfiles.texi (Configuration Files): Removed
2599         fixinc/Makefile*, intl/Makefile.*.
2600         * doc/makefile.texi: Fixed markup. Abstract from version
2601         control system used.
2602         (Makefile): Removed obsolete gcc/java/parse.y example.
2603         * doc/sourcebuild.texi: Likewise.
2604         (Top Level): Added config, gnattools, libdecnumber, libgcc,
2605         libgomp, libssp.  Removed fastjar.
2606         (Miscellaneous Docs): Clarify location.
2607         Added COPYING3, COPYING3.LIB.
2608         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
2610 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2612         PR target/38085
2613         * config/i386/i386.c (x86_function_profiler)
2614         [!NO_PROFILE_COUNTERS]: Fix typo.
2615         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
2616         instead of callq.
2618 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
2619             Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2621         * doc/sourcebuild.texi (Test Directives): Split into six
2622         subsections, with most of the current text in new subsections
2623         Directives, Selectors, and Final Actions.
2624         (Directives): Split list of test directives into multiple
2625         subsubsections.
2626         (Selectors): Describe use and syntax of selectors.
2627         (Effective-Target Keywords): Describe all existing keywords.
2628         (Add Options): Describe features for dg-add-options.
2629         (Require Support): Describe variants of dg-require-support.
2630         (Final Actions): Describe commands to use in dg-final.
2632 2010-03-22  Michael Matz  <matz@suse.de>
2634         PR middle-end/43475
2635         * recog.c (validate_replace_rtx_group): Replace also in
2636         REG_EQUAL and REG_EQUIV notes.
2638 2010-03-22  Richard Guenther  <rguenther@suse.de>
2640         PR tree-optimization/43390
2641         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
2642         sure vector extracts are type correct.
2644 2010-03-22  Richard Guenther  <rguenther@suse.de>
2646         PR middle-end/40106
2647         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
2648         x * sqrt (x) even when optimizing for size if the target
2649         has native support for sqrt.
2651 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
2653         * varasm.c (make_decl_rtl_for_debug): Also clear
2654         flag_mudflap for the duration of make_decl_rtl call.
2656         PR debug/43443
2657         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
2658         locs from preserved VALUEs.
2660 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2662         PR middle-end/42718
2663         * pa.md (movmemsi): Set align to one if zero.
2664         (movmemdi): Likewise.
2666 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
2668         PR target/42321
2669         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
2670         with their corresponding prologue pushes.
2672 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
2674         PR target/43156
2675         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
2676         at the begining or end.
2677         (spu_expand_epilogue): Likewise.
2679 2010-03-20  Richard Guenther  <rguenther@suse.de>
2681         PR rtl-optimization/43438
2682         * combine.c (make_extraction): Properly zero-/sign-extend an
2683         extraction of the low part of a CONST_INT.  Also handle
2684         CONST_DOUBLE.
2686 2010-03-19  Mike Stump  <mikestump@comcast.net>
2688         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
2689         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
2690         (override_options): Use SUBTARGET32_DEFAULT_CPU.
2692 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
2694         PR c/43211
2695         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
2696         an error.
2698 2010-03-19  Bernd Schmidt  <bernd.schmidt@codesourcery.com>
2700         PR rtl-optimization/42258
2701         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
2702         use that may match DEF.
2704         PR target/40697
2705         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
2706         the cost of loading the constant rather than assuming
2707         COSTS_N_INSNS (1).
2708         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
2709         outer code is AND, do the same tests as the andsi3 expander and
2710         return COSTS_N_INSNS (1) if and is cheap.
2712         * optabs.c (avoid_expensive_constant): Fix formatting.
2714 2010-03-19  Michael Matz  <matz@suse.de>
2716         PR c++/43116
2717         * attribs.c (decl_attributes): When rebuilding a function pointer
2718         type use the same qualifiers as the original pointer type.
2720 2010-03-19  Martin Jambor  <mjambor@suse.cz>
2722         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
2723         and is_gimple_ip_invariant_address.
2725 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2727         Revert
2728         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2730         * config/arm/arm.c (arm_override_options): Turn off
2731         flag_dwarf2_cfi_asm for AAPCS variants.
2733 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2735         PR target/43399
2736         * config/arm/arm.c (emit_multi_reg_push): Update comments.
2737         Use PRE_MODIFY instead of PRE_DEC.
2738         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
2739         (vfp_emit_fstmd): Likewise.
2741 2010-03-19  Michael Matz  <matz@suse.de>
2743         PR target/43305
2744         * builtins.c (expand_builtin_interclass_mathfn,
2745         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
2746         if that fails.
2748 2010-03-19  Richard Guenther  <rguenther@suse.de>
2750         PR tree-optimization/43415
2751         * tree-ssa-pre.c (phi_translate): Split out worker to ...
2752         (phi_translate_1): ... this.
2753         (phi_translate): Move all caching here.  Cache all NARY
2754         and REFERENCE translations.
2756 2010-03-19  David S. Miller  <davem@davemloft.net>
2758         With help from Eric Botcazou.
2759         * config/sparc/sparc.c: Include dwarf2out.h.
2760         (emit_pic_helper): Delete.
2761         (pic_helper_symbol_name): Delete.
2762         (pic_helper_emitted_p): Delete.
2763         (pic_helper_needed): New.
2764         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
2765         (get_pc_thunk_name): New.
2766         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
2767         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
2768         Set pic_helper_needed to true.  Don't call emit_pic_helper.
2769         (sparc_expand_prologue): Update load_pic_register call.
2770         (sparc_output_mi_thunk): Likewise.
2771         (sparc_file_end): Emit a hidden comdat symbol for the PIC
2772         thunk if possible.  Output CFI information as needed.
2774 2010-03-18  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2775             Jack Howarth <howarth@bromo.med.uc.edu>
2777         PR target/36399
2778         * config/i386/i386.h: Fix ABI on darwin x86-32.
2780 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
2782         * tree.h: Declare make_decl_rtl_for_debug.
2783         * varasm.c (make_decl_rtl_for_debug): New.
2784         * dwarf2out.c (rtl_for_decl_location): Call it.
2785         * cfgexpand.c (expand_debug_expr): Call it.
2787 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
2789         PR bootstrap/43399
2790         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
2791         mem_mode.
2793         PR bootstrap/43403
2794         * var-tracking.c (vt_init_cfa_base): Do nothing if
2795         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
2797 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
2799         PR debug/42873
2800         * var-tracking.c (canonicalize_vars_star): New.
2801         (dataflow_post_merge_adjust): Use it.
2803 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
2805         PR debug/43058
2806         * var-tracking.c (non_suitable_const): New function.
2807         (add_uses): For DEBUG_INSNs with constants, don't record any
2808         value, instead just the constant value itself.
2809         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
2810         is not VAR_LOC_UNKNOWN_P, set var to the constant.
2811         (emit_notes_in_bb): Likewise.
2812         (emit_note_insn_var_location): For onepart variables if
2813         cur_loc is a VOIDmode constant, use DECL_MODE.
2815 2010-03-18  Martin Jambor  <mjambor@suse.cz>
2817         PR middle-end/42450
2818         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
2819         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
2820         all non-clones.  Moved call redirection...
2821         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
2822         (cgraph_materialize_all_clones): Dispose of all
2823         combined_args_to_skip bitmaps.
2824         (verify_cgraph_node): Do not check for edges pointing to wrong
2825         nodes in inline clones.
2826         * tree-inline.c (copy_bb): Call
2827         cgraph_redirect_edge_call_stmt_to_callee.
2828         * ipa.c (cgraph_remove_unreachable_nodes): Call
2829         cgraph_node_remove_callees even when there are used clones.
2831 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
2833         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
2835 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
2837         PR target/43383
2838         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
2839         for 32bit.
2841 2010-03-18  Michael Matz  <matz@suse.de>
2843         PR middle-end/43419
2844         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
2845         into sqrt(x) if we need to preserve signed zeros.
2847 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
2848             Eric Botcazou  <ebotcazou@adacore.com>
2850         PR rtl-optimization/43360
2851         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
2852         note if we don't know its invariant status.
2854 2010-03-18  Michael Matz  <matz@suse.de>
2856         PR tree-optimization/43402
2857         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
2858         PHI chains of ssa names registered for update.
2860 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
2862         PR target/42427
2863         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
2864         non-offsettable and pre_modify update addressing.
2865         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
2866         and "2" alternatives "#".
2867         (*movdd_softfloat32): Make all alternatives "#";
2868         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
2869         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
2870         (*movdf_softfloat32): Make all alternatives "#";
2871         (movdi): Use the new DIFD mode iterator to create a common splitter
2872         for movdi, movdf and movdd patterns.
2874 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
2876         * common.opt (dumpdir): Remove redundant tab.
2878 2010-03-17  Martin Jambor  <mjambor@suse.cz>
2880         PR tree-optimization/43347
2881         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
2882         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
2884 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
2886         PR rtl-optimization/42216
2887         * regrename.c (create_new_chain): New function, broken out from...
2888         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
2889         appending a use to an empty chain.
2890         (build_def_use): Remove previous changes that convert OP_INOUT to
2891         OP_OUT operands; instead detect the case where an OP_INOUT operand
2892         uses a previously untracked register and create an empty chain for it.
2894 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2896         * doc/extend.texi (Function Attributes): Rewrite unfinished
2897         sentence in ms_abi documentation.
2899 2010-03-17  Alan Modra  <amodra@gmail.com>
2901         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
2902         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
2903         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
2904         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
2906 2010-03-16  Richard Henderson  <rth@redhat.com>
2908         PR middle-end/43365
2909         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
2910         (lower_try_finally): Save and restore eh_seq around the expansion
2911         of the try-finally.
2913 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
2915         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
2916         statements before splitting block.
2918 2010-03-16  Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2920         * doc/sourcebuild.texi (Testsuites): Fix markup.
2921         Use pathnames relative to gcc/testsuite.
2922         (Test Directives): Move description of how timeout is determined.
2923         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
2924         (C Tests): Correct gcc.misc-tests directory.
2925         Framework tests now live in gcc.test-framework.
2927 2010-03-16  Richard Guenther  <rguenther@suse.de>
2929         PR middle-end/43379
2930         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
2931         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
2933 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
2934             Alexandre Oliva  <aoliva@redhat.com>
2936         PR tree-optimization/42917
2937         * lambda-code.c (remove_iv): Skip debug statements.
2938         (lambda_loopnest_to_gcc_loopnest): Likewise.
2939         (not_interesting_stmt): Debug statements are not interesting.
2941 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
2943         PR debug/43051
2944         PR debug/43092
2945         * cselib.c (cselib_preserve_constants,
2946         cfa_base_preserved_val): New static variables.
2947         (preserve_only_constants): New function.
2948         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
2949         clear its REG_VALUES.  If cselib_preserve_constants, don't
2950         empty the whole hash table, but preserve there VALUEs with constants,
2951         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
2952         (cselib_preserve_cfa_base_value): New function.
2953         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
2954         (cselib_init): Change argument to int bitfield.  Set
2955         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
2956         is in it.
2957         (cselib_finish): Clear cselib_preserve_constants and
2958         cfa_base_preserved_val.
2959         * cselib.h (enum cselib_record_what): New enum.
2960         (cselib_init): Change argument to int.
2961         (cselib_preserve_cfa_base_value): New prototype.
2962         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
2963         * dse.c (dse_step1): Likewise.
2964         * cfgcleanup.c (thread_jump): Likewise.
2965         * sched-deps.c (sched_analyze): Likewise.
2966         * gcse.c (local_cprop_pass): Likewise.
2967         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
2968         If FN is non-NULL, call the callback always and whenever it returns
2969         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
2970         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
2971         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
2972         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
2973         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
2974         * var-tracking.c: Include recog.h.
2975         (bb_stack_adjust_offset): Remove.
2976         (vt_stack_adjustments): Don't call it, instead just gather the
2977         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
2978         (adjust_stack_reference): Remove.
2979         (compute_cfa_pointer): New function.
2980         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
2981         (struct adjust_mem_data): New type.
2982         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
2983         functions.
2984         (get_address_mode): New function.
2985         (replace_expr_with_values): Use it.
2986         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
2987         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
2988         (adjust_sets): Remove.
2989         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
2990         Use get_address_mode.
2991         (get_adjusted_src): Remove.
2992         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
2993         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
2994         (add_with_sets): Don't call adjust_sets.
2995         (fp_setter, vt_init_cfa_base): New functions.
2996         (vt_initialize): Change return type to bool.  Move most of pool etc.
2997         initialization to the beginning of the function from end.  Pass
2998         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
2999         If !frame_pointer_needed, call vt_stack_adjustment before mos
3000         vector is filled, call vt_init_cfa_base if argp/framep has been
3001         eliminated to sp.  If frame_pointer_needed and argp/framep has
3002         been eliminated to hard frame pointer, set
3003         hard_frame_pointer_adjustment and call vt_init_cfa_base after
3004         encountering fp setter in the prologue.  For MO_ADJUST, call
3005         log_op_type before pusing the op into mos vector, not afterwards.
3006         Call adjust_insn before cselib_process_insn/add_with_sets,
3007         call cancel_changes (0) afterwards.
3008         (variable_tracking_main_1): Adjust for vt_initialize calling
3009         vt_stack_adjustments and returning whether it succeeded or not.
3011 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
3013         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
3014         debug statements.
3016 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
3018         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
3019         has been set.
3020         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
3021         drap_reg has not been set.
3023 2010-03-15  Michael Matz  <matz@suse.de>
3025         PR middle-end/43300
3026         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
3027         use it to expand block copies.
3028         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
3029         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
3030         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
3032 2010-03-15  Richard Guenther  <rguenther@suse.de>
3034         PR tree-optimization/43367
3035         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
3036         elimination check.
3038 2010-03-15  Richard Guenther  <rguenther@suse.de>
3040         PR tree-optimization/43317
3041         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
3043 2010-03-15  Martin Jambor  <mjambor@suse.cz>
3045         PR tree-optimization/43141
3046         * tree-sra.c (create_abstract_origin): New function.
3047         (modify_function): Call create_abstract_origin.
3049 2010-03-15  Chris Demetriou  <cgd@google.com>
3051         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
3052         wasn't copied.
3054 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
3056         PR middle-end/43354
3057         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
3058         call insert_out_of_ssa_copy for default definitions.
3060 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
3062         * graphite-clast-to-gimple.c (my_long_long): Defined.
3063         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
3064         * graphite-sese-to-poly.c (my_long_long): Defined.
3065         (scop_ivs_can_be_represented): Use it.
3067 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
3069         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
3070         graphite-max-bbs-per-function, and loop-block-tile-size.
3071         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
3072         with "maximum".
3073         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
3075 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
3077         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
3078         forward declaration.
3079         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
3080         (add_upper_bounds_from_estimated_nit): New.
3081         (build_loop_iteration_domains): Use it.
3083 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
3085         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
3087 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
3089         PR middle-end/43306
3090         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
3091         should be an INTEGER_CST.  Also handle CASE_CONVERT.
3093 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
3095         * graphite.c (graphite_initialize): To bound the number of bbs per
3096         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
3097         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
3098         * doc/invoke.texi: Document it.
3100 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
3102         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
3103         * graphite-sese-to-poly.h (build_poly_scop): Same.
3105 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
3107         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
3108         the number of parameters in the scop.  Use as an upper bound
3109         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
3110         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
3111         * doc/invoke.texi: Document it.
3113 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
3115         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
3116         * doc/c-tree.texi: Remove.
3117         * doc/generic.texi: Merge c-tree.texi here.
3118         * doc/gccint.texi (Trees): Remove menu entry.
3119         (c-tree.texi): Remove @include.
3120         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
3121         * doc/languages.texi (Reading RTL): Ditto.
3123 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
3125         PR target/42869
3126         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
3128 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
3130         PR middle-end/42431
3131         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
3132         code added to work around reload clobbering CONST insns.
3134 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
3136         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
3137         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
3138         (cselib_preserve_only_values): Remove retain argument, don't
3139         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
3140         * cselib.h (cselib_preserve_only_values): Remove retain argument.
3141         * var-tracking.c (micro_operation): Move insn field before union.
3142         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
3143         (struct variable_tracking_info_def): Remove n_mos field, change
3144         mos into a vector of micro_operations.
3145         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
3146         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
3147         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
3148         changing into a vector.
3149         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
3150         come before all other uops generated by add_stores.
3151         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
3152         argument removal.
3153         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
3154         a vector.  Run just one pass over the bbs instead of separate counting
3155         and computation phase.
3156         (vt_finalize): Free VTI (bb)->mos vector instead of array.
3158         PR debug/43329
3159         * tree-inline.c (remap_decls): Put old_var rather than origin_var
3160         into *nonlocalized_list vector.
3161         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
3162         even if origin is non-NULL.
3163         (gen_variable_die): Likewise.
3164         (process_scope_var): Don't change origin.
3165         (gen_decl_die): Likewise.
3166         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
3167         before adding new edges instead of after it, fix moving over
3168         debug stmts.
3170 2010-03-11  David S. Miller  <davem@davemloft.net>
3172         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
3173         of four.
3174         * configure: Rebuild.
3176 2010-03-11  Martin Jambor  <mjambor@suse.cz>
3178         PR tree-optimization/43257
3179         * tree.c (assign_assembler_name_if_neeeded): New function.
3180         (free_lang_data_in_cgraph): Assembler name assignment moved to the
3181         above new function.
3182         * tree.h (assign_assembler_name_if_neeeded): Declare.
3183         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
3184         the function if needed.
3186 2010-03-11  Chris Demetriou  <cgd@google.com>
3188         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
3189         include/stdint-gcc.h, and include/stdint.h world-readable.
3191 2010-03-11  Richard Guenther  <rguenther@suse.de>
3193         PR tree-optimization/43255
3194         * tree-vrp.c (process_assert_insertions_for): Do not insert
3195         asserts for trivial conditions.
3197 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3199         PR tree-optimization/43280
3200         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
3201         generation.  Move calculation of size out of the if branch.
3202         (find_bswap): Modify compare number generation.
3204 2010-03-11  Richard Guenther  <rguenther@suse.de>
3206         PR lto/43200
3207         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
3208         (input_gimple_stmt): Fixup handled component types during
3209         operand read.  Also fix up decls in ADDR_EXPRs.
3211 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
3213         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
3214         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
3216 2010-03-10  Jan Hubicka  <jh@suse.cz>
3218         PR c/43288
3219         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
3220         * varasm.c (get_variable_section): Don't do that here...
3221         (make_decl_rtl): ... and here.
3222         (do_assemble_alias): Produce decl RTL.
3223         (assemble_alias): Likewise.
3225 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
3227         PR debug/43290
3228         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
3229         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
3230         of fde->vdrap_reg.
3231         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
3232         (based_loc_descr): Only express drap or vdrap regno based expressions
3233         using DW_OP_fbreg when not optimizing.
3234         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
3235         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
3236         REG_CFA_SET_VDRAP note.
3238 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
3240         PR tree-optimization/43236
3241         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
3242         error in calculation of base address in reverse iteration case.
3243         (generate_builtin): Take number of latch executions if the statement
3244         is in the latch.
3246 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
3248         PR middle-end/42859
3249         * tree-eh.c: Include pointer-set.h.
3250         (lower_eh_dispatch): Filter out duplicate case labels and
3251         remove the unneeded edge when the label is unused.  Return
3252         true when some edges are removed.
3253         (execute_lower_eh_dispatch): When any lowering resulted in
3254         removing an edge, also delete unreachable blocks.
3256 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
3258         PR bootstrap/43287
3259         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3260         UNSPEC_MACHOPIC_OFFSET.
3262 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
3264         PR target/43294
3265         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
3266         (m68k_delegitimize_address): New function.
3268 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
3270         PR debug/43299
3271         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
3273         PR debug/43299
3274         * var-tracking.c (adjust_sets): New function.
3275         (count_with_sets, add_with_sets): Use it.
3276         (get_adjusted_src): New inline function.
3277         (add_stores): Use it.
3279         PR debug/43304
3280         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
3281         call cselib_dummy_expand_value_rtx_cb instead of
3282         cselib_expand_value_rtx_cb.
3284         PR debug/43293
3285         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
3286         * config/i386/i386.c: Include debug.h and dwarf2out.h.
3287         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
3288         and .cfi_endproc around the pic thunks.
3289         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
3290         all queued unwind info register saves are saved before the call.
3291         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
3292         considered as sp-=4 for unwind info and the pop as sp+=4 which
3293         also clobbers dest, but doesn't actually restore it.
3295         PR debug/43290
3296         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
3297         RTX_FRAME_RELATED_P.
3299 2010-03-09  Jie Zhang  <jie@codesourcery.com>
3301         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
3302         whitespaces in output template.
3304 2010-03-09  Jie Zhang  <jie@codesourcery.com>
3306         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
3307         out array boundary.
3309 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
3311         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
3312         builtins.exp in a separate job.
3314 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
3316         * graphite-sese-to-poly.c (add_param_constraints): Use
3317         lower_bound_in_type and upper_bound_in_type.
3319 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
3321         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
3322         instead of unsigned_type_node.
3324 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
3325             Reza Yazdani  <reza.yazdani@amd.com>
3327         PR middle-end/43065
3328         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
3329         on pointer type parameters.
3331 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
3333         PR middle-end/42644
3334         PR middle-end/42130
3335         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
3336         handle conversions from pointer to integers.
3337         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
3338         induction variable, to be able to work with code generated by CLooG.
3339         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
3340         (build_poly_scop): Bail out if we cannot codegen a loop.
3342 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
3344         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
3345         code generation with gloog_error.
3347 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
3349         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
3350         Call fold_convert on all the returned values.
3351         (expand_scalar_variables_expr): Pass to
3352         expand_scalar_variables_ssa_name the type of the resulting expression.
3354 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
3356         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
3357         ppl_min_for_le_pointset.
3358         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
3359         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
3361 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
3363         * graphite-dependences.c (map_into_dep_poly): Removed.
3364         (dependence_polyhedron_1): Use combine_context_id_scat.
3366 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
3368         * graphite-poly.h (struct poly_scattering): Add layout documentation.
3369         (struct poly_bb): Same.
3370         (combine_context_id_scat): New.
3372 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
3374         PR middle-end/42326
3375         * sese.c (name_defined_in_loop_p): Return false for default
3376         definitions.
3378 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
3380         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
3381         and clean up the logic.
3383 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
3385         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
3386         early return.
3388 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
3390         * var-tracking.c (remove_cselib_value_chains): Define only for
3391         ENABLE_CHECKING.
3392         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
3393         delete_slot_part, emit_notes_for_differences_1): Don't call
3394         remove_cselib_value_chains here.
3395         (set_slot_part, emit_notes_for_differences_2): Don't call
3396         add_cselib_value_chains here.
3397         (preserved_values): New vector.
3398         (preserve_value): New function.
3399         (add_uses, add_stores, vt_add_function_parameters): Use it
3400         instead of cselib_preserve_value.
3401         (changed_values_stack): New vector.
3402         (check_changed_vars_0): New function.
3403         (check_changed_vars_1, check_changed_vars_2): Use it.
3404         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
3405         changed_values_stack VALUEs.
3406         (vt_emit_notes): For all preserved_values call
3407         add_cselib_value_chains.  If ENABLE_CHECKING call
3408         remove_cselib_value_chains before verifying value_chains is empty.
3409         Initialize and free changed_values_stack.
3410         (vt_initialize): Initialize preserved_values.
3411         (vt_finalize): Free preserved_values.
3413 2010-03-08  Richard Guenther  <rguenther@suse.de>
3415         PR tree-optimization/43269
3416         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
3417         region detection.
3419 2010-03-08  Martin Jambor  <mjambor@suse.cz>
3421         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
3422         (ipa_is_param_called): Removed.
3423         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
3424         (ipa_print_node_params): Do not print the called flag.
3425         (ipa_write_node_info): Do not stream the called flag.
3426         (ipa_read_node_info): Likewise.
3428 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
3430         PR debug/43176
3431         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
3432         * cselib.c (struct expand_value_data): Add dummy field.
3433         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
3434         dummy to false.
3435         (cselib_dummy_expand_value_rtx_cb): New function.
3436         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
3437         any rtl.
3438         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
3439         * var-tracking.c: Include pointer-set.h.
3440         (variable): Change n_var_parts to char from int.  Add
3441         cur_loc_changed and in_changed_variables fields.
3442         (variable_canonicalize): Remove.
3443         (shared_var_p): New inline function.
3444         (unshare_variable): Maintain cur_loc_changed and
3445         in_changed_variables fields.  If var was in changed_variables,
3446         replace it there with new_var.  Just copy cur_loc instead of
3447         resetting it to something else.
3448         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
3449         (dataflow_set_union): Don't call variable_canonicalize.
3450         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
3451         of their DEBUG_EXPR_TREE_DECLs.
3452         (canonicalize_loc_order_check): Verify that cur_loc is NULL
3453         and in_changed_variables and cur_loc_changed is false.
3454         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
3455         and cur_loc_changed.  Don't update cur_loc here.
3456         (variable_merge_over_src): Don't call variable_canonicalize.
3457         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
3458         removing loc that is equal to cur_loc, clear cur_loc,
3459         set cur_loc_changed and ensure variable_was_changed is called.
3460         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
3461         compare pointers in cur_loc check, if it is equal to loc,
3462         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
3463         (variable_different_p): Remove compare_current_location argument,
3464         don't compare cur_loc.
3465         (dataflow_set_different_1): Adjust variable_different_p caller.
3466         (variable_was_changed): If dv had some var in changed_variables
3467         already, reset in_changed_variables flag for it and propagate
3468         cur_loc_changed over to the new variable.  On empty var
3469         always set cur_loc_changed.  Set in_changed_variables on whatever
3470         var is added to changed_variables.
3471         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
3472         Use shared_var_p.  When removing loc that is equal to cur_loc,
3473         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
3474         end, don't set it to something else, just call variable_was_changed.
3475         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
3476         loc being removed, clear cur_loc and set cur_loc_changed.
3477         Set cur_loc_changed if all locations have been removed.
3478         (struct expand_loc_callback_data): New type.
3479         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
3480         allocated.  Always create SUBREGs if simplify_subreg failed.
3481         Prefer to use cur_loc, when that fails and still in
3482         changed_variables (and seen first time) recompute it.  Set
3483         cur_loc_changed of variables which had to change cur_loc and
3484         compute elcd->cur_loc_changed if any of the subexpressions used
3485         had to change cur_loc.
3486         (vt_expand_loc): Adjust to pass arguments in
3487         expand_loc_callback_data structure.
3488         (vt_expand_loc_dummy): New function.
3489         (emitted_notes): New variable.
3490         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
3491         that weren't used for any other decl in current
3492         emit_notes_for_changes call call vt_expand_loc_dummy to update
3493         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
3494         first loc_chain location if NULL before.  Always use just
3495         cur_loc instead of first loc_chain location.  When cur_loc_changed
3496         is false, when not --enable-checking=rtl just don't emit any note.
3497         When rtl checking, compute the note and assert it is the same
3498         as previous note.  Clear cur_loc_changed and in_changed_variables
3499         at the end before removing from changed_variables.
3500         (check_changed_vars_3): New function.
3501         (emit_notes_for_changes): Traverse changed_vars to call
3502         check_changed_vars_3 on each changed var.
3503         (emit_notes_for_differences_1): Clear cur_loc_changed and
3504         in_changed_variables.  Recompute cur_loc of new_var.
3505         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
3506         (vt_emit_notes): Initialize and destroy emitted_notes.
3508 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
3510         PR rtl-optimization/42220
3511         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
3512         Use verify_reg_tracked to determine if we should use OP_OUT rather
3513         than OP_INOUT.
3514         (build_def_use): If we see an in-out operand for a register that we
3515         know nothing about, treat is an output if possible, fail the block if
3516         not.
3518 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
3520         PR debug/42897
3521         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
3522         permanently.
3524 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
3526         PR debug/42897
3527         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
3528         uses of relevant DEFs that are dead outside the loop too.
3530 2010-03-06  Alexandre Oliva <aoliva@redhat.com>
3532         * var-tracking.c (dataflow_set_merge): Swap src and src2.
3533         Reverted:
3534         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
3535         PR debug/41371
3536         * var-tracking.c (values_to_unmark): New variable.
3537         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
3538         values_to_unmark vector.  Moved body to...
3539         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
3540         instead queue it into values_to_unmark vector.
3541         (vt_find_locations): Free values_to_unmark vector.
3543 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
3545         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
3546         (site.exp): Export them when plugins are enabled.
3548 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
3550         PR middle-end/42326
3551         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
3552         that contain scevs.
3553         (chrec_fold_multiply): Same.
3555 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
3557         PR c/43248
3558         * c-decl.c (build_compound_literal): Return early if init is
3559         an error_mark_node.
3561 2010-03-04  Martin Jambor  <mjambor@suse.cz>
3563         PR tree-optimization/43164
3564         PR tree-optimization/43191
3565         * tree-sra.c (type_consists_of_records_p): Reject records with
3566         zero-size bit-fields at the end.
3568 2010-03-04  Mike Stump  <mikestump@comcast.net>
3570         * Makefile.in (TAGS): Remove *.y.
3572 2010-03-04  Richard Guenther  <rguenther@suse.de>
3574         PR tree-optimization/40761
3575         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
3576         in reverse order.
3577         (my_rev_post_order_compute): New function.
3578         (init_pre): Call it.
3580 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
3582         PR middle-end/43209
3583         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
3584         decrease the cost of an IV candidate when the cost is infinite.
3586 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3588         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
3589         Use '3DNow!' for the extension of that name, ensure normal space
3590         after the string.
3591         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
3593 2010-03-03  Jeff Law  <law@redhat.com>
3595         * PR middle-end/32693
3596         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
3597         than gen_rtx_SUBREG.
3598         (extract_bit_field_1): Likewise.
3600 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
3602         * doc/sourcebuild.texi (Test directives): Document that arguments
3603         include-opts and exclude-opts are now optional for dg-skip-if,
3604         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
3606 2010-03-03  Jason Merrill  <jason@redhat.com>
3608         PR c++/12909
3609         * cgraph.h (varpool_node): Add extra_name field.
3610         * varpool.c (varpool_extra_name_alias): New.
3611         (varpool_assemble_decl): Emit extra name aliases.
3612         (varpool_mark_needed_node): Look past an extra name alias.
3613         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
3614         * lto-streamer-in.c (lto_input_tree): Read it.
3615         * lto-streamer-out.c (output_unreferenced_globals): Write it.
3617 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
3619         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
3620         (sparc*-*-solaris2*): ...this.
3622 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
3624         PR debug/43229
3625         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
3626         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
3627         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
3628         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
3630         PR debug/43237
3631         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
3632         fallthrough to default handling, just with want_address 0 instead of 2.
3633         For single element lists, add_AT_loc directly, otherwise create an
3634         artificial variable DIE and stick location list to it.
3636         PR debug/43177
3637         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
3638         (VAL_EXPR_HAS_REVERSE): Define.
3639         (reverse_op): New function.
3640         (add_stores): For reversible operations add an extra MO_VAL_USE.
3642 2010-03-02  Jason Merrill  <jason@redhat.com>
3644         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
3646 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
3648         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
3649         (sparc64-*-linux*): Likewise.
3650         (sparc64-*-solaris2*): Include assembler files before linker ones.
3651         (sparc-*-solaris2*): Simplify and reorder to match previous case.
3652         * config/sparc/gas.h: Delete.
3653         * config/sparc/sol2-64.h: Add copyright notice.
3654         * config/sparc/sol2-gas-bi.h: Likewise.
3655         * config/sparc/sol2-gld.h: Likewise.
3656         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
3657         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
3658         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
3659         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
3660         (sparc_elf_asm_named_section): Rename into...
3661         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
3663 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
3665         * config/alpha/alpha.c (override_options): Fix -mtune error message.
3667 2010-03-02  Jeff Law  <law@redhat.com>
3669         PR middle-end/42431
3670         * reload1.c (rtx_p, substitute_stack): Declare.
3671         (substitute): Record addresses of changed rtxs.
3672         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
3673         Restore the original rtx when complete.
3674         (reload): Free subsitute_stack when complete.
3676 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
3678         * doc/gccint.texi (menu): Add Testsuites as a chapter.
3679         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
3680         new chapter.
3681         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
3682         LTO Testing, gcov Testing, profopt Testing, compat Testing,
3683         Torture Tests): Change from subsection to section.
3685 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
3686             Steven Bosscher  <steven@gcc.gnu.org>
3688         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
3689         instead of bb.
3691 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
3693         PR middle-end/42640
3694         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
3695         the assignment from the new induction variable to the assignment
3696         of the value from the original loop PHI function.
3698 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
3699             Daniel Jacobowitz  <dan@codesourcery.com>
3701         * doc/sourcebuild.texi (Test directives): Clarify options to
3702         dg-skip-if.
3704 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3706         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
3707         Disable cfi directives unless GCC and gas agree on using read-only
3708         .eh_frame sections for 64-bit.
3709         * configure: Regenerate.
3711 2010-03-01  Richard Guenther  <rguenther@suse.de>
3713         PR tree-optimization/43220
3714         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
3715         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
3717 2010-03-01  Richard Guenther  <rguenther@suse.de>
3718             Martin Jambor  <mjambor@suse.cz>
3720         PR middle-end/41250
3721         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
3722         gimplified parameters.
3724 2010-03-01  Christian Bruel  <christian.bruel@st.com>
3726         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
3728 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
3730         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
3732 2010-03-01  Richard Guenther  <rguenther@suse.de>
3734         PR middle-end/43213
3735         * expr.c (expand_assignment): Use the alias-oracle to tell
3736         if the rhs aliases the result decl.
3738 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3740         PR pch/14940
3741         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
3742         to sol_gt_pch_get_address.
3743         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
3744         64-bit, SPARC and x86.
3745         (sol_gt_pch_get_address): New function.
3747 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
3749         * toplev.h (inform_n, error_n): Declare.
3750         * diagnostic.c (inform_n, error_n): New function.
3752 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
3754         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
3755         has no rtl yet when processing local_decls, queue it and recheck
3756         if deferred stack allocation hasn't assigned it rtl.
3758 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
3760         * config/sh/sh.c (unspec_bbr_uid): New.
3761         (gen_block_redirect): Use it instead of INSN_UID.
3762         (gen_far_branch): Likewise.
3764 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
3766         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
3767         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
3769 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3771         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
3772         (Warning Options): -Wno-conversion-null is valid for
3773         Objective-C++ as well.
3774         * doc/tm.texi (Named Address Spaces): Likewise.
3775         * doc/plugins.texi (Plugins): Replace TABs with spaces.
3776         * doc/tree-ssa.texi (Tree SSA): Likewise.
3778 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
3780         PR bootstrap/43202
3781         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
3782         by default.  Don't set the default arch for
3783         i[34567]86-*-darwin*|x86_64-*-darwin*.
3785 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
3787         PR bootstrap/43202
3788         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
3789         default.  Set the default 32bit/64bit archs with $with_arch
3790         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
3792 2010-02-27  Richard Guenther  <rguenther@suse.de>
3794         PR tree-optimization/43186
3795         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
3796         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
3797         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
3798         unroller iterations.
3800 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
3802         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
3803         required and i[34567]86-*-* targets don't support 64bit ISA.
3805 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
3807         PR ada/43096
3808         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
3809         the same alias set.
3811 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
3813         * config.gcc: Set the default arch at least to Prescott for
3814         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
3815         if SSE math is enabled.
3817 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3819         * diagnostic.c (diagnostic_initialize): Update.
3820         (diagnostic_report_diagnostic): Test inhibit_notes_p for
3821         informative notes.
3822         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
3823         (diagnostic_inhibit_notes): New.
3824         * toplev.c (process_options): inhibit notes with -fcompare-debug.
3826 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3828         PR c/20631
3829         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
3830         * doc/standards.texi: Likewise.
3831         * doc/extend.texi: Likewise.
3832         * doc/trouble.texi: Likewise.
3833         * doc/cppopts.texi: Likewise.
3834         * doc/install.texi: Likewise.
3835         * c.opt (std=c90,std=gnu90): New options.
3836         * c-opts.c (c_common_handle_option): Handle them.
3838 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3840         PR c/24577
3841         * c-decl.c (undeclared_variable): Use an informative note.
3843 2010-02-26  Richard Guenther  <rguenther@suse.de>
3845         PR tree-optimization/43186
3846         * gimple.h (gimple_fold): Remove.
3847         * gimple.c (gimple_fold): Remove.  Inline into single user ...
3848         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
3849         Try harder for conditions.
3851 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
3853         PR debug/43190
3854         * function.c (used_types_insert): Don't skip through named pointer
3855         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
3856         and it is different from the main variant's type.
3858 2010-02-26  Nick Clifton  <nickc@redhat.com>
3860         * config/rx/rx.md (sminsi3): Remove bogus alternative.
3862 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
3864         * config.gcc: Support --with-fpmath=sse for x86.
3866         * config/i386/ssemath.h: New.
3868         * doc/install.texi (--with-fpmath=sse): Documented.
3870 2010-02-26  Richard Guenther  <rguenther@suse.de>
3872         PR tree-optimization/43188
3873         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
3874         vector types of over-aligned element type.
3876 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
3878         PR target/43175
3879         * config/i386/i386.c (expand_vec_perm_blend): Use correct
3880         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
3882 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
3884         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
3886 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
3888         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
3889         * var-tracking.c: Include diagnostic.h.
3890         (debug_dv): New function.
3891         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
3893         PR debug/43160
3894         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
3895         (add_value_chain, add_value_chains, remove_value_chain,
3896         remove_value_chains): Handle DEBUG_EXPRs.
3897         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
3899         PR debug/43161
3900         * regcprop.c (struct queued_debug_insn_change): New type.
3901         (struct value_data_entry): Add debug_insn_changes field.
3902         (struct value_data): Add n_debug_insn_changes field.
3903         (debug_insn_changes_pool): New variable.
3904         (free_debug_insn_changes, apply_debug_insn_changes,
3905         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
3906         (kill_value_one_regno): Call free_debug_insn_changes if needed.
3907         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
3908         fields.
3909         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
3910         changes for them.
3911         (copyprop_hardreg_forward_1): Don't call apply_change_group for
3912         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
3913         changes, call cprop_find_used_regs via note_stores.
3914         (copyprop_hardreg_forward): When copying vd from predecessor
3915         which has any queued DEBUG_INSN changes, make sure the pointers are
3916         cleared.  At the end call df_analyze and then if there are any
3917         DEBUG_INSN changes queued at the end of some basic block for still
3918         live registers, apply them.
3919         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
3921 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
3923         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
3924         (arm*-*-*): Ditto.
3926 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
3928         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
3929         targets.  Set the default with_cpu/with_arch from arch/cpu.
3930         Allow x86-64 and native for with_cpu/with_arch.
3932 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
3934         * ebitmap.c: Change calls to verify_popcount with calls to
3935         sbitmap_verify_popcount.
3936         (ebitmap_clear_bit): Fixed map->cacheindex test and
3937         map>cache update when bit clearing results in an empty
3938         element.
3940 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
3942         PR target/43154
3943         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
3944         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
3945         and support both V2DF and V2DI modes.
3946         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
3947         support both V2DF and V2DI modes.
3948         (general): Delete trailing whitespace from a few patterns.
3950         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3951         V2DF/V2DI interleave high/low builtins.
3953         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
3954         new VSX builtins.
3956         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
3957         interleave high/low functions.
3959 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
3961         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
3962         #pragma extern_prefix.
3964 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
3966         PR debug/43166
3967         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
3968         BLKmode, assert op0 is a MEM and just adjust its mode.
3970         PR debug/43165
3971         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
3972         if bitpos isn't multiple of mode's bitsize.
3974 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3976         * c.opt (-ftemplate-depth=): New.
3977         (-ftemplate-depth-): Deprecate.
3978         * optc-gen.awk: Handle -ftemplate-depth=.
3979         * opth-gen.awk: Likewise.
3980         * c-opts.c (c_common_handle_option): Likewise.
3981         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
3983 2010-02-24  Jason Merrill  <jason@redhat.com>
3985         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
3987 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3989         * cfg.c (alloc_aux_for_block): Remove inline.
3990         (alloc_aux_for_edge): Likewise.
3992 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3994         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
3996 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3998         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
3999         * config/i386/sol2-gas.h: New file.
4000         * config.gcc (i[34567]86-*-solaris2*): Use it.
4002 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4004         PR c/43128
4005         * c-typeck.c (ep_convert_and_check): New.
4006         (build_conditional_expr): Use it.
4007         (build_binary_op): Likewise.
4009 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
4011         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
4013         PR debug/43150
4014         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
4015         bounds even for -O+.
4016         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
4017         expr needs to have DECL_NAME set.
4019 2010-02-24  Nick Clifton  <nickc@redhat.com>
4021         * config/mep/mep.c: Include gimple.h.
4022         (mep_function_uses_sp): Delete unused function.
4023         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
4024         parameters.  Use unsigned integers to count args.  Return a
4025         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
4027 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
4029         PR target/43107
4030         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
4031         greater or equal to nelt instead of 2 * nelt.
4032         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
4033         with nelt - 1.
4035 2010-02-23  Jason Merrill  <jason@redhat.com>
4037         PR debug/42800
4038         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
4039         in cfun->local_decls even if they have register types.
4041         PR c++/42837
4042         * stor-layout.c (place_field): Don't warn about unnecessary
4043         DECL_PACKED if the type is packed.
4045 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
4047         PR target/43139
4048         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
4049         GOTOFF relocs, even when the base reg isn't pic pointer.
4051 2010-02-23  Michael Matz  <matz@suse.de>
4053         PR debug/43077
4054         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
4055         (expand_gimple_basic_block): Generate and use debug temps if there
4056         are debug uses left after the last real use of TERed ssa names.
4057         Unlink debug immediate uses when they are expanded.
4059 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4061         PR 43123
4062         * config/i386/i386.c (override_options): Reorganise to provide
4063         better error messages.
4065 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
4067         PR middle-end/43083
4068         * graphite-scop-detection.c (create_single_exit_edge): Move
4069         the call to find_single_exit_edge to....
4070         (create_sese_edges): ...here.  Don't handle multiple edges
4071         exiting the function.
4072         (build_graphite_scops): Don't handle multiple edges
4073         exiting the function.
4075 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
4077         PR middle-end/43097
4078         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
4079         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
4081 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
4083         PR middle-end/43026
4084         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
4086 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4088         PR c++/43126
4089         * c-typeck.c (convert_arguments): Print declaration location.
4090         * c-common.c (validate_nargs): Rename as
4091         builtin_function_validate_nargs.
4092         (check_builtin_function_arguments): Update.
4094 2010-02-22  Richard Guenther  <rguenther@suse.de>
4096         PR lto/43045
4097         * tree-inline.c (declare_return_variable): Use the type of
4098         the call stmt lhs if available.
4100 2010-02-22  Duncan Sands  <baldrick@free.fr>
4102         * passes.c (register_pass): Always consider all pass lists when
4103         ref_pass_instance_number is zero.
4105 2010-02-22  Richard Guenther  <rguenther@suse.de>
4107         PR tree-optimization/42749
4108         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
4109         parameter.  Do arithmetic in the original type.
4110         (update_accumulator_with_ops): Likewise.
4111         (adjust_accumulator_values): Adjust.
4113 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4115         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
4116         (QI to BLKmode splitter): New splitter.
4118 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
4120         * config/i386/i386.c (initial_ix86_tune_features): Turn on
4121         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
4123 2010-02-22  Richard Guenther  <rguenther@suse.de>
4125         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
4127 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
4129         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
4130         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
4131         ($(T)crti.o, $(T)crtn.o): Remove rules.
4133 2010-02-21  Tobias Burnus  <burnus@net-b.de>
4135         PR fortran/35259
4136         * doc/invoke.texi (-fassociative-math): Document that this
4137         option is automatically enabled for Fortran.
4139 2010-02-20  David S. Miller  <davem@davemloft.net>
4141         * configure.ac: Test if linker and assembler properly support
4142         GOTDATA_OP relocations.
4143         * configure: Rebuild.
4144         * config.in: Likewise.
4145         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
4146         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
4147         (movsi_high_pic): Likewise.
4148         (movdi_lo_sum_pic): Likewise.
4149         (movdi_high_pic): Likewise.
4150         (movsi_pic_gotdata_op): New pattern.
4151         (movdi_pic_gotdata_op): Likewise.
4152         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
4153         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
4155 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
4157         PR target/43067
4158         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
4159         attribute to ssemul.
4160         (xop_mulv2div2di3_high): Ditto.
4162 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4164         PR c++/35669
4165         * c.opt (Wconversion-null): New option.
4166         * doc/invoke.texi (Wconversion-null): Document.
4168 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4170         * common.opt (Wlarger-than-): Add Undocumented.
4172 2010-02-19  Mike Stump  <mikestump@comcast.net>
4174         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
4176 2010-02-19  Jason Merrill  <jason@redhat.com>
4178         PR target/40332
4179         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
4180         * configure: Likewise.
4182 2010-02-20  Alan Modra  <amodra@gmail.com>
4184         PR middle-end/42344
4185         * cgraph.h (cgraph_make_decl_local): Declare.
4186         * cgraph.c (cgraph_make_decl_local): New function.
4187         (cgraph_make_node_local): Use it.
4188         * cgraphunit.c (cgraph_function_versioning): Likewise.
4189         * ipa.c (function_and_variable_visibility): Likewise.
4191 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
4193         PR bootstrap/43121
4194         * except.c (sjlj_emit_function_enter): Don't call
4195         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
4196         directly.
4197         * rtl.h (add_reg_br_prob_note): Remove prototype.
4199 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4201         PR 41779
4202         * c-common.c (conversion_warning): Remove widening conversions
4203         before checking the conversion of integers to reals.
4205 2010-02-19  Mike Stump  <mikestump@comcast.net>
4207         PR middle-end/43125
4208         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
4210         PR objc/43061
4211         * cgraphunit.c (process_function_and_variable_attributes): Check
4212         DECL_PRESERVE_P instead of looking up attribute "used".
4213         * ipa-pure-const.c (check_decl): Likewise.
4214         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
4215         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
4216         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
4217         instead of attribute "used".
4218         * config/sol2-c.c (solaris_pragma_init): Likewise.
4219         (solaris_pragma_fini): Likewise.
4221 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
4223         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
4224         Use XCNEW instead of xcalloc.
4225         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
4226         XNEW instead of xmalloc.
4227         (get_fields): Use XNEWVEC instead of xmalloc.
4229         PR debug/43084
4230         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
4231         populate vars array.
4232         (create_new_general_access): For debug stmts just reset value.
4233         (get_stmt_accesses): For accesses within debug stmts just record them
4234         using add_access_to_acc_sites instead of preventing the peeling or
4235         counting them as accesses.
4237         PR middle-end/42233
4238         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
4240 2010-02-19  Richard Guenther  <rguenther@suse.de>
4242         PR tree-optimization/42916
4243         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
4244         instructions.
4246 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
4248         * configure.ac: Replace all uses of changequote in macro arguments
4249         with proper quoting.
4251 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
4253         PR middle-end/42233
4254         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
4256 2010-02-19  Richard Guenther  <rguenther@suse.de>
4258         PR tree-optimization/42944
4259         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
4260         test for aliasing with errno.
4262 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
4264         PR middle-end/42233
4265         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
4266         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
4267         * dojump.c: Include output.h.
4268         (inv): New inline function.
4269         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
4270         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
4271         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
4272         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
4273         argument, pass it down to other calls.
4274         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
4275         add REG_BR_PROB note to the conditional jump.
4276         * cfgexpand.c (add_reg_br_prob_note): Removed.
4277         (expand_gimple_cond): Don't call it, add the probability
4278         as last argument to jumpif_1/jumpifnot_1.
4279         * Makefile.in (dojump.o): Depend on output.h.
4280         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
4281         callers.
4282         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
4283         * stmt.c (do_jump_if_equal): Likewise.
4284         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
4285         * loop-unswitch.c (compare_and_jump_seq): Likewise.
4286         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
4287         Likewise.
4288         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
4289         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
4290         jumpifnot_1 callers.
4291         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
4292         callers.
4293         (store_expr): Adjust jumpifnot caller.
4294         (store_constructor): Adjust jumpif caller.
4296         PR middle-end/42233
4297         * gimplify.c (gimple_boolify): For __builtin_expect call
4298         gimple_boolify also on its first argument.
4300 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
4302         * configure.ac (gnu-unique-object): Wrap regexps using [] in
4303         changequote block.
4304         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
4305         * configure: Regenerated.
4307 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4309         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
4310         lang_hooks.types_compatible_p instead of comptypes.
4312 2010-02-18  Sebastian Huber <sebastian.huber@embedded-brains.de>
4314         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
4315         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
4316         if __prefer_thumb__ is defined.
4318 2010-02-18  Martin Jambor  <mjambor@suse.cz>
4320         PR tree-optimization/43066
4321         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
4322         array with zero-sized element type.
4324 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
4326         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
4327         rtx, allocate struct var_loc_node here and return it to the
4328         caller, and only if it is actually needed.
4329         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
4330         move it earlier and return immediately if it returns NULL.
4332 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
4334         * config/sparc/gas.h: New file.  Restore
4335         TARGET_ASM_NAMED_SECTION to its ELF default.
4336         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
4337         check !HAVE_GNU_AS.
4338         * config/sparc/sparc.c (sparc_elf_asm_named_section):
4339         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
4340         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
4341         after sparc/sysv4.h.
4343 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
4345         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
4347 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
4349         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
4350         patterns from predicated pattern.
4352 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
4354         PR target/43103
4355         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
4356         for insn mnemonic suffix.
4358 2010-02-17  Richard Guenther  <rguenther@suse.de>
4360         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
4361         to loop PHI nodes.
4363 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
4365         PR debug/42918
4366         * caller-save.c (save_call_clobbered_regs): If BB ends with
4367         a DEBUG_INSN, move any notes in between last real insn and the last
4368         DEBUG_INSN after the last DEBUG_INSN.
4370 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
4372         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
4373         Fix return type.  Fix argument type.  Explain meaning of return value.
4375 2010-02-16  Richard Guenther  <rguenther@suse.de>
4377         PR tree-optimization/41043
4378         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
4379         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
4380         statements ...
4381         (vrp_visit_phi_node): ... but only for loop PHI nodes.
4383 2010-02-16  Ira Rosen <irar@il.ibm.com>
4385         PR tree-optimization/43074
4386         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
4387         * tree-vect-loop.c (vect_analyze_loop_operations): Add
4388         vectorizable cycles in hybrid SLP check.
4389         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
4391 2010-02-16  Richard Guenther  <rguenther@suse.de>
4393         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
4394         (true_dependence): If memrefs_conflict_p computes must-alias
4395         trust it.  Move TBAA check after offset-based disambiguation.
4396         (canon_true_dependence): Likewise.
4398 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
4400         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
4401         * doc/invoke.texi: Document it.
4402         * var-tracking.c: Include toplev.h and params.h.
4403         (vt_find_locations): Return bool indicating success.  Compute
4404         hash sizes unconditionally.  Check new parameter, report.
4405         (variable_tracking_main_1): Check vt_find_locations results and
4406         retry.  Renamed from...
4407         (variable_tracking_main): ... this.  New wrapper to preserve
4408         flag_var_tracking_assignments.
4409         * Makefile.in (var-tracking.o): Adjust dependencies.
4411 2010-02-16  Jack Howarth <howarth@bromo.med.uc.edu>
4412             Jakub Jelinek <jakub@redhat.com>
4414         PR target/42854
4415         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
4416         if weak_import attribute is present.
4417         * config/darwin.c (machopic_select_section): Likewise.
4419 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
4421         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
4422         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
4423         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
4424         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
4426         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument types.
4428         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
4429         Fix argument types.
4431         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
4432         Rewrite text to refer to the names.
4434 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
4436         * config/i386/i386-builtin-types.def
4437         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
4438         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
4439         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
4440         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
4441         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
4442         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
4443         IX86_BUILTIN_VPERMIL2PS256.
4444         (MULTI_ARG_4_DF2_DI_I): Defined.
4445         (MULTI_ARG_4_DF2_DI_I1): Defined.
4446         (MULTI_ARG_4_SF2_SI_I): Defined.
4447         (MULTI_ARG_4_SF2_SI_I1): Defined.
4448         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
4449         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
4450         __builtin_ia32_vpermil2ps256.
4451         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
4452         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
4453         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
4454         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
4455         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
4456         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
4457         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
4458         CODE_FOR_xop_vpermil2v8sf3.
4459         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
4460         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
4461         * config/i386/xopintrin.h (_mm_permute2_pd): New.
4462         (_mm256_permute2_pd): New.
4463         (_mm_permute2_ps): New.
4464         (_mm256_permute2_ps): New.
4466 2010-02-15  Nick Clifton  <nickc@redhat.com>
4468         * config/h8300/h8300.c: (h8300_push_pop): Use bool type for
4469         boolean parameters.  Use emit_jump_insn when emitting a pop
4470         instruction containing a return insn.
4471         (push): Use 'true' rather than '1' as second parameter to F.
4472         (h8300_expand_prologue): Likewise.
4473         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
4474         (h8300_expand_epilogue): Likewise.
4476 2010-02-15  Richard Guenther  <rguenther@suse.de>
4478         PR middle-end/43068
4479         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
4480         if that is zero.
4482 2010-02-15  Nick Clifton  <nickc@redhat.com>
4484         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
4485         delta.
4487 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
4489         * intl.c (fake_ngettext): New function.
4490         * intl.h (fake_ngettext): Declare.
4491         (ngettext): Define macro.
4492         * collect2.c (notice_translated): New function.
4493         (main): Use notice_translated and ngettext.
4494         * collect2.h (notice_translated): Declare.
4496 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
4498         * reorg.c (delete_computation): Comment fixes.
4499         * caller-save.c (setup_save_areas): Idem.
4500         * sel-sched-dump.c (dump_lv_set): Idem.
4501         * rtl.def: Idem.
4503 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4505         * config/s390/s390.c (s390_sched_init): New function.
4506         (TARGET_SCHED_INIT): Target hook defined.
4508 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
4509             Jack Howarth  <howarth@bromo.med.uc.edu>
4510             Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
4512         PR target/42982
4513         Partial revert of unintended change in fix for PR41605.
4514         * config/darwin.h: Fix typo.
4515         * config/darwin9.h: Same.
4517 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
4519         * c-pch.c (pch_init): Clear v.
4521 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
4523         PR middle-end/42930
4524         * graphite-scop-detection.c (graphite_can_represent_scev): Call
4525         graphite_can_represent_init for MULT_EXPR.
4527 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
4529         PR middle-end/42914
4530         PR middle-end/42530
4531         * graphite-sese-to-poly.c (remove_phi): New.
4532         (translate_scalar_reduction_to_array): Call remove_phi.
4534 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
4536         PR middle-end/42771
4537         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
4538         * graphite-clast-to-gimple.h (gloog): Update declaration.
4539         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
4540         * graphite-poly.h (struct poly_bb): Add missing comments.
4541         (struct scop): Add poly_scop_p field.
4542         (POLY_SCOP_P): New.
4543         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
4544         * graphite.c (graphite_transform_loops): Build the polyhedral
4545         representation for each scop before code generation.
4546         * sese.c (rename_variables_in_operand): Removed.
4547         (rename_variables_in_expr): Return the renamed expression.
4548         (rename_sese_parameters): New.
4549         * sese.h (rename_sese_parameters): Declared.
4551 2010-02-11  Richard Guenther  <rguenther@suse.de>
4553         PR tree-optimization/42998
4554         * tree-ssa-pre.c (create_expression_by_pieces): Treat
4555         POINTER_PLUS_EXPR properly.
4557 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
4558             Changpeng Fang  <changpeng.fang@amd.com>
4560         PR middle-end/40886
4561         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
4562         the cost of an IV candidate when the IV is used in a test against zero.
4564         * gcc.dg/tree-ssa/ivopts-3.c: New.
4566 2010-02-11  Richard Guenther  <rguenther@suse.de>
4568         PR lto/41664
4569         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
4570         pointer-vs-decl case by swapping refs.  Handle some cases
4571         of pointer-vs-decl disambiguations more conservatively.
4572         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
4573         to false after expanding.
4575 2010-02-11  Richard Guenther  <rguenther@suse.de>
4577         PR driver/43021
4578         * gcc.c (process_command): Handle LTO file@offset case more
4579         appropriately.
4581 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
4583         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
4584         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
4585         of DEBUG_INSNs.
4586         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
4588         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
4589         if MEM's mode size isn't DWARF2_ADDR_SIZE.
4590         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
4591         Optimize eq/ne comparisons when both arguments are known to be
4592         zero-extended.
4593         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
4594         Don't mask operands unnecessarily if they are known to be already
4595         zero-extended.
4597 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
4599         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
4600         instead of loop.
4602 2010-02-10  Richard Guenther  <rguenther@suse.de>
4604         PR tree-optimization/43017
4605         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
4606         for wrapping signed arithmetic.
4608 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
4610         PR debug/43010
4611         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
4612         if no debug info should be emitted for it.
4614 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
4616         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
4617         note when flag_exceptions is set.
4619 2010-02-10  Duncan Sands  <baldrick@free.fr>
4621         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
4623 2010-02-10  Richard Guenther  <rguenther@suse.de>
4625         PR c/43007
4626         * tree.c (get_unwidened): Handle constants.
4627         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
4629 2010-02-10  Martin Jambor  <mjambor@suse.cz>
4631         PR lto/42985
4632         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
4633         check for variable argument counts independently.
4635 2010-02-10  Christian Bruel  <christian.bruel@st.com>
4637         PR target/42841
4638         * config/sh/sh.c (find_barrier): Increase length for non delayed
4639         conditional branches.
4641 2010-02-10  Christian Bruel  <christian.bruel@st.com>
4643         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
4645 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
4647         * builtins.c (set_builtin_user_assembler_name): Also handle
4648         ffs if int is smaller than word.
4650 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
4652         PR middle-end/42973
4653         * ira-conflicts.c (get_dup): Remove.
4654         (process_reg_shuffles): Add new parameter.  Use it as an
4655         additional guard for copy generation.
4656         (add_insn_allocno_copies): Rewrite.
4658 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
4660         * common.opt (fsched2-use-traces): Preserved for backward
4661         compatibility.
4662         * doc/invoke.texi: Remove the documentation about option
4663         -fsched2-use-traces.
4664         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
4665         flag_sched2_use_traces.
4666         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
4667         the backward compatibility flag section.
4669 2010-02-09  Richard Guenther  <rguenther@suse.de>
4671         PR tree-optimization/43008
4672         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
4673         make HEAP variables initialized from global memory if they
4674         are not known builtin functions.
4675         (find_func_aliases): Adjust.
4677 2010-02-09  Richard Guenther  <rguenther@suse.de>
4679         PR tree-optimization/43000
4680         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
4681         arithmetic manually.
4683 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
4685         PR tree-optimization/42931
4686         * tree-loop-linear.c (try_interchange_loops): Don't call
4687         double_int_mul if estimated_loop_iterations failed.
4689 2010-02-08  Martin Jambor  <mjambor@suse.cz>
4691         PR middle-end/42898
4692         * tree-sra.c (build_accesses_from_assign): Do not mark in
4693         should_scalarize_away_bitmap if stmt has volatile ops.
4694         (sra_modify_assign): Do not process assigns piecemeal if if stmt
4695         has volatile ops.
4697 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
4699         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
4701 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
4703         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
4704         before the pattern.
4706 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
4708         PR middle-end/42946
4709         * df-core.c (df_finish_pass): Change type of saved_flags to int.
4711 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
4713         PR middle-end/42988
4714         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
4715         to unknown_dependence.
4716         (graphite_legal_transform_dr): Handle the unknown_dependence.
4717         (graphite_carried_dependence_level_k): Same.
4719 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
4721         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
4723 2010-02-07  Richard Guenther  <rguenther@suse.de>
4725         PR middle-end/42991
4726         * expr.c (get_inner_reference): Always initialize *pbitsize.
4728 2010-02-07  Richard Guenther  <rguenther@suse.de>
4730         PR middle-end/42956
4731         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
4732         new ARRAY_REFs on variable size element or minimal index arrays.
4733         Complete.
4734         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
4735         gimple_fold_indirect_ref.
4737 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
4739         PR target/42957
4740         * arm.c (arm_override_options): Just return if the user has specified
4741         an invalid fpu name.
4743 2010-02-03  Jason Merrill  <jason@redhat.com>
4745         PR c++/42870
4746         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
4747         i386_pe_maybe_record_exported_symbol.
4749 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
4751         PR target/42924
4752         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
4753         (pa_delegitimize_address): New function.
4755 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
4757         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
4758         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
4760 2010-02-05  Richard Guenther  <rguenther@suse.de>
4762         PR lto/42762
4763         * lto-streamer-in.c (get_resolution): Deal with references
4764         to undefined functions.
4766 2010-02-05  Richard Guenther  <rguenther@suse.de>
4768         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
4769         (fold_const_aggregate_ref): Likewise.
4770         (ccp_fold_stmt): Substitute loads.
4771         (maybe_fold_reference): Verify types before substituting.
4772         Unshare properly.
4773         (fold_gimple_assign): Unshare properly.
4774         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
4776 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
4778         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
4779         for rs6000_gen_cell_microcode.
4781 2010-02-04  Richard Guenther  <rguenther@suse.de>
4783         PR rtl-optimization/42952
4784         * dse.c (const_or_frame_p): Remove MEM handling.
4786 2010-02-04  Nick Clifton  <nickc@redhat.com>
4788         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
4789         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
4790         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
4791         (mn10300_asm_output_mi_thunk): New function.
4792         (mn10300_can_output_mu_thunk): New function.
4793         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
4794         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
4795         (FUNCTION_ARG): Delete incorrect comment.
4797 2010-02-03  Jason Merrill  <jason@redhat.com>
4799         PR c++/40138
4800         * fold-const.c (operand_equal_p): Handle erroneous types.
4802 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
4804         * config/h8300/h8300.md (can_delay): Fix attibute condition.
4806 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
4808         PR rtl-optimization/42941
4809         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
4810         of xmalloc.
4812 2010-02-03  Jason Merrill  <jason@redhat.com>
4814         PR c++/35652
4815         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
4817 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
4819         PR debug/42896
4820         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
4821         (cselib_reset_table): Renamed from...
4822         (cselib_reset_table_with_next_value): ... this.
4823         (cselib_get_next_uid): Renamed from...
4824         (cselib_get_next_unknown_value): ... this.
4825         * cselib.c (next_uid): Renamed from...
4826         (next_unknown_value): ... this.
4827         (cselib_clear_table): Adjust.
4828         (cselib_reset_table): Adjust.  Renamed from...
4829         (cselib_reset_table_with_next_value): ... this.
4830         (cselib_get_next_uid): Adjust.  Renamed from...
4831         (cselib_get_next_unknown_value): ... this.
4832         (get_value_hash): Use hash.
4833         (cselib_hash_rtx): Likewise.
4834         (new_cselib_val): Adjust.  Set and dump uid.
4835         (cselib_lookup_mem): Pass next_uid as hash.
4836         (cselib_subst_to_values): Likewise.
4837         (cselib_log_lookup): Dump uid.
4838         (cselib_lookup): Pass next_uid as hash.  Adjust.
4839         (cselib_process_insn): Adjust.
4840         (cselib_init): Initialize next_uid.
4841         (cselib_finish): Adjust.
4842         (dump_cselib_table): Likewise.
4843         * dse.c (canon_address): Dump value uid.
4844         * print-rtl.c (print_rtx): Print value uid.
4845         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
4846         (dvuid): New type.
4847         (dv_uid): New function, sort of renamed from...
4848         (dv_htab_hash): ... this, reimplemented in terms of it and...
4849         (dv_uid2hash): ... this.  New.
4850         (variable_htab_eq): Drop excess assertions.
4851         (tie_break_pointers): Removed.
4852         (canon_value_cmp): Compare uids.
4853         (variable_post_merge_New_vals): Print uids.
4854         (vt_add_function_parameters): Adjust.
4855         (vt_initialize): Reset table.  Adjust.
4857 2010-02-03  Richard Guenther  <rguenther@suse.de>
4859         PR tree-optimization/42944
4860         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
4861         (call_may_clobber_ref_p_1): Likewise.  Properly handle
4862         malloc and calloc clobbering errno.
4864 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
4866         * doc/invoke.texi: Fix name of sched1 dump.
4868         * opts.c (decode_options): Set flag_tree_switch_conversion
4869         only conditionally on optimize >= 2.
4871         * gcse.c: Assorted comment fixes in pass description.
4873 2010-02-03  Anthony Green  <green@moxielogic.com>
4875         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
4876         nop padding in order to maintain alignment of storage location of
4877         target function address.
4878         (moxie_trampoline_init): Store target function address at newly
4879         aligned location.
4880         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
4881         to 32.
4882         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
4884 2010-02-03  Richard Guenther  <rguenther@suse.de>
4886         PR middle-end/42927
4887         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
4889 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4891         * config.gcc: Reenable check for obsolete targets.
4892         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
4893         mips-sgi-irix6.[0-4]*.
4895 2010-02-02  Nick Clifton  <nickc@redhat.com>
4897         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
4898         constant size of 4 as being the same as 0.
4899         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
4900         can take values in the range 0..4.
4902 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
4904         PR java/41991
4905         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
4906         as _darwin10_Unwind_FindEnclosingFunction().
4907         * libgcc-libsystem.ver: New.
4909 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
4911         PR target/41399
4912         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
4913         implicitly set registers.
4915 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
4917         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
4918         (arm_override_options): Allow automatic selection of the thread
4919         pointer register if thumb2.
4920         (legitimize_pic_address): Improve code sequences for Thumb2.
4921         (arm_call_tls_get_addr): Likewise.
4922         (legitimize_tls_address): Likewise.
4923         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
4924         (pic_load_addr_32bit): ... this.  New named pattern.
4925         * thumb2.md (pic_load_addr_thumb2): Delete.
4926         (pic_load_dot_plus_four): Delete.
4927         (tls_load_dot_plus_four): New named pattern.
4929 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4931         PR libgomp/29986
4932         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
4933         Document fix for TLS bug.
4935 2010-01-31  Richard Guenther  <rguenther@suse.de>
4937         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
4938         conservatively correct.
4940 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4942         PR target/42850
4943         Revert:
4944         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4946         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
4948 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4950         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
4952 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
4954         * config.gcc: Adjust order of makefile fragments for mingw targets.
4956 2010-01-31  Richard Guenther  <rguenther@suse.de>
4958         PR middle-end/42898
4959         * gimplify.c (gimplify_init_constructor): For volatile LHS
4960         initialize a temporary.
4962 2010-01-31  Matthias Klose  <doko@ubuntu.com>
4964         * configure.ac: Fix __stack_chk_fail check for cross builds configured
4965         --with-headers
4966         * configure: Regenerate.
4968 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
4970         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
4971         the same alias set and their sizes different constantness.
4972         (aliasing_component_refs_p): Revert 2009-10-24 change.
4974 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4976         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
4977         unused.
4979 2010-01-29  Richard Guenther  <rguenther@suse.de>
4981         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
4982         Assert we successfully updated the call.
4984 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
4986         PR rtl-optimization/42889
4987         * df.h (df_set_bb_dirty_nonlr): New prototype.
4988         * df-core.c (df_set_bb_dirty_nonlr): New function.
4989         * df-scan.c (df_insn_rescan): Call it instead of
4990         df_set_bb_dirty for DEBUG_INSNs.
4992 2010-01-29  Richard Guenther  <rguenther@suse.de>
4994         PR middle-end/37448
4995         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
4996         quadratic behavior in most cases.
4998 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
5000         PR target/42891
5001         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
5002         in the call to gen_x86_movsicc_0_m1.
5004 2010-01-28  Richard Guenther  <rguenther@suse.de>
5006         PR tree-optimization/42871
5007         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
5009 2010-01-28  Richard Guenther  <rguenther@suse.de>
5011         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
5012         into call arguments.
5014 2010-01-28  Richard Guenther  <rguenther@suse.de>
5016         PR middle-end/42883
5017         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
5018         the forwarder if the destination is an EH landing pad.
5020 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
5022         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
5023         block list passed to gimple_duplicate_sese_tail.
5024         (parallelize_loops): Avoid parallelization when the function
5025         has_nonlocal_label.
5026         Avoid parallelization when the preheader is IRREDUCIBLE.
5027         Try to optimize when estimated_loop_iterations_int is unresolved.
5028         Add the loop's location to the dump file.
5029         * tree-cfg.c (add_phi_args_after_redirect): Remove.
5030         (gimple_duplicate_sese_tail): Remove the check for the latch.
5031         Redirect nexits to the exit block.
5032         Remove handling of the incoming edges to the latch.
5033         Redirect the backedge from the copied latch to the exit bb.
5035 2010-01-28  Michael Matz  <matz@suse.de>
5037         PR target/42881
5038         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
5039         Wrap force_reg into a sequence, emit it before user.
5041 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
5043         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
5044         (arm_rev): New.
5045         (arm_legacy_rev): Likewise.
5046         (thumb_legacy_rev): Likewise.
5048 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
5050         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
5051         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
5052         on MEM's address failed, try avoid_constant_pool_reference and
5053         recurse if it returned something different.
5054         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
5055         address, try avoid_constant_pool_reference and recurse if it
5056         returned something different.
5057         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
5058         address and avoid_constant_pool_reference returned something
5059         different, don't set have_address.
5061 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
5063         PR debug/42861
5064         * var-tracking.c (val_store): Add modified argument, obey it.
5065         Adjust callers.
5066         (count_uses): Move down logging of main.
5067         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
5068         don't need resolution.
5069         (emit_notes_in_bb): Likewise.
5071 2010-01-27  Richard Guenther  <rguenther@suse.de>
5073         PR middle-end/42878
5074         * tree-inline.c (remap_decl): Delay remapping of SSA name
5075         default definitions until we need them.
5077 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
5079         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
5080         (rs6000_delegitimize_address): New function.
5082         * config/s390/s390.c (s390_delegitimize_address): Call
5083         delegitimize_mem_from_attrs.
5085         PR middle-end/42874
5086         * tree-inline.c (cannot_copy_type_1): Removed.
5087         (copy_forbidden): Don't forbid copying of functions containing
5088         records/unions with variable length fields.
5090 2010-01-27  Christian Bruel  <christian.bruel@st.com>
5092         Revert:
5093         PR target/42841
5094         * config/sh/sh.c (find_barrier): Increase length for non delayed
5095         conditional branches.
5097 2010-01-27  Matthias Klose  <doko@ubuntu.com>
5099         * configure.ac (gnu-unique-object): Fix ldd version check.
5100         * configure: Regenerate.
5102 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5104         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
5105         HAVE_GNU_AS value.
5106         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
5107         Test for HAVE_GNU_AS value.
5109 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5111         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
5112         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
5113         INT64_TYPE): Define.
5114         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
5115         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
5116         INT_LEAST64_TYPE): Define.
5117         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
5118         UINT_LEAST64_TYPE): Define.
5119         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
5120         INT_FAST64_TYPE): Define.
5121         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
5122         UINT_FAST64_TYPE): Define.
5123         (INTMAX_TYPE, UINTMAX_TYPE): Define.
5124         (INTPTR_TYPE, UINTPTR_TYPE): Define.
5125         (SIG_ATOMIC_TYPE): Define.
5127 2010-01-26  Richard Guenther  <rguenther@suse.de>
5129         * df-scan.c (df_scan_set_bb_info): Remove assert.
5130         (df_insn_rescan_debug_internal): Merge asserts.
5131         (df_install_ref): Likewise.
5132         (df_mark_reg): Use bitmap_set_range.
5133         (df_hard_reg_used_p): Remove assert.
5134         (df_hard_reg_used_count): Likewise.
5136 2010-01-26  Richard Guenther  <rguenther@suse.de>
5138         PR rtl-optimization/42685
5139         * web.c (web_main): Ignore DEBUG_INSNs.
5141 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
5143         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
5145         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
5146         Fix types of fndecl and arglist parameters.
5148 2010-01-26  Richard Guenther  <rguenther@suse.de>
5150         PR middle-end/42806
5151         * tree-eh.c (unsplit_eh): Skip debug insns.
5153 2010-01-26  Richard Guenther  <rguenther@suse.de>
5155         PR tree-optimization/42250
5156         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
5158 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
5160         PR fortran/42866
5161         * omp-low.c (expand_omp_sections): Only use single_pred if
5162         l2_bb is single_pred_p.
5164 2010-01-25  Christian Bruel  <christian.bruel@st.com>
5166         PR target/42841
5167         * config/sh/sh.c (find_barrier): Increase length for non delayed
5168         conditional branches.
5169         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
5171 2010-01-24  David S. Miller  <davem@davemloft.net>
5173         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
5174         define if not using GAS.
5175         * config/sparc/sparc.c (sparc_elf_asm_named_section):
5176         Likewise.  Delete SECTION_MERGE code, which is only applicable
5177         when using GAS.
5179 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
5181         PR c++/42748
5182         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
5183         mangling of va_list in system headers.
5185 2010-01-23  Toon Moene  <toon@moene.org>
5187         * tree-predcom.c (combine_chains): Return NULL, not false.
5189 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
5191         * tree-loop-distribution.c (distribute_loop): Fix declaration and
5192         initialization of variable res to agree with return type.
5194 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
5196         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
5197         * tree-sra.c: Add include of expr.h.
5199 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
5201         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
5202         insert the debug stmt on the single non-EH edge from the stmt.
5204 2010-01-22  Richard Henderson  <rth@redhat.com>
5206         PR tree-opt/42833
5207         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
5208         the RHS until after generate_subtree_copies has insertted its
5209         code before the current statement.
5211 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
5213         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
5215         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
5217 2010-01-21  Martin Jambor  <mjambor@suse.cz>
5219         PR tree-optimization/42585
5220         * tree-sra.c (struct access): New field grp_total_scalarization.
5221         (dump_access): Dump the new field.
5222         (should_scalarize_away_bitmap): New variable.
5223         (cannot_scalarize_away_bitmap): Likewise.
5224         (sra_initialize): Allocate new bitmaps.
5225         (sra_deinitialize): Free new bitmaps.
5226         (create_access_1): New function.
5227         (create_access): Parts moved to create_access_1.
5228         (type_consists_of_records_p): New function.
5229         (completely_scalarize_record): Likewise.
5230         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
5231         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
5232         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
5233         access.
5234         (analyze_all_variable_accesses): Completely scalarize small eligible
5235         records.
5237 2010-01-21  Martin Jambor  <mjambor@suse.cz>
5239         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
5241 2010-01-21  Andrew Haley  <aph@redhat.com>
5243         * gcc.c (process_command): Move lang_specific_driver before
5244         setting cc_libexec_prefix.
5246 2010-01-21  Richard Guenther  <rguenther@suse.de>
5248         PR middle-end/19988
5249         * fold-const.c (negate_expr_p): Pretend only negative
5250         real constants are easily negatable.
5252 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
5253             Jason Merrill  <jason@redhat.com>
5255         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
5256         (TYPE_TRANSPARENT_AGGR): this, for union and record.
5257         * calls.c (initialize argument_information): Handle it.
5258         * c-common.c (handle_transparent_union_attribute): Use new name.
5259         * c-decl.c (finish_struct): Ditto.
5260         * c-typeck.c (type_lists_compatible_p): Ditto.
5261         (convert_for_assignment): Use new name and also handle record.
5262         * function.c (aggregate_value_p): Handle it.
5263         (pass_by_reference): Ditto.
5264         (assign_parm_data_types): Ditto.
5265         * print-tree.c (print_node): Ditto.
5266         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
5267         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
5268         * tree.c (first_field): New fn.
5270 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
5272         PR target/42818
5273         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
5274         even when linking statically, for now.
5276 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
5278         PR debug/42715
5279         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
5280         without a cselib val.
5281         (count_uses): Accept MO_VAL_SET with no val on stores.
5282         (add_stores): Likewise.
5284 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
5286         * var-tracking.c (check_value_val): Add a compile time assertion.
5287         (dv_is_decl_p): Simplify.
5288         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
5289         gcc_assert if ENABLE_CHECKING.
5291 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
5293         PR debug/42782
5294         * var-tracking.c: Include tree-flow.h.
5295         (mem_dies_at_call): New.
5296         (dataflow_set_preserve_mem_locs): Use it.
5297         (dataflow_set_remove_mem_locs): Likewise.
5298         (dump_var): Renamed from dump_variable.  Adjust all callers.
5299         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
5300         * Makefile.in (var-tracking.o): Adjust deps.
5302 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
5304         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
5306 2010-01-20  Richard Guenther  <rguenther@suse.de>
5308         PR tree-optimization/42717
5309         * tree-ssa-dce.c (get_live_post_dom): Remove.
5310         (forward_edge_to_pdom): Take an arbitrary edge to copy
5311         degenerate PHI args from.
5312         (remove_dead_stmt): Use the first post-dominator even if it
5313         does not contain live statements as redirection destination.
5315 2010-01-20  Richard Guenther  <rguenther@suse.de>
5317         * tree-inline.c (estimate_num_insns): Handle EH builtins.
5319 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
5321         * sel-sched.c (create_speculation_check): Remove set but not used
5322         variable twin.
5323         (try_transformation_cache): Remove set but not used variable ds.
5324         (calculate_privileged_insns): Remove set but not used variables
5325         cur_insn and min_spec_insn.
5326         (find_best_expr): Remove set but not used variable avail_n.
5327         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
5328         variable e.
5329         * cgraphunit.c (assemble_thunk): Remove set but not used variable
5330         false_label.
5331         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
5332         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
5333         new_scop_exit_edge.
5335 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
5337         PR bootstrap/42786
5338         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
5339         cpu types.  Add support for *-sse3 cpu types.
5340         (x86_64-*-*): Ditto.
5342 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
5344         PR middle-end/42803
5345         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
5346         argument, call initializer_constant_valid_p_1 instead of
5347         initializer_constant_valid_p, pass CACHE to it, return NULL
5348         immediately if first call returns NULL.
5349         (initializer_constant_valid_p_1): New function.
5350         (initializer_constant_valid_p): Use it.
5352 2010-01-20  Thomas Quinot  <quinot@adacore.com>
5354         * tree.def (PLACEHOLDER_EXPR): Fix comment.
5356 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
5358         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
5359         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
5360         (loc_list_from_tree): Don't handle unsigned division.  Handle
5361         signed modulo using DW_OP_{over,over,div,mul,minus}.
5362         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
5363         modulo instead of signed.
5365 2010-01-20  DJ Delorie  <dj@redhat.com>
5367         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
5368         (Fpa): Pass it
5369         (h8300_emit_stack_adjustment): Propogate it.
5370         (push): Pass it.
5371         (h8300_expand_prologue): Likewise.
5372         (h8300_expand_epilogue): Likewise.
5374 2010-01-19  Michael Matz  <matz@suse.de>
5376         PR tree-optimization/41783
5377         * tree-data-ref.c (toplevel): Include flags.h.
5378         (dump_data_dependence_relation):  Also dump the inputs if the
5379         result will be unknown.
5380         (split_constant_offset_1): Look through some conversions.
5381         * tree-predcom.c (determine_roots_comp): Restart a new chain if
5382         the offset from last element is too large.
5383         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
5384         (reassociate_to_the_same_stmt): Handle vector registers.
5385         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
5386         (e.g. conversions).
5387         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
5388         wide_prolog_niters argument, emit widening instructions.
5389         (vect_do_peeling_for_alignment): Adjust caller, use widened
5390         variant of the iteration cound.
5391         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
5393 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5395         PR target/38697
5396         * config/arm/neon-testgen.m (emit_automatics): New parameter
5397         features. Adjust for Fixed_return_reg feature.
5398         (test_intrinsic): Call emit_automatics with new feature.
5399         * config/arm/neon.ml: Update copyright years.
5400         (features): New Fixed_return_reg feature.
5401         (ops): Update feature for Vget_low.
5403 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
5405         PR tree-optimization/42719
5406         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
5407         stmt uses.
5409         PR debug/42728
5410         * fwprop.c (all_uses_available_at): Return false if def_set dest
5411         is a REG that is used in def_insn.
5413 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
5415         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
5417         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
5418         Add argument names.
5420         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
5422         * target.h (struct gcc_target) <secondary_reload>: Change type
5423         of last argument to secondary_reload_info *.
5425 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
5427         PR target/42774
5428         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
5429         memory references with unaligned offsets.  Remove CQImode handling.
5430         (unaligned_memory_operand): Return 1 for memory references with
5431         unaligned offsets.  Remove CQImode handling.
5433 2010-01-18  Richard Guenther  <rguenther@suse.de>
5435         PR middle-end/39954
5436         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
5437         builtin calls.
5439 2010-01-18  Richard Guenther  <rguenther@suse.de>
5441         PR tree-optimization/42781
5442         * tree-ssa-structalias.c (find_what_var_points_to): Skip
5443         restrict processing only if the original variable was artificial.
5445 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
5447         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
5448         find number of popped argument bytes.
5450         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
5451         Fix the text that describes the return value for invalid insns.
5453         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
5455         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
5456         Clarify what 'cost of the -dependence' is.  Fix quoting.
5458         * toplev.c (default_get_pch_validity): Rename argument to "sz".
5459         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
5461 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
5463         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
5464         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
5466 2010-01-17  Richard Guenther  <rguenther@suse.de>
5468         PR middle-end/42248
5469         * function.c (split_complex_args): Take a VEC to modify.
5470         (assign_parms_augmented_arg_list): Build a VEC instead of
5471         a chain of PARM_DECLs.
5472         (assign_parms_unsplit_complex): Take a VEC of arguments.
5473         Do not fixup unmodified parms.
5474         (assign_parms): Deal with the VEC.
5475         (gimplify_parameters): Likewise.
5477 2010-01-17  Richard Guenther  <rguenther@suse.de>
5479         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
5480         node existence check.
5481         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
5482         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
5483         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
5484         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
5485         (gimple_execute_on_growing_pred): Likewise.
5487 2010-01-17  Richard Guenther  <rguenther@suse.de>
5489         PR tree-optimization/42773
5490         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
5491         (compute_antic_aux): Likewise.
5492         (compute_partial_antic_aux): Likewise.
5494 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
5496         PR debug/42767
5497         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
5498         and US_TRUNCATE.
5500 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
5502         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
5503         appearance.
5505         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
5506         Fix markup for strict argument.
5508         (TARGET_SCHED_REORDER2): Fix argument types.
5510         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
5511         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
5513         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
5514         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
5516         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
5517         Add argument name.
5519         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
5520         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
5521         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
5522         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
5523         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
5525         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
5527         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
5529         (TARGET_ASM_RELOC_RW_MASK): Add return type.
5530         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
5532         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
5534         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
5535         Use prototype.
5537         (TARGET_ASM_NAMED_SECTION): Fix argument list.
5539         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
5540         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
5542         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
5544         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
5546         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
5547         referring to it.  Fix language.
5549         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
5551         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
5553         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
5555         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
5557         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
5558         '@var{stream}.  Remove stray 'and'.
5560         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
5562         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
5564         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
5566         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
5567         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
5569         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
5570         Fix description of return value.
5571         Rename argument "sz" to "len."
5573         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
5574         Clarify meaning of 'true' return value.
5576         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
5578         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
5579         rep_mode versus mode_rep.
5581         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
5583         (TARGET_BUILTIN_DECL): Fix name.
5585         (TARGET_COMMUTATIVE_P): Fix type of first argument.
5587         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
5589         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
5591         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
5593         (TARGET_RELAXED_ORDERING): Use @deftypevr.
5595         (TARGET_GET_DRAP_RTX): Note that this is a hook.
5596         Clarify language.
5598         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
5599         Rename argument tm_fn to md_fn.
5601         (TARGET_OPTION_PRINT): Fix argument list.
5603 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
5605         PR target/42664
5606         * config/i386/i386.c (ix86_fixup_binary_operands):
5607         Revert FMA4 fixup of operands.
5609 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5611         PR gcc/42525
5612         * Makefile.in (write_entries_to_file, install-plugin):
5613         Use \012 instead of \n with tr.
5615 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
5617         * configure.ac (HAVE_AS_REF): New C macro.
5618         * configure: Regenerate.
5619         * config.in: Likewise.
5620         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
5621         if HAVE_AS_REF.
5622         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
5623         if HAVE_AS_REF.
5625 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
5627         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
5629         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
5631         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
5633         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
5635         (TARGET_IN_SMALL_DATA_P): Fix argument type.
5637         (TARGET_BINDS_LOCAL_P): Fix argument type.
5639         (TARGET_ASM_FILE_END): Use prototype.
5641         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
5643         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
5645         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
5647         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
5649         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
5650         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
5652         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
5653         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
5655         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
5656         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
5657         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
5658         (TARGET_ADDR_SPACE_CONVERT): Likewise.
5660         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
5662         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
5664         (TARGET_INIT_BUILTINS): Use prototype.
5666         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
5667         Put 'const char *' in braces.  Fix parameter types.
5668         (TARGET_INVALID_CONVERSION): Fix parameter types.
5669         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
5670         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
5672         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
5673         Fix argument type.
5675         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
5677         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
5679 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
5681         * doc/tm.texi (TARGET_HELP): Fix return type.
5683         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
5684         in braces.  Fix argument types.
5686         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
5688         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
5690         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
5692         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
5693         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
5695         (TARGET_MANGLE_TYPE): Fix argument types.
5697         (TARGET_IRA_COVER_CLASSES): Use prototype.
5699         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
5701         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
5703         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
5705         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
5707         (TARGET_CALLEE_COPIES): Fix argument types.
5709         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
5711         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
5713         (TARGET_FUNCTION_VALUE): Fix argument types.
5715         (TARGET_RETURN_IN_MSB): Fix argument type.
5717         (TARGET_RETURN_IN_MEMORY): Fix argument types.
5719         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
5721         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
5723         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
5724         agree with return type.
5726         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
5728 2010-01-15  Jing Yu  <jingyu@google.com>
5730         PR rtl-optimization/42691
5731         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
5732         a pseudo to a constant and are merged, and adjust comments.
5734 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
5736         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
5738 2010-01-15  Richard Guenther  <rguenther@suse.de>
5740         PR middle-end/42739
5741         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
5742         labels of computed or non-local gotos to the destination.
5743         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
5744         landing pad label is the first label.
5746 2010-01-15  Richard Guenther  <rguenther@suse.de>
5748         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
5750 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5752         PR target/42747
5753         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
5754         to allow generation of the xssqrtdp instruction on power7.
5755         (sqrtdf2_fpr): Ditto.
5757 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
5759         PR middle-end/42674
5760         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
5761         functions with noreturn attribute.
5763         PR c++/42608
5764         * varasm.c (declare_weak): Add weak attribute to decl if it
5765         doesn't have one already.
5766         (assemble_external): Only add decls to weak_decls if they also
5767         have weak attribute.
5769 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
5771         * var-tracking.c (var_reg_delete): Don't delete the association
5772         between REGs and values or one-part variables if the register
5773         isn't clobbered.
5775 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
5777         PR debug/42657
5778         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
5779         because its first operand is a non-localized variable.
5781 2010-01-14  Martin Jambor  <mjambor@suse.cz>
5783         PR tree-optimization/42706
5784         * tree-sra.c (encountered_recursive_call): New variable.
5785         (encountered_unchangable_recursive_call): Likewise.
5786         (sra_initialize): Initialize both new variables.
5787         (callsite_has_enough_arguments_p): New function.
5788         (scan_function): Call decl and flags check only for IPA-SRA, check
5789         whether there is a recursive call and whether it has enough arguments.
5790         (all_callers_have_enough_arguments_p): New function.
5791         (convert_callers): Look for recursive calls only when
5792         encountered_recursive_call is set.
5793         (ipa_early_sra): Bail out either if
5794         !all_callers_have_enough_arguments_p or
5795         encountered_unchangable_recursive_call.
5797 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
5799         * sel-sched.c: Add 2010 to copyright years.
5800         * sel-sched-ir.c: Likewise.
5801         * sel-sched-ir.h: Likewise.
5803 2010-01-14  Martin Jambor  <mjambor@suse.cz>
5805         PR tree-optimization/42714
5806         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
5807         constructors specially.
5809 2010-01-14  Andi Kleen  <ak@linux.intel.com>
5811         * config/i386/drivers-i386.c (detect_caches_intel):
5812         Add l2sizekb parameter and fill in.
5813         (host_detect_local_cpu): Add l2sizekb, fill in.
5814         Add Atom small cache heuristic.
5816 2010-01-14  Andi Kleen  <ak@linux.intel.com>
5818         * config/i386/drivers-i386.c (detect_caches_cpuid4):
5819         Add level3 parameter and fill in.
5820         (detect_caches_intel): Handle level3 cache.
5822 2010-01-14  Andi Kleen  <ak@linux.intel.com>
5824         * config/i386/drivers-i386.c (host_detect_local_cpu):
5825         Fix core duo detection.
5827 2010-01-14  Andi Kleen  <ak@linux.intel.com>
5829         * config/i386/drivers-i386.c (host_detect_local_cpu):
5830         Fix Atom detection.
5832 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
5834         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
5835         (rs6000_variable_issue_1): this.  Use...
5836         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
5838 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
5840         * sel-sched-ir.c (sel_restore_other_notes): Rename to
5841         sel_restore_notes.  Update all callers.  Call reemit_notes
5842         for all insns.
5844 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
5846         PR rtl-optimization/42246
5847         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
5848         loops.
5850 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
5852         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
5853         all successors is the same as number of successors in current region.
5855 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
5857         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
5858         to rename is not separable.  Otherwise check that its LHS is not NULL.
5860 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
5862         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
5864 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
5866         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
5867         available registers when failed to discover LHS register class.
5868         Fix indentation.  Update comment.
5870 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
5871             Alexander Monakov  <amonakov@ispras.ru>
5873         PR rtl-optimization/42389
5874         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
5875         to can_issue_more.
5876         (advance_state_on_fence): Likewise.
5877         (sel_target_adjust_priority): Print debug output only when
5878         sched_verbose >= 4, not 2.
5879         (get_expr_cost): Do not issue all unique insns on the next cycle.
5880         (fill_insns): Initialize can_issue_more from the value saved
5881         with the fence.
5882         * sel-sched-ir.c (flist_add): New parameter issue_more.
5883         Init FENCE_ISSUE_MORE with it.
5884         (merge_fences): Likewise.
5885         (init_fences): Update call to flist_add.
5886         (add_to_fences, add_clean_fence_to_fences)
5887         (add_dirty_fence_to_fences): Likewise.
5888         (move_fence_to_fences): Update call to merge_fences.
5889         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
5890         sched groups.
5891         * sel-sched-ir.h (struct _fence): New field issue_more.
5892         (FENCE_ISSUE_MORE): New accessor macro.
5894 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
5896         PR rtl-optimization/42388
5897         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
5898         that have no predecessors nor successors.  Do not call move_bb_info
5899         for empty blocks outside of current region.
5901 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
5903         PR rtl-optimization/42294
5904         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
5905         * sel-sched.c (move_exprs_to_boundary): Transitively add all
5906         originators' originators.
5908 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
5910         PR rtl-optimization/39453
5911         PR rtl-optimization/42246
5912         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
5913         for pipelining_p.
5914         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
5916 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
5917             Alexander Monakov  <amonakov@ispras.ru>
5919         PR middle-end/42245
5920         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
5921         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
5922         argument.  Update all callers.
5923         (tidy_control_flow): ... and here.  Recompute topological order
5924         of basic blocks in region if necessary.
5925         (sel_redirect_edge_and_branch): Change return type.  Return true
5926         if topological order might have been invalidated.
5927         (purge_empty_blocks): Export and move from...
5928         * sel-sched.c (purge_empty_blocks): ... here.
5929         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
5930         (maybe_tidy_empty_bb): Delete prototype.
5931         (purge_empty_blocks): Declare.
5933 2010-01-14  Andrey Belevantsev <abel@ispras.ru>
5935         PR rtl-optimization/42249
5936         * sel-sched.c (try_replace_dest_reg): When chosen register
5937         and original register is the same, do not bail out early, but
5938         still check all original insns for validity of replacing destination
5939         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
5940         in this case.
5942 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
5944         PR c/42721
5945         Port from no-undefined-overflow branch:
5946         2009-03-09  Richard Guenther  <rguenther@suse.de>
5948         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
5950 2010-01-14  Richard Guenther  <rguenther@suse.de>
5952         PR lto/42665
5953         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
5955 2010-01-14  Ira Rosen  <irar@il.ibm.com>
5957         PR tree-optimization/42709
5958         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
5959         as scalar type in creation of constant vector operand.
5961 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5963         PR testsuite/42414
5964         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
5965         (check-parallel-%): Match `testsuite' directory component only
5966         at the end.
5968 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
5970         PR translation/39521
5971         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
5972         strings with _().
5974 2010-01-13  Richard Guenther  <rguenther@suse.de>
5976         PR tree-optimization/42730
5977         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
5978         offset zero.
5980 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
5982         PR target/pr42542
5983         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
5984         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
5985         them signed.
5987 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
5989         * config/bfin/libgcc-bfin.ver: Regenerate based on current
5990         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
5991         ___umulsi3_highpart.
5993         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
5994         rather than schedule_insns if the pass is enabled.
5996 2010-01-13  Martin Jambor  <mjambor@suse.cz>
5998         PR tree-optimization/42704
5999         * tree-sra.c (sra_modify_assign): Do not delete assignments to
6000         SSA_NAMEs.
6002 2010-01-13  Martin Jambor  <mjambor@suse.cz>
6004         PR tree-optimization/42703
6005         * tree-sra.c (analyze_access_subtree): Check that we can build a
6006         reference to the original data within the aggregate.
6008 2010-01-13  Richard Guenther  <rguenther@suse.de>
6010         PR tree-optimization/42705
6011         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
6013 2010-01-13  Richard Guenther  <rguenther@suse.de>
6015         PR middle-end/42716
6016         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
6018 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
6020         PR debug/41371
6021         * var-tracking.c (values_to_unmark): New variable.
6022         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
6023         values_to_unmark vector.  Moved body to...
6024         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
6025         instead queue it into values_to_unmark vector.
6026         (vt_find_locations): Free values_to_unmark vector.
6028 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
6030         * config/s390/s390.c (override_options): Set
6031         default of max-pending-list-length to 256
6033 2010-01-13  Richard Guenther  <rguenther@suse.de>
6035         PR lto/42678
6036         * tree-pass.h (PROP_gimple_lcx): New.
6037         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
6038         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
6039         before the final cleanup_eh.
6040         (dump_properties): Dump PROP_gimple_lcx.
6041         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
6042         (tree_lower_complex_O0): Remove.
6043         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
6044         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
6045         tree_lower_complex, schedule TODO_update_ssa.
6046         * lto-streamer-out.c (output_function): Stream the functions
6047         properties.
6048         * lto-streamer-in.c (input_function): Likewise.
6049         (lto_read_body): Do not override them here.
6051 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
6053         PR c/42708
6054         * c-typeck.c (build_c_cast): Fold value cast to union type before
6055         wrapping it in a CONSTRUCTOR.
6057 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
6059         PR rtl-optimization/42699
6060         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
6061         involved.
6063 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6065         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
6066         SUBTARGET_WARN_UNUSED_SPEC): Move ...
6067         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
6068         SUBTARGET_WARN_UNUSED_SPEC): ... here
6069         * config/mips/iris5.h (LIBGCC_SPEC): Define.
6071 2010-01-12  Julian Brown  <julian@codesourcery.com>
6073         * config/arm/neon-schedgen.ml (Utils): Don't try to
6074         open missing module.
6075         (find_with_result): New.
6077 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
6079         PR debug/42662
6080         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
6081         sharing when canonicalizing ({lt,ge}u (plus a b) b).
6083         PR tree-optimization/42645
6084         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
6085         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
6086         decl_map, set processing_debug_stmt to -1 and return name without
6087         any remapping.
6089 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
6091         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
6092         binutils version, and reword target configuration description.
6094 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
6096         * config/avr/avr.h (LINKER_NAME): Remove.
6098 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
6100         PR target/42416
6101         * config/rs6000/rs6000.c (rs6000_override_options): On targets
6102         that support VSX, warn for -mno-altivec if vsx is not disabled,
6103         and disable vsx.
6105 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
6106             Shujing Zhao  <pearly.zhao@oracle.com>
6108         PR translation/42469
6109         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
6110         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
6111         character between option name and help text.
6112         * c.opt (imultilib): Likewise.
6114 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
6116         * lto-streamer-out.c (output_unreferenced_globals): Output static
6117         variables.
6119 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
6121         PR rtl-optimization/42621
6122         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
6123         optimizing for size.
6124         (duplicate_computed_gotos): Remove now-redundant check.
6126 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
6128         PR target/37454
6129         * configure.ac: Save and restore LDFLAGS and LIBS
6130         * configure: Regenerate.
6132 2010-01-10  Richard Guenther  <rguenther@suse.de>
6134         PR middle-end/42667
6135         * builtins.c (fold_builtin_strlen): Add type argument and
6136         convert the resulting length to it.
6137         (fold_builtin_1): Adjust.
6139 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
6141         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
6142         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
6143         1 insn.
6144         (num_insns_constant_wide): Adjust for that change.
6146 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
6148         PR debug/42631
6149         * web.c (union_defs): Add used argument, to combine uses of
6150         uninitialized regs.
6151         (entry_register): Adjust type and tests of used argument.
6152         (web_main): Widen used for new use.  Pass it to union_defs.
6153         * df.h (union_defs): Adjust prototype.
6155 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
6157         PR debug/42630
6158         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
6159         uses in new incoming argument.  Free body.
6160         (reset_debug_uses_in_loop): New.
6161         (analyze_insn_to_expand_var): Call the latter if the former found
6162         anything.  Fix whitespace.  Reject invalid dest overlaps before
6163         going through all insns in the loop.
6165 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
6167         PR debug/42629
6168         * haifa-sched.c (dying_use_p): Debug insns don't count.
6170 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
6172         PR middle-end/42363
6173         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
6174         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
6175         (verify_gimple_call): Reject LHS in noreturn calls.
6177 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
6179         PR debug/42604
6180         PR debug/42395
6181         * tree-vect-loop-manip.c (adjust_info): New type.
6182         (adjust_vec): New pointer to vector.
6183         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
6184         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
6185         (slpeel_update_phis_for_duplicate_loop): Use them.
6186         (slpeel_update_phi_nodes_for_guard1): Likewise.
6187         (slpeel_update_phi_nodes_for_guard2): Likewise.
6188         (slpeel_tree_peel_loop_to_edge): Likewise.
6189         (vect_update_ivs_after_vectorizer): Likewise.
6191 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
6193         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
6194         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
6196 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
6198         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
6199         bogus uninitialized warning.
6201 2010-01-09  Richard Guenther  <rguenther@suse.de>
6203         PR middle-end/42512
6204         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
6205         the evolution is compatible with the initial condition.
6207 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
6209         * gcc.c (process_command): Update copyright notice dates.
6210         * gcov.c (print_version): Likewise.
6211         * gcov-dump.c (print_version): Likewise.
6212         * mips-tfile.c (main): Likewise.
6213         * mips-tdump.c (main): Likewise.
6215 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
6217         PR target/41885
6218         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
6219         (rotlhi3): Delete.
6220         (rotlhi3_8): Delete.
6221         (rotlsi3): Delete.
6222         (rotlsi3_8): Delete.
6223         (rotlsi3_16): Delete.
6224         (rotlsi3_24): Delete.
6225         (rotl<mode>3): New.
6226         (*rotw<mode>3): New.
6227         (*rotb<mode>3): New.
6228         * config/avr/avr.c (avr_rotate_bytes): New function.
6229         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
6231 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
6233         PR target/37454
6234         * configure.ac: Modify -rdynamic check.
6235         * configure: Regenerate.
6237 2010-01-08  DJ Delorie  <dj@redhat.com>
6239         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
6240         register popping order.
6242 2010-01-08  Richard Guenther  <rguenther@suse.de>
6244         PR lto/42528
6245         * c.opt (fsigned-char): Also let LTO handle this option.
6246         (funsigned-char): Likewise.
6248 2010-01-07  Richard Guenther  <rguenther@suse.de>
6250         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
6251         (gimple_op): Likewise.
6252         (gimple_op_ptr): Likewise.
6253         (gimple_assign_set_lhs): Remove gcc_assert.
6254         (gimple_assign_set_rhs1): Likewise.
6255         (gimple_assign_set_rhs2): Likewise.
6256         (gimple_call_set_lhs): Likewise.
6257         (gimple_call_set_fn): Likewise.
6258         (gimple_call_set_fndecl): Likewise.
6259         (gimple_call_fndecl): Likewise.
6260         (gimple_call_return_type): Likewise.
6261         (gimple_call_set_chain): Likewise.
6262         (gimple_call_num_args): Likewise.
6263         (gimple_call_set_arg): Likewise.
6264         (gimple_cond_set_code): Likewise.
6265         (gimple_cond_set_lhs): Likewise.
6266         (gimple_cond_set_rhs): Likewise.
6267         (gimple_cond_set_true_label): Likewise.
6268         (gimple_cond_set_false_label): Likewise.
6269         (gimple_label_set_label): Likewise.
6270         (gimple_goto_set_dest): Likewise.
6271         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
6272         (gimple_debug_bind_get_value): Likewise.
6273         (gimple_debug_bind_get_value_ptr): Likewise.
6274         (gimple_debug_bind_set_var): Likewise.
6275         (gimple_debug_bind_set_value): Likewise.
6276         (gimple_debug_bind_reset_value): Likewise.
6277         (gimple_debug_bind_has_value_p): Likewise.
6278         (gimple_return_retval_ptr): Remove gcc_assert.
6279         (gimple_return_retval): Likewise.
6280         (gimple_return_set_retval): Likewise.
6281         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
6282         (safe_referenced_var_iterator): Remove.
6283         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
6284         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
6285         (fill_referenced_var_vec): Remove.
6286         (first_readonly_imm_use): Remove redundant gcc_assert.
6287         (phi_arg_index_from_use): Combine gcc_asserts.
6288         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
6289         (first_imm_use_stmt): Remove redundant gcc_assert.
6290         * tree-cfg.c (verify_gimple_call): Verify function and chain
6291         operands.  Verify arguments.
6292         (verify_types_in_gimple_stmt): Verify condition code and labels.
6294 2010-01-07  Richard Guenther  <rguenther@suse.de>
6296         PR tree-optimization/42641
6297         * sese.c (rename_map_elt_info): Use the SSA name version, do
6298         not hash pointers.
6300 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
6302         PR tree-optimization/42625
6303         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
6304         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
6306 2010-01-07  Duncan Sands  <baldrick@free.fr>
6308         * Makefile.in (PLUGIN_HEADERS): Add version.h.
6310 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
6312         PR target/42511
6313         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
6314         note itself is not function_invariant_p.
6316 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
6318         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
6319         Do not add the DF_NOTE problem.
6320         * store-motion.c (execute_rtl_store_motion): Likewise.
6322 2010-01-07  Martin Jambor  <mjambor@suse.cz>
6324         PR tree-optimization/42157
6325         * tree-sra.c (compare_access_positions): Stabilize sort if both
6326         accesses have integer types, return zero immediately if they are the
6327         same.
6329 2010-01-06  Richard Henderson  <rth@redhat.com>
6331         PR middle-end/41883
6332         * haifa-sched.c (add_to_note_list): Merge into ...
6333         (concat_note_lists): ... here, and ...
6334         (unlink_other_notes, rm_other_notes): Merge into...
6335         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
6336         NOTE_INSN_EPILOGUE_BEG.
6338 2010-01-06  Richard Guenther  <rguenther@suse.de>
6340         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
6341         not inline regular functions into always-inline functions.
6343 2010-01-06  Nick Clifton  <nickc@redhat.com>
6345         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
6346         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
6347         used together.
6348         (OVERRIDE_OPTIONS): Delete.
6349         (OPTIMIZATION_OPTIONS): Define.
6350         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
6351         * config/rx/rx.c (rx_handle_option): Issue an error message if
6352         -mcpu=rx200 and -fpu are used together.
6353         (rx_set_optimization_options): New function.  Issue an error
6354         message if an optimization attribute attempts to reset the FPU/
6355         math optimization pairing.
6356         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
6357         * config/rx/rx.opt: Set the default to 32-bit doubles.
6358         * config/rx/t-rx: Add multilibs for -nofpu option.
6359         * doc/invoke.texi: Update documentation of RX options.
6361 2010-01-06  Richard Guenther  <rguenther@suse.de>
6363         * tree-ssa-pre.c (name_to_id): New global.
6364         (alloc_expression_id): Simplify SSA name handling.
6365         (lookup_expression_id): Likewise.
6366         (init_pre): Zero name_to_id.
6367         (fini_pre): Free it.
6369 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
6371         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
6373 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
6375         PR target/42542
6376         * config/i386/sse.md (smaxv2di3): New.
6377         (umaxv2di3): Likewise.
6378         (sminv2di3): Likewise.
6379         (uminv2di3): Likewise.
6381 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
6383         PR target/42564
6384         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
6385         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
6386         (legitimize_tls_address): Likewise.
6387         (sparc_tls_referenced_p): Likewise.
6388         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
6389         and adjust calls to legitimize_pic_address.
6390         (legitimate_constant_p) Use sparc_tls_referenced_p.
6391         (legitimate_pic_operand_p): Likewise.
6392         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
6393         (sparc_tls_symbol_ref_1): Delete.
6394         (sparc_tls_referenced_p): Make static, recognize specific patterns.
6395         (legitimize_tls_address): Make static, handle CONST patterns.
6396         (legitimize_pic_address): Make static, remove unused parameter and
6397         adjust recursive calls.
6398         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
6399         and adjust call to legitimize_pic_address.
6400         (sparc_output_mi_thunk): Likewise.
6402 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
6403             H.J. Lu  <hongjiu.lu@intel.com>
6405         PR target/42542
6406         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
6407         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
6408         operands to make them signed.
6410         Revert:
6411         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
6413         PR target/42542
6414         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
6415         GTU to GT for V4SI and V2DI.
6417         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
6418         (umin<mode>3): Removed.
6419         (uminv8hi3): New.
6420         (uminv4si3): Likewise.
6422 2010-01-05  Martin Jambor  <mjambor@suse.cz>
6424         PR tree-optimization/42462
6425         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
6426         current_function_decl to helper functions and macros.
6428 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6430         PR bootstrap/41771
6431         * flags.h: Don't include real.h.
6432         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
6433         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
6434         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
6435         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
6436         * dominance.c: Update copyright.
6437         * gimple.c (walk_gimple_op): Remove inline.
6438         * tree-ssa-reassoc.c: Include real.h.
6439         * Makefile.in (FLAGS_H): Remove $(REAL_H).
6440         (tree-ssa-reassoc.o): Depend on $(REAL_H).
6442 2010-01-05  Nick Clifton  <nickc@redhat.com>
6444         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
6445         register to push into the stack frame when the accumulator has to
6446         be saved during interrupts.
6448 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
6450         * doc/invoke.texi: Remove the documentation about option
6451         -Wunreachable-code.
6452         * common.opt (Wunreachable-code):  Preserved for backward
6453         compatibility.
6454         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
6455         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
6456         the backward compatibility flag section.
6458 2010-01-05  Richard Guenther  <rguenther@suse.de>
6460         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
6462 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
6464         PR other/42611
6465         * cfgexpand.c (expand_one_var): Diagnose too large variables.
6467         PR tree-optimization/42508
6468         * tree-sra.c (convert_callers): Check for recursive call
6469         by comparing cgraph nodes instead of decls.
6470         (modify_function): Call ipa_modify_formal_parameters also
6471         on all same_body aliases.
6473         * cgraphunit.c (cgraph_materialize_all_clones): Compare
6474         cgraph nodes when checking for same_body aliases.
6476 2010-01-05  Richard Guenther  <rguenther@suse.de>
6478         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
6479         allocation and lookup.
6480         (get_or_alloc_expr_for_constant): Likewise.
6481         (phi_translate): Sink allocation.
6483 2010-01-04  Richard Guenther  <rguenther@suse.de>
6485         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
6486         a new entry only if needed.
6487         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
6488         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
6489         hashtable lookup.
6490         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
6491         the result array.
6492         (phi_translate): Handle CONSTANTs early.
6494 2010-01-04  Martin Jambor  <mjambor@suse.cz>
6496         PR tree-optimization/42398
6497         * tree-sra.c (struct access): Removed flag grp_different_types.
6498         (dump_access): Do not dump the removed flag.
6499         (sort_and_splice_var_accesses): Do not set the removed flag.
6500         (sra_modify_expr): Check for type compatibility directly.
6502 2010-01-04  Martin Jambor  <mjambor@suse.cz>
6504         PR tree-optimization/42366
6505         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
6506         edges with variable number of parameters.
6507         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
6508         flag instead of asserting it.
6509         (ipa_read_node_info): Read uses_analysis_done flag.
6511 2010-01-04  Richard Guenther  <rguenther@suse.de>
6513         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
6514         iterative_hash_* as intended.
6515         (vn_reference_compute_hash): Likewise.  Simplify hashing
6516         SSA names.
6517         (vn_reference_lookup_2): Likewise.
6518         (vn_nary_op_compute_hash): Likewise.
6519         (vn_phi_compute_hash): Likewise.
6520         (expressions_equal_p): Remove strange code.
6521         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
6522         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
6523         (bitmap_insert_into_set_1): Take value-id as parameter.
6524         (add_to_value): Pass it.
6525         (bitmap_insert_into_set): Likewise.
6526         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
6528 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
6530         PR driver/42442
6531         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
6532         (do_self_spec): For switches with SWITCH_IGNORE set set also
6533         SWITCH_IGNORE_PERMANENTLY.
6534         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
6535         of SWITCH_IGNORE.
6537 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
6539         * lto-streamer-out.c (output_unreferenced_globals): Output the full
6540         tree of an unreferenced global var.
6542 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
6544         PR target/42542
6545         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
6546         GTU to GT for V4SI and V2DI.
6548         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
6549         (umin<mode>3): Removed.
6550         (uminv8hi3): New.
6551         (uminv4si3): Likewise.
6553 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
6555         PR lto/42581
6556         * collect2.c (main): Turn on trace in collect2 if -v is passed
6557         to gcc with LTO.
6559 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
6561         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
6562         description of expression operand.
6564 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
6566         * configure.ac: Add install-html to target_list for Make-hooks.
6567         * configure: Regenerate.
6568         * fortran/Make-lang.in (F95_HTMLFILES): New.
6569         (fortran.html): Use it.
6570         (fortran.install-html): New.
6571         * Makefile.in (install-html): Add lang.install-html.
6572         * java/Make-lang.in (JAVA_HTMLFILES): New.
6573         (java.html): Use it.
6574         (java.install-html): New.
6575         * objc/Make-lang.in (objc.install-html): New.
6576         * objcp/Make-lang.in (obj-c++.install-html): New.
6577         * cp/Make-lang.in (c++.install-html): New.
6578         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
6579         * lto/Make-lang.in (lto.install-html): New.
6581 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
6583         PR lto/42520
6584         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
6586 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
6588         PR rtl-optimization/41862
6589         * store-motion.c (store_killed_in_insn, compute_store_table,
6590         remove_reachable_equiv_notes, replace_store_insn,
6591         build_store_vectors): Ignore all DEBUG_INSNs.
6593 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
6595         PR lto/41564
6596         * common.opt: Add dumpdir.
6598         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
6599         isn't specified.
6600         (option_map): Add --dumpdir.
6602         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
6604         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
6606         * opts.c (decode_options): Try dump_dir_name first if
6607         dump_base_name isn't an absolute path.
6608         (common_handle_option): Handle OPT_dumpdir.
6610         * toplev.c (dump_dir_name): New.
6611         (print_switch_values): Also ignore -dumpdir.
6613         * toplev.h (dump_dir_name): New.
6615 2010-01-03  Richard Guenther  <rguenther@suse.de>
6617         PR tree-optimization/42589
6618         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
6619         double-word expansion of bswap32.
6621 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
6623         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
6624         with BLOCK_FOR_INSN.
6625         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
6626         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
6627         noce_process_if_block): Likewise.
6628         * gcse.c (compute_local_properties, insert_expr_in_table,
6629         insert_set_in_table, canon_list_insert, find_avail_set,
6630         pre_insert_copy_insn): Likewise.
6632         * basic-block.h (BLOCK_NUM): Move from here...
6633         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
6635 2010-01-03  Richard Guenther  <rguenther@suse.de>
6637         PR tree-optimization/42438
6638         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
6639         contains_may_not_return_call flag.
6640         (BB_MAY_NOTRETURN): New.
6641         (valid_in_sets): Trapping nary operations are not valid
6642         in blocks that may not return.
6643         (insert_into_preds_of_block): Remove check for trapping expressions.
6644         (compute_avail): Compute also BB_MAY_NOTRETURN.
6646 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
6648         * doc/invoke.texi: Add 2010 to copyright years.
6650 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
6652         * config/sparc/sparc.c: Fix formatting nits.
6654 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
6655             Alexander Monakov  <amonakov@ispras.ru>
6657         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
6659 2010-01-02  Richard Guenther  <rguenther@suse.de>
6661         PR middle-end/42577
6662         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
6663         (simplify_switch_using_ranges): Mark to be removed edges
6664         as non-executable.
6666 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6668         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
6670         * collect2.c (scan_libraries): Add missing argument in call to
6671         scan_prog_file.
6673 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
6675         PR target/42448
6676         * config/alpha/predicates.md (aligned_memory_operand): Return false
6677         for CQImode.
6678         (unaligned_memory_operand): Return true for CQImode.
6679         * config/alpha/alpha.c (get_aligned_mem): Assert that location
6680         doesn not cross aligned SImode word boundary.
6682 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
6684         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
6685         Remove.
6686         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
6687         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
6689 2010-01-02  Richard Guenther  <rguenther@suse.de>
6691         PR lto/41597
6692         * toplev.c (compile_file): Emit LTO marker properly.  Change
6693         it to __gnu_lto_v1.
6694         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
6696 2010-01-01  Richard Guenther  <rguenther@suse.de>
6698         PR debug/42455
6699         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
6701 2010-01-01  Richard Guenther  <rguenther@suse.de>
6703         PR c/42570
6704         * c-decl.c (grokdeclarator): For zero-size arrays force
6705         structural equality checks as layout_type does.
6707 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
6709         * builtins.c: Update copyright to 2010.
6711 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
6713         PR lto/42531
6714         * lto-streamer-out.c (produce_asm): Revert the last change.
6715         (copy_function): Likewise.
6717         * lto-streamer.c (lto_get_section_name): Skip any leading
6718         asterisk in name.
6720 2010-01-01  Richard Guenther  <rguenther@suse.de>
6722         PR middle-end/42559
6723         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
6724         for LABEL_DECLs.
6727 Copyright (C) 2010 Free Software Foundation, Inc.
6729 Copying and distribution of this file, with or without modification,
6730 are permitted in any medium without royalty provided the copyright
6731 notice and this notice are preserved.