Improve address offset range computation
[official-gcc.git] / gcc / ChangeLog
blob5773fc3c7f93e1341c06110f7dee30791160f913
1 2010-08-10  Xinliang David Li  <davidxl@google.com>
3         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
4         compute max/min offset in address.
6 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
8         * ira-live.c: Include sbitmap.h.
9         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
10         Compress live ranges even more.
12 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
14         * coverage.c (ctr_labels): Delete.
16 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
18         PR bootstrap/45177
19         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
20         test here from arm_gen_load_multiple_1.
21         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
22         multiple_operation_profitable_p.
24 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
26         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
27         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
29 2010-08-10  Richard Henderson  <rth@redhat.com>
31         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
32         after saving registers.  Assert that SSE registers are only saved
33         with a sufficiently aligned frame.
34         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
35         remove stack_realign_fp handling.
36         (ix86_expand_prologue): Save int registers before stack_realign_fp,
37         and do not mark the stack alignment as frame related.
38         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
40         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
41         saves when re-aligning the stack.
43 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
45         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
46         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
47         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
49 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
51         * dwarf2out.c (struct die_struct): Move die_tag to the end.
53 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
55         * config/arm/iterators.md: New file.
56         * config/arm/arm.md: Include iterators.md.
57         (QHSI): Move to new file.
58         (LTUGEU, cnb, optab, ior_xor): Likewise.
59         * config/arm/iwmmxt.md (VMMX): Move to new file.
60         (VSHFT, MMX_char): Likewise.
61         * config/arm/neon.md (VD): Move to new file.
62         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
63         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
64         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
65         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
66         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
67         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
68         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
69         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
70         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
71         (Is_d_reg, V_mode_nunits): Likewise.
72         * config/arm/vec-common.md (VALL): Move to new file.
73         (VALLW, VINT, VINTW): Likewise.
75 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
77         PR middle-end/45182
78         * combine.c (make_compound_operation): Don't try to convert
79         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
81 2010-08-10  Richard Guenther  <rguenther@suse.de>
83         * tree.h (get_object_alignment): Adjust prototype.
84         * builtins.c (get_object_alignment): Return unsigned int,
85         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
86         and TARGET_MEM_REF properly.
87         (get_pointer_alignment): Adjust.
88         * emit-rtl.c (get_mem_align_offset): Adjust comment.
89         (set_mem_attributes_minus_bitpos): Adjust.
90         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
92 2010-08-10  Richard Guenther  <rguenther@suse.de>
94         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
95         (copy_prop_visit_assignment): Simplify.
96         (copy_prop_visit_stmt): Also visit assignments from
97         constants.
98         (copy_prop_visit_phi_node): Use operand_equal_p.
100 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
102         * ipa-split.c (find_split_points): Free stack.
104 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
106         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
107         * tree.c (tree_node_kind): Delete corresponding entries.
109 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
111         * alias.c (may_alias_p): Remove unused ret.
113 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
115         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
116         alias_sets_conflict_p.
117         (walk_mems_1): Moved from alias.c.
118         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
119         in alias.c. 
120         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
121         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
122         * alias.c (walk_mems_2): Moved to ddg.c.
123         (walk_mems_1): Ditto.
124         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
125         to ddg.c.
126         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
127         disambiguation.
128         *(may_alias_p): New function to check whether two memory expression
129         may alias or not. Currently used in buidling inter-iteration memory
130         dependence.
131         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
132         (insn_alias_sets_conflict_p): Removed
133         *rtl.h (may_alias_p): New function prototype.
134         
135 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
137         * tree.c (nreverse): Assert that we don't have a BLOCK.
139 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
141         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
142         * config/arm/arm.c (arm_get_pcs_model): Likewise.
143         * config/avr/avr.c (init_cumulative_args): Likewise.
144         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
145         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
146         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
147         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
148         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
149         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
150         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
151         * dwarf2out.c (gen_subprogram_die): Likewise.
152         * function.c (allocate_struct_function): Likewise.
153         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
154         (deserves_ellipsis): Delete.
156 2010-08-09  Richard Guenther  <rguenther@suse.de>
158         * tree-ssa-copy.c (cached_last_copy_of): Remove.
159         (valueize_val): New function.
160         (get_last_copy_of): Remove.
161         (set_copy_of_val): Simplify.
162         (dump_copy_of): Likewise.
163         (copy_prop_visit_cond_stmt): Use valueize_val.
164         (copy_prop_visit_phi_node): Properly handle unvisited names.
165         Drop code managing copy-of chains.
166         (init_copy_prop): Adjust.
167         (fini_copy_prop): Likewise.
168         (execute_copy_prop): Remove obsolete comment.
170 2010-08-09  Richard Guenther  <rguenther@suse.de>
172         PR middle-end/44632
173         * function.c (gimplify_parameters): Do not clear addressable
174         bit of the original parameter.
176 2010-08-09  Richard Guenther  <rguenther@suse.de>
178         PR middle-end/45212
179         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
180         alignment from MEM_REF offset only if we took it from the
181         base object.
183 2010-08-09  Eric Fisher <joefoxreal@gmail.com>
185         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
187 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
189         * c-tree.h (build_arg_info): Declare.
190         * c-decl.c (build_arg_info): Define.
191         (get_parm_info): Call it.  Delete initialization code.
192         * c-parser.c (c_parser_parms_declarator): Likewise.
193         (c_parser_parms_list_declaractor): Likewise.
195 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
197         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
198         (struct c_arg_info): Change type of tags field.
199         * c-decl.c (grokdeclarator): Update for changed type of tags field.
200         (get_parm_info): Likewise.
201         (store_parm_decls_newstyle): Likewise.
203 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
205         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
206         (branch_island_list): Delete.
207         (branch_islands): Declare.
208         (add_compiler_branch_island): Adjust for branch_islands instead of
209         branch_island_list.
210         (macho_branch_islands): Likewise.
211         (no_previous_def): Likewise.
212         (get_prev_label): Likewise.
214 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
216         PR boehm-gc/34544
217         * gthr-posix.h (__gthread_start): Delete.
218         (__gthread_active_init): Use pthread_default_stacksize_np instead of
219         pthread_create to determine if hpux pthreads are active.
220         * gthr-posix95.h (__gthread_start): Delete.
221         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
223 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
225         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
226         _WIN64 not expanded.
228 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
229             H.J. Lu  <hongjiu.lu@intel.com>
231         PR target/45213
232         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
233         to output 32bit SFmode immediate as 8 byte sign extended value.
235 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
237         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
238         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
239         (SUBWORD_BOOL_CAS): Likewise.
240         (SUBWORD_SYNC_OP): Likewise.
241         (SUBWORD_TEST_AND_SET): Likewise.
242         (FETCH_AND_OP_WORD): Parenthesise INF_OP
243         (SUBWORD_SYNC_OP): Likewise.
244         (OP_AND_FETCH_WORD): Likewise.
246 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
248         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
249         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
250         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
251         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
252         generic part.
253         (cortex_a9_sched_adjust_cost): New function.
254         (xscale_sched_adjust_cost): New function.
255         * config/arm/arm-protos.h (struct tune_params): New field
256         sched_adjust_cost.
257         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
259 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
261         PR target/44942
262         * config/sparc/sparc.c (function_arg_advance): Always take into account
263         the padding, if any.
265 2010-08-06  Richard Guenther  <rguenther@suse.de>
267         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
268         (dump_lattice_value): Dump it.
269         (get_default_value): Adjust.
270         (get_constant_value): Likewise.
271         (set_value_varying): Likewise.
272         (set_lattice_value): Make sure to not go up the lattice
273         with bitwise constant values.
274         (get_value_for_expr): Handle ADDR_EXPRs.
275         (value_to_double_int): New function.
276         (get_value_from_alignment): Likewise.
277         (do_dbg_cnt): Adjust.
278         (ccp_lattice_meet): Handle partially constant values.
279         (bit_value_unop_1): New function.
280         (bit_value_binop_1): Likewise.
281         (bit_value_unop): Likewise.
282         (bit_value_binop): Likewise.
283         (evaluate_stmt): Track partially constant values if
284         flag_tree_bit_ccp is set.
285         (ccp_fold_stmt): Dump if we folded a predicate.
286         (ccp_visit_stmt): Adjust.
287         * common.opt (ftree-bit-ccp): New flag.
288         * doc/invoke.texi (ftree-bit-ccp): Document.
289         * opts.c (decode_options): Enable bit-CCP at -O1.
291 2010-08-06  Alan Modra  <amodra@gmail.com>
293         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
294         and -mrelocatable-lib description.
296 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
298         From Martin Thuresson  <martint@google.com>
299         * postreload.c (reload_cse_simplify_operands): Use
300         SET_REGNO_RAW instead of SET_REGNO.
301         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
302         SET_REGNO.
303         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
304         instead of SET_REGNO.
305         * rtl.h (SET_REGNO_RAW): New macro.
307 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
309         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
310         computations.  Fix formatting issues.
311         (num_sign_bit_copies1): Likewise.
312         (canonicalize_condition): Likewise.
314 2010-08-05  Richard Henderson  <rth@redhat.com>
316         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
317         (floor_log2): Use clz_hwi.
318         (exact_log2): Use ctz_hwi.
319         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
320         * builtins.c (fold_builtin_bitop): Use them.
321         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
322         * combine.c (get_pos_from_mask): Use ctz_hwi.
323         * double-int.c (double_int_ctz): Likewise.
324         * explow.c (force_reg): Likewise.
325         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
327 2010-08-05  Richard Henderson  <rth@redhat.com>
329         PR target/45189
330         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
331         the alignment constant is properly sign-extended.
333 2010-08-05  Richard Guenther  <rguenther@suse.de>
335         * expr.c (store_expr): Use emit_block_move only if both
336         source and target are MEMs.  Use store_bit_field if only
337         the target is a MEM.
339 2010-08-05  Richard Henderson  <rth@redhat.com>
341         PR debug/45188
342         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
343         (INCOMING_RETURN_ADDR_RTX): Likewise.
344         (dwarf2out_do_frame): Remove conditional compilation.
345         (dwarf2out_frame_init): Likewise.
347 2010-08-05  Nicolas Setton  <setton@adacore.com>
349         * gcov.c (flag_display_progress): New static variable.
350         (main): Display progress info on standard output if requested.
351         (options): Add -d/--display-progress.
352         (print_usage): Print them.
353         (process_args): Handle them.
354         * doc/gcov.texi: Document them.
356 2010-08-05  Martin Jambor  <mjambor@suse.cz>
358         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
359         (ipcp_insert_stage): Redirect only edges not flagged with
360         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
361         discovered constants.
363 2010-08-05  Martin Jambor  <mjambor@suse.cz>
365         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
366         (struct ipa_param_descriptor): New fields types and
367         cannot_devirtualize.
368         (ipa_param_cannot_devirtualize_p): New function.
369         (ipa_param_types_vec_empty): Likewise.
370         (ipa_make_edge_direct_to_target): Declare.
371         * ipa-cp.c: Fixed first stage driver name in initial comment,
372         described devirtualization there too.
373         (ipcp_analyze_node): Call ipa_analyze_params_uses.
374         (ipcp_print_all_lattices): Print devirtualization info.
375         (ipa_set_param_cannot_devirtualize): New function.
376         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
377         lattice to BOTTOM.
378         (ipcp_init_stage): Merged into...
379         (ipcp_generate_summary): ...its caller.
380         (ipcp_change_tops_to_bottom): Also process type lists.
381         (ipcp_add_param_type): New function.
382         (ipcp_copy_types): Likewise.
383         (ipcp_propagate_types): Likewise.
384         (ipcp_propagate_stage): Also propagate types.
385         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
386         Also return true if propagated types require it.
387         (ipcp_update_callgraph): Dump redirection info.
388         (ipcp_process_devirtualization_opportunities): New function.
389         (ipcp_const_param_count): Include known type information.
390         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
391         on new node.  Fixed formatting.
392         * ipa-prop.c (make_edge_direct_to_target): Renamed to
393         ipa_make_edge_direct_to_target and changed all callers.  Made
394         externally visible.
395         (ipa_node_duplication_hook): Duplicate types vector.
396         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
397         redirect outgoing calls for which we can't get a decl from the
398         statement.  Check that we can get a decl from the call statement.
399         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
400         ipa_analyze_params_uses only when ipa-cp is disabled.
401         * tree-inline.c (get_indirect_callee_fndecl): Removed.
402         (expand_call_inline): Do not call get_indirect_callee_fndecl.
403         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
404         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
406 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
408         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
409         temporary. Emit move from temporary to accum, so REG_EQUAL note will
410         be attached to this insn in correct mode.
412 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
414         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
415         using REGNO of base_reg directly.
417 2010-08-05  Jie Zhang  <jie@codesourcery.com>
419         PR tree-optimization/45144
420         * tree-sra.c (type_consists_of_records_p): Return false
421         if the record contains bit-field.
423 2010-08-04  Richard Henderson  <rth@redhat.com>
425         * config/i386/i386.c (struct ix86_frame): Remove padding and
426         to_allocate members.
427         (ix86_compute_frame_layout): Don't store them.
428         (ix86_can_use_return_insn_p): Use a more direct and more obviously
429         correct condition for the position of the stack pointer.
430         (ix86_expand_prologue): Compute remaining stack allocation based
431         on the ultimate stack pointer offset.
432         (ix86_expand_epilogue): Use more obvious expressions testing for
433         the stack pointer already pointing to the saved registers.
435         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
436         duplication deconstructing the frame pointer.  Simplify
437         deallocation of the local stack frame.
439         * reg-notes.def (CFA_EXPRESSION): New.
440         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
441         (dwarf2out_frame_debug_cfa_expression): New.
442         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
444         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
445         * config/i386/i386.c (ix86_expand_prologue): Set it.
446         (ix86_expand_epilogue): Clear it.
447         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
448         context, add REG_CFA_EXPRESSION notes.
450         * config/i386/i386.h (struct machine_frame_state): Rename from
451         machine_cfa_state.  Add members tracking SP and FP regardless
452         of the current CFA register.
453         (ix86_cfa_state): Remove.
454         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
455         and sse_reg_save_offset members.
456         (ix86_compute_frame_layout): Set them.
457         (gen_push): Increment sp_offset too.
458         (choose_baseaddr_len, choose_baseaddr): New.
459         (ix86_emit_save_reg_using_mov): New.
460         (ix86_emit_save_regs_using_mov): Use it.
461         (ix86_emit_save_sse_regs_using_mov): Likewise.
462         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
463         compare vs the saved red_zone_offset.
464         (pro_epilogue_adjust_stack): Adjust sp_offset.
465         (ix86_adjust_stack_and_probe): Likewise.
466         (ix86_expand_prologue): Set up, use, and validate the new
467         frame_state_info members.  Use gen_frame_mem.
468         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
469         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
470         new frame_state_info members.
471         (ix86_emit_leave): Likewise.
472         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
473         out-of-range stack pointer offsets here.
474         (ix86_emit_restore_sse_regs_using_mov): Likewise.
475         (ix86_expand_epilogue): Use and validate the new frame_state_info
476         members.  Break up and simplify the logic selecting the
477         restore_regs_via_mov code path.  Ensure that there will be no
478         out-of-range stack pointer offsets.
480         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
482         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
483         argument name to reflect the expected tree; fix indentation.
484         (ix86_asm_output_function_label): Output the entire 32-bit
485         ms_hook here as bytes ...
486         (ix86_expand_prologue): ... not here as insns.  Attach the
487         unwind info for the ms_hook to a blockage insn.
488         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
489         (ix86_ms_bitfield_layout_p): Fix indentation.
490         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
492         * config/i386/i386.c (ix86_using_red_zone): New.
493         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
494         ix86_expand_prologue, ix86_force_to_memory): Use it.
496         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
497         saving the int registers.
499         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
500         and DWARF2_UNWIND_INFO conditional compilation.
502 2010-08-04  Richard Henderson  <rth@redhat.com>
504         PR debug/45171
505         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
506         an is_naming_typedef_decl.
508 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
510         PR rtl-optimization/45162
511         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
512         * dce.c (word_dce_process_block): Likewise.
514 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
516         PR target/44583
517         * config/ia64/constraints.md (Z): New.
518         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
519         (xfreg_or_signed_fp01_operand): New.
520         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
521         with fr_reg_or_signed_fp01_operand and constraint G with Z.
522         (subsf3): Ditto.
523         (*maddsf4): Ditto.
524         (*msubsf4): Ditto.
525         (adddf3): Ditto.
526         (adddf3_trunc): Ditto.
527         (subdf3): Ditto.
528         (*subdf3_trunc): Ditto.
529         (*madddf4): Ditto.
530         (*madddf4_trunc): Ditto.
531         (*msubdf4): Ditto.
532         (*msubdf4_trunc): Ditto.
533         (addxf3): Replace xfreg_or_fp01_operand with
534         xfreg_or_signed_fp01_operand and constraint G with Z.
535         (*addxf3_truncsf): Ditto.
536         (*addxf3_truncdf): Ditto.
537         (subxf3): Ditto.
538         (*subxf3_truncsf): Ditto.
539         (*subxf3_truncdf): Ditto.
540         (*maddxf4): Ditto.
541         (*maddxf4_truncsf): Ditto.
542         (*maddxf4_truncdf): Ditto.
543         (*msubxf4): Ditto.
544         (*msubxf4_truncsf): Ditto.
545         (*msubxf4_truncdf): Ditto.
547 2010-08-04  Richard Guenther  <rguenther@suse.de>
549         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
550         if either alias-set is zero.
552 2010-08-04  Richard Guenther  <rguenther@suse.de>
554         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
555         * tree-ssa-ccp.c: ... here.
556         * tree-ssa-copy.c: ... and here.
557         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
558         value_range_t): Move ...
559         * tree-vrp.c: ... here.
560         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
561         (substitute_and_fold): Adjust prototype.
562         * tree-ssa-propagate.c (replace_uses_in): Adjust.
563         (replace_phi_args_in): Likewise.
564         (substitute_and_fold): Take callback to query lattice instead
565         of pointer to lattice.  Replace SSA name defs with lattice
566         values first.
567         * tree-ssa-ccp.c (ccp_finalize): Adjust.
568         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
569         (get_value): New function.
570         (fini_copy_prop): Adjust.
571         * tree-vrp.c (vrp_finalize): Adjust.
573 2010-08-04  Richard Guenther  <rguenther@suse.de>
575         PR middle-end/45176
576         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
577         points-to set for original MEM_REF.
579 2010-08-04  Richard Guenther  <rguenther@suse.de>
581         * tree-ssa-ccp.c (get_constant_value): New function.
582         (get_rhs_assign_op_for_ccp): Remove.
583         (valueize_op): New function.
584         (ccp_fold): Use get_constant_value and valueize_op.
585         (fold_const_aggregate_ref): Likewise.
586         (ccp_fold_stmt): Likewise.
587         (visit_assignment): Simplify.
589 2010-08-04  Richard Guenther  <rguenther@suse.de>
591         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
592         * double-int.h (double_int_ctz): Declare.
593         * double-int.c (double_int_ctz): New function.
595 2010-08-04  Hariharan Sandanagobalane <hariharan@picochip.com>
597         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
598         Define.
599         picochip_expand_movmemhi : Expand movmem pattern.
600         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
601         Declare.
602         * config/picochip/picochip.md (movmemhi) : New pattern.
604 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
606         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
608 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
610         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
611         NEG as operand of a MULT by merging it with the other operand.
612         * combine.c (make_compound_operation): Use trunc_int_for_mode when
613         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
614         MULT.
615         * config/arm/constraints.md (M): Examine only 32 bits of a
616         HOST_WIDE_INT.
617         * config/arm/predicates.md (power_of_two_operand): Likewise.
619 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
621         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
622         non-NOTE insns.
624 2010-08-03  Jan Hubicka  <jh@suse.cz>
626         * ipa-split.c (struct split_point): Add split_part_set_retval.
627         (find_retval): Forward declare.
628         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
629         (consider_split): Compute current->split_part_set_retval.
630         (visit_bb): Do not look into return value.
631         (split_function): Handle !split_part_set_retval
633 2010-08-03  Martin Jambor  <mjambor@suse.cz>
635         * tree-sra.c (completely_scalarize_record): New parameter REF, create
636         its own access->expr intead of using build_ref_for_offset.
638 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
640         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
641         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
642         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
643         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
644         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
645         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
646         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
647         DEFAULT_SWITCH_TAKES_ARG.
648         * config/rx/rx.opt (-patch=): Remove option.
649         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
650         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
651         * doc/invoke.texi (RX Options): Remove -patch=.
652         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
653         (option_map): Remove --profile-blocks, --quiet and --silent.
655 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
657         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
658         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
659         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
660         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
661         Update calls to ix86_expand_compare and ix86_expand_branch.
662         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
663         ix86_expand_compare.
664         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
665         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
666         Make static.
667         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
668         and ix86_compare_op1.  Update calls to ix86_expand_compare.
669         (ix86_expand_int_movcc): Ditto.
670         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
671         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
672         (ix86_expand_setcc): Ditto.
673         (ix86_expand_compare): Remove prototype.
674         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
675         ix86_compare_op0 and ix86_compare_op1.  Update calls
676         to ix86_expand_branch to directly pass operands[1] and operands[2].
677         (cbranchxf4): Ditto.
678         (cbranch<MODEF:mode>4): Ditto.
679         (cbranchcc4): Ditto.
680         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
681         Update calls to ix86_expand_setcc to directly pass operands[2] and
682         operands[3].
683         (cstorexf4): Ditto.
684         (cstore<MODEF:mode>4): Ditto.
685         (cstorecc4): Ditto.
687 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
689         PR target/45063
690         * caller-save.c (save_call_clobbered_regs): Remove regs from
691         hard_regs_saved when they are set.
693 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
695         PR target/41089
696         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
697         as volatile.
699 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
701         * common.opt (ftree-loop-distribute-patterns): New.
702         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
703         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
704         at -O3.
705         * tree-data-ref.c (stores_zero_from_loop): New.
706         * tree-data-ref.h (stores_zero_from_loop): Declared.
707         * tree-loop-distribution.c (tree_loop_distribution): Call
708         stores_zero_from_loop.
709         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
711 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
713         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
714         into account.
716         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
717         * config/arm/arm.c (thumb1_code): New variable.
718         (arm_override_options): Set it.
719         (thumb1_final_prescan_insn): Keep track of condition code status.
720         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
721         jumps that depend on them.
722         * config/arm/arm.h (thumb1_code): Declare variable.
723         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
724         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
725         thumb1_cc_mode.
726         (CC_STATUS_INIT): New macro.
727         * config/arm/constraints.md (Pd): New constraint.
728         * config/arm/predicates.md (noov_comparison_operator): New predicate.
729         * config/arm/arm.md (is_thumb1): New define_attr.
730         (conds): Set default to "clob" when generating Thumb1 code.
731         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
732         code are set.  Use two-operand assembly syntax.
733         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
734         pattern.
735         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
736         codes are set.  Use two-operand assembly syntax.
737         (zero_extendhisi splitter): Remove constraints.
738         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
739         thumb1_movsf_insn): Set conds attribute as appropriate.
740         (cbranchsi4_insn): Use condition code status from struct
741         machine_function to determine whether the comparison can be eliminated.
742         Discourage the alternative using high registers.
743         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
744         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
745         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
746         subsi3_cbranch): Delete.
747         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
748         one subtract and one cbranch insn.
750         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
751         thumb2_movdf_soft_insn): Delete patterns.
752         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
753         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
754         (pool_range, neg_pool_range): Use them to define defaults.
755         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
756         and allow for TARGET_32BIT.
758         PR target/40457
759         * config/arm/arm.h (arm_regs_in_sequence): Declare.
760         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
761         load_multiple_sequence, store_multiple_sequence): Delete
762         declarations.
763         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
764         declarations.
765         * config/arm/ldmstm.md: New file.
766         * config/arm/arm.c (arm_regs_in_sequence): New array.
767         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
768         CHECK_REGS.  All callers changed.
769         If SAVED_ORDER is nonnull, copy the computed order into it.
770         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
771         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
772         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
773         If SAVED_ORDER is nonnull, copy the computed order into it.
774         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
775         like REGS.  Handle Thumb mode.
776         (arm_gen_load_multiple_1): New function, broken out of
777         arm_gen_load_multiple.
778         (arm_gen_store_multiple_1): New function, broken out of
779         arm_gen_store_multiple.
780         (arm_gen_multiple_op): New function, with code from
781         arm_gen_load_multiple and arm_gen_store_multiple moved here.
782         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
783         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
784         changed.
785         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
786         * config/arm/predicates.md (commutative_binary_operator): New.
787         (load_multiple_operation, store_multiple_operation): Handle more
788         variants of these patterns with different starting offsets.  Handle
789         Thumb-1.
790         * config/arm/arm.md: Include "ldmstm.md".
791         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
792         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
793         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
794         peepholes): Delete.
795         * config/arm/ldmstm.md: New file.
796         * config/arm/arm-ldmstm.ml: New file.
798         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
799         if statement which adds extra costs to frame-related expressions.
801 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
803         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
805 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
807         PR target/45142
808         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
809         alternative 2.
810         (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
811         split V4SI operands.
813 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
815         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
816         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
817         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
818         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
820 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
822         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
823         LOCAL_INCLUDE_DIR.
825 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
827         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
828         used in the call to optab_for_tree_code.  Fix the second
829         is_widening_mult_p call.  Check that both unwidened operands
830         have the same sign.
832 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
834         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
836 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
838         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
840 2010-07-30  DJ Delorie  <dj@redhat.com>
842         * config/rx/predicates.md (rx_constshift_operand): New.
843         * config/rx/rx.md (zs_cond): New.
844         (cbranchsi4): Remove mode.
845         (*cbranchsi4_<code>): Likewise.
846         (*tstbranchsi4_<code>): New.
847         (*tstbranchsi4r_<code>): New.
848         (*tstbranchsi4m_eq): New.
849         (*tstbranchsi4m_ne): New.
850         (cbranchsf4): Remove mode.
851         (*cbranchsf4_<code>): Likewise.
853 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
855         * rtlanal.c (simplify_subreg_regno): Don't treat
856         HARD_FRAME_POINTER_REGNUM specially.
858 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
860         * common.opt (-G): Don't define option here.
861         * config/g.opt: New.
862         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
863         rs6000/powerpc and score targets.
864         * opts.c (common_handle_option): Don't handle -G here.
865         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
866         * config/frv/frv.c (frv_handle_option): Handle -G.
867         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
868         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
869         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
870         * config/mips/mips.c (mips_handle_option): Handle -G.
871         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
872         * config/score/score.c (score_handle_option): Handle -G.
874 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
876         * config/mmix/mmix.c: Include basic-block.h.
878 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
880         PR debug/45055
881         PR rtl-optimization/45137
882         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
883         prototypes.
884         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
885         New functions.
886         * combine.c (next_nonnote_nondebug_insn): Removed.
887         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
888         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
889         * sched-deps.c (sched_analyze_insn): Likewise.
890         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
891         * rtlanal.c (canonicalize_condition): Likewise.
892         * postreload.c (reload_combine_recognize_pattern): Likewise.
893         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
895 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
897         * config/i386/i386.md (int_cond): Remove code iterator.
898         (fp_cond): Ditto.
899         (cbranch<mode>4): Use ordered_comparison_operator predicate
900         for operator0.
901         (cstore<mode>4): Ditto for operator1.
902         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
903         (add<mode>cc): ditto.
905 2010-07-30  Richard Guenther  <rguenther@suse.de>
907         PR middle-end/45141
908         * expr.c (expand_expr_real_1): Check for not handled base address.
910 2010-07-30  Richard Guenther  <rguenther@suse.de>
912         * ipa-prop.c (ipa_modify_formal_parameters): Use
913         build_distinct_type_copy.
915 2010-07-30  Anthony Green  <green@moxielogic.com>
917         * config/moxie/rtems.h: New file.
918         * config.gcc: Add moxie-rtems support.
920 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
922         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
923         df flags as in run_fast_df_dce.
925 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
927         Revert:
928         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
930         * rtl.def (NOTE): Swap operands 4 and 5.
931         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
932         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
933         Adjust accordingly.
934         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
936 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
938         PR debug/45110
939         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
940         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
941         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
942         formal parameters.
943         (gen_decl_die): Change return type to dw_die_ref, return what
944         gen_formal_parameter_die returned.
946 2010-07-29  Martin Jambor  <mjambor@suse.cz>
948         * dbgcnt.def (eipa_sra): New counter.
949         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
951 2010-07-29  Xinliang David Li  <davidxl@google.com>
953         PR bootstrap/45119
954         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
955         in revision 162652.
957 2010-07-29  Richard Guenther  <rguenther@suse.de>
959         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
960         (TV_TREE_STORE_CCP): Likewise.
961         (TV_TREE_REDPHI): Likewise.
963 2010-07-29  Richard Guenther  <rguenther@suse.de>
965         * double-int.h (double_int_and_not): New function.
966         * combine.c (try_combine): Use it.
967         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
969 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
971         PR rtl-optimization/42575
972         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
973         Argument AU removed.  All callers changed.  Ignore artificial refs.
974         Use return value of df_word_lr_simulate_defs to decide whether an insn
975         is necessary.
976         (fast_dce): Rename arg to WORD_LEVEL.
977         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
978         static.
979         (pass_fast_rtl_byte_dce): Delete.
980         * dce.h (run_word_dce): Declare.
981         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
982         All callers changed.  Simplify code to only deal with two-word regs.
983         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
984         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
985         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
986         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
987         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
988         (df_word_lr_mark_ref): Declare.
989         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
990         df_word_lr_simulate_uses): Declare or rename from byte variants.
991         (df_byte_lr_simulate_artificial_refs_at_top,
992         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
993         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
994         declarations.
995         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
996         (enum df_mm): Delete.
997         * df-byte-scan.c: Delete file.
998         * df-problems.c (df_word_lr_problem_data): Renamed from
999         df_byte_lr_problem_data, all members deleted except for
1000         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
1001         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
1002         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
1003         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
1004         df_byte_lr_confluence_0): Delete functions.
1005         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
1006         callers changed.
1007         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
1008         Don't initialize members that were deleted, don't try to discover data
1009         about registers.  Ignore hard regs.
1010         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
1011         (df_word_lr_mark_ref): New function.
1012         (df_word_lr_bb_local_compute): Renamed from
1013         df_byte_bb_lr_local_compute; all callers changed.  Use
1014         df_word_lr_mark_ref.  Assert that artificial refs don't include
1015         pseudos.  Ignore hard registers.
1016         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
1017         Assert that exit block uses don't contain pseudos.
1018         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
1019         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
1020         callers changed.  Ignore hard regs.
1021         (df_word_lr_transfer_function): Renamed from
1022         df_byte_lr_transfer_function; all callers changed.
1023         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
1024         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
1025         changed.
1026         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
1027         callers changed.
1028         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
1029         confluence operator 0 set to NULL.
1030         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
1031         callers changed.
1032         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
1033         Return bool, true if bitmap changed or insn otherwise necessary.
1034         All callers changed.  Simplify using df_word_lr_mark_ref.
1035         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
1036         all callers changed.  Simplify using df_word_lr_mark_ref.
1037         * lower-subreg.c: Include "dce.h"
1038         (decompose_multiword_subregs): Call run_word_dce if df available.
1039         * Makefile.in (lower-subreg.o): Adjust dependencies.
1040         (df-byte-scan.o): Delete.
1041         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
1043 2010-07-29  Richard Guenther  <rguenther@suse.de>
1045         * tree.c (build_vector): Assert that the vector constant
1046         has enough elements.
1047         (build_vector_from_ctor): Pad with trailing zeros.
1049 2010-07-29  Richard Guenther  <rguenther@suse.de>
1051         PR tree-optimization/45120
1052         * tree-ssa-structalias.c (get_constraint_for_component_ref):
1053         Handle offset in DEREFs properly.
1054         (get_constraint_for_1): Handle MEM_REF offset properly.
1056 2010-07-29  Richard Guenther  <rguenther@suse.de>
1058         PR middle-end/45034
1059         * convert.c (convert_to_integer): Always use an unsigned
1060         type for narrowed negate and bitwise not.
1062 2010-07-29  Ira Rosen  <irar@il.ibm.com>
1064         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
1065         to outer loop when creating reduction epilogue for double reduction,
1066         and switch back to the inner loop when updating the phi nodes.
1067         Update uses of outer loop exit phi nodes in double reduction (instead
1068         of uses of reduction).
1070 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
1072         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
1073         popcount on power7 and parity on power6 systems.
1074         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
1075         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
1076         instructions.
1078         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
1079         (UNSPEC_PARITY): Ditto.
1080         (SFDF): New iterator for SF/DF.
1081         (rreg2): New mode attribute for floating register constraint.
1082         (TARGET_FLOAT): New mode attribute for whether single/double float
1083         is supported.
1084         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
1085         pattern.
1086         (parity<mode>2_cmpb): New insn for parity on power6 and newer
1087         machines.
1088         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
1089         pattern.  Add support for fcpsgn instruction added in power6.
1090         (copysignsf3): Delete.
1091         (copysigndf3): Delete.
1092         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
1093         instead of if_then_else in RTL to avoid problems with -0.
1095         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
1096         of if_then_else to mirror scalar code.
1097         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
1098         rs6000.md.
1100         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
1101         instead of if_then_else.
1103 2010-07-28  Xinliang David Li  <davidxl@google.com>
1105         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
1106         (dump_cand): Dump var_before/after.
1107         (htab_inv_expr_eq): New function.
1108         (htab_inv_expr_hash): New function.
1109         (tree_ssa_iv_optimize_init): Support pseudo invariants.
1110         (add_candidate_1): consider base type precision.
1111         (set_use_iv_cost): New parameter.
1112         (adjust_setup_cost): Use profile information.
1113         (get_address_cost): Do not hard code width in computing address
1114         offset limits.
1115         (compare_aff_trees): New function.
1116         (get_loop_invariant_expr_id): New function.
1117         (get_computation_cost_at): New parameter and use profile information.
1118         (get_computation_cost): New parameter.
1119         (determine_use_iv_cost_generic): Pass new parameter.
1120         (determine_use_iv_cost_address): Ditto.
1121         (determine_use_iv_cost_condition): Ditto.
1122         (autoinc_possible_for_pair): Ditto.
1123         (determine_use_iv_costs): More dumps.
1124         (iv_ca_get_num_inv_exprs): New function.
1125         (iv_ca_recount_cost): Consider loop invariants in register pressure
1126         cost.
1127         (iv_ca_add_use): New parameter.
1128         (iv_ca_dump): Better dumping.
1129         (iv_ca_extend): New parameter.
1130         (try_add_cand_for): Attempt to get better partial solution.
1131         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
1132         (create_new-ivs): More dumps.
1133         (rewrite_use_compare): Ditto.
1134         (free_loop_data): More cleanup.
1135         (treee_ssa_iv_optimize_finalize): Ditto.
1137 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
1139         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
1140         * config/i386/i386.c (ix86_profile_before_prologue): New.
1141         (override_options): Add special handling for -mfentry.
1142         (ix86_function_regparm): Likewise.
1143         (ix86_function_sseregparm): Likewise.
1144         (ix86_frame_pointer_required): Likewise.
1145         (ix86_expand_prologue): Check for ms_hook_prologue.
1146         (x86_function_profiler): Adjust mcount output.
1147         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
1148         * config/i386/i386.opt (mfentry): New.
1149         * doc/invoke.texi (mfentry): Add documentation.
1150         * doc/tm.texi: Regenerated..
1151         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
1152         * final.c (final_start_function): Replace macro
1153         PROFILE_BEFORE_PROLOGUE by target hook.
1154         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1155         * target.def (profile_before_prologue): New hook.
1156         * targhooks.c (default_profile_before_prologue): New.
1157         * targhooks.h (default_profile_before_prologue): New.
1159 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
1161         PR debug/45105
1162         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
1164         PR debug/45103
1165         * dwarf2out.c (dwarf2out_var_location): Always consider
1166         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
1168 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
1170         PR rtl-optimization/45107
1171         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
1173 2010-07-28  Richard Guenther  <rguenther@suse.de>
1175         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
1176         (set_lattice_value): Do not query an old default value.
1177         (get_value_for_expr): New function.  Properly canonicalize
1178         float values.
1179         (ccp_visit_phi_node): Use it.
1181 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
1183         * config/arm/arm.c (arm_pcs_default): Remove static.
1184         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
1185         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
1186         (arm_pcs_default): Declare.
1188 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
1190         * config/rs6000/rs6000.c (rs6000_override_options):
1191         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
1192         ... to darwin_rs6000_override_options.
1193         (rs6000_return_in_memory): Update preceding comment for darwin
1194         64 bit ABI.  Use TARGET_MACHO inline.
1195         (rs6000_darwin64_struct_check_p): New.
1196         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
1197         (function_arg): Likewise.
1198         (rs6000_arg_partial_bytes): Likewise.
1199         (rs6000_function_value): Likewise.
1201 2010-07-28  Andi Kleen <ak@linux.intel.com>
1203         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
1205 2010-07-28  Richard Guenther  <rguenther@suse.de>
1207         PR middle-end/44903
1208         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
1209         targets try harder to not generate unaligned accesses.
1211 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
1213         PR rtl-optimization/45101
1214         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
1215         for gcse-las.
1217 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
1219         PR tree-optimization/44885
1220         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
1221         with non-aliased component.
1223 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
1225         * config/darwin-driver.c (SWITCH_TAKES_ARG,
1226         WORD_SWITCH_TAKES_ARG): Remove.
1227         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
1228         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
1229         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
1230         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
1231         definitions from gcc.c.
1232         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
1233         defaults.h.
1234         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
1235         Move to defaults.h.
1236         * opts-common.c: Include tm.h.
1237         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
1238         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
1239         Handle more than one argument.  Set canonical_option_num_elements.
1240         (decode_cmdline_options_to_array): Set
1241         canonical_option_num_elements and trailing elements of
1242         canonical_option.
1243         * opts.h (struct cl_decoded_option): Allow four elements in
1244         canonical_option.  Add field canonical_option_num_elements.
1245         * Makefile.in (opts-common.o): Update dependencies.
1247 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
1249         PR middle-end/44790
1250         PR middle-end/44993
1251         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
1252         sure the base has address_mode before adding the offset.
1254 2010-07-27  Xinliang David Li <davidxl@google.com>
1256         * tree-flow.h (create_mem_ref): Add one new parameter.
1257         * tree-ssa-address.c (create_mem_ref): New parameter.
1258         (addr_to_parts): Ditto.
1259         (move_variant_to_index): New function.
1260         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
1262 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
1264         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
1265         4 and 5.
1266         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
1267         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
1268         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
1269         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
1270         CODE_LABELs and NOTEs.
1271         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
1272         * combine.c (try_combine): Likewise.
1273         * ira.c (setup_prohibited_mode_move_regs): Likewise.
1274         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
1276 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
1278         * coretypes.h (struct cl_option_handlers): Declare.
1279         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
1280         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
1281         * langhooks-def.h (lhd_handle_option): Declare.
1282         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
1283         * langhooks.c (lhd_handle_option): New.
1284         * langhooks.h (struct lang_hooks): Update prototype and return
1285         value type of handle_option hook.
1286         * optc-gen.awk: Generate target_flags_explicit definition for the
1287         driver.
1288         * opts-common.c: Include diagnostic.h.
1289         (handle_option): Move from opts.c.  Update prototype and return
1290         value type.  Use handlers structure.
1291         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
1292         handlers structure.
1293         (set_option): Move from opts.c.
1294         * opts.c (common_handle_option): Update prototype and return value
1295         type.  Update calls to handle_option and enable_warning_as_error.
1296         (unknown_option_callback, post_handling_callback,
1297         lang_handle_option, target_handle_option): New.
1298         (handle_option, read_cmdline_option): Move to opts-common.c.
1299         (read_cmdline_options): Update prototype.  Update call to
1300         read_cmdline_option.
1301         (decode_options): Initialize and use handlers structure.
1302         (set_option): Move to opts-common.c.
1303         (enable_warning_as_error): Update prototype.  Update call to
1304         handle_option.
1305         * opts.h (struct cl_option_handler_func, struct
1306         cl_option_handlers): New.
1307         (handle_option, enable_warning_as_error): Update prototypes.
1308         (read_cmdline_option): Declare.
1309         * Makefile.in (opts-common.o): Update dependencies.
1311 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1313         * config/arm/arm.c (params.h): Include.
1314         (arm_override_options): Tune gcse-unrestricted-cost.
1315         * config/arm/t-arm (arm.o): Define dependencies.
1317 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1319         PR target/42495
1320         PR middle-end/42574
1321         * basic-block.h (get_dominated_to_depth): Declare.
1322         * dominance.c (get_dominated_to_depth): New function, use
1323         get_all_dominated_blocks as a base.
1324         (get_all_dominated_blocks): Use get_dominated_to_depth.
1326         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
1327         (hoist_exprs): Remove.
1328         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
1329         (compute_code_hoist_vbeinout): Add debug print outs.
1330         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
1332         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
1333         quadratic behavior.
1334         * params.h (MAX_HOIST_DEPTH): New macro.
1335         * doc/invoke.texi (max-hoist-depth): Document.
1337 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1339         PR rtl-optimization/40956
1340         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
1341         constants.
1343 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1345         PR target/42495
1346         PR middle-end/42574
1347         * config/arm/arm.c (legitimize_pic_address): Use
1348         gen_calculate_pic_address pattern to emit calculation of PIC address.
1349         (will_be_in_index_register): New function.
1350         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
1351         (thumb1_legitimate_address_p): Use it provided !strict_p.
1352         * config/arm/arm.md (calculate_pic_address): New expand and split.
1354 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1356         PR target/42495
1357         PR middle-end/42574
1358         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
1359         * config/arm/arm.md (define_split "J", define_split "K"): Make
1360         IRA/reload friendly.
1362 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1364         * gcse.c (insert_insn_end_basic_block): Update signature, remove
1365         unused checks.
1366         (pre_edge_insert, hoist_code): Update.
1368 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1370         PR target/42495
1371         PR middle-end/42574
1372         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
1374 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1376         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
1378 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1380         PR rtl-optimization/40956
1381         PR target/42495
1382         PR middle-end/42574
1383         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
1384         for hoisting.
1385         (hoist_code): Count occurences in current block too.
1387 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1389         * gcse.c (struct expr:max_distance): New field.
1390         (doing_code_hoisting_p): New static variable.
1391         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
1392         simple expressions, don't change behavior for PRE.  Set max_distance.
1393         (insert_expr_in_table): Set new max_distance field.
1394         (hash_scan_set): Update.
1395         (hoist_expr_reaches_here_p): Stop search after max_distance
1396         instructions.
1397         (find_occr_in_bb): New static function.  Use it in ...
1398         (hoist_code): Calculate sizes of basic block before any changes are
1399         done.  Pass max_distance to hoist_expr_reaches_here_p.
1400         (one_code_hoisting_pass): Set doing_code_hoisting_p.
1402         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
1403         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
1404         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
1405         macros.
1406         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
1407         Document.
1409 2010-07-27  Jeff Law  <law@redhat.com>
1410             Maxim Kuvyrkov  <maxim@codesourcery.com>
1412         * gcse.c (compute_transpout, transpout): Remove, move logic
1413         to prune_expressions.
1414         (compute_pre_data): Move pruning of trapping expressions ...
1415         (prune_expressions): ... here.  New static function.
1416         (compute_code_hoist_data): Use it.
1417         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
1419 2010-07-27  Xinliang David Li  <davidxl@google.com>
1421         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
1422         (rewrite_use_address): Adjust iv update position when needed.
1424 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1426         * dbgcnt.def (hoist_insn): New debug counter.
1427         * gcse.c (hoist_code): Use it.
1429 2010-07-27  Xinliang David Li  <davidxl@google.com>
1431         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
1432         (niter_for_single_dom_exit): Passes additional parameter.
1433         (iv_period): Fix comments.
1434         (may_eliminate_iv): Handles multiple exit loops properly.
1435         (free_tree_niter_desc): New function.
1436         (free_loop_data): Frees up loop iteration descriptors.
1438 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
1440         PR target/44542
1441         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
1442         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
1443         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
1444         (expand_one_var): Don't consider DECL_ALIGN for variables for
1445         which expand_one_stack_var_at has been already called.
1447         PR testsuite/44701
1448         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
1449         constraints on IA-64.
1451 2010-07-27  Jie Zhang  <jie@codesourcery.com>
1453         PR target/44290
1454         Revert:
1455         2010-07-23  Jie Zhang  <jie@codesourcery.com>
1457         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
1458         false if ! tree_versionable_function_p.
1460 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
1462         * dwarf2out.c (add_data_member_location_attribute): Use
1463         add_AT_unsigned instead of add_AT_int if offset is non-negative.
1465 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
1467         * postreload.c (try_replace_in_use): New static function.
1468         (reload_combine_recognize_const_pattern): Use it here.  Allow
1469         substituting into a final add insn, and substituting into a memory
1470         reference in an insn that sets the reg.
1472 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
1474         * common.opt (o): Add MissingArgError.
1475         * doc/options.texi (MissingArgError): Document.
1476         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
1477         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
1478         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1479         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
1480         * langhooks.h (struct lang_hooks): Remove missing_argument.
1481         * optc-gen.awk: Handle MissingArgError and output new structure
1482         field initializers.
1483         * opts.c (read_cmdline_option): Use missing_argument_error field
1484         instead of missing_argument langhook.
1485         * opts.h (struct cl_option): Add missing_argument_error field.
1486         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
1488 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
1490         PR target/29090
1491         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
1492         Darwin64 ABI, for zero-sized objects.
1494 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
1496         PR target/35491
1497         PR target/29090
1499         Merge from Apple local 4.2.1.
1500         2005-05-11  Stan Shebs  <shebs@apple.com>
1501         Fix 64-bit varargs for Darwin (Radar 4028089).
1502         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
1503         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
1504         Add argument, add case for 8-byte register half-filled with a float.
1505         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
1506         single-precision floats specially.
1508 2010-07-27  Ira Rosen  <irar@il.ibm.com>
1510         PR tree-optimization/44152
1511         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
1512         complex numbers for further check.
1513         (vect_supported_load_permutation_p): Check nodes with
1514         complex numbers.
1516 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
1518         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
1519         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
1520         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
1521         (LANG_HOOKS_INITIALIZER): Add new hooks.
1522         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
1523         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
1524         and complain_wrong_lang_p.  Update init_options prototype.
1525         * c-objc-common.c (c_initialize_diagnostics): First call
1526         c_common_initialize_diagnostics.
1527         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
1528         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
1529         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
1530         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
1531         (hook_uint_void_0): New.
1532         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
1533         (hook_uint_void_0): New.
1534         * opts-common.c (decode_cmdline_option,
1535         decode_cmdline_options_to_array): Also fill in canonical_option field.
1536         * opts.c (complain_wrong_lang): Use langhook to determine whether
1537         to complain instead of special-casing LTO.
1538         (decode_options): Separate lang_mask determination with
1539         option_lang_mask hook from call of init_options hook.
1540         * opts.h (struct cl_decoded_option): Add canonical_option.
1542 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
1544         PR tree-optimization/45083
1545         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
1547 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
1549         * postreload.c (reload_combine_recognize_const_pattern): Move test
1550         for limiting the insn movement to the right scope.
1552         PR rtl-optimization/45051
1553         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
1554         than reg_mentioned_p.
1556 2010-07-26  Richard Henderson  <rth@redhat.com>
1558         PR target/44132
1559         * tree-emutls.c: New file.
1560         * Makefile.in (OBJS-common): Add it.
1561         * tree-pass.h (pass_ipa_lower_emutls): Declare.
1562         * passes.c (init_optimization_passes): Add it.
1564         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
1565         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
1566         * expr.c (emutls_var_address): Delete.
1567         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
1568         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
1569         (emutls_finish): Delete.
1570         * toplev.c (compile_file): Don't call it.
1571         * tree.h (emutls_decl): Delete.
1572         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
1573         (emutls_finish, emutls_finalize_control_var): Delete.
1574         (emutls_object_type): Move to tree-emutls.c.
1575         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
1576         default_emutls_var_fields, get_emutls_object_type,
1577         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
1578         default_emutls_var_init): Likewise.
1579         (get_variable_section): Don't special case emutls.
1580         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
1581         default_elf_select_section, default_unique_section,
1582         default_encode_section_info): Likewise.
1583         * varpool.c (decide_is_variable_needed): Likewise.
1584         * gimple-iterator.c (update_call_edge_frequencies): New
1585         (gsi_insert_on_edge_immediate): Use it.
1586         (gsi_insert_seq_on_edge_immediate): Likewise.
1587         (gsi_commit_one_edge_insert): Likewise.
1589         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
1590         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
1591         (x86_64_elf_unique_section): Likewise.
1593 2010-07-26  Jan Hubicka  <jh@suse.cz>
1595         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
1596         GTY((skip)).
1598 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
1600         * target.def (output_source_filename): New hook.
1601         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
1602         * doc/tm.texi: Regenerate.
1603         * toplev.c (output_file_directive) Remove function.
1604         * toplev.h (output_file_directive) Remove.
1605         * output.h (default_asm_output_source_filename,
1606         output_file_directive): Declare.
1607         * varasm.h (default_asm_output_source_filename,
1608         output_file_directive): New functions.
1610         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
1611         * config/mips/mips-protos.h (mips_output_filename): Remove.
1612         * config/mips/mips.c (mips_output_filename): Make Static.
1613         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
1615 2010-07-26  Richard Guenther  <rguenther@suse.de>
1617         PR tree-optimization/43784
1618         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
1619         if the destination is used by the call.
1621 2010-07-26  Richard Guenther  <rguenther@suse.de>
1623         PR middle-end/45073
1624         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
1625         SSA updating on being in SSA form.
1627 2010-07-26  Richard Guenther  <rguenther@suse.de>
1629         PR middle-end/45056
1630         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
1632 2010-07-26  Richard Guenther  <rguenther@suse.de>
1634         PR tree-optimization/45071
1635         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
1636         adjust op->opcode.
1638 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
1640         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
1641         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
1642         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
1643         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
1644         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
1645         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
1646         save_r31, return_r31, save_interrupt, return_interrupt,
1647         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
1648         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
1649         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
1650         new ABI requirements.
1651         (save_r6_r9, L_callt_save_r6_r9): Remove.
1652         * config/v850/predicates.md (even_reg_operand, disp23_operand,
1653         const_float_1_operand const_float_0_operand): New Predicates.
1654         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
1655         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
1656         * config/v850/t-v850: Update multilibs for new target variants.
1657         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
1658         * config/v850/t-v850e: Likewise.
1659         * config/v850/v850.c (v850_issue_rate): New.
1660         (v850_strict_argument_naming): New.
1661         (function_arg): Modify to generate a different ABI.
1662         (print_operand): Update case 'z' to support float modes.
1663         (output_move_single): Modify to generate appropriate and better
1664         assembly.
1665         (v850_float_z_comparison_operator, v850_select_cc_mode,
1666         v850_float_nz_comparison_operator,  v850_gen_float_compare,
1667         v850_gen_compare): New functions to support comparison of float values.
1668         (ep_memory_offset): Add support for V850E2 targets.
1669         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
1670         (INTERRUPT_REGPARM_NUM): Remove.
1671         (compute_register_save_size): Add extra case to save/restore long call.
1672         (use_prolog_function): New function to support prologue.
1673         (expand_prologue): Add support for V850E2 targets and modified
1674         as per the current ABI requirements.
1675         (expand_epilogue): Likewise.
1676         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
1677         (construct_save_jarl): Likewise.
1678         (construct_dispose_instruction): Update as per the current ABI
1679         requirements.
1680         (construct_prepare_instruction): Likewise.
1681         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
1682         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
1683         (CPP_SPEC): Updated to support v850e2 targets.
1684         (STRICT_ALIGNMENT): Modified.
1685         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
1686         (FIXED_REGISTERS): Likewise.
1687         (CALL_USED_REGISTERS): Likewise.
1688         (CONDITIONAL_REGISTER_USAGE): Updated.
1689         (HARD_REGNO_MODE_OK): Updated.
1690         (reg_class): Updated to add even registers.
1691         (REG_CLASS_NAMES): Likewise.
1692         (REG_CLASS_CONTENTS): Likewise.
1693         (REGNO_REG_CLASS): Updated for CC registers.
1694         (REG_CLASS_FROM_LETTER): Added support for even registers.
1695         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
1696         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
1697         ARG_POINTER_REGNUM): Updated.
1698         (FUNCTION_ARG_ADVANCE): Define.
1699         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
1700         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
1701         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
1702         (GO_IF_LEGITIMATE_ADDRESS): Updated.
1703         (SELECT_CC_MODE): Define.
1704         (REGISTER_NAMES): Updated to add psw and fcc registers.
1705         (ADDITIONAL_REGISTER_NAMES): Updated.
1706         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
1707         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
1708         * config/v850/v850.md (define_constants): Define new constants.
1709         (type): Update store,bit1,macc,div,fpu and single attributes.
1710         (cpu): New attribute.
1711         (cc): Add set_z attribute.
1712         (unsign23byte_load, sign23byte_load, unsign23hword_load,
1713         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
1714         23word_store): New instructions for 23-bit displacement load and store.
1715         (movqi_internal, movhi_internal): Update the attributes.
1716         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
1717         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
1718         the attributes.
1719         (v850_tst1): Modified using CC_REGNUM.
1720         (tstsi): Remove.
1721         (cmpsi): Modified as define_expand from define_insn.
1722         (cmpsi_insn, cmpsf, cmpdf): New instructions.
1723         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
1724         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
1725         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
1726         one_cmplsi2): Clobber the CC_REGNUM register.
1727         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
1728         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
1729         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
1730         (setf_insn, set_z_insn, set_nz_insn): New instructions for
1731         v850e2v3 target.
1732         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
1733         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
1734         targets.
1735         (sasf_1, sasf_2): Remove.
1736         (sasf): New instruction.
1737         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
1738         targets. CC_REGNUM register is clobbered and attributes are
1739         updated.
1740         (branch_z_normal, branch_z_invert, branch_nz_normal,
1741         branch_nz_invert): New branch related instructions.
1742         (jump): Updated the attributes.
1743         (switch): Update to support new targets. CC_REGNUM register is
1744         clobbered and attributes are updated.
1745         (call_internal_short, call_internal_long, call_value_internal_short,
1746         call_value_internal_long): Updated the attributes.
1747         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
1748         clobbered and attributes are updated.
1749         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
1750         Update to support new targets. CC_REGNUM register is clobbered.
1751         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
1752         instructions.
1753         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
1754         are updated.
1755         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
1756         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
1757         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
1758         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
1759         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
1760         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
1761         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
1762         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
1763         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
1764         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
1765         point instructions defined for V850e2v3 target.
1766         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
1767         Add support for V850E2 targets and CC_REGNUM register is clobbered.
1768         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
1769         support for new targets.
1770         * config/v850/v850-modes.def: New file.
1771         * config/v850/v850.opt(mstrict-align): Remove.
1772         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
1773         mv850e2v3): New command line options for V850.
1774         * config.gcc: Update the newly added files.
1775         * doc/invoke.texi: Update the newly added command line options for
1776         V850 target.
1778 2010-07-26  Richard Guenther  <rguenther@suse.de>
1780         PR tree-optimization/45052
1781         * ipa-pure-const.c (check_stmt): Check volatileness.
1783 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
1785         PR target/44707
1786         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
1787         * config/sparc/sparc.c: Include reload.h.
1788         (legitimize_tls_address): Rename into...
1789         (sparc_legitimize_tls_address): ...this.
1790         (legitimize_pic_address): Rename into...
1791         (sparc_legitimize_pic_address): ...this.
1792         (sparc_expand_move): Adjust to above renaming.
1793         (sparc_tls_referenced_p): Likewise.
1794         (sparc_legitimize_tls_address): Likewise.
1795         (sparc_legitimize_pic_address): Likewise.
1796         (sparc_legitimize_address): Likewise.
1797         (sparc_output_mi_thunk): Likewise.
1798         (sparc_legitimize_reload_address): New global function.  Recognize
1799         (lo_sum (high ...) ...) patterns generated by earlier passes.
1800         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
1802 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
1804         PR target/44484
1805         * config/sparc/predicates.md (memory_reg_operand): Delete.
1806         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
1807         (*sync_compare_and_swap): Encode the address form in the pattern.
1808         (*sync_compare_and_swapdi_v8plus): Likewise.
1810 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
1812         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
1813         Streamline paragraph on compatibility with the system compiler.
1815 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
1817         PR middle-end/45035
1818         * alias.c (true_dependence_1): Fix thinko in merge of old
1819         true_dependence and canon_true_dependence.
1821 2010-07-23  Jan Hubicka  <jh@suse.cz>
1823         * lto-streamer-out.c (write_symbol): Fix visibilities of external
1824         references.
1826 2010-07-23  Le-Chun Wu  <lcwu@google.com>
1828         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
1829         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
1830         and an unnecessary assignment.
1831         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
1832         self-assign warning.
1833         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
1834         unnecessary self-init.
1836 2010-07-23  Richard Guenther  <rguenther@suse.de>
1838         PR lto/43071
1839         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
1840         for -flto and -fwhopr.
1842 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
1844         PR target/41943
1845         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
1846         (stmp-int-hdrs): Prefix/postfix headers by include_next.
1847         * config.gcc (user_headers_inc_next_pre): New.
1848         (user_headers_inc_next_post): Likewise.
1849         (*-w64-mingw*): Use for float.h post-fixing, and for
1850         stddef.h/stdarg.h pre-fixing by include_next.
1851         * configure.ac (user_headers_inc_next_post): New.
1852         (user_headers_inc_next_pre): New.
1853         * configure: Regenerated.
1855 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1857         * configure.ac: Don't disable TLS on Solaris 8/9 by default
1858         Set tga_func for Solaris 2/x86 resp. SPARC.
1859         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
1860         (LIB_THREAD_LDFLAGS_SPEC): Define.
1861         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
1862         * configure: Regenerate.
1863         * config.in: Regenerate.
1864         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
1865         -pthread, -threads, LIB_TLS_SPEC with -pthread.
1866         * doc/install.texi (Specific, *-*-solaris2*): Document use of
1867         alternate thread libraries on Solaris 8.
1868         Document TLS patch requirements.
1869         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
1870         Document tls.
1872         PR target/18788
1873         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
1874         -shared.
1876 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
1878         * tree.h (struct tree_base): Add nameless_flag bitfield.
1879         (TYPE_NAMELESS, DECL_NAMELESS): Define.
1880         * omp-low.c (create_omp_child_function, scan_omp_parallel,
1881         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
1882         DECL_ARTIFICIAL where needed.
1883         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
1884         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
1885         has DECL_NAMELESS set.
1887 2010-07-23  Martin Jambor  <mjambor@suse.cz>
1889         PR tree-optimization/44915
1890         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
1891         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
1892         (analyze_function): Likewise.
1894 2010-07-23  Martin Jambor  <mjambor@suse.cz>
1896         PR tree-optimization/44914
1897         * tree-sra.c (sra_modify_function_body): Return true if CFG was
1898         changed, add purging dead eh edges.
1899         (ipa_sra_modify_function_body): Return true if CFG was changed,
1900         simplify purging dead eh edges.
1901         (modify_function): Return true if CFG was changed.
1902         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
1903         was changed.
1904         (ipa_early_sra): Likewise.
1906 2010-07-23  Jie Zhang  <jie@codesourcery.com>
1908         PR target/44290
1909         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
1910         if "naked".
1911         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
1912         false if ! tree_versionable_function_p.
1914 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
1916         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
1917         * ipa-pure-const.c (special_builtlin_state): Remove
1918         BUILT_IN_ARGS_INFO case.
1919         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
1920         * builtins.c (expand_builtin): Likewise.
1921         (expand_builtin_args_info): Remove.
1922         * doc/tm.texi (__builtin_args_info): Remove.
1923         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
1924         * doc/tm.text.in: Likewise.
1926 2010-07-23  Richard Guenther  <rguenther@suse.de>
1928         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
1929         (lto_symtab_merge_decls_2): Likewise.
1930         * tree-ssa.c (useless_type_conversion_p): Likewise.
1931         * lto-streamer-in.c (input_gimple_stmt): Likewise.
1932         * gimple.c (gtc_visited2, gtc_ob2): Remove.
1933         (struct type_pair_d): Make same_p an array indexed by mode.
1934         Update comment.
1935         (lookup_type_pair): Update initialization.
1936         (struct sccs): Adjust same_p type.
1937         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
1938         Adjust.
1939         (print_gimple_types_stats): Likewise.
1940         * gimple.h (enum gtc_mode): New.
1941         (gimple_types_compatible_p): Adjust prototype.
1943 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
1945         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
1946         again after processing insn.
1948 2010-07-23  Jie Zhang  <jie@codesourcery.com>
1950         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
1951         proper words when !tree_versionable_function_p.
1953 2010-07-23  Richard Guenther  <rguenther@suse.de>
1955         PR tree-optimization/45037
1956         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
1958 2010-07-23  Jie Zhang  <jie@codesourcery.com>
1960         * doc/extend.texi: Remove IP2K from the description of naked attribute.
1961         Add MCORE instead.
1963 2010-07-10  Andi Kleen  <ak@linux.intel.com>
1965         PR lto/44992
1966         * lto-opts.c (lto_write_options): Add NULL file_data argument to
1967         lto_get_section_name.
1968         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
1969         * lto-streamer-out.c (produce_asm): Likewise.
1970         (copy_function): Likewise.
1971         (produce_symtab): Likewise.
1972         (produce_asm_for_decls): Likewise.
1973         * lto-streamer.c (lto_get_section_name): Add file_data argument.
1974         Rewrite to add random postfix to LTO sections.
1975         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
1976         (lto_get_section_name): Add file_data argument to prototype.
1978 2010-07-10  Andi Kleen  <ak@linux.intel.com>
1980         * lto-section-in.c (lto_section_name): Synchronize names
1981         with lto_get_section_name.
1983 2010-07-10  Andi Kleen  <ak@linux.intel.com>
1985         * lto-opts.c (lto_read_file_options): Check for missing section.
1987 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
1989         * ira.c (check_allocation): Correctly handle the case where an allocno
1990         with two objects was allocated to a single reg.
1992 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
1994         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
1995         (is_widening_mult_p): Likewise.
1996         (convert_to_widen): Use them.
1997         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
1998         well as integer ones.
2000 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
2002         * alias.c (true_dependence_1): New function, merged version of
2003         true_dependence and canon_true_dependence.
2004         (true_dependence): Simplify.
2005         (canon_true_dependence): Simplify.
2007 2010-07-22  Richard Henderson  <rth@redhat.com>
2009         PR target/45027
2010         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
2011         of V4SFmode for the SSE saves; increase stack alignment if needed.
2012         (ix86_gimplify_va_arg): Don't increase stack alignment here.
2014 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
2016         PR bootstrap/45028
2017         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
2018         call cprop_find_used_regs again via note_uses.
2020 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
2022         * alias.c (get_alias_set): Fix formatting issues.
2024 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
2026         PR middle-end/44878
2027         * stmt.c (expand_value_return):  Call promote_function_mode with
2028         a for_return argument of 2 when returning by reference.
2030 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
2032         PR debug/45024
2033         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
2034         unit DIE if we can find the scope DIE.
2036 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
2038         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
2039         changed.  Initialize OBJECT_SUBWORD.
2040         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
2041         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
2042         all callers changed.
2043         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
2044         (finish_allocno): Likewise.
2045         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
2046         (remove_low_level_allocnos): Likewise.
2047         (update_bad_spill_attribute): Likewise.
2048         (setup_min_max_allocno_live_range_point): Likewise.
2049         (sort_conflict_id_map): Likewise.
2050         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
2051         (ior_hard_reg_conflicts): New function.
2052         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
2053         (compress_conflict_vecs): Iterate over objects, not allocnos.
2054         (ira_add_live_range_to_object): New function.
2055         (object_range_compare_func): Renamed from allocno_range_compare_func.
2056         All callers changed.
2057         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
2058         subobjects, widen the min/max range of the lowest-order object to
2059         potentially include all other such low-order objects.
2060         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
2061         (check_allocation): Likewise.  Use more fine-grained tests for register
2062         conflicts.
2063         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
2064         allocno subobjects.
2065         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
2066         choices about which bits to set in each set.  Don't use
2067         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
2068         using the multiple sets we computed.
2069         (push_allocno_to_stack): Iterate over allocno subobjects.
2070         (all_conflicting_hard_regs_coalesced): New static function.
2071         (setup_allocno_available_regs_num): Use it.
2072         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
2073         subobjects.
2074         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
2075         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
2076         by ALLOCNO_NUM_OBJECTS.
2077         (calculate_spill_cost): Likewise.
2078         (color_pass): Express if statement in a more normal way.
2079         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
2080         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
2081         (setup_slot_coalesced_allocno_live_ranges): Likewise.
2082         (allocno_reload_assign): Likewise.
2083         (ira_reassign_pseudos): Likewise.
2084         (fast_allocation): Likewise.
2085         * ira-conflicts.c (build_conflict_bit_table): Likewise.
2086         (print_allocno_conflicts): Likewise.
2087         (ira_build_conflicts): Likewise.
2088         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
2089         callers changed.  Test subword 0 of each allocno for conflicts.
2090         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
2091         callers changed.  Iterate over allocno subobjects.
2092         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
2093         * ira-int.h (struct ira_allocno): New member: num_objects.
2094         Rename object to objects and change it into an array.
2095         (ALLOCNO_OBJECT): Add new argument N.
2096         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
2097         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
2098         (ior_hard_reg_conflicts): Declare.
2099         (ira_add_live_range_to_object): Declare.
2100         (ira_allocno_object_iterator): New.
2101         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
2102         (FOR_EACH_ALLOCNO_OBJECT): New macro.
2103         * ira-lives.c (objects_live): Renamed from allocnos_live; all
2104         uses changed.
2105         (allocnos_processed): New sparseset.
2106         (make_object_born): Renamed from make_allocno_born; take an
2107         ira_object_t argument.  All callers changed.
2108         (make_object_dead): Renamed from make_allocno_dead; take an
2109         ira_object_t argument.  All callers changed.
2110         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
2111         All callers changed.
2112         (mark_pseudo_regno_live): Iterate over allocno subobjects.
2113         (mark_pseudo_regno_dead): Likewise.
2114         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
2115         functions.
2116         (mark_ref_live): Detect subword accesses and call
2117         mark_pseudo_regno_subword_live as appropriate.
2118         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
2119         (process_bb_nodes_live): Deal with object-related updates first; set
2120         and test bits in allocnos_processed to avoid computing allocno
2121         statistics more than once.
2122         (create_start_finish_chains): Iterate over objects, not allocnos.
2123         (print_object_live_ranges): New function.
2124         (print_allocno_live_ranges): Use it.
2125         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
2126         and objects_live.
2128 2010-07-22  Richard Guenther  <rguenther@suse.de>
2130         PR lto/42451
2131         * gimple.c (gtc_next_dfs_num): New global.
2132         (struct sccs): Make value a union, add integer same_p member.
2133         (gtc_visit): New function.
2134         (gimple_types_compatible_p_1): New function, split out from ...
2135         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
2136         (iterative_hash_gimple_type): Adjust for sccs change.
2138 2010-07-22  Martin Jambor  <mjambor@suse.cz>
2140         PR tree-optimization/44891
2141         * tree-sra.c: Include gimple-pretty-print.h.
2142         (replace_uses_with_default_def_ssa_name): Renamed to
2143         get_repl_default_def_ssa_name, return the new SSA name instead of
2144         replacing the old one.
2145         (sra_modify_assign): Dump a message when removing a load, if the LHS
2146         is an SSA_NAME, do not do any propagation, just set the RHS to a
2147         default definition SSA NAME, type convert if necessary.
2148         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
2150 2010-07-22  Richard Guenther  <rguenther@suse.de>
2152         PR tree-optimization/45017
2153         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
2154         TYPE_PRECISION of integral types in addition to size.
2156 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
2158         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
2159         when no C library is specified.
2161 2010-07-22  Martin Jambor  <mjambor@suse.cz>
2163         * ipa-prop.h (struct ipa_node_params): Updated comment.
2164         (struct ipa_edge_args): Likewise.
2165         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
2167 2010-07-22  Martin Jambor  <mjambor@suse.cz>
2169         * cgraphunit.c (verify_edge_count_and_frequency): New function.
2170         (verify_cgraph_node): Verify frequencies of indirect edges.
2171         * tree-inline.c (tree_function_versioning): Update frequencies of
2172         indirect edges.
2174 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2176         PR target/43698
2177         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
2178         Set *arm_rev to be predicable.
2180 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
2182         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
2183         (LINK_COMMAND_SPEC_A): New.
2184         (DSYMUTIL): New.
2185         (DSYMUTIL_SPEC): New.
2186         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
2187         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
2189 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
2191         * calls.c (load_register_parameters): Move check for zero
2192         sized items so that only the call to
2193         mem_overlaps_already_clobbered_arg_p () is protected.
2195 2010-07-22  Jan Hubicka  <jh@suse.cz>
2197         * ipa-pure-const.c (varying_state): Break out from ...
2198         (get_function_state): ... here; always return varying_state
2199         when state would be NULL otherwise.
2200         (remove_node_data): Do not free varying state.
2202 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
2204         PR bootstrap/44970
2205         PR middle-end/45009
2206         * postreload.c: Include "target.h".
2207         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
2208         into account.
2209         (fixup_debug_insns): Don't copy the rtx.
2210         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
2211         Don't copy when replacing.  Call fixup_debug_insns in the case where
2212         we merged one add with another.
2213         (reload_combine_recognize_pattern): Fail if there aren't any uses.
2214         Try harder to determine whether we're picking a valid index register.
2215         Don't set store_ruid for an insn we're going to scan in the
2216         next iteration.
2217         (reload_combine): Remove unused code.
2218         (reload_combine_note_use): When updating use information for
2219         an old insn, ignore a use that occurs after store_ruid.
2220         * Makefile.in (postreload.o): Update dependencies.
2222         * function.c (record_hard_reg_sets): Restrict the previous change
2223         to cases where the incoming nominal mode is the same as the
2224         incoming promoted mode and everything happens in MODE_INT.
2226 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
2228         PR debug/45015
2229         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
2230         ASM_OPERANDS_OUTPUT_IDX.
2231         (adjust_insn): For inline asm with multiple sets ensure first
2232         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
2233         the insn.
2235 2010-07-21  Richard Henderson  <rth@redhat.com>
2237         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
2238         comparison for avoiding xmm register saves.  Emit the xmm register
2239         saves explicitly.
2240         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
2241         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
2242         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
2243         Remove patterns and the associated splitters.
2245 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
2247         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
2248         and imagine parts of a complex, so that they can have the same
2249         base and fall into the same group.
2251 2010-07-21  Richard Guenther  <rguenther@suse.de>
2253         PR lto/45018
2254         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
2255         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
2256         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
2258 2010-07-21  Martin Jambor  <mjambor@suse.cz>
2260         PR tree-optimization/44900
2261         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
2262         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
2264 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
2266         PR middle-end/44738
2267         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
2269 2010-07-21  Richard Guenther  <rguenther@suse.de>
2271         PR middle-end/45013
2272         * tree-ssa.c (useless_type_conversion_p): Dispatch to
2273         gimple_types_compatible_p only when in lto.
2274         * gimple.c (gimple_types_compatible_p): Use canonical types
2275         to speed up comparison.
2277 2010-07-21  Richard Guenther  <rguenther@suse.de>
2279         * tree-flow.h (referenced_var): Move define ...
2280         * tree-flow-inline.h (referenced_var): ... here as an inline
2281         function.  Assert here ...
2282         * tree-dfa.c (referenced_var_lookup): ... instead of here.
2283         * tree-ssa.c (maybe_optimize_var): Check if the variable
2284         is in referenced vars.
2285         (execute_update_addresses_taken): Remove old broken check.
2286         * gimple-pretty-print.c (pp_points_to_solution): Use
2287         referenced_var_lookup.
2288         * tree-into-ssa.c (dump_decl_set): Likewise.
2290 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
2292         PR debug/45003
2293         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
2294         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
2295         ZERO_EXTEND here.
2297 2010-07-20  Richard Henderson  <rth@redhat.com>
2299         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
2301 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
2303         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
2304         computing the sum of the stack pointer and a large constant.
2305         * config/arm/constraints.md (M): Remove superfluous parentheses.
2306         (Pc): New constraint.
2308 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
2310         PR debug/45006
2311         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
2312         operand's type if exp is tcc_unary class tree.
2314 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
2316         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
2317         Reverse sense of if_then_else condition.
2319 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
2321         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
2322         * config/rs6000/rs6000.c (rs6000_override_options): Set
2323         rs6000_block_move_inline_limit appropriately.
2324         (expand_block_move): Use rs6000_block_move_inline_limit.
2325         * doc/invoke.texi (mblock-move-inline-limit): Document.
2327 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
2329         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
2330         FROM and TO.  All callers changed.  Don't look for tracked uses,
2331         just scan the RTL for DEBUG_INSNs and substitute.
2332         (reload_combine_recognize_pattern): Call fixup_debug_insns.
2333         (reload_combine): Ignore DEBUG_INSNs.
2335 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
2337         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
2338         depth to 8 from 5.
2340         PR debug/45003
2341         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
2342         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
2343         instead of the result's type.
2345 2010-07-20  Richard Guenther  <rguenther@suse.de>
2347         PR tree-optimization/44977
2348         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
2349         SSA form.
2351 2010-07-20  Richard Guenther  <rguenther@suse.de>
2353         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
2354         (lto_symtab_merge_decls_2): Likewise.
2355         * gimple.h (gimple_types_compatible_p): Declare.
2356         * gimple.c (gimple_queue_type_fixup): Remove.
2357         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
2358         (gimple_compatible_complete_and_incomplete_type_p): New function.
2359         (gimple_types_compatible_p): Adjust.
2360         (gimple_register_type): Remove type fixup code.
2361         (print_gimple_types_stats): Adjust.
2362         (free_gimple_type_tables): Likewise.
2363         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
2364         * tree-ssa.c (useless_type_conversion_p): Likewise.
2366 2010-07-20  Richard Guenther  <rguenther@suse.de>
2368         PR middle-end/44971
2369         PR middle-end/44988
2370         * tree-ssa.c (maybe_optimize_var): New function split out from ...
2371         (execute_update_addresses_taken): ... here.
2372         (non_rewritable_mem_ref_base): Likewise.
2373         (execute_update_addresses_taken): Do not iterate over all referenced
2374         vars but just all local decls and parms.
2375         Properly check call and asm arguments and rewrite call arguments.
2377 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
2379         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
2380         to top level.
2381         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
2382         definitions ...
2383         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
2384         New macro.
2385         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
2387 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
2389         * gengtype.c (start_root_entry): New function, split out from
2390         write_root.  Check whether V is null and raise an error if so.
2391         (write_field_root): Check for V being null.  Don't raise an error here;
2392         set V to null instead.
2393         (write_root): Update comment above function.  Use start_root_entry.
2395 2010-07-19  Xinliang David Li  <davidxl@google.com>
2397         PR testsuite/44932
2398         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
2399         def edges.
2400         (find_uninit_use): Add dump.
2401         (is_use_properly_guarded): Ditto.
2402         (warn_uninitialized_phi): Ditto.
2403         (execute_late_warn_uninitialized): Ditto.
2405 2010-07-19  Richard Guenther  <rguenther@suse.de>
2407         PR middle-end/44941
2408         * expr.c (emit_block_move_hints): Move zero size check first.
2409         Move asserts to more useful places.
2410         * calls.c (load_register_parameters): Check for zero size.
2412 2010-07-19  Richard Henderson  <rth@redhat.com>
2414         * tree-optimize.c (execute_all_early_local_passes): New.  Change
2415         cgraph_state here ...
2416         (execute_early_local_optimizations): ... not here.  Remove.
2417         (pass_early_local_passes, pass_all_early_optimizations): Update.
2419 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
2421         * postreload.c (reload_combine_closest_single_use): Ignore the
2422         number of uses for DEBUG_INSNs.
2423         (fixup_debug_insns): New static function.
2424         (reload_combine_recognize_const_pattern): Use it.  Don't let the
2425         main loop be affected by DEBUG_INSNs.
2426         Really disallow moving adds past a jump insn.
2427         (reload_combine_recognize_pattern): Don't update use_ruid here.
2428         (reload_combine_note_use): Do it here.
2429         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
2431 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
2433         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
2434         of a loop.
2435         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
2437 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
2439         * config/i386/darwin.h: Define darwin_emit_branch_islands.
2440         (TARGET_MACHO_BRANCH_ISLANDS): New.
2441         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
2442         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
2443         default value.
2444         * config/i386/i386.c (output_pic_addr_const): Do not emit
2445         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
2446         (x86_output_mi_thunk): Adjust symbol creation.
2447         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
2448         Remove out of date comment.
2449         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
2450         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
2451         (DARWIN_GENERATE_ISLANDS): Ditto.
2452         (output_call):  Do not emit branch islands unless
2453         darwin_emit_branch_islands is set.
2454         * config/darwin.c: Declare darwin_emit_branch_islands.
2455         (machopic_indirect_data_reference): Do not emit unless
2456         darwin_emit_branch_islands is set.
2457         (darwin_override_options): Set darwin_emit_branch_islands
2458         where it is needed.
2459         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
2461 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2463         * doc/sourcebuild.texi (Effective-Target Keywords): Document
2464         sse_runtime, sse2_runtime.
2466 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
2468         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
2469         low half of a single-register SCmode return value before ORing
2470         it with the high half.
2471         * config/mips/mips16.S (MERGE_GPRf): Likewise.
2473 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2475         PR target/44805
2476         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
2477         on all targets.
2479 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
2481         PR target/42235
2482         * postreload.c (reload_cse_move2add): Return bool, true if anything.
2483         changed.  All callers changed.
2484         (move2add_use_add2_insn): Likewise.
2485         (move2add_use_add3_insn): Likewise.
2486         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
2487         reload_combine.
2488         (RELOAD_COMBINE_MAX_USES): Bump to 16.
2489         (last_jump_ruid): New static variable.
2490         (struct reg_use): New members CONTAINING_MEM and RUID.
2491         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
2492         (reload_combine_split_one_ruid, reload_combine_split_ruids,
2493         reload_combine_purge_insn_uses, reload_combine_closest_single_use
2494         reload_combine_purge_reg_uses_after_ruid,
2495         reload_combine_recognize_const_pattern): New static functions.
2496         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
2497         is true for our reg and that we have available index regs.
2498         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
2499         callers changed.  Use them to initialize fields in struct reg_use.
2500         (reload_combine): Initialize last_jump_ruid.  Be careful when to
2501         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
2502         Call reload_combine_recognize_const_pattern.
2503         (reload_combine_note_store): Update REAL_STORE_RUID field.
2505 2010-07-16  Jason Merrill  <jason@redhat.com>
2507         * Makefile.in (opts-common.o): Depend on options.h.
2509 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
2511         * tree.c (build_common_builtin_nodes): Use build_function_type_list
2512         instead of build_function_type.
2513         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
2514         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
2516 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
2518         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
2519         do all the work.
2520         (rs6000_emit_int_cmove): Use function pointers for insn generation.
2521         Don't force values into registers unnecessarily.
2522         (output_isel): Assert that we're not given conditions we can't handle.
2523         Delete corresponding code.
2524         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
2525         scc_comparison_operator constraint.  Permit 0 for the consequent
2526         operand.  Permit any GPR for the alternative operand.
2527         (isel_unsigned_<mode>): Likewise.
2529 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
2531         PR target/44942
2532         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
2533         argument to const_tree.
2534         * config/i386/i386.c (function_arg_advance): If padding needs to be
2535         inserted before argument, increment cum->words by number of padding
2536         words as well.
2537         (contains_aligned_value_p): Change argument to const_tree.
2538         (ix86_function_arg_boundary): Change second argument to const_tree.
2540 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
2542         PR target/42235
2543         * function.c (record_hard_reg_sets): New static function.
2544         (assign_parm_setup_reg): If an optab for extending exists and the
2545         generated code clobbbers no hard regs, emit the insn directly and
2546         create a REG_EQUIV note.
2548 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
2550         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
2551         TREE_CHAIN.
2552         * c-typeck.c (push_init_level): Likewise.
2553         (process_init_element): Likewise.
2555 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
2557         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
2558         (integer_three_node): Add.
2559         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
2560         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
2561         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
2562         of call build_int_cst.
2563         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
2564         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
2565         (find_interesting_uses_address): Ditto.
2566         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
2567         * tree-eh.c (lower_eh_constructs_2): Ditto.
2568         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
2569         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
2570         * expmed.c (expand_divmod): Ditto.
2571         * tree-mudflap.c (mx_register_decls): Ditto.
2572         * varasm.c (array_size_for_constructor): Ditto.
2573         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
2574         * c-parser.c (c_parser_postfix_expression): Ditto.
2576 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
2578         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
2579         New static variables.
2580         (reload_combine_recognize_pattern): New static function, broken out
2581         of reload_combine.
2582         (reload_combine): Use it.  Only initialize first_index_reg and
2583         last_index_reg once.
2585 2010-07-15  Richard Henderson  <rth@redhat.com>
2587         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
2588         when done.
2590 2010-07-15  Jan Hubicka  <jh@suse.cz>
2592         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
2593         comdats for broken gold.
2594         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
2596 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
2598         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
2600 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
2602         * tree.h (DECL_CHAIN): Define.
2603         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2604         * c-decl.c: Likewise.
2605         * c-parser.c: Likewise.
2606         * c-typeck.c: Likewise.
2607         * cfgexpand.c: Likewise.
2608         * cgraph.c: Likewise.
2609         * cgraphunit.c: Likewise.
2610         * combine.c: Likewise.
2611         * config/alpha/alpha.c: Likewise.
2612         * config/arm/arm.c: Likewise.
2613         * config/frv/frv.c: Likewise.
2614         * config/i386/i386.c: Likewise.
2615         * config/i386/winnt-cxx.c: Likewise.
2616         * config/ia64/ia64.c: Likewise.
2617         * config/iq2000/iq2000.c: Likewise.
2618         * config/mep/mep.c: Likewise.
2619         * config/mips/mips.c: Likewise.
2620         * config/pa/som.h: Likewise.
2621         * config/rs6000/rs6000.c: Likewise.
2622         * config/s390/s390.c: Likewise.
2623         * config/sh/sh.c: Likewise.
2624         * config/sh/symbian-cxx.c: Likewise.
2625         * config/sparc/sparc.c: Likewise.
2626         * config/spu/spu.c: Likewise.
2627         * config/stormy16/stormy16.c: Likewise.
2628         * config/vxworks.c: Likewise.
2629         * config/xtensa/xtensa.c: Likewise.
2630         * coverage.c: Likewise.
2631         * dbxout.c: Likewise.
2632         * dwarf2out.c: Likewise.
2633         * emit-rtl.c: Likewise.
2634         * expr.c: Likewise.
2635         * function.c: Likewise.
2636         * gimple-low.c: Likewise.
2637         * gimple-pretty-print.c: Likewise.
2638         * gimplify.c: Likewise.
2639         * integrate.c: Likewise.
2640         * ipa-inline.c: Likewise.
2641         * ipa-prop.c: Likewise.
2642         * ipa-split.c: Likewise.
2643         * ipa-struct-reorg.c: Likewise.
2644         * ipa-type-escape.c: Likewise.
2645         * langhooks.c: Likewise.
2646         * lto-cgraph.c: Likewise.
2647         * omp-low.c: Likewise.
2648         * stor-layout.c: Likewise.
2649         * tree-cfg.c: Likewise.
2650         * tree-complex.c: Likewise.
2651         * tree-dfa.c: Likewise.
2652         * tree-dump.c: Likewise.
2653         * tree-inline.c: Likewise.
2654         * tree-mudflap.c: Likewise.
2655         * tree-nested.c: Likewise.
2656         * tree-object-size.c: Likewise.
2657         * tree-pretty-print.c: Likewise.
2658         * tree-sra.c: Likewise.
2659         * tree-ssa-live.c: Likewise.
2660         * tree-ssa-loop-niter.c: Likewise.
2661         * tree-ssa-math-opts.c: Likewise.
2662         * tree-ssa-reassoc.c: Likewise.
2663         * tree-ssa-sccvn.c: Likewise.
2664         * tree-ssa-structalias.c: Likewise.
2665         * tree-tailcall.c: Likewise.
2666         * tree-vrp.c: Likewise.
2667         * tree.c: Likewise.
2668         * var-tracking.c: Likewise.
2669         * varasm.c: Likewise.
2671 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2673         PR target/44877
2674         * config/spu/spu.c (spu_expand_builtin_1): Allow references
2675         (as well as pointers) as argument to mask_for_load builtins.
2677 2010-07-15  Richard Guenther  <rguenther@suse.de>
2679         PR tree-optimization/44946
2680         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
2681         with accessing only padding properly.
2683 2010-07-15  Jan Hubicka  <jh@suse.cz>
2685         * ipa.c (function_and_variable_visibility): Variables marked as used
2686         should not be localized.
2688 2010-07-15  Jan Hubicka  <jh@suse.cz>
2690         * cgraph.c: Include lto-streamer.h
2691         (change_decl_assembler_name): Work when assembler name hash is at place.
2692         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
2693         be sure to rename it to avoid name clash.
2694         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
2695         Localize hidden symbols only when locally defined.
2697 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
2699         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
2701 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
2702             Kevin F. Quinn  <kevquinn@gentoo.org>
2704         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
2705         * common.opt: Add -Wtrampolines.
2706         * doc/invoke.texi: Add -Wtrampolines.
2708 2010-07-15  Jie Zhang  <jie@codesourcery.com>
2710         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
2711         cortex_a8_issue_ls.
2713 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
2715         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
2716         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
2718 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2720         * config/spu/spu.c (reg_names): Remove prototype.
2721         (call_used_regs): Likewise.
2723 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
2725         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
2726         "unused" with attribute "used".
2727         (__JCR_END__): Likewise.
2728         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
2729         "used" attribute.
2730         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
2732 2010-07-14  Richard Guenther  <rguenther@suse.de>
2734         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
2735         (maybe_fixup_decls): Likewise.
2736         (input_gimple_stmt): Do not fixup anything.
2737         * lto-streamer-out.c (output_gimple_stmt): Make sure all
2738         non-automatic variable uses are wrapped inside a MEM_REF.
2740 2010-07-14  Richard Henderson  <rth@redhat.com>
2742         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
2743         for functions.
2744         * varasm.c (assemble_variable): Remove early exit for functions;
2745         assert that we're given a variable.
2747 2010-07-14  Jie Zhang  <jie@codesourcery.com>
2749         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
2750         cortex_a8_default when neon_type is not none.
2752 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
2754         * lower-subreg.c (subreg_context): New static bitmap.
2755         (decompose_multiword_subregs): Allocate and free it.
2756         (find_decomposable_subregs): Set a bit in it for a register that
2757         occurs in a subreg that changes mode but not size.
2758         (can_decompose_p): Test it instead of non_decomposable_context.
2760 2010-07-14  Richard Guenther  <rguenther@suse.de>
2762         PR tree-optimization/44824
2763         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
2764         is_gimple_mem_ref_addr.
2765         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
2766         non-decl_address_invariant_p addresses.
2768 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
2770         * reload.c (find_reloads): Revert code to penalize small register
2771         classes that was brought in with the IRA merge.
2773 2010-07-14  Richard Guenther  <rguenther@suse.de>
2775         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
2776         as base of ARRAY_REFs.
2778 2010-07-14  Richard Guenther  <rguenther@suse.de>
2780         PR middle-end/44930
2781         * tree-pretty-print.c (do_niy): Do not print a newline.
2783 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
2785         * ira-int.h (struct ira_object): New.
2786         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
2787         (struct ira_allocno): Remove members min, max,
2788         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
2789         conflict_allocnos_num and conflict_vec_p.  Add new member object.
2790         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
2791         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
2792         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
2793         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
2794         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
2795         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
2796         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
2797         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
2798         an ira_object_t rather than ira_allocno_t.  All uses changed.
2799         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
2800         contains a vector of ira_object_t; all uses changed.
2801         (ira_objects_num): Declare variable.
2802         (ira_create_allocno_object): Declare function.
2803         (ira_conflict_vector_profitable_p): Adjust prototype.
2804         (ira_allocate_conflict_vec): Renamed from
2805         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
2806         (ira_allocate_object_conflicts): Renamed from
2807         ira_allocate_allocno_conflicts; first arg now ira_object_t.
2808         (struct ira_object_iterator): New.
2809         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
2810         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
2811         to conflict_vec_p.  All uses changed.
2812         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
2813         Changed to take into account that conflicts are now tracked for
2814         objects.
2815         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
2816         Args changed to accept ira_object_t.  All uses changed.
2817         (allocnos_conflict_p): New static function.
2818         (collected_conflict_objects): Renamed from collected_allocno_objects;
2819         now a vector of ira_object_t.  All uses changed.
2820         (build_conflict_bit_table): Changed to take into account that
2821         conflicts are now tracked for objects.
2822         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
2823         (print_allocno_conflicts, ira_build_conflicts): Likewise.
2824         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
2825         setup_allocno_left_conflicts_size, allocno_reload_assign,
2826         fast_allocation): Likewise.
2827         * ira-lives.c (make_hard_regno_born, make_allocno_born)
2828         process_single_reg_class_operands, process_bb_node_lives): Likewise.
2829         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
2830         Likewise.
2831         * ira-build.c (ira_objects_num): New variable.
2832         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
2833         contains a vector of ira_object_t; all uses changed.
2834         (ira_object_id_map_vec): Corresponding change.
2835         (object_pool): New static variable.
2836         (initiate_allocnos): Initialize it.
2837         (finish_allocnos): Free it.
2838         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
2839         New functions.
2840         (ira_create_allocno): Don't set members that were removed.
2841         (ira_set_allocno_cover_class): Don't change conflict hard regs.
2842         (merge_hard_reg_conflicts): Changed to take into account that
2843         conflicts are now tracked for objects.
2844         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
2845         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
2846         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
2847         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
2848         setup_min_max_conflict_allocno_ids, ):  Likewise.
2849         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
2850         to ira_object_t; all callers changed.
2851         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
2852         to ira_object_t, all callers changed.
2853         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
2854         to ira_object_t, all callers changed.
2855         (conflict_check, curr_conflict_check_tick): Renamed from
2856         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
2857         changed.
2858         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
2859         arg changed to ira_object_t, all callers changed.
2860         (create_cap_allocno): Call ira_create_allocno_object.
2861         (finish_allocno): Free the corresponding object.
2862         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
2863         callers changed.  Adjusted for dealing with objects.
2864         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
2865         dealing with objects.
2866         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
2868         * ira-int.h (struct live_range): Rename allocno member to object
2869         and change type to ira_object_t.
2870         (struct ira_object): New member live_ranges.
2871         (struct ira_allocno): Remove member live_ranges.
2872         (ALLOCNO_LIVE_RANGES): Remove.
2873         (OBJECT_LIVE_RANGES): New macro.
2874         (ira_create_live_range, ira_copy_live_range_list,
2875         ira_merge_live_range_list, ira_live_ranges_intersect_p,
2876         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
2877         * ira-build.c (ira_create_object): Initialize live ranges here.
2878         (ira_create_allocno): Not here.
2879         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
2880         changed to ira_object_t, all callers changed.
2881         (copy_live_range): Rename from copy_allocno_live_range, all callers
2882         changed.
2883         (ira_copy_live_range_list): Rename from
2884         ira_copy_allocno_live_range_list, all callers changed.
2885         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
2886         all callers changed.
2887         (ira_live_ranges_intersect_p): Rename from
2888         ira_allocno_live_ranges_intersect_p, all callers changed.
2889         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
2890         callers changed.
2891         (ira_finish_live_range_list): Rename from
2892         ira_finish_allocno_live_range_list, all callers changed.
2893         (change_object_in_range_list): Rename from change_allocno_in_range_list,
2894         last arg changed to ira_object_t, all callers changed.
2895         (finish_allocno): Changed to expect live ranges in the allocno's object.
2896         (move_allocno_live_ranges, copy_allocno_live_ranges,
2897         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
2898         ira_flattening, ira_build): Likewise.
2899         * ira-color.c (allocnos_have_intersected_live_ranges_p,
2900         slot_coalesced_allocno_live_ranges_intersect,
2901         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
2902         * ira-conflicts.c (build_conflict_bit_table): Likewise.
2903         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
2904         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
2905         make_allocno_dead, create_start_finish_chains,
2906         remove_some_program_points_and_update_live_ranges,
2907         ira_debug_live_range_list): Likewise.
2909         * ira-int.h (ira_object_conflict_iterator): Rename from
2910         ira_allocno_conflict_iterator.
2911         (ira_object_conflict_iter_init): Rename from
2912         ira_allocno_conflict_iter_init, second arg changed to
2913         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
2914         FOR_EACH_ALLOCNO_CONFLICT.
2915         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
2916         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
2917         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
2918         * ira-conflicts.c (print_allocno_conflicts): Likewise.
2920 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
2922         PR other/44874
2923         * tree-dump.c (dump_options): Add enumerate_locals entry.
2924         Add TDF_NOID exclusion to all entry.
2925         * tree-dump.h (dump_enumerated_decls): Declare.
2926         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
2927         Don't display type uid.
2928         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
2929         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
2930         * tree-ssa-live.c: Include gimple.h.
2931         (numbered_tree_d): New struct.
2932         (numbered_tree): New typedef.
2933         (DEF_VEC_O (numbered_tree): New.
2934         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
2935         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
2936         (dump_enumerated_decls): Likewise.
2937         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
2938         debug info and flag_dump_final_insns, call dump_enumerated_decls.
2939         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
2940         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
2942 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
2944         * expmed.h (MAX_BITS_PER_WORD): Move to...
2945         * defaults.h (MAX_BITS_PER_WORD): ...here.
2947 2010-07-13  DJ Delorie  <dj@redhat.com>
2949         * config/h8300/h8300.c (h8300_init_once): Default to
2950         -fstrict_volatile_bitfields.
2952         * config/sh/sh.c (sh_override_options): Default to
2953         -fstrict_volatile_bitfields.
2955         * config/rx/rx.c (rx_option_override): New.
2957         * config/m32c/m32c.c (m32c_override_options): Default to
2958         -fstrict_volatile_bitfields.
2960 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
2962         * tree.h (build_function_call_expr): Delete.
2963         (build_call_expr_loc_array): New function.
2964         (build_call_expr_loc_vec): New function.
2965         * tree-flow.h (struct omp_region): Change type of ws_args field
2966         to a VEC.
2967         * builtins.c (build_function_call_expr): Delete.
2968         (build_call_expr_loc_array): New function.
2969         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
2970         (build_call_expr): Likewise.
2971         (build_call_expr_loc_vec): New function.
2972         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
2973         build_function_call_expr.
2974         * expr.c (emutls_var_address): Likewise.
2975         * varasm.c (emutls_common_1): Likewise.
2976         * omp-low.c (expand_omp_atomic_mutex): Likewise.
2977         (expand_omp_taskreg): Adjust for new type of region->ws_args.
2978         (get_ws_args_for): Return a VEC instead of a tree.
2979         (expand_parallel_call): Call build_call_expr_loc_vec instead of
2980         build_function_call_expr.
2981         * stor-layout.c (self_referential_size): Likewise.
2983 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
2985         PR testsuite/44701
2986         * recog.c (constrain_operands): Allow side-effects in memory
2987         operands if either < or > constraint is used, rather than if
2988         both < and > is used.
2990 2010-07-13  Richard Guenther  <rguenther@suse.de>
2992         PR middle-end/44911
2993         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
2994         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
2995         without name.
2997 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
2999         PR target/44761
3000         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
3001         to variable emited.
3002         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
3003         * config/sh/sh.md (symGOT_load): Likewise.
3004         (symDTPOFF2reg): Likewise.
3005         (symTPOFF2reg): Likewise.
3007 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3009         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
3010         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
3012 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3014         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
3015         explanation.
3016         Find ucontext_t * on Solaris 11.
3017         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
3018         Handle new Solaris 11 __sighndlr patterns.
3020 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
3022         PR debug/44901
3023         * vec.h (VEC_block_remove): Fix comment.
3024         * tree-ssa-live.c (remove_unused_locals): Don't use
3025         VEC_unordered_remove on local_decls, instead replace a single
3026         vector element in each iteration if at least one element had
3027         to be removed and VEC_truncate at the end.
3028         * omp-low.c (expand_omp_taskreg): Likewise.
3030 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3032         * c-decl.c (finish_function): Fix typo in comment.
3034 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
3036         PR bootstrap/44921
3037         * postreload.c (move2add_use_add3_insn): Silence gcc warning
3038         on min_regno.
3040 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
3042         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
3043         (simplify_stmt_using_ranges): Use it.
3045 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3047         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
3048         member.  Do not mark as GTY(()).
3049         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
3050         (spu_builtin_decls): New static variable.
3051         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
3052         (spu_init_builtins): Likewise.
3053         (spu_builtin_mul_widen_even): Likewise.
3054         (spu_builtin_mul_widen_odd): Likewise.
3055         (spu_builtin_mask_for_load): Likewise.
3056         (spu_builtin_vec_perm): Likewise.
3057         * config/spu/spu-c.c: Include "target.h".
3058         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
3059         of using spu_builtins[].fndecl.
3061 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3063         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
3064         imply -minterlink-mips16.
3066 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3068         * config/mips/mips.h (mips16_globals): Declare.
3069         (SWITCHABLE_TARGET): Define.
3070         * config/mips/mips.c: Include target-globals.h.
3071         (mips16_globals): New variable.
3072         (mips_set_mips16_mode): Use save_target_globals and
3073         restore_target_globals instead of target_reinit.
3075 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3077         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
3078         to say that the function can be called more than once.
3079         * target-globals.c (save_target_globals): Call init_reg_sets.
3081 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3083         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
3084         * bb-reorder.h: New file.
3085         * bb-reorder.c (default_target_bb_reorder): New variable.
3086         (this_target_bb_reorder): New conditional variable.
3087         (uncond_jump_length): Redefine as a macro.
3088         * target-globals.h (this_target_bb_reorder): Declare.
3089         (target_globals): Add a bb_reorder field.
3090         (restore_target_globals): Copy the bb_reorder field to
3091         this_target_bb-reorder.
3092         * target-globals.c: Include bb-reorder.h.
3093         (default_target_globals): Initialize the bb_reorder field.
3094         (save_target_globals): Likewise.
3096 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3098         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
3099         * gcse.h: New file.
3100         * gcse.c: Include gcse.h.
3101         (default_target_gcse): New variable.
3102         (this_target_gcse): New conditional variable.
3103         (can_copy): Redefine as a macro.
3104         (can_copy_init_p): New macro.
3105         (can_copy_p): Remove can_copy_init_p.
3106         * target-globals.h (this_target_gcse): Declare.
3107         (target_globals): Add a gcse field.
3108         (restore_target_globals): Copy the gcse field to this_target_gcse.
3109         * target-globals.c: Include gcse.h.
3110         (default_target_globals): Initialize the gcse field.
3111         (save_target_globals): Likewise.
3113 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3115         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
3116         and x_ira_prohibited_mode_move_regs_initialized_p.
3117         (ira_prohibited_mode_move_regs): Redefine as a macro.
3118         * ira.c (ira_prohibited_mode_move_regs): Delete.
3119         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
3121 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3123         * reload.h (target_reload): Add x_cached_reg_save_code and
3124         x_cached_reg_restore_code.
3125         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
3126         Redefine as macros.
3128 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3130         * Makefile.in (target-globals.o): Depend on builtins.h.
3131         * builtins.h: New file.
3132         * builtins.c: Include builtins.h.
3133         (default_target_builtins): New variable.
3134         (this_target_builtins): New conditional variable.
3135         (apply_args_mode, apply_result_mode): Redefine as macros.
3136         * target-globals.h (this_target_builtins): Declare.
3137         (target_globals): Add a builtins field.
3138         (restore_target_globals): Copy the builtins field to
3139         this_target_builtins.
3140         * target-globals.c: Include builtins.h.
3141         (default_target_globals): Initialize the builtins field.
3142         (save_target_globals): Likewise.
3144 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3146         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
3147         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
3148         from expmed.c.
3149         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
3150         (alg_hash, alg_hash_used_p): New macros.
3151         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
3152         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
3153         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
3155 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3157         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
3158         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
3159         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
3160         (this_op_costs, costs_classes): Redefine as macros.
3161         (record_reg_classes): Don't take op_costs as a parameter.
3162         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
3163         (scan_one_insn): Update call to record_operand_costs.
3165 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3167         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
3168         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
3169         (target_ira_int): New structure.
3170         (default_target_ira_int): Declare.
3171         (this_target_ira_int): Declare as a variable or define as a macro.
3172         (ira_reg_mode_hard_regset, ira_register_move_cost)
3173         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
3174         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
3175         (prohibited_class_mode_regs, ira_important_classes_num)
3176         (ira_important_classes, ira_reg_class_intersect)
3177         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
3178         (ira_reg_class_union): Redefine as macros.
3179         * ira.h (target_ira): New structure.
3180         (default_target_ira): Declare.
3181         (this_target_ira): Declare as a variable or define as a macro.
3182         (ira_available_class_regs, ira_hard_regno_cover_class)
3183         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
3184         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
3185         (ira_class_hard_regs_num): Redefine as macros.
3186         * ira.c (default_target_ira, default_target_ira_int): New variables.
3187         (this_target_ira, this_target_ira_int): New conditional variables.
3188         (ira_reg_mode_hard_regset, ira_memory_move_cost)
3189         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
3190         (ira_class_subset_p): Delete.
3191         (no_unit_alloc_regs): Redefine as a macro.
3192         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
3193         (ira_class_hard_regs_num, ira_class_hard_reg_index)
3194         (ira_available_class_regs): Delete.
3195         (alloc_reg_class_subclasses): Redefine as a macro.
3196         (ira_reg_class_cover_size, ira_reg_class_cover)
3197         (ira_important_classes_num, ira_important_classes)
3198         (ira_important_class_nums, ira_class_translate): Delete.
3199         (cover_class_order): Document the variable's lifetime.
3200         (reorder_important_classes): Don't set ira_important_class_nums.
3201         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
3202         (ira_reg_class_super_classes, ira_reg_class_union)
3203         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
3204         Delete.
3205         (setup_reg_class_nregs): Don't set ira_max_regs.
3206         (prohibited_class_mode_regs): Delete.
3207         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
3208         (target_globals): Add ira and ira_int fields.
3209         (restore_target_globals): Copy the ira field to this_target_ira
3210         and the ira_int field to this_target_ira_int.
3211         * target-globals.c: Include ira-int.h.
3212         (default_target_globals): Initialize the ira and ira_int fields.
3213         (save_target_globals): Likewise.
3215 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3217         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
3218         * cfgloop.h (target_cfgloop): New structure.
3219         (default_target_cfgloop): Declare.
3220         (this_target_cfgloop): Declare as a variable or define as a macro.
3221         (target_avail_regs, target_clobbered_regs, target_res_regs)
3222         (target_reg_cost, target_spill_cost): Redefine as macros.
3223         * cfgloopanal.c (default_target_cfgloop): New variable.
3224         (this_target_cfgloop): New conditional variable.
3225         (target_avail_regs, target_clobbered_regs, target_res_regs)
3226         (target_reg_cost, target_spill_cost): Delete.
3227         * target-globals.h (this_target_cfgloop): Declare.
3228         (target_globals): Add a cfgloop field.
3229         (restore_target_globals): Copy the cfgloop field to
3230         this_target_cfgloop.
3231         * target-globals.c: Include cfgloop.h.
3232         (default_target_globals): Initialize the cfgloop field.
3233         (save_target_globals): Likewise.
3235 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3237         * regs.h (target_regs): Add x_direct_load, x_direct_store and
3238         x_float_extend_from_mem.
3239         (direct_load, direct_store, float_extend_from_mem): New macros.
3240         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
3242 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3244         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
3245         (target-globals.o): Depend on $(LIBFUNCS_H).
3246         * libfuncs.h: Include hashtab.h.
3247         (libfunc_entry): Moved from optabs.c.
3248         (target_libfuncs): New structure.
3249         (default_target_libfuncs): Declare.
3250         (this_target_libfuncs): Declare as a variable or define as a macro.
3251         (libfunc_table): Redefine as a macro.
3252         * optabs.c (default_target_libfuncs): New variable.
3253         (this_target_libfuncs): New conditional variable.
3254         (libfunc_table): Delete.
3255         (libfunc_entry): Moved to optabs.h.
3256         (libfunc_hash): Redefine as a macro.
3257         (hash_libfunc, eq_libfunc): Fix comments.
3258         (init_optabs): Use libfunc_hash to detect cases where the function
3259         has already been called.  Clear the hash table instead of
3260         recreating it.
3261         * target-globals.h (this_target_libfuncs): Declare.
3262         (target_globals): Add a libfuncs field.
3263         (restore_target_globals): Copy the libfuncs field to
3264         this_target_libfuncs.
3265         * target-globals.c: Include libfuncs.h.
3266         (default_target_globals): Initialize the libfuncs field.
3267         (save_target_globals): Likewise.
3269 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3271         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
3272         in all dependency lists.
3274 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3276         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
3277         * optabs.h (target_optabs): New structure.
3278         (default_target_optabs): Declare.
3279         (this_target_optabs): Declare as a variable or define as a macro.
3280         (optab_table, convert_optab_table, direct_optab_table): Redefine
3281         as macros.
3282         * optabs.c (default_target_optabs): New variable.
3283         (this_target_optabs): New conditional variable.
3284         (optab_table, convert_optab_table, direct_optab_table): Delete.
3285         * target-globals.h (this_target_optabs): Declare.
3286         (target_globals): Add a optabs field.
3287         (restore_target_globals): Copy the optabs field to
3288         this_target_optabs.
3289         * target-globals.c: Include expr.h and optabs.h.
3290         (default_target_globals): Initialize the optabs field.
3291         (save_target_globals): Likewise.
3293 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3295         * flags.h (target_flagstate): Add x_flag_excess_precision.
3296         (flag_excess_precision): Redefine as a macro.
3297         * toplev.c (flag_excess_precision): Delete.
3299 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3301         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
3302         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
3303         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
3304         (no_caller_save_reg_set): Redefine as a macro.
3305         * reload.h (target_reload): Add x_caller_save_initialized_p and
3306         x_regno_save_mode.
3307         (caller_save_initialized_p): Redefine as a macro.
3308         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
3309         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
3310         (regno_save_mode): Redefine as a macro.
3312 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3314         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
3315         * expmed.h: New file.
3316         * expmed.c (default_target_costs): New variable.
3317         (this_target_costs): New conditional variable.
3318         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
3319         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
3320         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
3321         * target-globals.h (this_target_expmed): Declare.
3322         (target_globals): Add a expmed field.
3323         (restore_target_globals): Copy the expmed field to
3324         this_target_expmed.
3325         * target-globals.c: Include expmed.h.
3326         (default_target_globals): Initialize the expmed field.
3327         (save_target_globals): Likewise.
3329 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3331         * Makefile.in (target-globals.o): Depend on reload.h.
3332         * reload.h (target_reload): New structure.
3333         (default_target_reload): Declare.
3334         (this_target_reload): Declare as a variable or define as a macro.
3335         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
3336         * reload1.c (default_target_reload): New variable
3337         (this_target_reload): New conditional variable.
3338         (indirect_symref_ok, double_reg_address_ok): Delete.
3339         (spill_indirect_levels): Redefine as a macro.
3340         * target-globals.h (this_target_reload): Declare.
3341         (target_globals): Add a reload field.
3342         (restore_target_globals): Copy the reload field to
3343         this_target_reload.
3344         * target-globals.c: Include hard-reg-set.h.
3345         (default_target_globals): Initialize the reload field.
3346         (save_target_globals): Likewise.
3348 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3350         * rtl.h (target_rtl): Add x_static_reg_base_value.
3351         * alias.c (static_reg_base_value): Redefine as a macro.
3353 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3355         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
3356         (GTFILES): Remove reginfo.c.
3357         * rtl.h (target_rtl): Add x_top_of_stack.
3358         (top_of_stack): New macro.
3359         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
3360         (top_of_stack): Delete.
3362 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3364         * regs.h (target_regs): Add x_hard_regs_of_mode,
3365         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
3366         x_may_move_out_cost and x_last_mode_for_init_move_cost.
3367         (have_regs_of_mode, contains_reg_of_mode, move_cost)
3368         (may_move_in_cost, may_move_out_cost): Redefine as macros.
3369         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
3370         (may_move_in_cost, may_move_out_cost): Delete.
3371         (last_mode_for_init_move_cost): Redefine as a macro.
3373 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3375         * hard-reg-set.h (target_hard_regs): New structure.
3376         (default_target_hard_regs): Declare.
3377         (this_target_hard_regs): Declare as a variable or define as a macro.
3378         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
3379         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
3380         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
3381         (reg_class_size, reg_class_subclasses, reg_class_subunion)
3382         (reg_class_superunion, reg_names): Redefine as macros.
3383         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
3384         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
3385         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
3386         (reg_class_contents, reg_class_size, reg_class_subclasses)
3387         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
3388         (default_target_hard_regs): New variable
3389         (this_target_hard_regs, initial_call_really_used_regs)
3390         (initial_reg_alloc_order): New conditional variables.
3391         (initial_reg_names): New variable.
3392         (init_reg_sets): Assert that initial_call_really_used_regs,
3393         initial_reg_alloc_order and initial_reg_names
3394         are all the same size as their variable counterparts.  Use them to
3395         initialize those counterparts.
3396         * target-globals.h (this_target_hard_regs): Declare.
3397         (target_globals): Add a hard_regs field.
3398         (restore_target_globals): Copy the hard_regs field to
3399         this_target_hard_regs.
3400         * target-globals.c: Include hard-reg-set.h.
3401         (default_target_globals): Initialize the hard_regs field.
3402         (save_target_globals): Likewise.
3404 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3406         * Makefile.in (target-globals.o): Depend on $(RTL_H).
3407         * rtl.h (target_rtl): New structure.
3408         (default_target_rtl): Declare.
3409         (this_target_rtl): Declare as a variable or define as a macro.
3410         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
3411         Redefine as macros.
3412         * emit-rtl.c (default_target_rtl): New variable.
3413         (this_target_rtl): New conditional variable.
3414         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
3415         (return_address_pointer_rtx): Delete.
3416         (initial_regno_reg_rtx): New macro.
3417         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
3418         (init_emit_regs): Likewise.
3419         * target-globals.h (this_target_rtl): Declare.
3420         (target_globals): Add a rtl field.
3421         (restore_target_globals): Copy the rtl field to this_target_rtl.
3422         * target-globals.c: Include rtl.h.
3423         (default_target_globals): Initialize the rtl field.
3424         (save_target_globals): Likewise.
3426 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3428         * Makefile.in (target-globals.o): Depend on $(REGS_H).
3429         * regs.h (target_reg_modes): New structure.
3430         (default_target_reg_modes): Declare.
3431         (this_target_reg_modes): Declare as a variable or define as a macro.
3432         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
3433         * reginfo.c (default_target_reg_modes): New variable.
3434         (this_target_reg_modes): New conditional variable.
3435         (hard_regno_nregs, reg_raw_mode): Delete.
3436         * target-globals.h (this_target_regs): Declare.
3437         (target_globals): Add a regs field.
3438         (restore_target_globals): Copy the regs field to this_target_regs.
3439         * target-globals.c: Include regs.h.
3440         (default_target_globals): Initialize the regs field.
3441         (save_target_globals): Likewise.
3443 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
3445         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
3446         * doc/tm.texi: Regenerate.
3447         * Makefile.in (OBJS-common): Add target-globals.o.
3448         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
3449         and target-globals.h.
3450         (target-globals.o): New rule.
3451         (GTFILES): Include $(srcdir)/target-globals.h.
3452         * defaults.h (SWITCHABLE_TARGET): Define.
3453         * gengtype.c (open_base_files): Add target-globals.h to the
3454         list of includes.
3455         * target-globals.h: New file.
3456         * target-globals.c: Likewise.
3458         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
3459         * flags.h (target_flag_state): New structure.
3460         (default_target_flag_state): Declare.
3461         (this_target_flag_state): Declare as a variable or define as a macro.
3462         (align_loops_log): Redefine as a macro.
3463         (align_loops_max_skip, align_jumps_log): Likewise.
3464         (align_jumps_max_skip, align_labels_log): Likewise.
3465         (align_labels_max_skip, align_functions_log): Likewise.
3466         * toplev.c (default_target_flag_state): New variable.
3467         (this_target_flag_state): New conditional variable.
3468         (align_loops_log): Delete.
3469         (align_loops_max_skip, align_jumps_log): Likewise.
3470         (align_jumps_max_skip, align_labels_log): Likewise.
3471         (align_labels_max_skip, align_functions_log): Likewise.
3472         * target-globals.h (this_target_flag_state): Declare.
3473         (target_globals): Add a flag_state field.
3474         (restore_target_globals): Copy the flag_state field to
3475         this_target_flag_state.
3476         * target-globals.c: Include flags.h.
3477         (default_target_globals): Initialize the flag_state field.
3478         (save_target_globals): Likewise.
3480 2010-07-12  Jie Zhang  <jie@codesourcery.com>
3482         * postreload.c (reg_symbol_ref[]): New.
3483         (move2add_use_add2_insn): New.
3484         (move2add_use_add3_insn): New.
3485         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
3486         (move2add_note_store): Likewise.
3488 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
3490         PR rtl-optimization/44752
3491         * genautomata.c (main): Don't emit an empty file even if there
3492         is no automaton.
3494 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3496         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
3497         ix86_solaris_return_in_memory.
3498         * config/i386-protos.h: Reflect this.
3499         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
3500         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
3501         Move ...
3502         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
3504 2010-07-12  Jie Zhang  <jie@codesourcery.com>
3506         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
3507         align the stack when it's going to be saved.
3509 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3511         PR pch/14940
3512         * config/host-solaris.c (mmap_fixed): New function.
3513         (sol_gt_pch_get_address): Use it.
3514         (sol_gt_pch_use_address): Likewise.
3516 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3518         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
3519         pentiumpro on Solaris 8 and 9/x86.
3520         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
3521         Document SSE/SSE2 support.
3522         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
3524 2010-07-12  Andi Kleen  <ak@linux.intel.com>
3526         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
3527         instead of gcc_assert to print better error message for multiple
3528         prevailing defs.
3530 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
3532         * config/i386/i386.c (ix86_asm_output_function_label): Change format
3533         string placeholder from 0x%x to %#x.
3534         (ix86_code_end): Use putc to output '\n'.
3535         (ix86_print_operand) <case ';'>: Use putc to output ';'.
3537 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
3539         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
3540         in directive -export.
3542 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
3544         * reginfo.h (reg_classes_intersect_p): Change arguments type to
3545         reg_class_t.
3546         * rtl.h (reg_classes_intersect_p): Adjust prototype.
3548         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
3549         Remove macros.
3550         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
3551         rs6000_memory_move_cost): Remove
3552         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
3553         TARGET_MEMORY_MOVE_COST): Define.
3554         (rs6000_register_move_cost): Make static. Change arguments type from
3555         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
3556         (rs6000_memory_move_cost): Make static. Change arguments type from
3557         'enum reg_class' to reg_class_t.
3559 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
3561         PR middle-end/42505
3562         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
3563         lookup code into....
3564         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
3565         new functions.
3566         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
3567         * cfgloopanal.c (target_clobbered_regs): Define.
3568         (init_set_costs): Initialize target_clobbered_regs.
3569         (estimate_reg_pressure_cost): Add call_p argument.  When true,
3570         adjust the number of available registers to exclude the
3571         call-clobbered registers.
3572         * cfgloop.h (target_clobbered_regs): Declare.
3573         (estimate_reg_pressure_cost): Adjust declaration.
3574         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
3575         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
3576         (determine_set_costs): Dump target_clobbered_regs.
3577         (loop_body_includes_call): New function.
3578         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
3579         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
3580         call_p flag through.
3581         (best_gain_for_invariant): Likewise.
3582         (find_invariants_to_move): Likewise.
3583         (move_single_loop_invariants): Likewise, using already-computed
3584         has_call field.
3586 2010-07-10  Richard Guenther  <rguenther@suse.de>
3587             Joern Rennecke  <joern.rennecke@embecosm.com>
3589         PR debug/44832
3590         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
3591         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
3592         unless they have DECL_IGNORED_P set.
3594 2010-07-10  Richard Guenther  <rguenther@suse.de>
3596         PR lto/44889
3597         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
3598         helper function.
3599         (gimple_types_compatible_p): Similar to pointed-to
3600         types allow and merge a mix of complete and incomplete aggregate.
3601         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
3602         (iterative_hash_gimple_type): Adjust for that.
3604 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
3606         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
3608 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
3610         PR objc/44140
3611         * config/darwin.c (output_objc_section_asm_op): Save and restore
3612         section when outputting ObjC section list.
3614 2010-07-09  Jan Hubicka  <jh@suse.cz>
3616         * lto-streamer-out.c (produce_symtab): Do not write alias
3617         cgraph/varpool nodes.
3619 2010-07-09  Jan Hubicka  <jh@suse.cz>
3621         * tree-inline.c (declare_return_variable): Fix ICE while
3622         inlining DECL_BY_VALUE function not in SSA form
3624 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
3626         PR tree-optimization/44576
3627         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
3628         New.  Pull out from is_loop_prefetching_profitable to implement
3629         the trip count to ahead ratio heuristic.
3630         (mem_ref_count_reasonable_p): New.  Pull out from
3631         is_loop_prefetching_profitable to implement the instruction to
3632         memory reference ratio heuristic.  Also consider not reasonable if
3633         the memory reference count is above a threshold (to avoid
3634         explosive compilation time.
3635         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
3636         is_loop_prefetching_profitable to implement the instruction to
3637         prefetch ratio heuristic.
3638         (is_loop_prefetching_profitable): Removed.
3639         (loop_prefetch_arrays): Distribute the cost analysis across the
3640         function to allow early exit of the prefetch analysis.
3641         is_loop_prefetching_profitable is splitted into three functions,
3642         with each one called as early as possible.
3643         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
3644         number of memory references in a loop is considered too many.
3646 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
3648         * reload.c (find_reloads): Don't clear badop if we have a winreg
3649         alternative, but not win, and the class only has fixed regs.
3650         * hard-reg-set.h (class_only_fixed_regs): Declare.
3651         * reginfo.c (class_only_fixed_regs): New array.
3652         (init_reg_sets_1): Initialize it.
3653         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
3654         discourage alternatives using the stack pointer.
3656         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
3658         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
3660         * config/arm/arm.md (cbranchqi4): Fix array size.
3661         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
3662         calculating length.
3664 2010-07-09  Richard Guenther  <rguenther@suse.de>
3666         * gimple.c (struct type_fixup_s): New struct and VEC type.
3667         (gimple_register_type_fixups): New static global.
3668         (gimple_queue_type_fixup): New function.
3669         (gimple_types_compatible_p): Queue type fixups instead of
3670         applying them here.
3671         (gimple_register_type): Apply queued fixups for the
3672         canonical type.  Empty the type fixup queue.
3674 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
3676         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
3677         * configure: Regenerate.
3678         * config.in: Ditto.
3680 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
3681             Denys Vlasenko  <dvlasenk@redhat.com>
3682             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3684         PR tree-optimization/28632
3685         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
3686         (extract_range_from_binary_expr): Further optimize
3687         BIT_AND_EXPR and BIT_IOR_EXPR.
3689 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
3691         * tree-if-conv.c (fold_or_predicates): New.
3692         (add_to_predicate_list): Call it.
3694 2010-07-09  Richard Guenther  <rguenther@suse.de>
3696         PR middle-end/44890
3697         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
3698         if base is a pointer.
3699         * tree-cfg.c (verify_expr): Update MEM_REF checking.
3701 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
3703         PR target/44877
3704         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
3705         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
3706         builtin mask for load/store builtins.
3708 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
3710         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
3711         for "lock addl".
3712         * configure: Regenerate.
3713         * config/i386/i386.c (ix86_print_operand) <case ';'>:
3714         Remove TARGET_MACHO.
3716 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
3718         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
3719         default ISA flags.
3720         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
3722 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
3724         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
3726 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
3728         * config/picochip/picochip.md (commsTestPort): Emit more
3729         efficient sequence for tstport instruction.
3731 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
3733         * config/i386/i386.c (ix86_veclib_handler): Make static.
3735 2010-07-09  Richard Guenther  <rguenther@suse.de>
3737         PR tree-optimization/44852
3738         * tree-ssa-alias.c: Include toplev.h for exact_log2.
3739         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
3740         in MEM_REF.
3741         (indirect_refs_may_alias_p): Likewise.
3742         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
3744 2010-07-09  Richard Guenther  <rguenther@suse.de>
3746         PR tree-optimization/44882
3747         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
3748         sets do conflict.
3749         (vectorizable_load): Likewise.
3751 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
3753         PR target/40657
3754         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
3755         All callers changed.
3756         Handle the case when we're called for the epilogue.
3757         (thumb_unexpanded_epilogue): Use it.
3758         (thumb1_expand_epilogue): Likewise.
3760 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
3762         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
3763         both ranges are range_int_cst_p with non-negative minimum,
3764         try harder to derive smaller range.
3766 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3768         * genrecog.c: Include diagnostic-core.h before toplev.h.
3769         * genoutput.c: Likewise.
3770         * genextract.c: Likewise.
3771         * genautomata.c: Likewise.
3772         * genemit.c: Likewise.
3773         * genpeep.c: Likewise.
3774         * genattrtab.c: Likewise.
3775         * genconditions.c: Likewise.
3776         * genpreds.c: Likewise.
3778 2010-07-08  Andi Kleen  <ak@linux.intel.com>
3780         * lto-section-in.c (lto_section_name): Add missing comma.
3782 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
3784         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
3785         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
3786         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
3787         (ia64_override_options): Rename to...
3788         (ia64_option_override): ... this one. Make static.
3790 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3792         PR middle-end/44843
3793         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
3794         pointed-to type of the offset in a MEM_REF to compute the alignment.
3796 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
3798         * final.c (final_scan_insn): Replace
3799         TARGET_UNWIND_INFO macro check by unwind_emit
3800         hook NULL check.
3801         * targhooks.c (default_unwind_emit): Removed.
3802         * targhooks.h (default_unwind_emit): Likewise.
3803         * target.def (unwind_emit): Set default value to NULL.
3805         * config/i386/i386-protos.h (ix86_asm_output_function_label):
3806         New prototype.
3807         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
3808         for NULL fntype argument and allow 64-bit targets.
3809         (ix86_asm_output_function_label): New function.
3810         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
3811         (ix86_handle_fndecl_attribute): Likewise.
3812         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
3813         * doc/doc/tm.texi: Regenerated.
3814         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
3815         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
3816         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
3817         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
3818         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
3819         * config/elfos.h: Likewise.
3820         * config/i386/cygming.h: Likewise.
3821         * config/netbsd-aout.h: Likewise.
3822         * config/openbsd.h: Likewise.
3823         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
3824         by ix86_asm_output_function_label function call.
3825         * varasm.c (assemble_start_function): Use
3826         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
3828 2010-07-08  Jan Hubicka  <jh@suse.cz>
3830         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
3831         New function.
3832         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
3833         Declare.
3834         * ipa-cp.c (ipcp_estimate_growth): Use it.
3835         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
3836         Likewise.
3838 2010-07-08  Jan Hubicka  <jh@suse.cz>
3840         * tree-inline.c (declare_return_variable): Allocate annotation for new
3841         temporary.
3843 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
3845         PR tree-optimization/44710
3846         * tree-if-conv.c (parse_predicate): New.
3847         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
3848         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
3850 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
3852         * common.opt (ftree-loop-if-convert): New flag.
3853         * doc/invoke.texi (ftree-loop-if-convert): Documented.
3854         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
3855         when flag_tree_loop_if_convert is set.
3857 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
3859         * config/i386/i386.c: Use short syntax for function calls
3860         through function pointers.
3861         * config/i386/i386.md: Ditto.
3863 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3865         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
3867 2010-07-08  Richard Guenther  <rguenther@suse.de>
3869         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
3870         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
3872 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
3874         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
3875         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
3876         (loc_list_from_tree): Likewise.
3877         (output_loc_operands): Handle outputting DW_OP_const[48]u
3878         with loc->dtprel set.
3879         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
3881 2010-07-08  Jan Hubicka  <jh@suse.cz>
3883         * ipa.c: Include pointer-set.h
3884         (cgraph_externally_visible_p): New attribute ALIASED;
3885         when in LTO, hidden symbols are local unless they are aliased.
3886         (function_and_variable_visibility): Compute aliased nodes;
3887         handle LTO and hidden symbol on functions and vars.
3888         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
3889         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
3891 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3893         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
3894         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3895         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3896         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3897         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3898         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
3899         (ix86_gen_probe_stack_range): Likewise.
3900         (override_options): Set them.
3901         (ix86_target_stack_probe): New function.
3902         (ix86_compute_frame_layout): Force use of push instructions to
3903         save registers if stack checking with probes is enabled.
3904         (get_scratch_register_on_entry): New function.
3905         (release_scratch_register_on_entry): Likewise.
3906         (ix86_adjust_stack_and_probe): Likewise.
3907         (output_adjust_stack_and_probe): Likewise.
3908         (ix86_emit_probe_stack_range): Likewise.
3909         (output_probe_stack_range): Likewise.
3910         (ix86_expand_prologue): Emit stack checking code if static built-in
3911         stack checking is enabled.
3912         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
3913         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
3914         (output_adjust_stack_and_probe): Likewise.
3915         (output_probe_stack_range): Likewise.
3916         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
3917         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
3918         TARGET_STACK_PROBE.
3919         (allocate_stack_worker_64): Likewise.
3920         (allocate_stack): Likewise.
3921         (adjust_stack_and_probe): New insn.
3922         (probe_stack_range): Likewise.
3924 2010-07-08  Richard Guenther  <rguenther@suse.de>
3926         PR tree-optimization/44831
3927         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
3928         a MEM_REF preserving TBAA info of the original dereference.
3929         Dereference the original pointer if the address is not invariant.
3930         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
3931         at least one invariant address that we are going to dereference.
3933 2010-07-08  Richard Guenther  <rguenther@suse.de>
3935         PR tree-optimization/44861
3936         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
3937         information when building MEM_REFs.
3938         (vectorizable_load): Likewise.
3939         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
3941 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3943         * config/sol2-c.c: Do not include diagnostic-core.h.
3945 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3947         PR bootstrap/44768
3948         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
3949         with respect to current_function_decl. Pass decl of the function.
3950         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
3951         * ipa-inline.c (compute_inline_parameters): Pass decl to
3952         estimated_stack_frame_size.
3954 2010-07-08  Richard Guenther  <rguenther@suse.de>
3956         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
3957         New function.
3958         (valueize_refs): Call it.
3960 2010-07-08  Richard Guenther  <rguenther@suse.de>
3962         PR rtl-optimization/44838
3963         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
3964         SSA form do not use pointer equivalence.
3966 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
3968         * dwarf2out.c (AT_linkage_name): Delete.
3969         (add_linkage_attr): New function.
3970         (add_linkage_name): Call it to emit the linkage attribute.
3971         (dwarf2out_finish): Likewise.
3972         (move_linkage_attr): Explicitly accept both attribute variants.
3974 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3976         * toplev.h: Do not include diagnostic-core.h.
3977         Include diagnostic-core.h in every file that includes toplev.h.
3978         * c-tree.h: Do not include toplev.h.
3979         * pretty-print.h: Update comment.
3980         * Makefile.in: Update dependencies.
3981         * alias.c: Include diagnostic-core.h in every file that includes
3982         toplev.h.
3983         * attribs.c: Likewise.
3984         * auto-inc-dec.c: Likewise.
3985         * bb-reorder.c: Likewise.
3986         * bt-load.c: Likewise.
3987         * caller-save.c: Likewise.
3988         * calls.c: Likewise.
3989         * cfg.c: Likewise.
3990         * cfganal.c: Likewise.
3991         * cfgbuild.c: Likewise.
3992         * cfgcleanup.c: Likewise.
3993         * cfghooks.c: Likewise.
3994         * cfgloop.c: Likewise.
3995         * combine.c: Likewise.
3996         * config/alpha/alpha.c: Likewise.
3997         * config/arc/arc.c: Likewise.
3998         * config/arm/arm.c: Likewise.
3999         * config/arm/pe.c: Likewise.
4000         * config/avr/avr.c: Likewise.
4001         * config/bfin/bfin.c: Likewise.
4002         * config/cris/cris.c: Likewise.
4003         * config/crx/crx.c: Likewise.
4004         * config/darwin-c.c: Likewise.
4005         * config/darwin.c: Likewise.
4006         * config/fr30/fr30.c: Likewise.
4007         * config/frv/frv.c: Likewise.
4008         * config/h8300/h8300.c: Likewise.
4009         * config/host-darwin.c: Likewise.
4010         * config/i386/i386.c: Likewise.
4011         * config/i386/netware.c: Likewise.
4012         * config/i386/nwld.c: Likewise.
4013         * config/i386/winnt-cxx.c: Likewise.
4014         * config/i386/winnt-stubs.c: Likewise.
4015         * config/i386/winnt.c: Likewise.
4016         * config/ia64/ia64-c.c: Likewise.
4017         * config/ia64/ia64.c: Likewise.
4018         * config/iq2000/iq2000.c: Likewise.
4019         * config/lm32/lm32.c: Likewise.
4020         * config/m32c/m32c-pragma.c: Likewise.
4021         * config/m32c/m32c.c: Likewise.
4022         * config/m32r/m32r.c: Likewise.
4023         * config/m68hc11/m68hc11.c: Likewise.
4024         * config/m68k/m68k.c: Likewise.
4025         * config/mcore/mcore.c: Likewise.
4026         * config/mep/mep-pragma.c: Likewise.
4027         * config/mep/mep.c: Likewise.
4028         * config/mmix/mmix.c: Likewise.
4029         * config/mn10300/mn10300.c: Likewise.
4030         * config/moxie/moxie.c: Likewise.
4031         * config/pa/pa.c: Likewise.
4032         * config/pdp11/pdp11.c: Likewise.
4033         * config/picochip/picochip.c: Likewise.
4034         * config/rs6000/rs6000-c.c: Likewise.
4035         * config/rs6000/rs6000.c: Likewise.
4036         * config/rx/rx.c: Likewise.
4037         * config/s390/s390.c: Likewise.
4038         * config/score/score.c: Likewise.
4039         * config/score/score3.c: Likewise.
4040         * config/score/score7.c: Likewise.
4041         * config/sh/sh.c: Likewise.
4042         * config/sh/symbian-base.c: Likewise.
4043         * config/sh/symbian-c.c: Likewise.
4044         * config/sh/symbian-cxx.c: Likewise.
4045         * config/sol2-c.c: Likewise.
4046         * config/sol2.c: Likewise.
4047         * config/sparc/sparc.c: Likewise.
4048         * config/spu/spu.c: Likewise.
4049         * config/stormy16/stormy16.c: Likewise.
4050         * config/v850/v850-c.c: Likewise.
4051         * config/v850/v850.c: Likewise.
4052         * config/vax/vax.c: Likewise.
4053         * config/vxworks.c: Likewise.
4054         * config/xtensa/xtensa.c: Likewise.
4055         * convert.c: Likewise.
4056         * cse.c: Likewise.
4057         * cselib.c: Likewise.
4058         * dbgcnt.c: Likewise.
4059         * dbxout.c: Likewise.
4060         * ddg.c: Likewise.
4061         * dominance.c: Likewise.
4062         * emit-rtl.c: Likewise.
4063         * explow.c: Likewise.
4064         * expmed.c: Likewise.
4065         * fixed-value.c: Likewise.
4066         * fold-const.c: Likewise.
4067         * fwprop.c: Likewise.
4068         * gcse.c: Likewise.
4069         * ggc-common.c: Likewise.
4070         * ggc-page.c: Likewise.
4071         * ggc-zone.c: Likewise.
4072         * gimple-low.c: Likewise.
4073         * gimplify.c: Likewise.
4074         * graph.c: Likewise.
4075         * haifa-sched.c: Likewise.
4076         * ifcvt.c: Likewise.
4077         * implicit-zee.c: Likewise.
4078         * integrate.c: Likewise.
4079         * ira-build.c: Likewise.
4080         * ira-color.c: Likewise.
4081         * ira-conflicts.c: Likewise.
4082         * ira-costs.c: Likewise.
4083         * ira-lives.c: Likewise.
4084         * ira.c: Likewise.
4085         * lists.c: Likewise.
4086         * loop-doloop.c: Likewise.
4087         * loop-iv.c: Likewise.
4088         * lto-opts.c: Likewise.
4089         * lto-symtab.c: Likewise.
4090         * main.c: Likewise.
4091         * modulo-sched.c: Likewise.
4092         * optabs.c: Likewise.
4093         * params.c: Likewise.
4094         * plugin.c: Likewise.
4095         * postreload-gcse.c: Likewise.
4096         * postreload.c: Likewise.
4097         * predict.c: Likewise.
4098         * profile.c: Likewise.
4099         * real.c: Likewise.
4100         * regcprop.c: Likewise.
4101         * reginfo.c: Likewise.
4102         * regmove.c: Likewise.
4103         * reorg.c: Likewise.
4104         * resource.c: Likewise.
4105         * rtl.c: Likewise.
4106         * rtlanal.c: Likewise.
4107         * sched-deps.c: Likewise.
4108         * sched-ebb.c: Likewise.
4109         * sched-rgn.c: Likewise.
4110         * sdbout.c: Likewise.
4111         * sel-sched-dump.c: Likewise.
4112         * sel-sched-ir.c: Likewise.
4113         * simplify-rtx.c: Likewise.
4114         * stmt.c: Likewise.
4115         * stor-layout.c: Likewise.
4116         * store-motion.c: Likewise.
4117         * targhooks.c: Likewise.
4118         * tree-cfg.c: Likewise.
4119         * tree-cfgcleanup.c: Likewise.
4120         * tree-dump.c: Likewise.
4121         * tree-eh.c: Likewise.
4122         * tree-inline.c: Likewise.
4123         * tree-nomudflap.c: Likewise.
4124         * tree-object-size.c: Likewise.
4125         * tree-optimize.c: Likewise.
4126         * tree-outof-ssa.c: Likewise.
4127         * tree-phinodes.c: Likewise.
4128         * tree-profile.c: Likewise.
4129         * tree-ssa-ccp.c: Likewise.
4130         * tree-ssa-coalesce.c: Likewise.
4131         * tree-ssa-live.c: Likewise.
4132         * tree-ssa-loop-niter.c: Likewise.
4133         * tree-ssa-loop-prefetch.c: Likewise.
4134         * tree-ssa-loop.c: Likewise.
4135         * tree-ssa-structalias.c: Likewise.
4136         * tree-ssa-uninit.c: Likewise.
4137         * tree-ssa.c: Likewise.
4138         * tree-vect-data-refs.c: Likewise.
4139         * tree-vect-loop-manip.c: Likewise.
4140         * tree-vect-loop.c: Likewise.
4141         * tree-vect-patterns.c: Likewise.
4142         * tree-vect-stmts.c: Likewise.
4143         * tree-vrp.c: Likewise.
4144         * varasm.c: Likewise.
4145         * vec.c: Likewise.
4146         * web.c: Likewise.
4147         * xcoffout.c: Likewise.
4149 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
4151         * gengtype.c (write_field_root): New function.
4152         (write_root): Use it.
4154 2010-07-07  Wei Guozhi  <carrot@google.com>
4156         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
4157         of lowest bits to lshift/compare): Add a missing line.
4159 2010-07-07  Wei Guozhi  <carrot@google.com>
4161         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
4162         of lowest bits to lshift/compare): New.
4164 2010-07-07  Tom Tromey  <tromey@redhat.com>
4166         * doc/tm.texi: Update.
4167         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
4168         Add @hook.
4169         * target.def (want_debug_pub_sections): New hook.
4170         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
4171         * dwarf2out.c (add_pubname_string): Check
4172         targetm.want_debug_pub_sections.
4173         (add_pubname): Likewise.
4174         (add_pubtype): Likewise.
4176 2010-07-07  Jie Zhang  <jie@codesourcery.com>
4178         * genautomata.c (output_automata_list_min_issue_delay_code):
4179         Correctly decompress min_issue_delay.
4181 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
4183         PR rtl-optimization/44404
4184         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
4185         possible, use reg_overlap_mentioned_p instead.
4187 2010-07-07  Duncan Sands  <baldrick@free.fr>
4189         PR middle-end/41355
4190         * tree.c (build_function_type_skip_args): Copy the original type using
4191         build_distinct_type_copy rather than copy_node.
4193 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
4195         PR target/44850
4196         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
4197         revision 161876.
4198         (ix86_expand_prologue): Likewise.
4199         (ix86_handle_fndecl_attribute): Likewise.
4200         (ix86_asm_declare_function_name): Likewise.
4201         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4202         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4203         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
4204         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
4205         * doc/extend.texi: Likewise.
4207 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
4209         PR target/44844
4210         * config/i386/i386.md (rdrand<mode>): Changed to expand to
4211         retry if the carry flag isn't valid.
4212         (rdrand<mode>_1): New.
4214 2010-07-07  Richard Guenther  <rguenther@suse.de>
4216         PR middle-end/44790
4217         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
4218         for expanding the constant offset for MEM_REFs.
4220 2010-07-07  Richard Guenther  <rguenther@suse.de>
4222         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
4223         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
4224         * gimple.h (is_gimple_operand): Remove.
4225         * gimple.c (is_gimple_operand): Likewise.
4226         (walk_gimple_op): Fix wi->val_only setting for calls.
4227         * tree-cfg.c (verify_gimple_call): Fix argument validation.
4228         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
4229         invalid gimple calls.
4231 2010-07-06  Jan Hubicka  <jh@suse.cz>
4233         * lto-cgraph.c (output_cgraph): Add missing declaration.
4235 2010-07-06  Jan Hubicka  <jh@suse.cz>
4237         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
4238         partition.
4240 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
4242         * doc/gimple.texi (GIMPLE_DEBUG): Document.
4243         * doc/rtl.texi (Debug Information): New node.
4244         (NOTE_INSN_VAR_LOCATION): Document.
4245         (debug_insn): Likewise.
4246         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
4248 2010-07-07  Jan Hubicka  <jh@suse.cz>
4250         With parts by Richard Guenther.
4252         PR middle-end/44813
4253         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
4254         for functions passed by reference.
4255         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
4256         in memory when passed by reference.
4257         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
4258         beggining.
4259         * ipa-split.c (split_function): Cleanup way return value is passed;
4260         handle SSA DECL_BY_REFERENCE retvals.
4261         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
4262         DECL_BY_REFERENCE is set.
4263         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
4264         find_what_p_points_to): Handle RESULT_DECL.
4265         * tree-inline.c (declare_return_variable): Get new entry_block argument;
4266         when passing by reference ensure that RESULT_DECL is gimple_val.
4267         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
4268         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
4270 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
4272         PR rtl-optimization/44787
4273         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
4274         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
4276 2010-07-06  Jan Hubicka  <jh@suse.cz>
4278         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
4279         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
4280         with body can prevail.
4281         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
4282         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
4283         * cgraph.c (cgraph_get_node_or_alias): New function.
4284         * cgraph.h (cgraph_get_node_or_alias): Declare.
4286 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
4288         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
4289         support.
4290         (ix86_expand_prologue): Likewise.
4291         (ix86_handle_fndecl_attribute): Likewise.
4292         (ix86_asm_declare_function_name): New function for
4293         ASM_DECLARE_FUNCTION_NAME.
4294         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
4295         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
4296         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
4297         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
4298         * doc/extend.texi: Adjust documentation about ms_hook_prologue
4299         attribute.
4301 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
4303         * config/i386/i386.md (immediate_operand): New mode attribute.
4305         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
4306         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
4307         using P mode iterator.
4308         (pro_epilogue_adjust_stack_di_2): Rename from
4309         pro_epilogue_adjust_stack_rex64_2.
4311         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
4313 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
4315         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
4316         through gen_mov_insv_1 function pointer.
4317         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
4318         gen_truncxf<mode>2 through gen_truncxf function pointer.
4319         (remainder<mode>3): Ditto.
4320         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
4321         (allocate_stack): Call gen_allocate_stack_worker_64 or
4322         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
4323         function pointer.
4324         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
4325         function pointer.
4327 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
4329         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
4330         operand constraint instead of <r><i>m.
4332 2010-07-06  Richard Guenther  <rguenther@suse.de>
4334         PR middle-end/44828
4335         * convert.c (convert_to_integer): Watch out for overflowing
4336         MULT_EXPR as well.
4338 2010-07-05  Jan Hubicka  <jh@suse.cz>
4340         * lto-streamer.c (write_symbol_vec): Rename to ...
4341         (write_symbol) ... this one; write only symbol given and when
4342         present in cache. Sanity check that what is defined is present
4343         in cgraph/varpool with body/finalized decl.
4344         (write_symbols_of_kind): Remove.
4345         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
4346         pairs to produce symtab.
4347         (produce_asm_for_decls): Update call of produce_symtab; don't do so
4348         when doing WPA streaming.
4350 2010-07-05  Jan Hubicka  <jh@suse.cz>
4352         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
4353         function is still available to fold into.
4355 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
4357         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
4358         * function.h (struct_function): Change type of local_decls field
4359         to a VEC.
4360         (add_local_decl): New function.
4361         (FOR_EACH_LOCAL_DECL): New macro.
4362         * cfgexpand.c (init_vars_expansion): Adjust for new type of
4363         cfun->local_decls.
4364         (estimated_stack_frame_size): Likewise.
4365         (expand_used_vars): Likewise.
4366         * cgraphbuild.c (build_cgraph_edges): Likewise.
4367         * function.c (instantiate_decls_1): Likewise.
4368         * ipa-struct-reorg.c (build_data_structure): Likewise.
4369         * ipa-type-escape.c (analyze_function): Likewise.
4370         * lto-streamer-in.c (input_function): Likewise.
4371         * lto-streamer-out.c (output_function): Likewise.
4372         * tree-ssa-live.c (remove_unused_locals): Likewise.
4373         * tree.c (free_lang_data_in_decl): Likewise.
4374         (find_decls_types_in_node): Likewise.
4375         * omp-low.c (remove_exit_barrier): Likewise.
4376         (expand_omp_taskreg): Likewise.
4377         (list2chain): Rename to...
4378         (vec2chain): ...this.  Adjust.
4379         * cgraphunit.c (assemble_thunk): Call add_local_decl.
4380         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
4381         * gimple-low.c (record_vars_into): Likewise.
4382         * tree-inline.c (remap_decls): Likewise.
4383         (declare_return_variable): Likewise.
4384         (declare_inline_vars): Likewise.
4385         (copy_forbidden): Adjust for new type of cfun->local_decls.
4386         (add_local_variables): New function.
4387         (expand_call_inline): Call it.
4388         (tree_function_versioning): Likewise.
4390 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
4392         AVX Programming Reference (June, 2010)
4393         * config/i386/cpuid.h (bit_F16C): New.
4394         (bit_RDRND): Likewise.
4395         (bit_FSGSBASE): Likewise.
4397         * config/i386/i386-builtin-types.def: Add
4398         "DEF_FUNCTION_TYPE (UINT16)", function types for
4399         float16 <-> float conversions and
4400         "DEF_FUNCTION_TYPE (VOID, UINT64)".
4402         * config/i386/i386-c.c (ix86_target_macros_internal): Support
4403         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
4404         OPTION_MASK_ISA_F16C.
4406         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
4407         (OPTION_MASK_ISA_RDRND_SET): Likewise.
4408         (OPTION_MASK_ISA_F16C_SET): Likewise.
4409         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
4410         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
4411         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
4412         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
4413         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
4414         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
4415         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
4416         (override_options): Handle them.
4417         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
4418         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
4419         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
4420         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
4421         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
4422         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
4423         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
4424         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
4425         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
4426         (bdesc_args): Likewise.
4427         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
4428         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
4429         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
4430         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
4431         Handle non-memory store.
4433         * config/i386/i386.h (TARGET_FSGSBASE): New.
4434         (TARGET_RDRND): Likewise.
4435         (TARGET_F12C): Likewise.
4437         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
4438         (UNSPEC_VCVTPS2PH): Likewise.
4439         (UNSPECV_RDFSBASE): Likewise.
4440         (UNSPECV_RDGSBASE): Likewise.
4441         (UNSPECV_WRFSBASE): Likewise.
4442         (UNSPECV_WRGSBASE): Likewise.
4443         (UNSPECV_RDRAND): Likewise.
4444         (rdfsbase<mode>): Likewise.
4445         (rdgsbase<mode>): Likewise.
4446         (wrfsbase<mode>): Likewise.
4447         (wrgsbase<mode>): Likewise.
4448         (rdrand<mode>): Likewise.
4450         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
4452         * config/i386/immintrin.h (_rdrand_u16): New.
4453         (_rdrand_u32): Likewise.
4454         (_readfsbase_u32): Likewise.
4455         (_readfsbase_u64): Likewise.
4456         (_readgsbase_u32): Likewise.
4457         (_readgsbase_u64): Likewise.
4458         (_writefsbase_u32): Likewise.
4459         (_writefsbase_u64): Likewise.
4460         (_writegsbase_u32): Likewise.
4461         (_writegsbase_u64): Likewise.
4462         (_rdrand_u64): Likewise.
4463         (_cvtsh_ss): Likewise.
4464         (_mm_cvtph_ps): Likewise.
4465         (_mm256_cvtph_ps): Likewise.
4466         (_cvtss_sh): Likewise.
4467         (_mm_cvtps_ph): Likewise.
4468         (_mm256_cvtps_ph): Likewise.
4470         * config/i386/sse.md (vcvtph2ps): New.
4471         (*vcvtph2ps_load): Likewise.
4472         (vcvtph2ps256): Likewise.
4473         (vcvtps2ph): Likewise.
4474         (*vcvtps2ph): Likewise.
4475         (*vcvtps2ph_store): Likewise.
4476         (vcvtps2ph256): Likewise.
4478         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
4480         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
4482 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
4484         PR bootstrap/44512
4485         * genenums.c (main): Output include of insn-constants.h
4486         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
4488 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
4490         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
4491         (override_options): Initialize it.
4492         (ix86_expand_prologue): Use it.
4494 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
4496         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
4498 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
4500         * double-int.h (fit_double_type): Remove declaration.
4501         * double-int.c (fit_double_type): Remove function.
4502         * tree.h (int_fits_type_p): Adjust prototype.
4503         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
4504         instead of fit_double_type.
4505         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
4506         instead of fit_double_type and build_int_cst_wide.
4507         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
4508         instead of fit_double_type and build_int_cst_wide.
4509         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
4510         of fit_double_type.
4512 2010-07-05  Jan Hubicka  <jh@suse.cz>
4514         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
4515         in_other_partition.
4516         * lto-cgraph.c (referenced_from_other_partition_p,
4517         reachable_from_other_partition_p): Use in_other_partition flags.
4518         (output_node, output_varpool_node): COMDAT nodes always have private
4519         copies and thus are never used from other partition.
4521 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
4523         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
4524         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
4525         * config/ia64/ia64.c Include reload.h.
4526         (ia64_memory_move_cost): New function.
4527         (TARGET_MEMORY_MOVE_COST): Define.
4528         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
4529         memory_move_cost.
4531 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
4533         PR middle-end/42505
4534         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
4535         comments about cost model.
4536         (try_add_cand_for):  Add second strategy for choosing initial set
4537         based on original IVs, controlled by ORIGINALP argument.
4538         (get_initial_solution): Add ORIGINALP argument.
4539         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
4540         (find_optimal_iv_set): Try two different strategies for choosing
4541         the IV set, and return the one with lower cost.
4543 2010-07-05  Richard Guenther  <rguenther@suse.de>
4545         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
4547 2010-07-05  Richard Guenther  <rguenther@suse.de>
4549         * tree.c (reference_alias_ptr_type): New function.
4550         * tree.h (reference_alias_ptr_type): Declare.
4551         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
4552         allow non-TARGET_MEM_REF new refs.
4553         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
4554         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
4555         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
4556         (create_mem_ref): Get alias pointer type.  Adjust calls to
4557         create_mem_ref_raw.
4558         (maybe_fold_tmr): Likewise.
4559         * tree-flow.h (create_mem_ref): Adjust prototype.
4561 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
4563         PR c++/44808
4564         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
4565         *from_p is VAR_DECL.
4567 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
4569         * tree.h (build_call_list): Remove.
4570         * tree.c (build_call_list): Remove.
4572 2010-07-05  Richard Guenther  <rguenther@suse.de>
4574         * double-int.h (double_int_sub): Declare.
4575         * double-int.c (double_int_sub): New function.
4576         * dwarf2out.c (field_byte_offset): Use it.
4577         * fixed-value.c (do_fixed_add): Likewise.
4578         (do_fixed_multiply): Likewise.
4579         (do_fixed_divide): Likewise.
4580         * tree-predcom.c (add_ref_to_chain): Likewise.
4581         (determine_roots_comp): Likewise.
4582         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
4584 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
4586         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
4587         implementations.
4589 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
4591         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
4592         * arm-modes.def (CC_NOTB): Don't define.
4593         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
4594         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
4595         (LTUGEU): New code_iterator.
4596         (cnb, optab): New corresponding code_attrs.
4597         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
4598         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
4599         using LTUGEU.
4600         (addsi3_carryin_shift_<optab>): Likewise.
4601         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
4602         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
4603         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
4604         (subsi3_compare): Renamed from subsi3_compare0_c.
4605         Change CC_NOTB to CC.
4606         (arm_subsi3_insn): Allow constants for operand 0.
4607         (compare_scc peephole for eq case): New.
4608         (compare_scc splitters): Change CC_NOTB to CC.
4610 2010-07-05  Richard Guenther  <rguenther@suse.de>
4612         * tree-ssa-loop-im.c (for_each_index): Do not handle
4613         ALIGN_INDIRECT_REF.
4614         (gen_lsm_tmp_name): Likewise.
4615         * tree-dump.c (dequeue_and_dump): Likewise.
4616         * tree-pretty-print.c (dump_generic_node): Likewise.
4617         (op_code_prio): Likewise.
4618         (op_symbol_code): Likewise.
4619         * tree.c (staticp): Likewise.
4620         (build1_stat): Likewise.
4621         * tree.h (INDIRECT_REF_P): Likewise.
4622         * fold-const.c (maybe_lvalue_p): Likewise.
4623         (operand_equal_p): Likewise.
4624         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
4625         (ao_ref_init_from_vn_reference): Likewise.
4626         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
4627         (find_interesting_uses_address): Likewise.
4628         * dwarf2out.c (loc_list_from_tree): Likewise.
4629         * gimplify.c (gimplify_expr): Likewise.
4630         * tree-eh.c (tree_could_trap_p): Likewise.
4631         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
4632         * cfgexpand.c (expand_debug_expr): Likewise.
4633         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4634         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
4635         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
4636         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
4637         * tree-ssa-operands.c (get_expr_operands): Likewise.
4638         * expr.c (safe_from_p): Likewise.
4639         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
4640         * tree-vect-data-refs.c (vect_setup_realignment): Build
4641         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
4642         * tree-vect-stmts.c (vectorizable_load): Likewise.
4643         * tree.def (ALIGN_INDIRECT_REF): Remove.
4645 2010-07-05  Richard Guenther  <rguenther@suse.de>
4647         PR tree-optimization/44784
4648         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
4649         for inserted stmts.
4650         (find_or_generate_expression): Fix SCCVN insertion check.
4652 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
4654         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
4655         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
4656         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
4657         directives.
4659 2010-07-05  Ira Rosen  <irar@il.ibm.com>
4661         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
4662         statements that are not vectorized.
4663         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
4664         in INSIDE_COST.
4666 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
4668         PR bootstrap/44820
4669         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
4671 2010-07-05  Richard Guenther  <rguenther@suse.de>
4673         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
4674         RESULT_DECLs properly.
4676 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
4678         PR rtl-optimization/44695
4679         * config/i386/i386.md (extract_code): Removed.
4680         (<u>divmodqi4): Likewise.
4681         (divmodqi4): New.
4682         (udivmodqi4): Likewise.
4683         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
4684         (udivmodhiqi3): Likewise.
4686 2010-07-04  Jan Hubicka  <jh@suse.cz>
4688         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
4690 2010-07-04  Jan Hubicka  <jh@suse.cz>
4692         * cgraphunit.c (init_cgraph): Only initialize dump file if it
4693         is not already initialized.
4695 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
4697         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
4698         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
4699         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
4700         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
4701         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
4702         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
4703         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
4704         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
4705         (sync_new_nand_optab): Redefine as macros.
4706         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
4707         Delete.
4708         (direct_optab_index): New enum.
4709         (direct_optab_d): New structure.
4710         (direct_optab): New typedef.
4711         (direct_optab_table): Declare.
4712         (direct_optab_handler, set_direct_optab_handler): New functions.
4713         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
4714         (sync_lock_release_optab): New macros.
4715         * optabs.c (direct_optab_table): New variable.
4716         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
4717         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
4718         cmpstr_optab and cmpstrn_optab.
4719         (emit_conditional_move): Likewise for movcc_optab.
4720         (can_conditionally_move_p): Likewise for movcc_gen_code.
4721         (init_insn_codes): Clear direct_optab_table.
4722         (init_optabs): Don't initialize the new "direct optabs" here.
4723         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
4724         vcond_gen_code.
4725         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
4726         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
4727         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
4728         (expand_sync_operation): Likewise other sync_*_optabs.
4729         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
4730         to sync_compare_and_swap_optab.
4731         (expand_sync_lock_test_and_set): Use direct_optab_handler for
4732         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
4733         to the names of both.
4734         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
4735         cmpstr_optab and cmpstrn_optab.
4736         (expand_builtin_lock_release): Likewise sync_lock_release.
4737         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
4738         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
4739         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
4740         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
4741         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
4742         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
4743         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
4744         (sync_lock_test_and_set, sync_lock_release): Delete.
4745         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
4746         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
4747         * genopinit.c (optabs): Use set_direct_optab_handler for the new
4748         macro optabs.
4749         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
4750         the "optab" local variable.  Use direct_optab_handler for optab and
4751         sync_compare_and_swap_optab.
4752         * reload1.c (reload_in_optab, reload_out_optab): Delete.
4753         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
4754         reload_in_optab and reload_out_optab.
4755         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
4756         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
4757         * config/pa/pa.c (pa_secondary_reload): Likewise.
4758         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
4759         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
4760         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
4761         (VMSupportsCS8_builtin): Likewise.
4763 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
4765         * optabs.h (optab_handlers): Change type of insn_code to int.
4766         (optab_handler, set_optab_handler, convert_optab_handler)
4767         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
4768         CODE_FOR_nothing".
4769         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
4770         (init_insn_codes): Zero both the above arrays.
4771         (init_optabs): Never call init_insn_codes first time around.
4773 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
4775         * optabs.h (optab_handler, convert_optab_handler): Turn into
4776         inline functions that return an insn code.
4777         (set_optab_handler, set_convert_optab_handler): New functions.
4778         * builtins.c: Replace optab_handler(X)->insn_code with
4779         optab_handler or set_optab_handler thoughout.  Likewise
4780         convert_optab_handler(X)->insn_code with convert_optab_handler
4781         and set_convert_optab_handler.
4782         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
4783         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
4784         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
4785         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
4786         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
4787         config/spu/spu.c: Likewise.
4789 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
4791         PR target/44531
4792         * config.gcc (sh*-*-*): Use regular expressions instead of
4793         the 'i' modifier for sed substitutions.
4795 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
4797         * gimple.c (gimple_body): Comments added.
4799 2010-07-04  Richard Guenther  <rguenther@suse.de>
4801         PR middle-end/44809
4802         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
4803         of an INDIRECT_REF.
4805 2010-07-04  Richard Guenther  <rguenther@suse.de>
4807         PR tree-optimization/44479
4808         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
4809         extra SSA name copy statements which preserves points-to
4810         information.
4811         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
4812         Copy points-to information for all pointers.  Properly handle
4813         MEM_REFs.
4814         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
4815         copy statements.
4816         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
4817         dependency.
4819 2010-07-04  Richard Guenther  <rguenther@suse.de>
4821         PR middle-end/44785
4822         * tree-inline.c (initialize_inlined_parameters): Do not
4823         re-use pointer-map slot over remap_type call.
4825 2010-07-04  Richard Guenther  <rguenther@suse.de>
4827         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
4829 2010-07-04  Richard Guenther  <rguenther@suse.de>
4831         PR tree-optimization/44656
4832         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
4833         again after value-replacing in the defintions lhs.
4835 2010-07-04  Ira Rosen  <irar@il.ibm.com>
4836             Revital Eres  <eres@il.ibm.com>
4838         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
4839         Document new arguments.
4840         * doc/tm.texi: Regenerate.
4841         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
4842         Handle unaligned store.
4843         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
4844         * target.def (builtin_vectorization_cost): Add new arguments.
4845         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
4846         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
4847         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
4848         (vect_vfa_segment_size): Fix indentation.
4849         * tree-vectorizer.h (struct _vect_peel_info): New.
4850         (struct _vect_peel_extended_info): New.
4851         (struct _loop_vec_info): Add new field for peeling hash table and a
4852         macro for its access.
4853         (VECT_MAX_COST): Define.
4854         (vect_get_load_cost): Declare.
4855         (vect_get_store_cost, vect_get_known_peeling_cost,
4856         vect_get_single_scalar_iteraion_cost): Likewise.
4857         (vect_supportable_dr_alignment): Add new argument.
4858         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
4859         field.
4860         (destroy_loop_vec_info): Free peeling hash table.
4861         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
4862         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
4863         vect_analyze_slp. Fix indentation.
4864         (vect_get_single_scalar_iteraion_cost): New function.
4865         (vect_get_known_peeling_cost): Likewise.
4866         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
4867         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
4868         statement. Move outside cost calculation inside unknown peeling case.
4869         Call vect_get_known_peeling_cost for known amount of peeling.
4870         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
4871         reference to the print message of forced alignment.
4872         (vect_verify_datarefs_alignment): Update call to
4873         vect_supportable_dr_alignment.
4874         (vect_get_data_access_cost): New function.
4875         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
4876         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
4877         vect_peeling_hash_choose_best_peeling): Likewise.
4878         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
4879         to store all the accesses in the loop and find best possible access to
4880         align using peeling for known alignment case. For unknown alignment
4881         check if stores are preferred or if peeling is worthy.
4882         (vect_find_same_alignment_drs): Analyze pairs of loads too.
4883         (vect_supportable_dr_alignment): Add new argument and check aligned
4884         accesses according to it.
4885         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
4886         (cost_for_stmt): Call vect_get_stmt_cost.
4887         (vect_model_simple_cost): Likewise.
4888         (vect_model_store_cost): Call vect_get_stmt_cost. Call
4889         vect_get_store_cost to calculate the cost of the statement.
4890         (vect_get_store_cost): New function.
4891         (vect_model_load_cost): Call vect_get_stmt_cost. Call
4892         vect_get_load_cost to calculate the cost of the statement.
4893         (vect_get_load_cost): New function.
4894         (vectorizable_store): Update call to vect_supportable_dr_alignment.
4895         (vectorizable_load): Likewise.
4896         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
4897         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
4898         arguments. Handle unaligned store.
4899         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
4900         (rs6000_builtin_support_vector_misalignment): Return true for word and
4901         double word alignments for VSX.
4902         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
4903         vect_supportable_dr_alignment and builtin_vectorization_cost.
4905 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4907         PR target/44597
4908         * config/pa/predicates.md (prefetch_cc_operand): Remove.
4909         (prefetch_nocc_operand): Likewise.
4910         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
4911         (prefetch_20): New insn.
4912         (prefetch_cc): Remove.
4913         (prefetch_nocc): Likewise.
4915 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4917         * expr.c (vector_mode_valid_p): Move to c-common.c.
4918         * expr.h (vector_mode_valid_p): Do not declare here.
4919         * system.h: Poison GCC_EXPR_H in front-ends.
4920         * Makefile.in: Update dependencies.
4922 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4924         PR target/44705
4925         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
4927 2010-07-03  Jan Hubicka  <jh@suse.cz>
4929         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
4930         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
4931         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
4932         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
4933         Likewise.
4935         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
4936         Update timevars.V
4937         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
4938         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
4939         TV_IPA_LTO_DECL_OUT): New.
4940         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
4942 2010-07-03  Jan Hubicka  <jh@suse.cz>
4944         * ipa-inline.c (update_edge_key): Break out from ...
4945         update_callers_keys): ... here;
4946         (update_callee_keys): Update only the edges from caller to callee.
4947         (update_all_calle_keys): Do what update_calle_keys did.
4948         (decide_inlining_of_small_functions): Avoid recomputing of all
4949         callees when badness increase.
4951 2010-07-03  Jie Zhang  <jie@codesourcery.com>
4953         * config/arm/arm.c (arm_attr_length_move_neon): New.
4954         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
4955         * config/arm/neon.md (define_mode_attr V_slen): Remove.
4956         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
4957         to compute length attribute.
4959 2010-07-03  Jie Zhang  <jie@codesourcery.com>
4961         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
4962         as predicate for operand 1 and remove its constraint.
4963         * config/arm/predicates.md (vfp_register_operand): New.
4964         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
4965         (*push_fp_multi): Likewise.
4967 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
4969         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
4971 2010-07-03  Jan Hubicka  <jh@suse.cz>
4973         * config/i386/i386.c (override_options): Revert accidental commit.
4975 2010-07-02  Le-Chun Wu  <lcwu@google.com>
4977         PR c++/44128
4978         * doc/invoke.texi: Update documentation of -Wshadow.
4980 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
4981             Julian Brown  <julian@codesourcery.com>
4982             Sandra Loosemore <sandra@codesourcery.com>
4984         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
4985         comparisons.  Adjust to take both operands.
4986         (arm_select_cc_mode): Handle DImode comparisons.
4987         (arm_gen_compare_reg): Generate a scratch register for DImode
4988         comparisons which require one.  Use xor for Thumb equality checks.
4989         (arm_const_double_by_immediates): New.
4990         (arm_print_operand): Allow 'Q' and 'R' for constants.
4991         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
4992         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
4993         arm_canonicalize_comparison.
4994         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
4995         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
4996         prototype.
4997         (arm_const_double_by_immediates): Declare.
4998         * config/arm/constraints.md (Di): New constraint.
4999         * config/arm/predicates.md (arm_immediate_di_operand)
5000         (arm_di_operand, cmpdi_operand): New.
5001         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
5002         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
5003         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
5004         (cstoredi4): Handle non-Cirrus also.
5006 2010-07-02  Julian Brown  <julian@codesourcery.com>
5007             Sandra Loosemore <sandra@codesourcery.com>
5009         PR target/43703
5010         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
5011         (smax<mode>3): Disable for NEON float modes when
5012         flag_unsafe_math_optimizations is false.
5013         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
5014         (*mul<mode>3_neon)
5015         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
5016         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
5017         for NEON float modes when flag_unsafe_math_optimizations is false.
5018         (quad_halves_<code>v4sf): Only enable if
5019         flag_unsafe_math_optimizations is true.
5020         * doc/invoke.texi (ARM Options): Add note about floating point
5021         vectorization requiring -funsafe-math-optimizations.
5023 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
5024             Julian Brown  <julian@codesourcery.com>
5026         * config/arm/neon.md (UNSPEC_VABA): Delete.
5027         (UNSPEC_VABAL): Delete.
5028         (UNSPEC_VABS): Delete.
5029         (UNSPEC_VMUL_N): Delete.
5030         (adddi3_neon): New.
5031         (subdi3_neon): New.
5032         (mul<mode>3add<mode>_neon): Make the pattern named.
5033         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
5034         (neon_vadd<mode>): Replace with define_expand, and move the remaining
5035         unspec parts...
5036         (neon_vadd<mode>_unspec): ...to this.
5037         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
5038         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
5039         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
5040         (neon_vaba<mode>): Rewrite in terms of vabd.
5041         (neon_vabal<mode>): Rewrite in terms of vabdl.
5042         (neon_vabs<mode>): Rewrite without unspec.
5043         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
5044         (*arm_subdi3): Likewise.
5045         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
5046         No_op attribute to disable assembly output checks.
5047         * config/arm/arm_neon.h: Regenerated.
5048         * doc/arm-neon-intrinsics.texi: Regenerated.
5050 2010-07-02  Jan Hubicka  <jh@suse.cz>
5052         * ipa-split.c (split_function): For aggregate values, set the return
5053         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
5054         *<retval> = fncall.part ().
5055         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
5057 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
5059         * config/arm/neon.md (UNSPEC_VAND): Delete.
5060         (UNSPEC_VBIC): Delete.
5061         (UNSPEC_VCLZ): Delete.
5062         (UNSPEC_VCNT): Delete.
5063         (UNSPEC_VEOR): Delete.
5064         (UNSPEC_VORN): Delete.
5065         (UNSPEC_VORR): Delete.
5066         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
5067         core registers too.
5068         (anddi3_neon): Likewise.
5069         (orndi3_neon): Likewise.
5070         (bicdi3_neon): Likewise.
5071         (xordi3_neon): Likewise.
5072         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
5073         rid of unspec and handle unused operand.
5074         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
5075         * config/arm/predicates.md (imm_for_neon_logic_operand):
5076         Require TARGET_NEON.
5077         (imm_for_neon_inv_logic_operand): Likewise.
5078         * config/arm/arm.md (define_split for logical_binary_operator):
5079         Disable for NEON registers.
5080         (anddi3): Add new define_expand, and rename the insn.  Disable
5081         this insn for NEON, where anddi3_neon now applies.
5082         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
5083         (iordi3): As for anddi3.
5084         (xordi3): Likewise.
5085         * config/arm/neon.ml (Vand): Split DImode variants and mark them
5086         as No_op to disable testing for exact instruction match.
5087         (Vorr): Likewise.
5088         (Veor): Likewise.
5089         (Vbic): Likewise.
5090         (Vorn): Likewise.
5091         * config/arm/arm_neon.h: Regenerated.
5092         * doc/arm-neon-intrinsics.texi: Regenerated.
5094 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
5096         * expr.h (emit_stack_probe): Declare.
5097         * explow.c (emit_stack_probe): Make global.
5098         (anti_adjust_stack_and_probe): Fix comments.
5099         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
5100         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5101         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5102         * config/sparc/sparc.c: Include except.h.
5103         (sparc_emit_probe_stack_range): New function.
5104         (output_probe_stack_range): Likewise.
5105         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
5106         built-in stack checking is enabled.
5107         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
5108         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
5109         (probe_stack_range): New insn.
5111 2010-07-02  Richard Guenther  <rguenther@suse.de>
5113         PR target/43958
5114         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
5115         for argument alignment.
5117 2010-07-02  Jan Hubicka  <jh@suse.cz>
5119         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
5120         walk backwards from entry_bb to check only those basic block of header
5121         that might lead to execution of split part.
5122         (consider_split) ... here.
5123         (find_return_bb): Allow assignment in return BB.
5124         (find_retval): New.
5125         (split_function): Fix name of cloned function; take care of updating
5126         return value in return_bb containing move.
5128 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
5130         PR target/44771
5131         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
5132         used variable insn.
5134 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
5136         * implicit-zee.c (combine_reaching_defs): Fix long lines.
5137         (is_set_with_extension_DI): Delete.
5138         (struct zero_extend_info): New structure.
5139         (add_removable_zero_extend): New function.
5140         (find_removable_zero_extends): Use note_stores to find SETs.
5141         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
5143 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
5145         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
5146         is_miss_rate_acceptable. Pull total_positions computation
5147         out of the loops.  Early return if miss_positions exceeds
5148         the acceptable threshold.
5149         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
5150         is_miss_rate_acceptable after renaming of compute_miss_rate.
5152 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
5154         PR middle-end/44576
5155         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
5156         of 1000) for miss rate if the address diference is greater than or
5157         equal to the cache line size (the two reference will never hit the
5158         same cache line).
5160 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
5162         PR target/42835
5163         * config/arm/arm-modes.def (CC_NOTB): New mode.
5164         * config/arm/arm.c (get_arm_condition_code): Handle it.
5165         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
5166         * config/arm/arm.md (subsi3_compare0_c): New pattern.
5167         (compare_scc): Now a define_and_split.  Add a number of extra
5168         splitters before it.
5170         PR target/42172
5171         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
5172         and ZERO_EXTEND.
5173         (arm_rtx_costs_1): Likewise.
5174         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
5175         * config/arm/arm.md (is_arch6): New attribute.
5176         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
5177         extendqisi2): Tighten the code somewhat, avoiding invalid
5178         RTL to occur in the expander patterns.
5179         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
5180         (thumb1_zero_extendhisi2_v6): Delete.
5181         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
5182         (thumb1_extendhisi2_v6): Delete.
5183         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
5184         (thumb1_extendqisi2_v6): Delete.
5185         (zero_extendhisi2 for register input splitter): New.
5186         (zero_extendqisi2 for register input splitter): New.
5187         (thumb1_extendhisi2 for register input splitter): New.
5188         (extendhisi2 for register input splitter): New.
5189         (extendqisi2 for register input splitter): New.
5190         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
5191         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
5192         and add support for a register alternative requiring a split.
5193         (thumb1_zero_extendqisi2): Likewise.
5194         (arm_zero_extendqisi2): Likewise.
5195         (arm_extendhisi2): Likewise.
5196         (arm_extendqisi2): Likewise.
5198 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
5200         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
5201         instead of an unspec.
5202         (neon_expand_vector_init): Likewise.
5203         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
5204         (UNSPEC_VDUP_LANE): Delete.
5205         (UNSPEC VDUP_N): Delete.
5206         (UNSPEC_VGET_HIGH): Delete.
5207         (UNSPEC_VGET_LANE): Delete.
5208         (UNSPEC_VGET_LOW): Delete.
5209         (UNSPEC_VMVN): Delete.
5210         (UNSPEC_VSET_LANE): Delete.
5211         (V_double_vector_mode): New.
5212         (vec_set<mode>_internal): Make code emitted match that for the
5213         corresponding intrinsics.
5214         (vec_setv2di_internal): Likewise.
5215         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
5216         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
5217         (neon_vset_lane<mode>): Combine double and quad patterns and
5218         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
5219         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
5220         (neon_vdup_n<mode>): Rewrite RTL without unspec.
5221         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
5222         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
5223         with neon_vdup_lanev2di, adjusting the pattern from the latter
5224         to be predicable for consistency.
5225         (neon_vdup_lane<mode>_internal): New.
5226         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
5227         to avoid using an unspec.
5228         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
5229         (neon_vdup_lanev2di): Turn into a define_expand.
5230         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
5231         (neon_vget_high<mode>): Replace with....
5232         (neon_vget_highv16qi): New pattern using canonical RTL.
5233         (neon_vget_highv8hi): Likewise.
5234         (neon_vget_highv4si): Likewise.
5235         (neon_vget_highv4sf): Likewise.
5236         (neon_vget_highv2di): Likewise.
5237         (neon_vget_low<mode>): Replace with....
5238         (neon_vget_lowv16qi): New pattern using canonical RTL.
5239         (neon_vget_lowv8hi): Likewise.
5240         (neon_vget_lowv4si): Likewise.
5241         (neon_vget_lowv4sf): Likewise.
5242         (neon_vget_lowv2di): Likewise.
5244         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
5245         test for this emitting vmov.
5246         (Vset_lane): Likewise.
5247         (Vdup_n): Likewise.
5248         (Vmov_n): Likewise.
5250         * doc/arm-neon-intrinsics.texi: Regenerated.
5252 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
5254         * config/arm/neon.md (vec_extractv2di): Correct error in register
5255         numbering to reconcile with neon_vget_lanev2di.
5257 2010-07-02  Richard Guenther  <rguenther@suse.de>
5259         * tree-ssa-structalias.c (pt_solution_set_var): New function.
5260         * tree-ssa-alias.h (pt_solution_set_var): Declare.
5261         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
5262         points-to information.
5264 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
5266         * config/s390/s390.c (override_options): Adopt prefetching
5267         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
5269 2010-07-02  Jan Hubicka  <jh@suse.cz>
5271         * df-problems.c (df_kill_notes): Do not collect dead  notes.
5272         (df_set_note): Just call add_reg_note.
5273         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
5274         df_create_unused_note): Do not deal with lists of old notes.
5275         (df_note_bb_compute): Likewise.
5277 2010-07-02  Richard Guenther  <rguenther@suse.de>
5279         * tree-ssa-structalias.c (find_func_aliases): Handle
5280         pointer alignment via BIT_AND_EXPR.
5281         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
5283 2010-07-02  Richard Guenther  <rguenther@suse.de>
5285         * tree-data-ref.c (initialize_data_dependence_relation): Handle
5286         mismatching number of dimensions properly.
5288 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5290         PR target/44707
5291         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
5292         (lo_sum (high ...) ...) patterns generated by earlier passes.
5294 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5296         * doc/install.texi (Prerequisites): Document Perl requirement on
5297         Solaris 2.
5298         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
5300 2010-07-02  Richard Guenther  <rguenther@suse.de>
5302         PR middle-end/44777
5303         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
5305 2010-07-02  Jan Hubicka  <jh@suse.cz>
5307         PR middle-end/44706
5308         * predict.c (predict_paths_for_bb): Handle case when control dependence
5309         BB has only abnormal edges.
5311 2010-07-02  Richard Guenther  <rguenther@suse.de>
5313         PR tree-optimization/44748
5314         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
5315         the embedded conversion in MEM_REFs.
5317 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
5319         * reload.c: Include toplev.h.
5320         * recog.c:  Likewise.
5321         * Makefile.in: Adjust dependencies.
5323 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
5325         PR debug/44694
5326         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
5327         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
5329 2010-07-01  Richard Guenther  <rguenther@suse.de>
5331         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
5332         types for offsets.
5334 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
5336         PR target/44732
5337         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
5338         Fix argument types.
5340 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
5342         PR target/44727
5343         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
5344         Make sure operand 0 dies.
5346 2010-07-01  Richard Guenther  <rguenther@suse.de>
5348         PR middle-end/42834
5349         PR middle-end/44468
5350         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
5351         * doc/generic.texi (References to storage): Document MEM_REF.
5352         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
5353         (print_call_name): Likewise.
5354         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
5355         (build_simple_mem_ref_loc): New function.
5356         (mem_ref_offset): Likewise.
5357         * tree.h (build_simple_mem_ref_loc): Declare.
5358         (build_simple_mem_ref): Define.
5359         (mem_ref_offset): Declare.
5360         * fold-const.c: Include tree-flow.h.
5361         (operand_equal_p): Handle MEM_REF.
5362         (build_fold_addr_expr_with_type_loc): Likewise.
5363         (fold_comparison): Likewise.
5364         (fold_unary_loc): Fold
5365         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
5366         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
5367         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
5368         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
5369         (ptr_deref_may_alias_ref_p_1): Likewise.
5370         (ao_ref_base_alias_set): Properly differentiate base object for
5371         offset and TBAA.
5372         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
5373         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
5374         (indirect_refs_may_alias_p): Likewise.
5375         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
5376         chasing code.
5377         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
5378         (call_may_clobber_ref_p_1): Likewise.
5379         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
5380         * expr.c (expand_assignment): Handle MEM_REF.
5381         (store_expr): Handle MEM_REFs from STRING_CSTs.
5382         (store_field): If expanding a MEM_REF of a non-addressable
5383         decl use bitfield operations.
5384         (get_inner_reference): Handle MEM_REF.
5385         (expand_expr_addr_expr_1): Likewise.
5386         (expand_expr_real_1): Likewise.
5387         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
5388         * alias.c (ao_ref_from_mem): Handle MEM_REF.
5389         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
5390         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
5391         (dr_analyze_indices): Likewise.
5392         (dr_analyze_alias): Likewise.
5393         (object_address_invariant_in_loop_p): Likewise.
5394         * gimplify.c (mark_addressable): Handle MEM_REF.
5395         (gimplify_cond_expr): Build MEM_REFs.
5396         (gimplify_modify_expr_to_memcpy): Likewise.
5397         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
5398         (gimple_fold_indirect_ref): Adjust.
5399         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
5400         * tree.def (MEM_REF): New tree code.
5401         * tree-dfa.c: Include toplev.h.
5402         (get_ref_base_and_extent): Handle MEM_REF.
5403         (get_addr_base_and_unit_offset): New function.
5404         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
5405         * gimple-fold.c (may_propagate_address_into_dereference): Handle
5406         MEM_REF.
5407         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
5408         accesses if the array has just one dimension.  Remove always true
5409         parameter.  Do not require type compatibility here.
5410         (maybe_fold_offset_to_component_ref): Remove.
5411         (maybe_fold_stmt_indirect): Remove.
5412         (maybe_fold_reference): Remove INDIRECT_REF handling.
5413         Fold back to non-MEM_REF.
5414         (maybe_fold_offset_to_address): Simplify.  Deal with type
5415         mismatches here.
5416         (maybe_fold_reference): Likewise.
5417         (maybe_fold_stmt_addition): Likewise.  Also handle
5418         &ARRAY + I in addition to &ARRAY[0] + I.
5419         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
5420         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
5421         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
5422         * tree-ssa.c (useless_type_conversion_p): Make most pointer
5423         conversions useless.
5424         (warn_uninitialized_var): Handle MEM_REF.
5425         (maybe_rewrite_mem_ref_base): New function.
5426         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
5427         to SSA form.
5428         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
5429         INDIRECT_REF handling.
5430         (copy_tree_body_r): Handle MEM_REF.
5431         * gimple.c (is_gimple_addressable): Adjust.
5432         (is_gimple_address): Likewise.
5433         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
5434         invariant base are invariant.
5435         (is_gimple_min_lval): Adjust.
5436         (is_gimple_mem_ref_addr): New function.
5437         (get_base_address): Handle MEM_REF.
5438         (count_ptr_derefs): Likewise.
5439         (get_base_loadstore): Likewise.
5440         * gimple.h (is_gimple_mem_ref_addr): Declare.
5441         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
5442         * tree-cfg.c (verify_address): New function, split out from ...
5443         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
5444         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
5445         INDIRECT_REFs.
5446         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
5447         INDIRECT_REF.  Allow conversions.
5448         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
5449         a register does not change its size.
5450         (verify_types_in_gimple_reference): Verify MEM_REF.
5451         (verify_gimple_assign_single): Disallow INDIRECT_REF.
5452         Handle MEM_REF.
5453         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
5454         New.
5455         (mark_address_taken): Handle MEM_REF.
5456         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
5457         (get_asm_expr_operands): Pass opf_not_non_addressable.
5458         (get_expr_operands): Handle opf_[not_]non_addressable.
5459         Handle MEM_REF.  Remove INDIRECT_REF handling.
5460         * tree-vrp.c (check_array_ref): Handle MEM_REF.
5461         (search_for_addr_array): Likewise.
5462         (check_array_bounds): Likewise.
5463         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
5464         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
5465         (ref_always_accessed_p): Likewise.
5466         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
5467         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
5468         Handle MEM_REF.
5469         * cgraphbuild.c (mark_load): Properly check for NULL result
5470         from get_base_address.
5471         (mark_store): Likewise.
5472         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
5473         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
5474         handling for MEM_REF.
5475         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
5476         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
5477         * builtins.c (stabilize_va_list_loc): Use the function ABI
5478         valist type if we couldn't canonicalize the argument type.
5479         Always dereference with the canonical va-list type.
5480         (maybe_emit_free_warning): Handle MEM_REF.
5481         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
5482         memmove to memcpy.
5483         * builtins.c (fold_builtin_memory_op): Use ref-all types
5484         for all memcpy foldings.
5485         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
5486         (build_outer_var_ref): Likewise.
5487         (scan_omp_1_op): Likewise.
5488         (lower_rec_input_clauses): Likewise.
5489         (lower_lastprivate_clauses): Likewise.
5490         (lower_reduction_clauses): Likewise.
5491         (lower_copyprivate_clauses): Likewise.
5492         (expand_omp_atomic_pipeline): Likewise.
5493         (expand_omp_atomic_mutex): Likewise.
5494         (create_task_copyfn): Likewise.
5495         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
5496         Remove old union trick.  Initialize constant offsets.
5497         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
5498         INDIRECT_REF.  Init base_alias_set properly.
5499         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
5500         (vn_reference_fold_indirect): Adjust for MEM_REFs.
5501         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
5502         for ARRAY_REFs.
5503         (may_insert): Remove.
5504         (visit_reference_op_load): Do not test may_insert.
5505         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
5506         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
5507         a field to store the constant offset this op applies.
5508         (run_scc_vn): Adjust prototype.
5509         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
5510         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
5511         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
5512         bother about volatile qualifiers on pointers.
5513         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
5514         * tree-ssa-loop-ivopts.c
5515         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
5516         (strip_offset_1): Likewise.
5517         (find_interesting_uses_address): Replace INDIRECT_REF handling with
5518         MEM_REF handling.
5519         (get_computation_cost_at): Likewise.
5520         * ipa-pure-const.c (check_op): Handle MEM_REF.
5521         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
5522         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
5523         and constants.
5524         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
5525         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
5526         (eliminate_local_variables_1): Likewise.
5527         (create_call_for_reduction_1): Likewise.
5528         (create_loads_for_reductions): Likewise.
5529         (create_loads_and_stores_for_name): Likewise.
5530         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
5531         (ssa_accessed_in_tree): Handle MEM_REF.
5532         (ssa_accessed_in_assign_rhs): Likewise.
5533         (update_type_size): Likewise.
5534         (analyze_accesses_for_call_stmt): Likewise.
5535         (analyze_accesses_for_assign_stmt): Likewise.
5536         (transform_access_sites): Likewise.
5537         (transform_allocation_sites): Likewise.
5538         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
5539         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
5540         not handle INDIRECT_REF.
5541         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
5542         (cond_store_replacement): Likewise.
5543         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
5544         MEM_REF, no not handle INDIRECT_REFs.
5545         (insert_into_preds_of_block): Properly initialize avail.
5546         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
5547         for ARRAY_REFs.  Properly handle reference lookups that
5548         require a bit re-interpretation.
5549         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
5550         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
5551         (build_ref_for_offset_1): Remove.
5552         (build_ref_for_offset): Build MEM_REFs.
5553         (gate_intra_sra): Disable for now.
5554         (sra_ipa_modify_expr): Handle MEM_REF.
5555         (ipa_early_sra_gate): Disable for now.
5556         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
5557         MEM_REF handling.
5558         (disqualify_base_of_expr): Likewise.
5559         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
5560         MEM_REF handling.
5561         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
5562         Use mem_ref_offset.  Remove bogus folding.
5563         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
5564         (make_fancy_name_1): Add support for MEM_REF.
5565         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
5566         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
5567         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
5568         (compute_complex_ancestor_jump_func): Likewise.
5569         (ipa_analyze_virtual_call_uses): Likewise.
5570         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
5571         INDIRECT_REF folding with more generalized MEM_REF folding.
5572         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
5573         (forward_propagate_addr_into_variable_array_index): Also handle
5574         &ARRAY + I in addition to &ARRAY[0] + I.
5575         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
5576         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
5577         creates assignments with overlap.
5578         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
5579         (get_frame_field): Likewise.
5580         (get_nonlocal_debug_decl): Likewise.
5581         (convert_nonlocal_reference_op): Likewise.
5582         (struct nesting_info): Add mem_refs pointer-set.
5583         (create_nesting_tree): Allocate it.
5584         (convert_local_reference_op): Insert to be folded mem-refs.
5585         (fold_mem_refs): New function.
5586         (finalize_nesting_tree_1): Perform defered folding of mem-refs
5587         (free_nesting_tree): Free the pointer-set.
5588         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
5589         (vectorizable_load): Likewise.
5590         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
5591         (propagate_with_phi): Likewise.
5592         * tree-object-size.c (addr_object_size): Handle MEM_REFs
5593         instead of INDIRECT_REFs.
5594         (compute_object_offset): Handle MEM_REF.
5595         (plus_stmt_object_size): Handle MEM_REF.
5596         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
5597         for &MEM_REF.
5598         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
5599         (symbol_marked_for_renaming): Likewise.
5600         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
5601         (fold-const.o): Add $(TREE_FLOW_H).
5602         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
5603         (find_func_clobbers): Likewise.
5604         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
5605         (decompose_access): Likewise.
5606         (replace_field_acc): Likewise.
5607         (replace_field_access_stmt): Likewise.
5608         (insert_new_var_in_stmt): Likewise.
5609         (get_stmt_accesses): Likewise.
5610         (reorg_structs_drive): Disable.
5611         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
5612         (ix86_canonical_va_list_type): Likewise.
5614 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
5616         PR other/44566
5617         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
5618         * target.def (struct gcc_target): Replace enum reg_class with
5619         reg_class_t in hook argument / return types.
5620         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
5621         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
5622         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5623         * targhooks.h (default_branch_target_register_class): Likewise.
5624         (default_ira_cover_classes, default_secondary_reload): Likewise.
5625         (default_memory_move_cost, default_register_move_cost): Likewise.
5626         * targhooks.c (default_branch_target_register_class): Likewise.
5627         (default_ira_cover_classes, default_secondary_reload): Likewise.
5628         (default_memory_move_cost, default_register_move_cost): Likewise.
5629         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
5630         * bt-load.c (branch_target_load_optimize): Likewise.
5631         * ira.c (setup_cover_and_important_classes): Likewise.
5632         * ira-costs.c (copy_cost): Likewise.
5633         * reload1.c (emit_input_reload_insns): Likewise.
5634         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
5635         * config/frv/frv.c (frv_secondary_reload): Likewise.
5636         * config/s390/s390.c (s390_secondary_reload): Likewise.
5637         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
5638         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
5639         (ix86_register_move_cost): Likewise.
5640         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
5641         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
5642         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
5643         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
5644         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
5645         (rs6000_ira_cover_classes): Likewise.
5646         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
5647         * config/picochip/picochip-protos.h (picochip_secondary_reload):
5648         Likewise.
5649         * config/pa/pa.c (pa_secondary_reload): Likewise.
5650         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
5651         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
5652         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
5653         * doc/tm.texi: Regenerate.
5655 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
5657         PR bootstrrap/44726
5658         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
5659         use.
5660         (build_alias_set_optimal_p): Likewise.
5661         (build_base_obj_set_for_drs): Likewise.
5663 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
5665         * target.def: Remove comment about licensing problems of function
5666         declarations.
5668         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
5669         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
5670         * doc/tm.texi: Regenerate.
5672         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
5673         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
5675         * target.def (enum_va_list_p): Use DEFHOOK.
5676         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
5677         Rename ptype to ptree.
5678         * doc/tm.texi: Regenerate.
5680         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
5681         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
5682         * doc/tm.texi: Regenerate.
5684         * target.def (memory_move_cost): Use DEFHOOK.
5685         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
5686         Rename regclass AKA class to rclass.
5687         * doc/tm.texi: Regenerate.
5689         * target.def (pragma_parse): Use DEFHOOK.
5690         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
5691         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
5692         * doc/tm.texi: Regenerate.
5694         * target.def (pass_by_reference): Use DEFHOOK.
5695         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
5696         * doc/tm.texi: Regenerate.
5698         * target.def (resolve_overloaded_builtin): Rename params to arglist.
5699         Use DEFHOOK.
5700         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
5701         * doc/tm.texi: Regenerate.
5703         * target.def (return_pops_args): Use DEFHOOK.
5704         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
5705         Rename stack-size to size.
5706         * doc/tm.texi: Regenerate.
5708         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
5709         last-sched_cycle to last_clock, cur_cycle to clock.
5710         * doc/tm.texi.in: Use @hook.
5711         * doc/tm.texi: Regenerate.
5713         * target.def (print_operand, print_operand_address): Update comment.
5714         (print_operand_punct_valid_p): Likewise.
5716 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5718         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
5719         to rtl.h.
5720         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
5721         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
5722         * rtl-error.h: New.
5723         * regrename.c: Do not include toplev.h. Include rtl-error.h.
5724         * rtl-error.c: Likewise.
5725         * reload.c: Likewise.
5726         * recog.c:  Likewise.
5727         * sel-sched.c: Likewise.
5728         * function.c: Likewise.
5729         * reg-stack.c: Likewise.
5730         * cfgrtl.c: Likewise.
5731         * reload1.c: Likewise.
5732         * final.c: Include rtl-error.
5733         * Makefile.in: Adjust dependencies.
5735 2010-06-30  Jan Hubicka  <jh@suse.cz>
5737         PR middle-end/PR44706
5738         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
5739         to return the value.
5741 2010-06-30  Michael Matz  <matz@suse.de>
5743         PR bootstrap/44699
5744         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
5745         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
5746         a gimple reg, attach the original VDEF to the last store in the
5747         sequence.
5749 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
5751         PR other/44034
5752         * config/darwin.c (darwin_override_options): Use renamed
5753         targetm.asm_out.emit_unwind_label.
5755 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
5757         PR tree-optimization/39799
5758         * tree-inline.c (remap_ssa_name): Initialize variable only if
5759         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
5761 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
5763         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
5765 2010-06-30  Richard Guenther  <rguenther@suse.de>
5767         PR target/44722
5768         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
5769         against oscillation with reverse peephole2.
5771 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
5773         PR target/44721
5774         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
5775         Fix last commit.
5777 2010-06-30  Nick Clifton  <nickc@redhat.com>
5779         * config/rx/rx-modes.def: New file.
5780         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
5781         (CC_REGNUM): Define.
5782         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
5783         register.
5784         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
5785         (SELECT_CC_MODE): Define.
5786         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
5787         (reg:CC CC_REG) instead of (cc0).
5788         (attr "cc"): Delete.
5789         (cbranchsi4): Do not split compare and branch here. Instead move
5790         it to...
5791         (cbranchsi4_<code>): ... here.  New patterns.
5792         (cmpsi): Call rx-compare_redundant to find out if it is necessary
5793         to emit the compare instruction.
5794         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
5795         cc_status flags.
5796         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
5797         FIRST_PSEUDO_REGNUM.
5798         (rx_expand_prologue, rx_expand_epilogue): Likewise.
5799         (rx_notice_update_cc): Delete.
5800         (rx_cc_modes_compatible): New function.
5801         (flags_needed_for_conditional): New function.
5802         (flags_from_mode): New function.
5803         (rx_compare_redundant): New function - scans backwards through
5804         insn list to find out if condition flags are already set correctly.
5805         (TARGET_CC_MODES_COMPATIBLE): Define.
5806         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
5808         * config/rx/rx.h (BRANCH_COST): Define.
5809         (REGISTER_MOVE_COST): Define.
5810         * config/rx/predicates (rx_source_operand): Allow all constant types.
5811         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
5812         (tstsi4): New pattern.
5813         * config/rx/rx.c (rx_memory_move_cost): Define.
5814         (TARGET_MEMORY_MOVE_COST): Define.
5816 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5818         * tree.h (block_may_fallthru): Declare here.
5819         * tree-flow.h (block_may_fallthru): Do not declare here.
5820         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
5821         bitmap.h
5822         * Makefile.in (c-typeck.o): Update dependencies.
5824 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
5826         PR debug/44694
5827         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
5828         * cselib.c (cfa_base_preserved_regno): New static variable.
5829         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
5830         of REGNO (cfa_base_preserved_val->locs->loc).
5831         (cselib_preserve_cfa_base_value): Add regno argument, set
5832         cfa_base_preserved_regno to it.
5833         (cselib_invalidate_regno): Allow removal of registers other than
5834         cfa_base_preserved_regno from cfa_base_preserved_val.
5835         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
5836         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
5837         of MEM addresses, if not on LHS.
5838         (reverse_op): Don't add reverse ops for cfa_base_rtx.
5839         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
5841 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
5843         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
5844         static variables.
5845         (peep2_buf_position): New static function.
5846         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
5847         peephole2_optimize): Use it.
5848         (peep2_attempt, peep2_update_life): New static functions, broken out
5849         of peephole2_optimize.
5850         (peep2_fill_buffer): New static function.
5851         (peephole2_optimize): Change the main loop to try to fill the buffer
5852         with the maximum number of insns before matching them against
5853         peepholes.  Use a forward scan.  Remove special case for targets with
5854         conditional execution.
5855         * genrecog.c (change_state): Delete dead code.
5856         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
5857         Rewrite so as not to expect the second insn to have had a peephole
5858         applied yet.
5860 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
5862         * genhooks.c (emit_findices): Cast field precision to int.
5863         (emit_documentation): Likewise.
5865 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
5867         PR tree-optimization/43801
5868         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
5869         if old_decl was DECL_ONE_ONLY.
5871         PR debug/44668
5872         * dwarf2out.c (add_accessibility_attribute): New function.
5873         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
5874         instead of adding DW_AT_accessibility manually.
5875         (gen_enumeration_type_die, gen_struct_or_union_type_die,
5876         gen_typedef_die): Use it.
5878 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
5880         * vmsdbgout.c (full_name): Just output the file name if not native.
5882 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
5884         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
5885         (funcnam_table): New static table.
5886         (funcnum_table): New static table.
5887         (write_rtnbeg): Write value saved in funcnum_table.
5888         (write_rtnend): Write value saved in funcnum_table.
5889         (vmsdbgout_begin_function): Save current function info in
5890         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
5891         (vmsdbgout_finish): Iterate over funcnum_table.
5893 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
5895         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
5896         (vmsdbgout_type_decl): Declare
5897         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
5898         (FUNC_EPILOGUE_LABEL): New macro
5899         (vmsdbgout_begin_epilogue): New function.
5900         (vmsdbgout_type_decl): New function.
5902 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
5904         * vmsdbg.h: Update copyright.
5906 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
5908         * vmsdbg.h (DST_K_TBG): New DST constant.
5909         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
5910         (write_modbeg): Cast module_language to avoid warning.
5911         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
5913 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
5915         PR other/44034
5916         * target.def, doc/tm.texi.in, genhooks.c: New files.
5917         * target.h: Instead of defining individual hook members,
5918         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
5919         include target.def.
5920         * target-def.h: Instead of defining individual hook initializers,
5921         include target-hooks-def.h.
5922         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
5923         targetm.live_on_entry -> targetm.extra_live_on_entry
5924         targetm.sched.md_finish ->targetm.sched.finish
5925         targetm.sched.md_init -> targetm.sched.init
5926         targetm.sched.md_init_global -> targetm.sched.init_global
5927         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
5928         targetm.asm_out.except_table_label ->
5929           targetm.asm_out.emit_except_table_label
5930         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
5931         targetm.target_help -> targetm.help
5932         targetm.vectorize.builtin_support_vector_misalignment ->
5933           targetm.vectorize.support_vector_misalignment
5934         targetm.file_start_app_off -> targetm.asm_file_start_app_off
5935         targetm.file_start_file_directive ->
5936          targetm.asm_file_start_file_directive
5937         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
5938         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
5939         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
5940         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
5941           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
5942         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
5943           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
5944         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
5945         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
5946         * Makefile.in (TARGET_H): Depend on target.def.
5947         (TARGET_DEF_H): Depend on target-hooks-def.h.
5948         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
5949         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
5950         * doc/tm.texi: Regenerate.
5952         * Makefile.in (s-tm-texi): Remove stray tab / rule.
5954         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
5955         (targetm.sched.init): Likewise.
5957 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
5959         PR bootstrap/44713
5960         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
5961         (function_arg_advance_32): Const-ify TYPE parameter.
5962         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
5963         (ix86_function_arg_advance): Change type of NAMED to bool.
5964         (function_arg_32): Const-ify CUM and TYPE parameters.
5965         (function_arg_64): Likewise.  Change type of NAMED to bool.
5966         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
5967         to bool.
5968         (ix86_function_arg): Change type of NAMED to bool.
5969         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
5970         last argument as a bool.
5972 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
5974         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
5975         (OVERRIDE_OPTIONS): Add note of obsolescence.
5976         Replace references with references to TARGET_OPTION_OVERRIDE.
5977         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
5978          the macro).
5979         * targhooks.c (default_target_option_override): New function.
5980         * targhooks.h (default_target_option_override): Declare.
5981         * target.h (struct gcc_target): Add override member to
5982         target_option member.
5983         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
5984         targetm.target_option.override call.
5985         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
5986         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
5988 2010-06-29  Jan Hubicka  <jh@suse.cz>
5990         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
5992 2010-06-29  Jan Hubicka  <jh@suse.cz>
5994         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
5995         unreachable.
5996         (rebuild_frequencies): New function.
5997         * predict.h (rebuild_frequencies): Declare.
5998         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
5999         entry block and edge reaching new_entry.
6000         (tree_function_versioning): When doing partial cloning, rebuild
6001         frequencies when done.
6002         * passes.c (execute_function_todo): Use rebild_frequencies.
6004 2010-06-29  Richard Guenther  <rguenther@suse.de>
6006         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
6007         * tree-flow.h (enum noalias_state): Remove.
6008         (struct var_ann_d): Remove noalias_state member.
6010 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
6012         PR target/43902
6013         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
6014         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
6015         (maddhidi4): Likewise.
6017         Revert parts of the change for PR25130.
6018         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
6019         MEM_ALIAS_SET.
6021 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
6023         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
6024         targetm.calls.function_incoming_arg, and
6025         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
6026         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
6027         * target.h (struct gcc_target): Add function_arg_advance,
6028         function_arg, and function_incoming_arg fields.
6029         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
6030         (TARGET_FUNCTION_INCOMING_ARG): Define.
6031         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
6032         and TARGET_FUNCTION_INCOMING_ARG.
6033         * targhooks.h (default_function_arg_advance): Declare.
6034         (default_function_arg, default_function_incoming_arg): Declare.
6035         * targhooks.c (default_function_arg_advance): New function.
6036         (default_function_arg, default_function_incoming_arg): New function.
6037         * config/i386/i386.c (function_arg_advance): Rename to...
6038         (ix86_function_arg_advance): ...this.  Make static.
6039         (function_arg): Rename to...
6040         (ix86_function_arg): ...this.  Make static.
6041         (TARGET_FUNCTION_ARG_ADVANCE): Define.
6042         (TARGET_FUNCTION_ARG): Define.
6043         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
6044         (FUNCTION_ARG): Delete.
6045         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
6046         (function_arg): Delete prototype.
6048 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
6050         * reginfo.c (init_reg_sets_1): Adjust comments.
6051         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
6052         * calls.c (prepare_call_address): Likewise.
6053         (emit_call_1): Use targetm.calls.return_pops_args.
6054         (expand_call): Likewise.
6055         * function.c (assign_parms): Likewise.
6056         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
6057         * target.h (struct gcc_target) [struct calls]: Add
6058         return_pops_args field.
6059         * targhooks.h (default_return_pops_args): Declare.
6060         * targhooks.c (default_return_pops_args): Define.
6061         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
6062         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
6063         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
6064         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
6065         documentation.
6066         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
6067         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
6068         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
6069         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
6070         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
6071         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
6072         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
6073         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
6074         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
6075         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
6076         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
6077         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
6078         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
6079         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
6080         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
6081         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
6082         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
6083         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
6084         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
6085         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
6086         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
6087         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
6088         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
6089         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
6090         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
6091         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
6092         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
6093         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
6094         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
6095         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
6096         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
6097         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
6098         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
6099         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
6100         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
6101         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
6102         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
6103         * config/i386/i386.c (ix86_return_pops_args): Make static.
6104         Constify arguments.
6105         (TARGET_RETURN_POPS_ARGS): Define.
6106         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
6107         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
6108         (TARGET_RETURN_POPS_ARGS): Define.
6109         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
6110         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
6111         (TARGET_RETURN_POPS_ARGS): Define.
6113 2010-06-29  Richard Guenther  <rguenther@suse.de>
6115         PR middle-end/44667
6116         * tree-inline.c (initialize_inlined_parameters): Make sure
6117         to remap the inlined parameter variable substitutions types.
6119 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
6121         PR rtl-optimization/44659
6122         * combine.c (make_compound_operation) <SUBREG>: Do not return the
6123         result of force_to_mode if it partially re-expanded the compound.
6125 2010-06-28  Jan Hubicka  <jh@suse.cz>
6127         PR middle-end/44671
6128         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
6129         RESULT_DECL.
6131 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
6133         * double-int.h (force_fit_type_double): Remove declaration.
6134         * double-int.c (force_fit_type_double): Move to tree.c.
6135         * tree.h (force_fit_type_double): Declare.
6136         * tree.h (force_fit_type_double): Moved from double-int.c. Use
6137         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
6138         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
6139         * convert.c (convert_to_pointer): Adjust call to
6140         force_fit_type_double.
6141         * tree-vrp.c (extract_range_from_assert,
6142         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
6143         * fold-const.c: Update comment.
6144         (int_const_binop, fold_convert_const_int_from_int,
6145         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
6146         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
6147         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
6148         round_up_loc): Adjust call to force_fit_type_double.
6150 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
6152         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
6154 2010-06-28  Martin Jambor  <mjambor@suse.cz>
6156         * tree-sra.c (convert_callers): New parameter, change fndecls of
6157         recursive calls.
6158         (modify_function): Pass the old decl to convert_callers.
6160 2010-06-28  Martin Jambor  <mjambor@suse.cz>
6162         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
6163         ipa_check_create_node_params and ipa_initialize_node_params with
6164         checking asserts they are not necessary.
6166 2010-06-28  Jan Hubicka  <jh@suse.cz>
6168         PR tree-optimization/44687
6169         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
6171 2010-06-28  Martin Jambor  <mjambor@suse.cz>
6173         PR c++/44535
6174         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
6175         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
6176         instead of BINFO_BASE_BINFO.
6178 2010-06-28  Michael Matz  <matz@suse.de>
6180         PR middle-end/44592
6181         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
6182         proper VDEF chain for intermediate stores in the sequence.
6184 2010-06-28  Jan Hubicka  <jh@suse.cz>
6186         PR tree-optimization/44357
6187         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
6188         uninlinable functions.
6190 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
6192         * config.gcc (powerpc*-*-*): Handle titan.
6193         * config/rs6000/rs6000.c (titan_cost): New costs.
6194         (rs6000_override_options): Add "titan" to processor_target_table.
6195         Add Titan to branch alignment logic.
6196         Correctly set rs6000_cost for titan.
6197         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
6198         * config/rs6000/titan.md: New file.
6199         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
6201 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
6203         * tree-browser.c (TB_history_stack): Convert to a VEC.
6204         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
6205         (TB_history_prev): Likewise.
6207 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
6209         * vec.h (vec_heap_free): Add parentheses around free.
6211 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
6213         * system.h: Poison GCC_EXCEPT_H for front-end files.
6215         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
6216         langhook.
6217         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
6218         Define to NULL by default.
6219         * except.h: Define GCC_EXCEPT_H.
6220         (doing_eh): Remove prototype.
6221         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
6222         (lang_protect_cleanup_actions): Remove.
6223         * except.c (lang_protect_cleanup_actions): Remove.
6224         (doing_eh): Remove.
6225         (gen_eh_region): Don't check doing_eh here.
6226         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
6227         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
6228         instead of lang_protect_cleanup_actions.
6229         * omp-low.c (maybe_catch_exception): Likewise.
6230         * Makefile.in: Update dependencies.
6232 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
6234         * cgraph.h (struct varpool_node): new used_from_object_file flag.
6235         (struct cgraph_local_info): new used_from_object_file flag.
6236         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
6237         (cgraph_clone_node): initialize used_from_object_file.
6238         (cgraph_create_virtual_clone): initialize used_from_object_file.
6239         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
6240         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
6241         when compiling with -fwhole-program.
6242         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
6243         internal resolver.
6244         * ipa.c (function_and_variable_visibility): Set externally_visible
6245         flag of varpool_node if used_from_object_file flag is set.
6246         (cgraph_externally_visible_p): check used_from_object_file flag.
6247         * doc/invoke.texi (-fwhole-program option): Change description of
6248         externally_visible attribute accordingly.
6249         * doc/extend.texi (externally_visible): Ditto.
6251 2010-06-27  Jan Hubicka  <jh@suse.cz>
6253         * params.def (max-inline-insns-auto): Default to 40.
6254         * doc/invoke.texi (max-inline-insns-auto): Document the change.
6256 2010-06-27  Jan Hubicka  <jh@suse.cz>
6258         PR middle-end/44671
6259         PR middle-end/44686
6260         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
6261         signature change.
6262         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
6263         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
6265 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
6267         * target.h (struct gcc_target): Add register_move_cost field.
6268         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
6269         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
6270         * targhooks.c (default_register_move_cost): New function.
6271         * targhooks.h (default_register_move_cost): Declare function.
6272         * defaults.h (REGISTER_MOVE_COST): Delete.
6273         * ira-int.h (ira_register_move_cost): Update comment.
6274         * ira.c (ira_register_move_cost): Update comment.
6275         * reload.h (register_move_cost): Declare.
6276         * reginfo.c (register_move_cost): New function.
6277         (move_cost): Update comment.
6278         (init_move_cost, memory_move_secondary_cost): Replace
6279         REGISTER_MOVE_COST with register_move_cost.
6280         * postreload.c (reload_cse_simplify_set): (Ditto.).
6281         * reload.c (find_valid_class, find_reloads): (Ditto.).
6282         * reload1.c (choose_reload_regs): (Ditto.).
6283         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
6284         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
6285         * doc/md.texi (can_create_pseudo_p): Update documentation.
6287         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
6288         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
6289         * config/i386/i386.h (ix86_memory_move_cost): Make static.
6290         (TARGET_MEMORY_MOVE_COST): Define.
6292         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
6293         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
6294         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
6295         (TARGET_MEMORY_MOVE_COST): Define.
6297 2010-06-27  Richard Guenther  <rguenther@suse.de>
6299         PR tree-optimization/44683
6300         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
6301         false edge from the inverted condition.
6303 2010-06-27  Richard Guenther  <rguenther@suse.de>
6305         PR middle-end/44684
6306         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
6307         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
6308         for register LHS.  Or non-store assignments.
6310 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
6312         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
6313         (sparc_emit_set_const64): Likewise.  Remove disabled code.
6314         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
6315         (sparc_emit_set_const64): Likewise.
6317 2010-06-26  Catherine Moore  <clm@codesourcery.com>
6319         * config/mips/mips.md (alu_type): New attribute.
6320         (type): Infer type from alu_type.
6321         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
6322         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
6323         *subsi3_extended, negsi2, negdi2, *low<mode>,
6324         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
6325         xor<mode>3, *nor<mode>3,
6326         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
6327         *zero_extendhi_truncqi):  Set alu_type instead of type.
6329 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
6331         * config/alpha/alpha.c (alpha_need_linkage): Adjust
6332         splay_tree_new_ggc call.
6333         (alpha_use_linkage): Likewise.
6335 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
6337         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
6338         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
6339         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
6340         (static_specs): Remove switches_need_spaces.
6341         (process_command, do_self_spec): Hardcode handling "-o" instead of
6342         checking switches_need_spaces.
6343         * system.h (SWITCHES_NEED_SPACES): Poison.
6345 2010-06-26  Richard Guenther  <rguenther@suse.de>
6347         PR tree-optimization/44393
6348         * tree-loop-distribution.c (generate_loops_for_partition): Fix
6349         stmt removal and VOP renaming.
6350         (generate_memset_zero): Remove redundant stmt updating.
6351         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
6352         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
6354 2010-06-26  Jan Hubicka  <jh@suse.cz>
6356         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
6357         edges comming from header are equivalent.
6358         (visit_bb): Handle PHIs correctly.
6359         * tree-inline.c (copy_phis_for_bb): Be able to copy
6360         PHI from entry edge.
6361         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
6363 2010-06-26  Richard Guenther  <rguenther@suse.de>
6365         PR middle-end/44674
6366         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
6367         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
6369 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
6371         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
6372         add_infile, alloc_switch): New.
6373         (process_command): Remove variable lang_n_infiles.  Process
6374         options in a single pass.  Use new functions for allocating
6375         infiles and switches arrays.  Properly skip operands of
6376         -Xpreprocessor and -Xassembler.
6378 2010-06-26  Jan Hubicka  <jh@suse.cz>
6380         PR middle-end/44671
6381         * cgraphunit.c (cgraph_function_versioning): Remove wrong
6382         cgraph_make_decl_local call; fix typo copying RTL data.
6384 2010-06-25  DJ Delorie  <dj@redhat.com>
6386         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
6387         (m32c_output_aligned_common): Likewise.
6388         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
6389         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
6390         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
6391         (m32c_register_pragmas): Register it.
6392         * config/m32c/m32c.c (m32c_get_pragma_address): New.
6393         (m32c_insert_attributes): Set #pragma address decls volatile.
6394         (pragma_entry_eq): New.
6395         (pragma_entry_hash): New.
6396         (m32c_note_pragma_address): New.
6397         (m32c_get_pragma_address): New.
6398         (m32c_output_aligned_common): New.
6399         * doc/extend.texi: Document the new pragma.
6401         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
6402         also.
6403         * config/m32c/predicates.md (m32c_any_operand): Check the code
6404         instead of memory_operand so as to allow matching volatile MEMs.
6405         (m32c_nonimmediate_operand): Likewise.
6406         (mra_operand): Allow volatiles.
6408 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
6410         PR debug/44610
6411         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
6412         address if the offset is unknown.
6414 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
6416         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
6417         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
6418         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
6419         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
6420         to ia64_start_function. Invoke it.
6421         * config/ia64/ia64.c (ia64_start_function): Call new function
6422         dwarf2out_vms_debug_main_pointer.
6424 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
6426         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
6427         statements computing the true predicate.
6429 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
6431         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
6432         to boolean_true_node.
6433         (reset_bb_predicate): New.
6434         (predicate_bbs): Call reset_bb_predicate.
6436 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
6438         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
6439         (tree_if_conversion): Returns true when something has been changed.
6440         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
6441         changed something.
6443 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
6445         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
6446         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
6447         * tree-if-conv.c: Include dbgcnt.h.
6448         (tree_if_conversion): Use if_conversion_tree to count the number of
6449         if-convertible loops.
6451 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
6453         * common.opt (fprefetch-loop-arrays): Re-define
6454         -fprefetch-loop-arrays as a tri-state option with the initial
6455         value of -1.
6456         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
6457         pass only when flag_prefetch_loop_arrays > 0.
6458         * toplev.c (process_options): Note that, with tri-states,
6459         flag_prefetch_loop_arrays>0 means prefetching is enabled.
6460         * config/i386/i386.c (override_options): Enable prefetching at -O3
6461         for a set of CPUs that sw prefetching is helpful.
6462         (software_prefetching_beneficial_p): New.  Return TRUE if software
6463         prefetching is beneficial for the given CPU.
6465 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
6467         PR rtl-optimization/44326
6468         * implicit-zee.c (find_removable_zero_extends): Replace
6469         INSN_P with NONDEBUG_INSN_P.
6471 2010-06-25  Martin Jambor  <mjambor@suse.cz>
6473         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
6474         (struct ipa_node_params): Removed the modification_analysis_done flag.
6475         (ipa_is_param_modified): Removed.
6476         (ipa_analyze_node): Declare.
6477         (ipa_compute_jump_functions): Remove declaration.
6478         (ipa_count_arguments): Likewise.
6479         (ipa_detect_param_modifications): Likewise.
6480         (ipa_analyze_params_uses): Likewise.
6481         * ipa-prop.c (struct param_analysis_info): New type.
6482         (visit_store_addr_for_mod_analysis): Removed.
6483         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
6484         moved down in the file.
6485         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
6486         (ipa_count_arguments): Made static.
6487         (mark_modified): New function.
6488         (is_parm_modified_before_call): New function.
6489         (compute_pass_through_member_ptrs): New parameter parms_info, call
6490         is_parm_modified_before_call instead of ipa_is_param_modified.
6491         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
6492         it to compute_pass_through_member_ptrs.
6493         (ipa_compute_jump_functions): New parameter parms_info, pass it to
6494         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
6495         on the callee if it is analyzed.  Made static.
6496         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
6497         is_parm_modified_before_call instead of ipa_is_param_modified.
6498         (ipa_analyze_call_uses): New parameter parms_info, pass it to
6499         ipa_analyze_indirect_call_uses.
6500         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
6501         ipa_analyze_call_uses.
6502         (ipa_analyze_params_uses): New parameter parms_info, pass it to
6503         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
6504         (ipa_analyze_node): New function.
6505         (ipa_print_node_params): Do not dump the modified flag.
6506         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
6507         it.  Do not stream the modified parameter flag.
6508         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
6509         it.  Do not stream the modified parameter flag.
6510         * ipa-cp.c (ipcp_analyze_node): Removed.
6511         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
6512         with only a call to ipa_analyze_node.
6513         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
6514         node with only a call to ipa_analyze_node.
6516 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6518         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
6520 2010-06-25  Jan Hubicka  <jh@suse.cz>
6522         * tree-pass.h (pass_split_functions): Declare.
6523         * opts.c (decode_options): Enable function splitting at -O2
6524         * timevar.def (TV_IPA_FNSPLIT): New macro.
6525         * ipa-split.c: New file.
6526         * common.opt (-fpartial-inlining): New flag.
6527         * Makefile.in (ipa-split.o): New object file.
6528         * passes.c (init_optimization_passes): Add ipa-split.
6529         * params.def (partial-inlining-entry-probability): New parameters.
6530         * doc/invoke.texi (-fpartial-inlining): New.
6532 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6534         PR 44665
6535         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
6536         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
6537         (gimplify_expr): Likewise.
6539 2010-06-25  Martin Jambor  <mjambor@suse.cz>
6541         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
6542         statements instead of bailing out on them.
6543         (ipa_analyze_indirect_call_uses): Do not require that loads from the
6544         parameter are in the same BB as the condition.  Update comments.
6546 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
6548         PR middle-end/43866
6549         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
6550         true or always false, return NULL_TREE.
6551         (tree_unswitch_single_loop): Optimize conditions even when reaching
6552         max-unswitch-level parameter.  If num > 0, optimize first all conditions
6553         using entry checks, then do still reachable block discovery and consider
6554         only conditions in still reachable basic blocks in the loop.
6556         PR tree-optimization/44539
6557         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
6558         the call doesn't have LHS, but has VDEF.
6560 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
6562         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
6563         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
6564         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
6565         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
6566         * system.h (MODIFY_TARGET_NAME): Poison.
6568 2010-06-25  Alan Modra  <amodra@gmail.com>
6570         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
6571         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
6572         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
6573         CMODEL_LARGE as default.
6574         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
6575         (offsettable_ok_by_alignment): Delete.
6576         (rs6000_emit_move): Remove mcmodel=medium optimization.
6578 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
6580         With large parts from Jim Wilson:
6581         PR target/43902
6582         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
6583         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
6584         * optabs.c (optab_for_tree_code): Likewise.
6585         (expand_widen_pattern_expr): Likewise.
6586         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
6587         out of execute_optimize_widening_mul.
6588         (convert_plusminus_to_widen): New function.
6589         (execute_optimize_widening_mul): Use the two new functions.
6590         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
6591         Remove code to generate widening multiply-accumulate.  Add support
6592         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
6593         * gimple-pretty-print.c (dump_ternary_rhs): New function.
6594         (dump_gimple_assign): Call it when appropriate.
6595         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
6596         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
6597         (expand_gimple_stmt_1): Likewise.
6598         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
6599         WIDEN_MULT_MINUS_EXPR.
6600         * tree-ssa-operands.c (get_expr_operands): Likewise.
6601         * tree-inline.c (estimate_operator_cost): Likewise.
6602         * gimple.c (extract_ops_from_tree_1): Renamed from
6603         extract_ops_from_tree.  Add new arg for a third operand; fill it.
6604         (gimple_build_assign_stat): Support operations with three operands.
6605         (gimple_build_assign_with_ops_stat): Likewise.
6606         (gimple_assign_set_rhs_from_tree): Likewise.
6607         (gimple_assign_set_rhs_with_ops_1): Renamed from
6608         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
6609         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
6610         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
6611         WIDEN_MULT_MINUS_EXPR.
6612         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
6613         (extract_ops_from_tree_1): Adjust declaration.
6614         (gimple_assign_set_rhs_with_ops_1): Likewise.
6615         (gimple_build_assign_with_ops): Pass NULL for last operand.
6616         (gimple_build_assign_with_ops3): New macro.
6617         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
6618         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
6619         functions.
6620         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
6621         (verify_gimple_assign): Call it.
6622         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
6623         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
6624         functions for dealing with three-operand statements.
6625         * tree.c (commutative_ternary_tree_code): New function.
6626         * tree.h (commutative_ternary_tree_code): Declare it.
6627         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
6628         ternary statements.
6629         (gimple_assign_nonzero_warnv_p): Likewise.
6630         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
6631         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
6632         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
6633         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
6634         (struct hashtable_expr): New member ternary in the union.
6635         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
6636         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
6637         (iterative_hash_hashable_expr): Likewise.
6638         (print_expr_hash_elt): Handle EXPR_TERNARY.
6639         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
6640         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
6641         statements.  Handle GIMPLE_TERNARY_RHS.
6643 2010-06-25  Jan Hubicka  <jh@suse.cz>
6645         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
6647 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
6649         PR c/44517
6650         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
6651         parameters are not good.
6652         (c_parser_parameter_declaration): Error unknown type name if the type
6653         name can't start declaration specifiers.
6655 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
6657         * gcc.c (translate_options): Don't mention +e in comment.
6658         (process_command): Don't handle +e specially.
6660 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
6662         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
6664         * ira-build.c (merge_hard_reg_conflicts): New function.
6665         (create_cap_allocno, copy_info_to_removed_store_destinations,
6666         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
6667         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
6668         (remove_unnecessary_allocnos, remove_low_level_allocnos)
6669         copy_nifo_to_removed_store_destination): Use them.
6670         * ira-lives.c (make_hard_regno_born): New function, split out of
6671         make_regno_born.
6672         (make_allocno_born): Likewise.
6673         (make_hard_regno_dead): New function, split out of make_regno_dead.
6674         (make_allocno_dead): Likewise.
6675         (inc_register_pressure): New function, split out of set_allocno_live.
6676         (dec_register_pressure): New function, split out of clear_allocno_live.
6677         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
6678         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
6679         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
6680         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
6681         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
6682         mark_pseudo_regno_live.
6683         (process_bb_node_lives): Use mark_pseudo_regno_live,
6684         make_hard_regno_born and make_allocno_dead.
6685         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
6686         set_allocno_live, clear_allocno_live): Delete functions.
6688         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
6689         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
6690         functions.
6691         (ira_flattening): Use ira_parent_allocno.
6692         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
6693         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
6695         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
6696         statement.
6698         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
6699         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
6700         minmax_set_iter_cond, minmax_set_iter_next,
6701         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
6702         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
6703         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
6704         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
6705         uses changed.
6707         * ira-int.h (struct live_range, live_range_t): Renamed from struct
6708         ira_allocno_live_range and allocno_live_range_t; all uses changed.
6709         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
6710         All uses changed.
6712 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
6714         * thumb2.md (thumb2_tlobits_cbranch): Delete.
6715         (peephole2 to convert zero_extract/compare of single bit to
6716          lshift/compare): New.
6718 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
6720         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
6721         recursive call and call to 'int_const_binop'.
6722         (build_range_check, fold_cond_expr_with_comparison, unextend,
6723         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
6724         multiple_of_p): Adjust call to const_binop.
6726 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
6728         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
6729         determine size of XFmode operand.
6730         (XFmode extended DFmode push splitter): Ditto.
6731         (XFmode extended SFmode push splitter): Ditto.
6733 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
6735         PR target/44588
6736         * config/i386/i386.md (extract_code): New.
6737         (<u>divmodqi4): Likewise.
6738         (divmodhiqi3): Likewise.
6739         (udivmodhiqi3): Likewise.
6740         (<u>divqi3): Remvoved.
6742 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
6744         PR middle-end/44492
6745         * recog.h (struct recog_data): Add is_asm field.
6746         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
6747         present in constraints of inline-asm operand and memory operand
6748         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
6749         (extract_insn): Initialize recog_data.is_asm.
6750         * doc/md.texi (Constraints): Document operand side-effect rules.
6752 2010-06-24  Andi Kleen  <ak@linux.intel.com>
6754         * c-parser.c (c_parser_conditional_expression): Call
6755         warn_for_omitted_condop.
6756         * doc/invoke.texi: Document omitted condop warning.
6758 2010-06-24  Nick Clifton<nickc@redhat.com>
6760         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
6761         insn in the sequence is a jump insn before setting its label.
6763 2010-06-24  Alan Modra  <amodra@gmail.com>
6765         * collect2.c (main): Match exactly --version and --help.
6767 2010-06-24  DJ Delorie  <dj@redhat.com>
6769         * config/m32c/m32c-pragma.c: Don't include rtl.h.
6771 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
6773         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
6774         using X87MODEF mode iterator.
6775         (pushsf splitter): Macroize splitter using P mode iterator.
6776         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
6777         mode iterator.
6779         (*movxf_internal): Rename from *movxf_integer.
6780         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
6781         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
6782         (*movdf_internal): Rename from *movdf_integer.
6783         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
6784         (*movsf_internal): Rename from *movdf_1.
6786 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
6788         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
6789         (const_gimple_seq_node): Removed typedefs.
6791         * gimple.h (gimple_seq_node_d, gimple_seq_node)
6792         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
6794 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
6796         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
6797         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
6798         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
6799         and CODE_FOR_vec_extract_lo_v4df.
6801         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
6802         Changed to define_insn_and_split.
6803         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
6804         (vec_extract_lo_v16hi): Likewise.
6805         (vec_extract_lo_v32qi): Likewise.
6806         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
6807         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
6809 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
6811         PR target/44640
6812         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
6813         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
6814         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
6815         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
6816         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
6818         PR target/44640
6819         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
6821         PR other/44644
6822         * df-core.c (struct df): Rename to df_d.
6823         * df.h (struct df): Likewise.
6824         * dse.h (struct df): Remove forward declaration.
6825         * recog.h (struct insn_data): Rename to:
6826         (struct_insn_data_d).  Adjusted all users.
6828 2010-06-23  Arnaud Charlet  <charlet@adacore.com
6830         PR ada/22220
6831         * doc/install.texi: Update requirements to build GNAT.
6833 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
6835         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
6836         enum type.
6837         (m68k_sched_attr_opx_type): Remove unreachable return.
6838         (m68k_sched_attr_opy_type): Likewise.
6839         (m68k_sched_attr_size): Likewise.
6840         (sched_get_opxy_mem_type): Likewise.
6841         (m68k_sched_attr_op_mem): Likewise.
6843 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
6845         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
6846         new statement and adjust VDEF only if necessary.  Remove superfluous
6847         call to maybe_clean_or_replace_eh_stmt.
6848         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
6849         copy the flags.
6850         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
6851         * tree-inline.c (copy_bb): ...and not there.
6853 2010-06-22  Cary Coutant  <ccoutant@google.com>
6855         * dwarf2out.c (is_nested_in_subprogram): New function.
6856         (should_move_die_to_comdat): Use it.
6857         (copy_ancestor_tree): Don't mark DIEs here.
6858         (copy_decls_walk): Start walk from root of newly-added tree;
6859         mark DIEs here instead.
6861 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
6863         * config/i386/i386.md (unit): Also check sseishft1.
6865 2010-06-22  Jan Hubicka  <jh@suse.cz>
6867         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
6868         enabled.
6870 2010-06-22  Jan Hubicka  <jh@suse.cz>
6872         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
6873         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
6874         Return true if something changed.
6875         * df.h (df_confluence_function_n): Return bool.
6876         * df-core.c (df_worklist_propagate_forward,
6877         df_worklist_propagate_backward): Track changes and ages.
6878         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
6879         track ages.
6880         * dse.c (dse_confluence_n): Return always true.
6882 2010-06-22  Jan Hubicka  <jh@suse.cz>
6884         * bitmap.c (bitmap_clear_bit): Micro optimize.
6886 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
6888         * config/i386/i386.md (SWI1248x): New mode iterator.
6889         (SWI48x): Ditto.
6890         (SWI12): Ditto.
6891         (SWI24): Ditto.
6893         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
6894         SWI1248x mode iterator.
6895         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
6896         using SWI124 mode iterator.
6897         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
6898         mode iterator.
6899         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
6900         *pushdi2_prologue_rex64 using P mode iterator.
6901         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
6902         using SWI48 mode iterator.
6903         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
6904         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
6905         using SWI1248x mode iterator.
6906         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
6907         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
6908         SWI48 mode iterator.
6909         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
6910         iterator.
6911         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
6912         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
6913         SWI12 mode iterator.
6914         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
6915         SWI12 mode iterator.
6916         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
6917         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
6918         SWI24 mode iterator.
6919         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
6920         SWI48 mode iterator.
6921         (mov<mode>_insn_1): New expander.
6922         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
6923         using SWI48x mode iterator.
6925         (*movoi_internal_avx): Rename from *movoi_internal.
6926         (*movti_internal_rex64): Rename from *movti_rex64.
6927         (*movti_internal_sse): Rename from *movti_sse.
6928         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
6929         (*movdi_internal): Rename from *movdi_2.
6930         (*movsi_internal): Rename from *movsi_1.
6931         (*movhi_internal): Rename from *movhi_1.
6932         (*movqi_internal): Rename from *movqi_1.
6934         (insv): Update the call to gen_movsi_insv_1 for rename.
6935         * config/i386/i386.c (promote_duplicated_reg): Ditto.
6937 2010-06-22  Jan Hubicka  <jh@suse.cz>
6939         * passes.c (execute_function_todo): Move call of statistics_fini_pass
6940         to ...
6941         (execute_todo) ... this one.
6943 2010-06-22  Alan Modra  <amodra@gmail.com>
6945         PR target/44364
6946         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
6947         * caller-save.c (insert_restore, insert_save): Use non-validate
6948         form of adjust_address.
6950 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6952         PR target/39690
6953         * config/pa/pa.c (override_options): Disable
6954         -freorder-blocks-and-partition.
6956 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
6958         PR target/44615
6959         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
6961         * config/i386/i386.md (type): Add sseishft1
6963         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
6964         (ppro_insn_load): Likewise.
6965         (ppro_insn_store): Likewise.
6966         (ppro_insn_both): Likewise.
6968         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
6969         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
6970         for type.
6971         (*vec_extractv2di_1_avx): Likewise.
6972         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
6973         type.  Remove atom_unit.
6974         (*vec_extractv2di_1_sse2): Likewise.
6976 2010-06-21  DJ Delorie  <dj@redhat.com>
6978         * diagnostic.h (diagnostic_classification_change_t): New.
6979         (diagnostic_context): Add history and push/pop list.
6980         (diagnostic_push_diagnostics): Declare.
6981         (diagnostic_pop_diagnostics): Declare.
6982         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
6983         from pragmas in a history chain instead of the global table.
6984         (diagnostic_push_diagnostics): New.
6985         (diagnostic_pop_diagnostics): New.
6986         (diagnostic_report_diagnostic): Scan history chain to find state
6987         of diagnostics as of the diagnostic location.
6988         * opts.c (set_option): Pass UNKNOWN_LOCATION to
6989         diagnostic_classify_diagnostic.
6990         (enable_warning_as_error): Likewise.
6991         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
6992         use in the history chain.
6993         * doc/extend.texi: Document pragma GCC diagnostic changes.
6995 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
6997         * dwarf2out.c (add_linkage_name): New function.  Don't add
6998         anything to DW_TAG_member DIEs.
6999         (add_name_and_src_coords_attributes): Use it.
7000         (gen_variable_die): Call it for C++ static data members if
7001         specification is DW_TAG_member.
7003         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
7004         C++ char16_t and char32_t.
7006         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
7007         * genattrtab.c: Include vecprim.h.
7008         (cached_attrs, cached_attr_count, attrs_seen_once,
7009         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
7010         attrs_cached_after): New variables.
7011         (find_attrs_to_cache): New function.
7012         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
7013         (write_test_expr): Add attrs_cached argument, return it too,
7014         attempt to cache non-const attributes used more than once in
7015         a single case handling.
7016         (write_attr_get): Use find_attrs_to_cache, for caching candidates
7017         emit cached_* variables.  Adjust write_attr_set callers.
7018         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
7019         to find attributes that should be cached in this block.  Adjust
7020         write_test_expr callers.
7021         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
7022         callers.
7023         (make_automaton_attrs): Adjust write_test_expr caller.
7025         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
7026         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
7027         (make_automaton_attrs): If find_tune_attr returns non-NULL,
7028         write separate internal_dfa_insn_code_* and insn_default_latency_*
7029         functions for each attribute's value and emit init_sched_attrs
7030         function and function pointers.
7031         * genattr.c (const_attrs, reservations): New variables.
7032         (gen_attr): Add const attributes to const_attrs vector.
7033         (check_tune_attr, find_tune_attr): New functions.
7034         (main): Add reservations to reservations vector.  If find_tune_attr
7035         returns true, add prototype for init_sched_attrs and make
7036         internal_dfa_insn_code and insn_default_latency function pointers,
7037         otherwise define init_sched_attrs as dummy macro.
7038         * cfgexpand.c: Include insn-attr.h.
7039         (gimple_expand_cfg): Call init_sched_attrs.
7041         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
7043         PR target/44575
7044         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
7045         va_arg from a set of register save slots into a temporary,
7046         if the container is bigger than type size, do the copying
7047         using smaller mode or using memcpy.
7049         PR bootstrap/44426
7050         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
7051         prototype.
7052         (sel_print_to_dot): Remove macro.
7053         (sel_print): Likewise.  New prototype.
7054         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
7055         (sel_print): New function.
7057 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7059         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
7060         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
7062 2010-06-21  Nick Clifton  <nickc@redhat.com>
7064         * config/rx/rx.h (PTRDIFF_TYPE): Define.
7065         (SMALL_REGISTER_CLASS): Define (to zero).
7066         (PRINT_OPERAND): Delete.
7067         (PRINT_OPERAND_ADDRESS): Delete.
7068         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
7069         (rx_print_operand_address): Delete prototype.
7070         * config/rx/rx.c (rx_print_operand): Make static.
7071         Allow %H and %L to handle CONST_DOUBLEs.
7072         (rx_print_operand_address): Make static.
7073         (rx_gen_move_template): Rename local variable 'template' to
7074         out_template.
7075         (rx_function_arg): Do not pass unknown sized objects in registers.
7076         (TARGET_PRINT_OPERAND): Define.
7077         (TARGET_PRINT_OPERAND_ADDRESS): Define.
7079 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7081         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
7083 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
7085         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
7086         stack-alignment for simple leaf-functions.
7088 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
7090         * doc/install.texi: Document bootstrap-lto.
7092 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
7094         PR debug/44248
7095         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
7096         (input_function): Drop them here, if VTA is disabled.
7098 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
7100         PR target/44546
7101         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
7102         New predicate.
7103         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
7104         ix86_swapped_fp_comparsion_operator instead of
7105         ix86_fp_comparison_operator.
7107         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
7108         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
7109         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
7110         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
7111         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
7112         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
7114 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
7116         PR other/32998
7117         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
7118         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
7119         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
7120         (decode_cmdline_option): Update for this return value.  Set
7121         orig_option_with_args_text field.  Set arg field for unknown
7122         options.  Make static.
7123         (decode_cmdline_options_to_array): New.
7124         (prune_options): Update handling of find_opt return value.
7125         * opts.c (read_cmdline_option): Take decoded option.  Return void.
7126         (read_cmdline_options): Take decoded options.
7127         (decode_options): Add parameters for decoded options.  Use
7128         decode_cmdline_options_to_array.  Use decoded options for -O
7129         scan.  Use integral_argument for -O parameters.  Update call to
7130         read_cmdline_options.
7131         (enable_warning_as_error): Update handling of find_opt return value.
7132         * opts.h: Update comment on unknown options.
7133         (struct cl_decoded_option): Update comments on opt_index and arg.
7134         Add orig_option_with_args_text.
7135         (decode_cmdline_option): Remove.
7136         (decode_cmdline_options_to_array): Declare.
7137         (decode_options): Update prototype.
7138         * toplev.c (save_argv): Remove.
7139         (save_decoded_options, save_decoded_options_count): New.
7140         (read_integral_parameter): Remove.
7141         (print_switch_values): Use decoded options.
7142         (toplev_main): Don't set save_argv.  Update call to decode_options.
7143         * toplev.h (read_integral_parameter): Remove.
7144         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
7146 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
7148         PR target/44072
7149         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
7150         immediate.
7151         * constraints.md (Pw, Px): New constraints.
7152         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
7154 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
7156         * config/i386/sse.md (fma4modesuffixf4): Removed.
7157         (ssemodesuffixf2s): Likewise.
7158         (ssemodesuffixf4): Likewise.
7159         (ssemodesuffixf2c): Likewise.
7160         (ssescalarmodesuffix2s): Likewise.
7161         (avxmodesuffixf2c): Likewise.
7162         (ssemodesuffix): New.
7163         (ssescalarmodesuffix): Likewise.
7164         Update patterns with ssemodesuffix and ssescalarmodesuffix.
7166 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
7168         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
7170 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
7172         * stor-layout.c (debug_rli): Remove unused local variables.
7174 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
7176         PR rtl-optimization/40900
7177         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
7178         original expression for later reuse.
7179         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
7180         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
7182 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
7184         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
7185         double_int_fits_in_uhwi_p): Implement as static inline.
7186         (double_int_xor): New inline function.
7187         (double_int_lrotate, double_int_rrotate, double_int_max,
7188         double_int_umax, double_int_smax, double_int_min, double_int_umin,
7189         double_int_smin): Declare.
7190         (lrotate_double, rrotate_double): Remove declaration.
7191         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
7192         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
7193         (double_int_lrotate, double_int_rrotate, double_int_max,
7194         double_int_umax, double_int_smax, double_int_min, double_int_umin,
7195         double_int_smin): New function.
7196         * fold-const.c (int_const_binop): Clean up, use double_int_*
7197         functions.
7198         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
7199         double_int_* and immed_double_int_const functions.
7201 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
7203         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
7204         * function.c (types_used_by_cur_var_decl): Likewise.
7205         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
7207 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
7209         * tree.h (record_layout_info): Change type of pending_statics field
7210         to a VEC.
7211         * stor-layout.c (start_record_layout): Store NULL into
7212         pending_statics.
7213         (debug_rli): Call debug_vec_tree instead of debug_tree.
7214         (place_field): Likewise.
7215         (finish_record_layout): Likewise.
7217 2010-06-18  Alan Modra  <amodra@gmail.com>
7219         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
7221 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7223         PR target/43740
7224         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
7225         for SET source operand from SET destination operand.
7227 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
7229         PR rtl-optimization/39871
7230         * reload1.c (init_eliminable_invariants): For flag_pic, disable
7231         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
7232         (function_invariant_p): Rule out a plus of frame or arg pointer with
7233         a SYMBOL_REF.
7234         * ira.c (find_reg_equiv_invariant_const): Likewise.
7236 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
7238         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
7239         print_operand_address and puts to output the operand for CONST.
7241 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
7243         PR debug/44572
7244         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
7245         hook.
7247 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
7249         * v850-protos.h (print_operand): Delete.
7250         (print_operand_address): Delete.
7251         * v850.h (PRINT_OPERAND): Delete.
7252         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7253         (PRINT_OPERAND_ADDRESS): Delete.
7254         * v850.c (print_operand_address): Rename to...
7255         (v850_print_operand_address): ...this.  Make static. Call
7256         v850_print_operand.
7257         (print_operand): Rename to...
7258         (v850_print_operand): ...this.  Make static.  Call
7259         v850_print_operand_address.
7260         (v850_print_operand_punct_valid_p): New function.
7261         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7262         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7264 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
7266         * config/sh/sh-protos.h (print_operand): Delete.
7267         (print_operand_address): Delete.
7268         * config/sh/sh.h (PRINT_OPERAND): Delete.
7269         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7270         (PRINT_OPERAND_ADDRESS): Delete.
7271         * config/sh/sh.c (sh_print_operand_address): Make static.
7272         (sh_print_operand): Make static.  Call sh_print_operand_address
7273         and sh_print_operand.
7274         (sh_print_operand_punct_valid_p): New function.
7275         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7276         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7278 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
7280         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
7281         (mcore_print_operand_address): Delete.
7282         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
7283         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7284         (PRINT_OPERAND_ADDRESS): Delete.
7285         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
7286         (mcore_print_operand): Make static.
7287         (mcore_print_operand_punct_valid_p): New function.
7288         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
7289         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
7291 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
7293         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
7294         (print_operand_address): Delete.
7295         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
7296         (PRINT_OPERAND_ADDRESS): Delete.
7297         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
7298         static.
7299         (m68hc11_print_operand): Make static.
7300         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
7302 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
7304         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
7305         (m32r_print_operand_address): Delete.
7306         * config/m32r/m32r.h (m32r_punct_chars): Delete.
7307         (PRINT_OPERAND): Delete.
7308         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7309         (PRINT_OPERAND_ADDRESS): Delete.
7310         * config/m32r/m32r.c (m32r_punct_chars): Make static.
7311         (m32r_print_operand_address): Make static.
7312         (m32r_print_operand): Make static.
7313         (m32r_print_operand_punct_valid_p): New function.
7314         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
7315         (TARGET_PRINT_OPERAND_ADDRESS): Define.
7317 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
7319         * config/iq2000/iq2000-protos.h (print_operand): Delete.
7320         (print_operand_address): Delete.
7321         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
7322         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7323         (PRINT_OPERAND_ADDRESS): Delete.
7324         (iq2000_print_operand_punct): Delete.
7325         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
7326         (iq2000_print_operand_address): Make static.
7327         (iq2000_print_operand): Make static.
7328         (iq2000_print_operand_punct_valid_p): New function.
7329         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
7330         (TARGET_PRINT_OPERAND_ADDRESS): Define.
7332 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
7334         * config/frv/frv-protos.h (frv_print_operand): Delete.
7335         (frv_print_operand_address): Delete.
7336         * config/frv/frv.h (PRINT_OPERAND): Delete.
7337         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7338         (PRINT_OPERAND_ADDRESS): Delete.
7339         * config/frv/frv.c (frv_print_operand_address): Make static.
7340         (frv_print_operand): Make static.
7341         (frv_print_operand_punct_valid_p): New function.
7342         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
7343         (TARGET_PRINT_OPERAND_ADDRESS): Define.
7345 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
7347         * tree.h (vec_member): Declare.
7348         * tree.c (vec_member): Define.
7350 2010-06-17  Richard Guenther  <rguenther@suse.de>
7352         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
7353         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
7355 2010-06-17  Richard Guenther  <rguenther@suse.de>
7357         * tree-inline.c (declare_return_variable): Remove bogus code.
7359 2010-06-17  Richard Guenther  <rguenther@suse.de>
7361         * gimplify.c (gimplify_bind_expr): Always promote complex
7362         and vector variables to registers if possible.
7364 2010-06-17  Richard Guenther  <rguenther@suse.de>
7366         * expr.c (get_inner_reference): Use double_int for bit_offset
7367         calculation.
7369 2010-06-16  DJ Delorie  <dj@redhat.com>
7371         * common.opt (-fstrict-volatile-bitfields): new.
7372         * doc/invoke.texi: Document it.
7373         * fold-const.c (optimize_bit_field_compare): For volatile
7374         bitfields, use the field's type to determine the mode, not the
7375         field's size.
7376         * expr.c (expand_assignment): Likewise.
7377         (get_inner_reference): Likewise.
7378         (expand_expr_real_1): Likewise.
7379         * expmed.c (store_fixed_bit_field): Likewise.
7380         (extract_bit_field_1): Likewise.
7381         (extract_fixed_bit_field): Likewise.
7383 2010-06-16  Richard Guenther  <rguenther@suse.de>
7385         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
7387 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
7389         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
7390         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
7391         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
7392         * debug.c: Likewise.
7393         * sdbout.c: Likewise.
7394         * vmsdbgout.c: Likewise.
7395         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
7396         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
7397         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
7398         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
7399         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
7400         * dwarf2out.c (dw_fde_struct): New fields
7401         dw_fde_vms_{end,begin}_prologue.
7402         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
7403         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
7404         (dwarf2out_vms_end_prologue): New function.
7405         (dwarf2out_vms_begin_epilogue): New function.
7406         (dw_val_struct): New value dw_val_class_vms_delta.
7407         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
7408         begin_epilogue for VMS.
7409         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
7410         new static functions.
7411         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
7412         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
7413         static functions.
7414         (print_die): New case dw_val_class_vms_delta.
7415         (attr_checksum): Likewise.
7416         (same_dw_val_p: Likewise.
7417         (size_of_die): Likewise.
7418         (value_format): Likewise.
7419         (output_die): Likewise.
7420         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
7421         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
7422         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
7423         dwarf2out_cfi_begin_epilogue
7424         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
7426 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
7428         * config/cris/cris-protos.h (cris_print_operand): Delete.
7429         (cris_print_operand_address): Delete.
7430         * config/cris/cris.h (PRINT_OPERAND): Delete.
7431         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7432         (PRINT_OPERAND_ADDRESS): Delete.
7433         * config/cris/cris.c (cris_print_operand_address): Make static.
7434         (cris_print_operand): Make static.
7435         (cris_print_operand_punct_valid_p): New function.
7436         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
7437         (TARGET_PRINT_OPERAND_ADDRESS): Define.
7439 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
7441         * config/arm/arm-protos.h (arm_print_operand): Delete.
7442         (arm_print_operand_address): Delete.
7443         * config/arm/arm.h (PRINT_OPERAND): Delete.
7444         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
7445         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
7446         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
7447         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
7448         (arm_print_operand): Make static.
7449         (arm_print_operand_punct_valid_p): New function.
7450         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
7451         (TARGET_PRINT_OPERAND_ADDRESS): Define.
7453 2010-06-16  Nick Clifton  <nickc@redhat.com>
7455         * config/rx/constraints.md (NEGint4): New constraint.
7456         * config/rx/rx.md (attr cc): Add set_zsc.
7457         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
7458         initialised.
7459         (cmpsf): Likewise.
7460         (call_internal): Clobber the cc0 register.
7461         (call_value_internal): Likewise.
7462         (cstoresi4): Likewise.
7463         (movsieq): Likewise.
7464         (movsine): Likewise.
7465         (addsi3): Add alternative to handle small negative constants.
7466         (sunsi3): Likewise.
7467         (addsi3): Do not set the O bit in the cc0 register.
7468         (adddi3): Likewise.
7469         (subsi3): Likewise.
7470         (subdi3): Likewise.
7471         (andsi3): Reorder alternatives to prefer shorter forms.
7472         (mulsi3): Likewise.
7473         (iorsi3): Likewise.
7474         (negsi2): Note that the cc0 flags are set.
7475         (rotlsi3): Note that only the Z and S bits are set in cc0.
7476         (lshrsi3): Likewise.
7477         (ashlsi3): Likewise.
7478         (subsf3): Use %Q for the MEM operand.
7479         (fix_truncsfsi2): Likewise.
7480         (floatsisf2): Likewise.
7481         (bitset): Remove early clobber from destination.
7482         (bitset_in_memory): Likewise.
7483         (lrintsf2): Clobber the cc0 register.
7484         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
7485         (rx_print_operand): Handle %N.
7487 2010-06-16  Jan Hubicka  <jh@suse.cz>
7489         * df-core.c (df_compact_blocks): Free problem_temps vector.
7491 2010-06-16  Martin Jambor  <mjambor@suse.cz>
7493         PR tree-optimization/43905
7494         * tree-sra.c: Include tree-inline.h.
7495         (create_abstract_origin): Removed.
7496         (modify_function): Version the call graph node instead of creating
7497         abstract origins and dealing with same_body aliases.
7498         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
7499         function is versionable.
7500         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
7502 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
7504         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
7505         (CHOOSE_DYNAMIC_LINKER): Update.
7507 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
7509         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
7510         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
7511         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
7512         *prefetch_3dnow_rex.
7514 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
7516         * target.h (struct asm_out):Add declare_constant_name field.
7517         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
7518         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
7519         * output.h (default_asm_declare_constant_name): Declare.
7520         (assemble_label): Update prototype.
7521         * varasm.c (assemble_constant_contents): Use
7522         targetm.asm_out.declare_constant_name target hook.
7523         (assemble_label): Add 'file' argument.
7524         (default_asm_declare_constant_name): New function.
7525         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
7526         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
7527         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
7529         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
7530         * config/darwin.c (darwin_asm_declare_constant_name): New function.
7531         (machopic_output_indirection): Update assemble_label argument list.
7532         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
7533         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
7535 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
7537         PR middle-end/44391
7538         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
7539         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
7541 2010-06-15  Richard Guenther  <rguenther@suse.de>
7543         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
7545 2010-06-15  Paul Brook  <paul@codesourcery.com>
7547         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
7548         hard-float ABI.
7550 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
7552         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
7553         don't get a vector type for output.
7555 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
7557         PR fortran/44536
7558         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
7559         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
7560         (LANG_HOOKS_DECLS): Add it.
7561         * gimplify.c (omp_notice_variable): Call
7562         lang_hooks.decls.omp_report_decl.
7564 2010-06-15  Martin Jambor  <mjambor@suse.cz>
7566         PR lto/44464
7567         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
7568         on the newly dead SSA name.
7570 2010-06-15  Alan Modra  <amodra@gmail.com>
7572         * doc/invoke.texi: Add mcmodel to powerpc options.
7573         * configure.ac: Add HAVE_LD_LARGE_TOC test.
7574         * configure: Regenerate.
7575         * config.in: Regenerate.
7576         * config/rs6000/linux64.opt (mcmodel): New.
7577         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
7578         (TARGET_CMODEL, SET_CMODEL): Define.
7579         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
7580         select CMODEL_MEDIUM default.
7581         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
7582         (TARGET_CMODEL): Define default.
7583         * config/rs6000/rs6000.c (cmodel): New variable.
7584         (rs6000_explicit_options): Add cmodel field.
7585         (rs6000_handle_option): Handle -mcmodel.
7586         (create_TOC_reference): Add largetoc_reg param.  Generate high,
7587         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
7588         (rs6000_delegitimize_address): Recognise new toc reference rtl
7589         and minimal-toc rtl.
7590         (rs6000_legitimize_reload_address): Handle new toc references.
7591         (print_operand_address): Handle legitimate_constant_pool_address_p
7592         match before lo_sum.
7593         (rs6000_eliminate_indexed_memrefs): Tidy.
7594         (rs6000_emit_move): Tweak threshold for inlining constants.
7595         Keep rs6000_emit_allocate_stack large stack frame offsets
7596         loaded into r0 inline.
7597         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
7598         (tocrel_base, tocrel_offset): New variables.
7599         (toc_relative_expr_p): Set them here.
7600         (print_operand_address): Skip over any offset on constant pool address.
7601         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
7602         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
7603         (offsettable_ok_by_alignment): New function.
7604         (rs6000_emit_move): Address suitably aligned local symbol_refs
7605         relative to the toc pointer for -mcmodel=medium.
7606         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
7607         strict param.  Allow lo_sum version of addressing.  Verify reg
7608         used for -mminimal-toc and -mcmodel != small.  Update all callers.
7609         * config/rs6000/constraints.md: Update for above change.
7610         * config/rs6000/predicates.md: Likewise.
7611         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
7612         code.
7613         (tls_gd): Split for -mcmodel=medium/large.
7614         (tls_gd_high, tls_gd_low): New.
7615         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
7616         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
7617         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
7618         (largetoc_high, largetoc_low): New.
7619         (cmptf_internal2): Add clobber.
7620         * config/rs6000/rs6000-protos.h: Update.
7622 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
7624         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
7625         true if no prefetch is going to be generated for a given group.
7626         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
7627         estimate the prefetch_count.
7628         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
7629         prefetch count by considering the unroll_factor and prefetch_mod
7630         for is_loop_prefetching_profitable.
7632 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
7634         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
7635         anything if the argument is not a MEM.
7637 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
7639         PR debug/43650
7640         PR debug/44181
7641         PR debug/44247
7642         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
7643         debug stmts.
7644         (canonicalize_loop_ivs): Likewise.
7646 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
7648         PR debug/43656
7649         * haifa-sched.c (setup_insn_reg_pressure_info,
7650         update_register_pressure): Reject debug insns.
7651         (ready_sort): Don't setup reg pressure for debug insns.
7652         (schedule_insn): Don't update reg pressure for debug insns.
7654 2010-06-14  Richard Guenther  <rguenther@suse.de>
7656         * lto-streamer.c (cached_bp): Remove.
7657         (bitpack_delete): Likewise.
7658         (bitpack_create): Likewise.
7659         (bp_get_next_word): Likewise.
7660         (bp_pack_value, bp_unpack_value): Move ...
7661         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
7662         Re-implement.
7663         (struct bitpack_d): Likewise.
7664         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
7665         New inline functions.
7666         * lto-streamer-out.c (lto_output_bitpack): Remove.
7667         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
7668         (pack_value_fields): Adjust.
7669         (lto_write_tree): Likewise.
7670         (output_gimple_stmt): Likewise.
7671         (output_function): Likewise.
7672         * lto-streamer-in.c (input_gimple_stmt): Adjust.
7673         (input_function): Likewise.
7674         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
7675         (lto_input_bitpack): Remove.
7676         (lto_materialize_tree): Adjust.
7677         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
7678         * lto-cgraph.c (lto_output_edge): Adjust.
7679         (lto_output_node): Likewise.
7680         (lto_output_varpool_node): Likewise.
7681         (lto_output_ref): Likewise.
7682         (input_node): Likewise.
7683         (input_varpool_node): Likewise.
7684         (input_ref): Likewise.
7685         (input_edge): Likewise.
7686         (output_node_opt_summary): Likewise.
7687         (input_node_opt_summary): Likewise.
7688         * ipa-pure-const.c (pure_const_write_summary): Likewise.
7689         (pure_const_read_summary): Likewise.
7690         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
7691         (ipa_read_indirect_edge_info): Likewise.
7692         (ipa_write_node_info): Likewise.
7693         (ipa_read_node_info): Likewise.
7695 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
7697         PR target/44534
7698         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
7699         (vec_extract_lo_v16hi): Likewise.
7700         (vec_extract_lo_v32qi): Likewise.
7702 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
7704         PR bootstrap/44426
7705         * tree.h (build_call_expr): Don't define as vararg macro, instead
7706         add a prototype.
7707         * builtins.c (build_call_nofold): Remove.
7708         (expand_builtin_int_roundingfn, expand_builtin_pow,
7709         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
7710         expand_builtin_memset_args, expand_builtin_strcmp,
7711         expand_builtin_strncmp, expand_builtin_memory_chk): Use
7712         build_call_nofold_loc instead of build_call_nofold.
7713         (build_call_expr): New function.
7715         PR tree-optimization/44508
7716         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
7717         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
7718         don't eliminate trivially dead stmts.
7719         * tree-vrp.c (vrp_finalize): Pass false as last argument
7720         to substitute_and_fold.
7721         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
7722         to substitute_and_fold.
7723         * tree-ssa-ccp.c (ccp_finalize): Likewise.
7725         PR bootstrap/44509
7726         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
7728 2010-06-14  Ira Rosen  <irar@il.ibm.com>
7730         PR tree-optimization/44507
7731         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
7732         to build initial vector for BIT_AND_EXPR.
7733         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
7735 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
7737         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
7738         adjust z10prop set_attr.
7740 2010-06-13  Jan Hubicka  <jh@suse.cz>
7742         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
7743         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
7744         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
7745         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
7746         datastructure checks into checking asserts.
7747         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
7748         * tree-ssa-sccvn.c (VN_INFO): Likewise.
7749         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
7750         df_ref_create_structure): Likewise.
7751         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
7752         pool_free): Use gcc_checking_assert.
7753         * alias.c (get_alias_set): Likewise.
7754         * var-tracking.c (variable_htab_free, shared_hash_copy,
7755         canonicalize_values_mark, variable_merge_over_cur): Likewise.
7756         * lto-streamer.c (bp_unpack_value): Likewise.
7758 2010-06-13  Richard Guenther  <rguenther@suse.de>
7760         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
7761         Do not stream but initialize TYPE_CANONICAL to NULL.
7762         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
7763         * gimple.c (gimple_types_compatible_p): Disregard
7764         TYPE_STRUCTURAL_EQUALITY_P.
7765         (gimple_register_type): Use TYPE_CANONICAL as cache.
7766         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
7767         before registering common types.
7768         * config/i386/i386.c (ix86_function_arg_boundary): Do not
7769         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
7770         * tree.h (TYPE_CANONICAL): Clarify documentation.
7772 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
7774         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7775         LIBCALL_VALUE): Remove macros.
7776         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
7777         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7778         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7779         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
7780         (ia64_function_value): Make static. Handle receiving the function
7781         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
7783 2010-06-12  Jan Hubicka  <jh@suse.cz>
7785         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
7786         at correct place.
7788 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
7790         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
7792 2010-06-12  Jan Hubicka  <jh@suse.cz>
7794         * df-core.c (df_clear_bb_info): New function.
7795         (df_set_blocks): bb_info is always allocated.
7796         (df_get_bb_info): Use block_info_elt_size.
7797         (df_set_bb_info): Likewise.
7798         (df_compact_blocks): Update for new block_info.
7799         (grow_bb_info): New function.
7800         * df-problems.c (df_grow_bb_info): Move to df-core.c
7801         (df_rd_set_bb_info): Remove.
7802         (df_rd_free_bb_info): Do not free block pool.
7803         (df_rd_alloc): Do not create pool, use check for
7804         obstack presence instead of NULL pointer for new blocks.
7805         (df_rd_free): DO not free alloc pool; clear block_info.
7806         (problem_RD): Add size of block info structure.
7807         (df_lr_set_bb_info): Remove.
7808         (df_lr_free_bb_info): Do not free block pool.
7809         (df_lr_alloc): Do not create pool, use check for
7810         obstack presence instead of NULL pointer for new blocks.
7811         (df_lr_free): DO not free alloc pool; clear block_info.
7812         (problem_LR): Add size of block info structure.
7813         (df_live_set_bb_info): Remove.
7814         (df_live_free_bb_info): Do not free block pool.
7815         (df_live_alloc): Do not create pool, use check for
7816         obstack presence instead of NULL pointer for new blocks.
7817         (df_live_free): DO not free alloc pool; clear block_info.
7818         (problem_LIVE): Add size of block info structure.
7819         (problem_CHAIN): Add size of block info structure.
7820         (df_byte_lr_set_bb_info): Remove.
7821         (df_byte_lr_free_bb_info): Do not free block pool.
7822         (df_byte_lr_alloc): Do not create pool, use check for
7823         obstack presence instead of NULL pointer for new blocks.
7824         (df_byte_lr_free): DO not free alloc pool; clear block_info.
7825         (problem_BYTE_LR): Add size of block info structure.
7826         (problem_NOTE): Add size of block info structure.
7827         (df_byte_MD_set_bb_info): Remove.
7828         (df_byte_MD_free_bb_info): Do not free block pool.
7829         (df_byte_MD_alloc): Do not create pool, use check for
7830         obstack presence instead of NULL pointer for new blocks.
7831         (df_byte_MD_free): DO not free alloc pool; clear block_info.
7832         (problem_BD): Add size of block info structure.
7833         * df-scan.c (df_scan_free_internal): Free block pool.
7834         (df_scan_set_bb_info): Remove.
7835         (df_scan_free_bb_info): Check for artificial_defs instead
7836         of bb_info being non-NULL.
7837         (df_scan_alloc): DO not create df_scan_block pool.
7838         (problem_SCAN): Set size of block info.
7839         (df_bb_refs_record): Do not allocate bb_info.
7840         * df.h (df_problem): Add block_info_elt_size.
7841         (struct dataflow): Change block_info to void *.
7842         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
7843         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
7844         in-line structures.
7846 2010-06-12  Jan Hubicka  <jh@suse.cz>
7848         PR tree-optimize/44485
7849         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
7850         containing use of return value of noreturn function.
7852 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
7854         * targhooks.c (default_function_value): Don't use
7855         FUNCTION_OUTGOING_VALUE.
7856         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
7857         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
7859 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
7861         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
7862         Add crtfastmath.o to extra_parts.
7863         * config/mips/crtfastmath.c: New.
7864         * config/mips/linux.h (ENDFILE_SPEC): New.
7866 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
7868         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
7869         old_type in parameter.
7870         (gcc_type_for_value): Update call to gcc_type_for_interval.
7871         (compute_type_for_level_1): Renamed compute_type_for_level.
7872         Update call to gcc_type_for_interval.
7874 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
7876         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
7877         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
7879 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
7881         * opts-common.c: Include options.h.
7882         (integral_argument): Move from opts.c.
7883         (decode_cmdline_option): New.  Based on read_cmdline_option.
7884         * opts.c (integral_argument): Move to opts-common.c.
7885         (read_cmdline_option): Move most contents to
7886         decode_cmdline_option.  Use %qs in diagnostics.
7887         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
7888         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
7889         decode_cmdline_option): New.
7891 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
7893         PR target/44481
7894         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
7895         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
7896         (partiysi2_cmp): Ditto.
7897         (*partiyhi2_cmp): Ditto.
7898         (*parityqi2_cmp): Remove.
7900 2010-06-11  Jan Hubicka  <jh@suse.cz>
7902         * bitmap.h (bmp_iter_next_bit): New.
7903         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
7905 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
7906             Eric Botcazou  <ebotcazou@adacore.com>
7908         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
7909         computed cost.
7911 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
7913         * config/i386/i386.md (unspec): New define_c_enum.
7914         (unspecv): Ditto.
7916 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
7918         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
7920 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
7922         PR middle-end/44483
7923         * tree-if-conv.c (bb_predicate_s): New struct.
7924         (bb_predicate_p): New.
7925         (bb_has_predicate): New.
7926         (bb_predicate): New.
7927         (set_bb_predicate): New.
7928         (bb_predicate_gimplified_stmts): New.
7929         (set_bb_predicate_gimplified_stmts): New.
7930         (add_bb_predicate_gimplified_stmts): New.
7931         (init_bb_predicate): New.
7932         (free_bb_predicate): New.
7933         (is_predicated): Use bb_predicate.
7934         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
7935         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
7936         before processing their successors.
7937         (clean_predicate_lists): Removed.
7938         (find_phi_replacement_condition): Use bb_predicate.
7939         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
7940         computations.
7941         (insert_gimplified_predicates): New.
7942         (combine_blocks): Call insert_gimplified_predicates.
7943         (tree_if_conversion): Call free_bb_predicate instead of
7944         clean_predicate_lists.
7946 2010-10-11  Paul Brook  <paul@codesourcery.com>
7948         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
7949         * config/arm/arm.c (all_architectures): Change v7e-m default to
7950         cortexm4.
7951         * config/arm/arm-cores.def: Add cortex-m4.
7952         * config/arm/arm-tune.md: Regenerate.
7954 2010-06-11  Jan Hubicka  <jh@suse.cz>
7956         * ipa-pure-const.c (special_builtlin_state): New function.
7957         (check_call): Use it instead of special casign BUILT_IN_RETURN.
7958         (propagate_pure_const): Use it.
7960 2010-06-11  Jan Hubicka  <jh@suse.cz>
7962         * df-problems.c (df_live_scratch): Convert to bitmap_head.
7963         (df_live_alloc): Initialize df_live_scratch when initializing
7964         problem_data.
7965         (df_live_transfer_function): Update uses of df_live_scratch.
7966         (df_live_free): Free problem_data; clear df_live_scratch before
7967         releasing the obstack.
7968         (df_md_free): Free problem data.
7970 2010-06-11  Jan Hubicka  <jh@suse.cz>
7972         * doc/invoke.texi (Wsuggest-attribute): Document.
7973         (Wmissing-noreturn): Remove.
7974         * ipa-pure-const.c (warn_function_noreturn): New function.
7975         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
7976         warn_missing_noreturn.
7977         * common.opt (Wsuggest-attribute=noreturn): New.
7978         * tree-flow.h (warn_function_noreturn): Declare.
7979         * tree-cfg.c (execute_warn_function_noreturn): Use
7980         warn_function_noreturn.
7981         (gate_warn_function_noreturn): New.
7982         (pass_warn_function_noreturn): Update.
7984 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7986         * c-typeck.c (handle_warn_cast_qual): Add loc
7987         parameter. Improve warning message.
7988         (build_c_cast): Pass location to handle_warn_cast_qual.
7990 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
7992         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
7993         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
7994         insn mnemonic.
7995         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
7997 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
7999         Fix bootstap on mips
8000         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
8001         be naming typedefs.
8003 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
8005         * system.h (helper_const_non_const_cast): New inline for
8006         gcc version <= 4.0.
8007         (CONST_CAST2): For gcc version <= 4.0 use
8008         new helper to do const/non-const casting.
8010 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8012         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
8013         * Makefile.in (OBJS-common): Include insn-enums.o.
8014         (insn-enums.o): New rule.
8015         (simple_generated_c): Add insn-enums.c.
8016         (build/genenums.o): New rule.
8017         (genprogmd): Add "enums".
8018         * genconstants.c (print_enum_type): Declare a C string array
8019         for each enum.
8020         * genenums.c: New file.
8021         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
8022         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
8023         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
8025 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8027         * doc/md.texi (define_enum_attr): Document.
8028         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
8029         * read-md.h (lookup_enum_type): Declare.
8030         * read-md.c (lookup_enum_type): New function.
8031         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
8032         * genattrtab.c (attr_desc): Add an enum_name field.
8033         (evaluate_eq_attr): Take the associated attribute as argument.
8034         Get the enum prefix from the enum_name field, if defined.
8035         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
8036         (simplify_test_exp): Pass attr to evaluate_eq_attr.
8037         (add_attr_value): New function, split out from...
8038         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
8039         (write_test_expr): Pass attr to evaluate_eq_attr.
8040         (write_attr_get): Use the enum_name as the enum tag, if defined.
8041         (write_attr_valueq): Use the enum_name as a prefix, if defined.
8042         (find_attr): Initialize enum_name.
8043         (main): Handle DEFINE_ENUM_ATTR.
8044         * gensupport.c (process_rtx): Likewise.
8045         * config/mips/mips.h (mips_tune_attr): Delete.
8046         * config/mips/mips.md (cpu): Use define_attr_enum.
8048 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8050         * doc/md.texi (define_c_enum, define_enum): Document.
8051         * read-md.h (md_constant): Add a parent_enum field.
8052         (enum_value, enum_type): New structures.
8053         (upcase_string, traverse_enum_types): Declare.
8054         * read-md.c (enum_types): New variable.
8055         (upcase_string, add_constant): New functions.
8056         (handle_constants): Don't create the hash table here.
8057         Use add_constant.
8058         (traverse_md_constants): Don't check for a null md_constants.
8059         (decimal_string, handle_enum, traverse_enum_types): New functions.
8060         (read_md_files): Initialize md_constants and md_enums.
8061         * genconstants.c (print_md_constant): Ignore info argument.
8062         Only print constants that belong to no enum.
8063         (print_enum_type): New function.
8064         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
8065         for each defined enum type.
8066         * config/mips/mips.md (processor): New define_enum.
8067         (unspec): New define_c_enum.
8068         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
8069         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
8070         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
8071         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
8072         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
8073         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
8074         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
8075         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
8076         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
8077         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
8078         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
8079         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
8080         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
8081         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
8082         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
8083         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
8084         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
8085         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
8086         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
8087         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
8088         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
8089         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
8090         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
8091         (UNSPEC_RDDSP): Move to mips-dsp.md.
8092         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
8093         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
8094         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
8095         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
8096         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
8097         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
8098         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
8099         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
8100         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
8101         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
8102         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
8103         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
8104         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
8105         Moved to mips-dspr2.md.
8106         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
8107         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
8108         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
8109         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
8110         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
8111         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
8112         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
8113         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
8114         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
8115         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
8116         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
8117         UNSPEC_LOONGSON_PSADBH)
8118         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
8119         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
8120         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
8121         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
8122         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
8123         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
8124         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
8125         (cpu): Update comment.
8126         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
8127         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
8128         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
8129         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
8130         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
8131         UNSPEC_LOONGSON_PCMPEQ)
8132         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
8133         UNSPEC_LOONGSON_PINSR_0)
8134         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
8135         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
8136         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
8137         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
8138         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
8139         UNSPEC_LOONGSON_PSADBH)
8140         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
8141         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
8142         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
8143         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
8144         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
8145         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
8146         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
8147         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
8148         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
8149         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
8150         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
8151         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
8152         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
8153         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
8154         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
8155         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
8156         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
8157         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
8158         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
8159         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
8160         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
8161         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
8162         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
8163         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
8164         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
8165         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
8166         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
8167         (UNSPEC_RDDSP): Moved from mips.md.
8168         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
8169         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
8170         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
8171         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
8172         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
8173         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
8174         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
8175         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
8176         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
8177         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
8178         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
8179         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
8180         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
8181         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
8182         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
8183         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
8184         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
8185         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
8186         (UNSPEC_SCC): Moved from mips.md.
8187         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
8188         "processor_type" to "processor".
8189         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
8190         * config/mips/mips.h (processor_type): Delete.
8191         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
8192         "processor_type" to "processor".
8194 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8196         * configure.ac (tm_include_list): Add insn-constants.h.
8197         * configure: Regenerate.
8198         * Makefile.in (GTM_H): Move insn-constants.h here from...
8199         (TM_H): ...here.
8200         * mkconfig.sh: Remove special handling for insn-constants.h.
8202 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8204         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
8205         (BUILD_MD): ...this new variable.
8206         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
8207         that include the old contents of simple_generated_h and
8208         simple_generated_c.
8209         (simple_generated_h, simple_generated_c): Include them.  Add
8210         insn-constants.h.
8211         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
8212         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
8213         Remove these dependencies from the main rule and include
8214         insn-conditions.md in the command line only if it appears
8215         in the dependency list.
8216         (insn-constants.h, s-constants): Delete.
8217         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
8218         or gensupport.h.
8219         (build/genmddeps.o): Likewise.
8220         (genprogrtl): New variable that contains everything from genprogmd
8221         except mddeps and constants.
8222         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
8223         depend on $(BUILD_MD)
8224         (genprog): New variable.  Make these programs depend on
8225         $(BUILD_ERRORS).
8226         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
8227         (main): Use read_md_files instead of init_rtx_reader_args.
8228         * genconstants.c: As for genmddeps.c.
8229         * read-md.h (read_skip_construct): Declare.
8230         * read-md.c (read_skip_construct): New function.
8231         (handle_file): Allow a null handle_directive, skipping the
8232         construct if so.
8233         (parse_include): Update the comment accordingly.
8235 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8237         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
8238         * genmddeps.c: Include read-md.h.
8239         (main): Call init_rtx_reader_args instead of init_md_reader_args.
8240         * genattr.c (main): Likewise.
8241         * genattrtab.c (main): Likewise.
8242         * genautomata.c (main): Likewise.
8243         * gencodes.c (main): Likewise.
8244         * genconditions.c (main): Likewise.
8245         * genconfig.c (main): Likewise.
8246         * genconstants.c (main): Likewise.
8247         * genemit.c (main): Likewise.
8248         * genextract.c (main): Likewise.
8249         * genflags.c (main): Likewise.
8250         * genopinit.c (main): Likewise.
8251         * genoutput.c (main): Likewise.
8252         * genpeep.c (main): Likewise.
8253         * genrecog.c (main): Likewise.
8254         * genpreds.c (main): Likewise.
8255         * gensupport.h (in_fname): Move to read-md.h.
8256         (init_md_reader_args_cb): Rename to...
8257         (init_rtx_reader_args_cb): ...this and return a bool.
8258         (init_md_reader_args): Rename to...
8259         (init_rtx_reader_args): ...this and return a bool.
8260         (include_callback): Move to read-md.h.
8261         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
8262         (file_name_list, first_dir_md_include): Move to read-md.c
8263         (first_bracket_include): Delete unused variable.
8264         (last_dir_md_include): Move to read-md.c.
8265         (process_include): Delete, moving code to read-md.c:handle_include.
8266         (process_rtx): Don't handle INCLUDE.
8267         (save_string): Delete.
8268         (rtx_handle_directive): New function.
8269         (init_md_reader_args_cb): Rename to...
8270         (init_rtx_reader_args_cb): ...this and return a boolean success value.
8271         Use read_md_args.
8272         (init_md_reader_args): Rename to...
8273         (init_rtx_reader_args): ...this and return a boolean success value.
8274         * rtl.def (INCLUDE): Delete.
8275         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
8276         argument.
8277         * read-rtl.c (read_conditions): Don't gobble ')' here.
8278         (read_mapping): Likewise.
8279         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
8280         Handle top-level non-rtx constructs here rather than in read_rtx_1.
8281         Store the whole queue in *X.  Remove call to init_md_reader.
8282         (read_rtx_1): Rename to...
8283         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
8284         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
8285         here.
8286         (read_nested_rtx): New function.  Handle (nil) here rather than
8287         in read_rtx_code.
8288         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
8289         gobble ')' here.
8290         * read-md.h (directive_handler_t): New type.
8291         (in_fname, include_callback): Moved from read-md.h.
8292         (read_constants, init_md_reader): Delete.
8293         (read_md_files): Declare.
8294         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
8295         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
8296         from gensupport.c.
8297         (read_constants): Rename to...
8298         (handle_constants): ...this.  Don't gobble ')' here.
8299         (handle_include, handle_file, handle_toplevel_file)
8300         (parse_include): New functions, mostly taken from gensupport.c.
8301         (init_md_reader): Subsume into...
8302         (read_md_files): ...this new function.
8304 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8306         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
8307         (unread_char): Decrement read_md_lineno after putting back '\n'.
8308         * read-md.c (fatal_with_file_and_line): Push back any characters
8309         that we decide not to add to the context.
8310         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
8311         fatal_expected_char in cases where '/' ends a line (for example).
8312         (read_name): Don't increment read_md_lineno here.
8313         (read_escape): Likewise.
8314         (read_quoted_string): Likewise.
8315         (read_braced_string): Likewise.
8317 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8319         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
8320         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
8321         * genconstants.c: Include read-md.h.
8322         * read-rtl.c (md_constants): Move to read-md.c.
8323         (md_name): Move to read-md.h.
8324         (initialize_iterators): Use leading_string_hash instead of def_hash
8325         and leading_string_eq_p instead of def_name_eq_p.
8326         (read_name): Move to read-md.c.
8327         (def_hash, def_name_eq_p): Delete.
8328         (read_constants, traverse_md_constants): Move to read-md.c.
8329         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
8330         * read-md.h: Include hashtab.h.
8331         (md_name): Moved from read-rtl.c.
8332         (md_constant): Moved from read-md.h.
8333         (leading_string_hash, leading_string_eq_p, read_name)
8334         (read_constants, traverse_md_constants): Declare.
8335         * read-md.c (md_constants): Moved from read-rtl.c.
8336         (leading_string_hash, leading_string_eq_p): New functions.
8337         (read_name, read_constants, traverse_md_constants): Moved from
8338         read-rtl.c.
8340 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8342         * read-rtl.c (md_name): New structure.
8343         (read_name): Take an md_name instead of a buffer pointer.
8344         Use the "string" field instead of strcpy when expanding constants.
8345         (read_constants): Remove the tmp_char argument.  Update the calls
8346         to read_name, using two local name buffers instead of the tmp_char
8347         argument.  Merge the constant-creation code.
8348         (read_conditions): Remove the tmp_char argument.  Update the calls
8349         to read_name, using a local name buffer instead of the tmp_char
8350         argument.
8351         (read_mapping): Replace tmp_char variable with a local name buffer.
8352         Update the calls to read_name.
8353         (read_rtx_1): Likewise.  Update the calls to read_constants and
8354         read_conditions.
8356 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8358         * Makefile.in (build/read-md.o): Depend on errors.h.
8359         * read-md.h (error_with_line): Declare.
8360         * read-md.c: Include errors.h.
8361         (message_with_line_1): New function, extracted from...
8362         (message_with_line): ...here.
8363         (error_with_line): New function.
8364         * genattrtab.c: If a call to message_with_line is followed by
8365         "have_error = 1;", replace both statements with a call to
8366         error_with_line.
8367         * genoutput.c: Likewise.
8368         * genpreds.c: Likewise.
8369         * genrecog.c: If a call to message_with_line is followed by
8370         "error_count++;", replace both statements with a call to
8371         error_with_line.
8372         (errorcount): Delete.
8373         (main): Don't check it.
8374         * gensupport.c: If a call to message_with_line is followed by
8375         "errors = 1;", replace both statements with a call to error_with_line.
8376         (errors): Delete.
8377         (process_define_cond_exec): Check have_error instead of errors.
8378         (init_md_reader_args_cb): Likewise.  Don't set errors.
8380 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8382         * read-md.h (read_md_file): Declare.
8383         (read_char, unread_char): New functions.
8384         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
8385         (read_quoted_string, read_string): Remove FILE * argument.
8386         * read-md.c (read_md_file): New variable.
8387         (read_md_filename, read_md_lineno): Update comments and remove
8388         unnecessary initialization.
8389         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
8390         (read_escape, read_quoted_string, read_braced_string, read_string):
8391         Remove FILE * argument.  Update calls accordingly, using read_char
8392         and unread_char instead of getc and ungetc.
8393         * rtl.h (read_rtx): Remove FILE * argument.
8394         * read-rtl.c (iterator_group): Remove FILE * argument from
8395         "find_builtin".
8396         (iterator_traverse_data): Remove "infile" field.
8397         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
8398         (add_mapping, read_name, read_constants, read_conditions)
8399         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
8400         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
8401         Remove file arguments from all calls, using read_char and unread_char
8402         instead of getc and ungetc.
8403         * gensupport.c (process_include): Preserve read_md_file around
8404         the include.  Set read_md_file to the handle of the included file.
8405         Update call to read_rtx.
8406         (init_md_reader_args_cb): Set read_md_file to the handle of the file
8407         and remove local FILE *.  Update calls to read_rtx.
8409 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8411         * read-md.h (read_rtx_lineno): Rename to...
8412         (read_md_lineno): ...this.
8413         (read_rtx_filename): Rename to...
8414         (read_md_filename): ...this.
8415         (copy_rtx_ptr_loc): Rename to...
8416         (copy_md_ptr_loc): ...this.
8417         (print_rtx_ptr_loc): Rename to...
8418         (print_md_ptr_loc): ...this.
8419         * read-md.c: Likewise.  Update references after renaming.
8420         (string_obstack): Replace RTL with MD in comment.
8421         (set_rtx_ptr_loc): Rename to...
8422         (set_md_ptr_loc): ...this.
8423         (get_rtx_ptr_loc): Rename to...
8424         (get_md_ptr_loc): ...this.
8425         * genconditions.c: Update references after renaming.
8426         * genemit.c: Likewise.
8427         * genoutput.c: Likewise.
8428         * genpreds.c: Likewise.
8429         * gensupport.c: Likewise.
8430         * read-rtl.c: Likewise.
8432 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
8434         * Makefile.in (READ_MD_H): New variable.
8435         (BUILD_RTL): Add build/read-md.o.
8436         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
8437         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
8438         (build/genattrtab.o, build/genconditions.o build/genemit.o)
8439         (build/genextract.o, build/genflags.o, build/genoutput.o)
8440         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
8441         (build/read-md.o): New rule.
8442         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
8443         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
8444         * coretypes.h: ...here.
8445         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
8446         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
8447         * genattr.c: Include read-md.h.
8448         * genattrtab.c: Likewise.
8449         * genconditions.c: Likewise.
8450         * genemit.c: Likewise.
8451         * genextract.c: Likewise.
8452         * genflags.c: Likewise.
8453         * genoutput.c: Likewise.
8454         * genpreds.c: Likewise.
8455         * genrecog.c: Likewise.
8456         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
8457         (join_c_conditions, print_c_condition, read_rtx_filename)
8458         (read_rtx_lineno): Move to read-md.h.
8459         * read-rtl.c: Include read-md.h.
8460         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
8461         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
8462         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
8463         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
8464         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
8465         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
8466         (read_braced_string, read_string): Move to read-md.c.
8467         (read_rtx): Move some initialization to init_md_reader and call
8468         init_md_reader here.
8469         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
8470         Move to read-md.h.
8471         * gensupport.c: Include read-md.h.
8472         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
8473         * read-md.h, read-md.c: New files.
8475 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
8477         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8478         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8479         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
8480         * config/moxie/moxie.c (moxie_function_value): Make static.
8481         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
8482         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8484 2010-06-10  Martin Jambor  <mjambor@suse.cz>
8486         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
8487         * dbgcnt.def (tree_sra): New counter.
8488         * tree-sra.c: Include dbgcnt.h.
8489         (gate_intra_sra): Check tree_sra debug counter.
8491 2010-06-10  Martin Jambor  <mjambor@suse.cz>
8493         PR tree-optimization/44258
8494         * tree-sra.c (build_access_subtree): Return false iff there is a
8495         partial overlap.
8496         (build_access_trees): Likewise.
8497         (analyze_all_variable_accesses): Disqualify candidates if
8498         build_access_trees returns true for them.
8500 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
8502         PR debug/41371
8503         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
8504         tail-recurse into canonical node.  Fast-forward over
8505         non-canonical VALUEs.
8507 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
8509         PR boostrap/44470
8510         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
8511         (*addsi_1_zext) <TYPE_LEA>: Likewise.
8512         (add lea splitter): Likewise.
8513         (add_zext lea splitter): Likewise.
8515 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
8517         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
8519 2010-06-10  Jan Hubicka  <jh@suse.cz>
8521         * df-problems.c (df_live_problem_data): Add live_bitmaps.
8522         (df_live_alloc): Initialize problem data and live_osbtacks.
8523         (df_live_finalize): Remove obstack, problem data; do not
8524         clear all bitmaps.
8525         (df_live_top_dump, df_live_bottom_dump): Do not dump old
8526         data when not allocated.
8527         (df_live_verify_solution_start): Do not allocate problem data.
8528         (df_live_verify_solution_end): Check if out is allocated.
8529         (struct df_md_problem_data): New structure.
8530         (df_md_alloc): Allocate problem data.
8531         (df_md_free): Free problem data; do not clear bitmaps.
8533 2010-06-10  Jan Beulich  <jbeulich@novell.com>
8535         PR bootstrap/37304
8536         * configure.ac: Replace $() with ${} when intending to expand
8537         variables rather than invoking commands.
8538         * configure: Re-generate.
8540 2010-06-10  Jan Hubicka  <jh@suse.cz>
8542         PR rtl-optimization/44460
8543         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8544         TYPE_NEEDS_CONSTRUCTING sanity check.
8546 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
8548         * doc/include/fdl.texi: Move to GFDL version 1.3.
8550         * doc/cpp.texi: Move to GFDL version 1.3.
8551         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
8552         * doc/gccint.texi: Move to GFDL version 1.3.
8553         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
8554         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
8555         * doc/invoke.texi: Move to GFDL version 1.3.
8557 2010-06-09  Jan Hubicka  <jh@suse.cz>
8559         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
8560         Break out from ...
8561         (propagate) ... here; swap the order.
8563 2010-06-09  Jan Hubicka  <jh@suse.cz>
8565         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
8566         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
8567         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
8568         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
8570 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
8572         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
8573         Do not the gather memory reference in the outer loop if the step
8574         is not a constant.
8576 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
8578         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
8579         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
8580         8 to 4.  Minor change of the related comments.
8582 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
8584         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
8585         the scev analysis when the variable is not used outside the loop
8586         in a close phi node: call compute_overall_effect_of_inner_loop.
8588 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
8590         * graphite-sese-to-poly.c (single_pred_cond): Renamed
8591         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
8592         (build_sese_conditions_before): Renamed call to single_pred_cond.
8593         (build_sese_conditions_after): Same.
8595 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
8597         * graphite-poly.h: Fix comments and indentation.
8598         * graphite-sese-to-poly.c: Same.
8599         (build_sese_conditions_before): Compute stmt and gbb only when needed.
8600         * tree-chrec.c: Fix comments and indentation.
8601         (tree-ssa-loop-niter.c): Same.
8603 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
8605         PR rtl-optimization/42461
8606         * dce.c (deletable_insn_p): Return true for const or pure calls again.
8607         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
8609 2010-06-09  Jan Hubicka  <jh@suse.cz>
8611         * bitmap.c (bitmap_and): Walk array forward.
8612         (bitmap_and_compl_into): Likewise.
8613         (bitmap_xor): Likewise.
8614         (bitmap_xor_into):  Likewise.
8615         (bitmap_equal_p): Likewise.
8616         (bitmap_intersect_p): Likewise.
8617         (bitmap_intersect_compl_p): Likewise.
8618         (bitmap_ior_and_into): Likewise.
8619         (bitmap_elt_copy): Likewise.
8620         (bitmap_and_compl): Likewise.
8621         (bitmap_elt_ior): Likewise.
8623 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
8625         * opts-common.c (prune_options): Ensure replacement argv array
8626         is correctly terminated by a NULL entry.
8628 2010-06-09  Jan Hubicka  <jh@suse.cz>
8630         * cgraph.h (varpool_first_static_initializer,
8631         varpool_next_static_initializer): Make checking only when
8632         checking enabled.
8633         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
8634         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
8635         gcc_assert to gcc_checking_assert.
8636         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
8637         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
8638         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
8639         op_iter_init_phiuse, op_iter_init_phidef,
8640         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
8641         gcc_checking_assert.
8642         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
8643         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
8644         partition_is_global, live_on_entry, live_on_exit,
8645         live_merge_and_clear): Likewise.
8646         * system.h (gcc_checking_assert): New macro.
8647         * gimple.h (set_bb_seq): Use gcc_checking_assert.
8649 2010-06-09  Jason Merrill  <jason@redhat.com>
8651         * Makefile.in (TAGS): Collect tags info from c-family.
8653 2010-06-09  Jan Hubicka  <jh@suse.cz>
8655         * gimple.h (gcc_gimple_checking_assert): New macro.
8656         (gimple_set_def_ops, gimple_set_use_ops,
8657         gimple_set_vuse, gimple_set_vdef,
8658         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
8659         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
8660         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
8661         gimple_asm_output_op, gimple_asm_output_op_ptr,
8662         gimple_asm_set_output_op, gimple_asm_clobber_op,
8663         gimple_asm_set_clobber_op, gimple_asm_label_op,
8664         gimple_asm_set_label_op, gimple_try_set_kind,
8665         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
8666         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
8667         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
8668         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
8669         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
8670         gimple_omp_for_set_initial, gimple_omp_for_final,
8671         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
8672         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
8673         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
8674         conditional with ENABLE_GIMPLE_CHECKING.
8675         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
8677 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
8679         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
8680         (get_computation_cost_at): Use it.
8681         (determine_use_iv_cost_condition): Likewise.
8682         (determine_iv_cost): Likewise.
8684 2010-06-09  Richard Guenther  <rguenther@suse.de>
8686         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
8687         replace constants.
8689 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
8691         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
8693 2010-06-09  Martin Jambor  <mjambor@suse.cz>
8695         PR tree-optimization/44423
8696         * tree-sra.c (dump_access): Dump also grp_assignment_read.
8697         (analyze_access_subtree): Pass negative allow_replacements to children
8698         if the current type is scalar.
8700 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
8702         PR testsuite/42843
8703         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
8704         * doc/plugins.texi (Plugin license check): Update information
8705         on type of plugin_is_GPL_compatible.
8706         * Makefile.in (PLUGINCC): Define as $(COMPILER).
8707         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
8709 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
8711         * config/arm/arm.c (thumb2_reorg): New function.
8712         (arm_reorg): Call it.
8713         * config/arm/thumb2.md (define_peephole2 for flag clobbering
8714         arithmetic operations): Delete.
8716 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
8718         PR target/44067
8719         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
8720         e500v2 target.
8722 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
8724         PR plugins/44459
8725         * gcc-plugin.h: Encapsulate all declarations in extern "C".
8727 2010-06-08  Jan Hubicka  <jh@suse.cz>
8729         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
8730         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
8732 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
8734         PR tree-optimization/39874
8735         PR middle-end/28685
8736         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
8737         Declare.
8738         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
8739         same_bool_result_p): New.
8740         (and_var_with_comparison, and_var_with_comparison_1,
8741         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
8742         (or_var_with_comparison, or_var_with_comparison_1,
8743         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
8744         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
8745         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
8746         of combine_comparisons.
8747         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
8749 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
8751         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8752         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8753         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
8754         pdp11_function_value_regno_p): New functions.
8755         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8756         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8758 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
8760         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
8761         Thumb-2 in the MINUS case.
8763 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8765         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
8767         * doc/gty.texi (GTY Options): Document typed GC allocation and
8768         variable_size GTY option.
8770         * ggc-internal.h: New.
8772         * ggc.h: Update copyright year.
8773         (digit_string): Move to stringpool.c.
8774         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
8775         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
8776         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
8777         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
8778         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
8779         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
8780         (ggc_force_collect, ggc_get_size, ggc_statistics)
8781         (ggc_print_common_statistics): Move to ggc-internal.h.
8782         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
8783         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
8784         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
8785         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
8786         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
8787         (ggc_alloc_zone_pass_stat): Remove.
8788         (ggc_internal_alloc_stat, ggc_internal_alloc)
8789         (ggc_internal_cleared_alloc_stat): New.
8790         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
8791         (ggc_internal_vec_alloc_stat)
8792         (ggc_internal_cleared_vec_alloc_stat)
8793         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
8794         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
8795         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
8796         (ggc_cleared_alloc_ptr_array_two_args): New.
8797         (htab_create_ggc, splay_tree_new_ggc): Redefine.
8798         (ggc_splay_alloc): Change the type of the first argument to
8799         enum gt_types_enum.
8800         (ggc_alloc_string): Make macro.
8801         (ggc_alloc_string_stat): New.
8802         (ggc_strdup): Redefine.
8803         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
8804         (ggc_alloc_rtvec_sized): New.
8805         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
8806         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
8807         (ggc_internal_cleared_alloc_zone_stat)
8808         (ggc_internal_zone_alloc_stat)
8809         (ggc_internal_zone_cleared_alloc_stat)
8810         (ggc_internal_zone_vec_alloc_stat)
8811         (ggc_alloc_zone_rtx_def_stat)
8812         (ggc_alloc_zone_tree_node_stat)
8813         (ggc_alloc_zone_cleared_tree_node_stat)
8814         (ggc_alloc_cleared_gimple_statement_d_stat): New.
8816         * ggc-common.c: Include ggc-internal.h.
8817         (ggc_internal_cleared_alloc_stat): Rename from
8818         ggc_alloc_cleared_stat.
8819         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
8820         (ggc_calloc): Remove.
8821         (ggc_cleared_alloc_htab_ignore_args): New.
8822         (ggc_cleared_alloc_ptr_array_two_args): New.
8823         (ggc_splay_alloc): Add obj_type parameter.
8824         (init_ggc_heuristics): Formatting fixes.
8826         * ggc-none.c: Update copyright year.
8827         (ggc_alloc_stat): Rename to ggc_alloc_stat.
8828         (ggc_alloc_cleared_stat): Rename to
8829         ggc_internal_cleared_alloc_stat.
8830         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
8832         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
8833         Remove references to ggc_alloc in comments.
8834         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
8835         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
8836         (new_ggc_zone, destroy_ggc_zone): Remove.
8837         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
8839         * ggc-zone.c: Include ggc-internal.h.  Remove references to
8840         ggc_alloc in comments.
8841         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
8842         (ggc_internal_alloc_zone_pass_stat): New.
8843         (ggc_internal_cleared_alloc_zone_stat): New.
8844         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
8845         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
8846         (new_ggc_zone, destroy_ggc_zone): Remove.
8848         * stringpool.c: Update copyright year.  Include ggc-internal.h
8849         (digit_vector): Make static.
8850         (digit_string): Moved from ggc.h.
8851         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
8852         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
8854         * Makefile.in (GGC_INTERNAL_H): New.
8855         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
8856         $(GGC_INTERNAL_H) to dependencies.
8858         * gentype.c: Update copyright year.
8859         (walk_type): Accept variable_size GTY option.
8860         (USED_BY_TYPED_GC_P): New macro.
8861         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
8862         whitespace at the end of strings.
8863         (get_type_specifier, variable_size_p): New functions.
8864         (alloc_quantity, alloc_zone): New enums.
8865         (write_typed_alloc_def): New function.
8866         (write_typed_struct_alloc_def): Likewise.
8867         (write_typed_typed_typedef_alloc_def): Likewise.
8868         (write_typed_alloc_defns): Likewise.
8869         (output_typename, write_splay_tree_allocator_def): Likewise.
8870         (write_splay_tree_allocators): Likewise.
8871         (main): Call write_typed_alloc_defns and
8872         write_splay_tree_allocators.
8874         * lto-streamer.h (lto_file_decl_data_ptr): New.
8876         * passes.c (order): Define using cgraph_node_ptr.
8878         * strinpool.c (struct string_pool_data): Declare nested_ptr using
8879         ht_identifier_ptr.
8881         * gimple.h (union gimple_statement_d): Likewise.
8883         * rtl.h (struct rtx_def): Likewise.
8884         (struct rtvec_def): Likewise.
8886         * tree.h (union tree_node): Likewise.
8888         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
8890         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
8892         * tree-scalar-evolution.c (scev_initialize): Likewise.
8894         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
8896         * dwarf2asm.c (dw2_force_const_mem): Likewise.
8898         * omp-low.c (lower_omp_critical): Likewise.
8900         * bitmap.h (struct bitmap_head_def): Update comment to not
8901         reference ggc_alloc.
8903         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
8905         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
8907         * ipa-prop.c (duplicate_ggc_array): Rename to
8908         duplicate_ipa_jump_func_array.  Use typed GC allocation.
8909         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
8911         * gimple.c (gimple_alloc_stat): Use
8912         ggc_alloc_cleared_gimple_statement_d_stat.
8914         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
8916         * tree.c (make_node_stat): Use
8917         ggc_alloc_zone_cleared_tree_node_stat.
8918         (make_tree_vec_stat): Likewise.
8919         (build_vl_exp_stat): Likewise.
8920         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
8921         (make_tree_binfo_stat): Likewise.
8922         (tree_cons_stat): Likewise.
8924         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
8925         (shallow_copy_rtx_stat): Likewise.
8926         (make_node_stat): Likewise.
8928         * lto-symtab.c: Fix comment.
8930         * tree-cfg.c (create_bb): Update comment to not reference
8931         ggc_alloc_cleared.
8932         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
8934         * varpool.c (varpool_node): Use typed GC allocation.
8935         (varpool_extra_name_alias): Likewise.
8937         * varasm.c (emutls_decl): Likewise.
8938         (get_unnamed_section): Likewise.
8939         (get_noswitch_section): Likewise.
8940         (get_section): Likewise.
8941         (get_block_for_section): Likewise.
8942         (build_constant_desc): Likewise.
8943         (create_constant_pool): Likewise.
8944         (force_const_mem): Likewise.
8946         * tree.c (build_vl_exp_stat): Likewise.
8947         (build_real): Likewise.
8948         (build_string): Likewise.
8949         (decl_debug_expr_insert): Likewise.
8950         (decl_value_expr_insert): Likewise.
8951         (type_hash_add): Likewise.
8952         (build_omp_clause): Likewise.
8954         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
8956         * tree-ssa.c (init_tree_ssa): Likewise.
8958         * tree-ssa-structalias.c (heapvar_insert): Likewise.
8960         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
8962         * tree-ssa-loop-niter.c (record_estimate): Likewise.
8964         * tree-ssa-alias.c (get_ptr_info): Likewise.
8966         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
8968         * tree-phinodes.c (allocate_phi_node): Likewise.
8970         * tree-iterator.c (tsi_link_before): Likewise.
8971         (tsi_link_after): Likewise.
8973         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
8975         * tree-dfa.c (create_var_ann): Likewise.
8977         * tree-cfg.c (create_bb): Likewise.
8979         * toplev.c (alloc_for_identifier_to_locale): Likewise.
8980         (general_init): Likewise.
8982         * stringpool.c (stringpool_ggc_alloc): Likewise.
8983         (gt_pch_save_stringpool): Likewise.
8985         * sese.c (if_region_set_false_region): Likewise.
8987         * passes.c (do_per_function_toporder): Likewise.
8989         * optabs.c (set_optab_libfunc): Likewise.
8990         (set_conv_libfunc): Likewise.
8992         * lto-symtab.c (lto_symtab_register_decl): Likewise.
8994         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
8995         (input_eh_region): Likewise.
8996         (input_eh_lp): Likewise.
8997         (make_new_block): Likewise.
8998         (unpack_ts_real_cst_value_fields): Likewise.
9000         * lto-section-in.c (lto_new_in_decl_state): Likewise.
9002         * lto-cgraph.c (input_node_opt_summary): Likewise.
9004         * loop-init.c (loop_optimizer_init): Likewise.
9006         * lambda.h (lambda_vector_new): Likewise.
9008         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
9010         * ira.c (update_equiv_regs): Likewise.
9012         * ipa.c (cgraph_node_set_new): Likewise.
9013         (cgraph_node_set_add): Likewise.
9014         (varpool_node_set_new): Likewise.
9015         (varpool_node_set_add): Likewise.
9017         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
9018         (duplicate_ipa_jump_func_array): Likewise.
9019         (ipa_read_node_info): Likewise.
9021         * ipa-cp.c (ipcp_create_replace_map): Likewise.
9023         * integrate.c (get_hard_reg_initial_val): Likewise.
9025         * gimple.c (gimple_alloc_stat): Likewise.
9026         (gimple_build_omp_for): Likewise.
9027         (gimple_seq_alloc): Likewise.
9028         (gimple_copy): Likewise.
9030         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
9031         (gsi_insert_after_without_update): Likewise.
9033         * function.c (add_frame_space): Likewise.
9034         (insert_temp_slot_address): Likewise.
9035         (assign_stack_temp_for_type): Likewise.
9036         (allocate_struct_function): Likewise.
9037         (types_used_by_var_decl_insert): Likewise.
9039         * except.c (init_eh_for_function): Likewise.
9040         (gen_eh_region): Likewise.
9041         (gen_eh_region_catch): Likewise.
9042         (gen_eh_landing_pad): Likewise.
9043         (add_call_site): Likewise.
9045         * emit-rtl.c (get_mem_attrs): Likewise.
9046         (get_reg_attrs): Likewise.
9047         (start_sequence): Likewise.
9048         (init_emit): Likewise.
9050         * dwarf2out.c (new_cfi): Likewise.
9051         (queue_reg_save): Likewise.
9052         (dwarf2out_frame_init): Likewise.
9053         (new_loc_descr): Likewise.
9054         (find_AT_string): Likewise.
9055         (new_die): Likewise.
9056         (add_var_loc_to_decl): Likewise.
9057         (clone_die): Likewise.
9058         (clone_as_declaration): Likewise.
9059         (break_out_comdat_types): Likewise.
9060         (new_loc_list): Likewise.
9061         (loc_descriptor): Likewise.
9062         (add_loc_descr_to_each): Likewise.
9063         (add_const_value_attribute): Likewise.
9064         (tree_add_const_value_attribute): Likewise.
9065         (add_comp_dir_attribute): Likewise.
9066         (add_name_and_src_coords_attributes): Likewise.
9067         (lookup_filename): Likewise.
9068         (store_vcall_insn): Likewise.
9069         (dwarf2out_init): Likewise.
9071         * dbxout.c (dbxout_init): Likewise.
9073         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
9075         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
9077         * config/score/score7.c (score7_output_external): Likewise.
9079         * config/score/score3.c (score3_output_external): Likewise.
9081         * config/s390/s390.c (s390_init_machine_status): Likewise.
9083         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
9084         (rs6000_init_machine_status): Likewise.
9085         (output_toc): Likewise.
9087         * config/pa/pa.c (pa_init_machine_status): Likewise.
9088         (get_deferred_plabel): Likewise.
9090         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
9092         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
9094         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
9096         * config/mep/mep.c (mep_init_machine_status): Likewise.
9097         (mep_note_pragma_flag): Likewise.
9099         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
9101         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
9103         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
9105         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
9106         (i386_pe_maybe_record_exported_symbol): Likewise.
9108         * config/i386/i386.c (get_dllimport_decl): Likewise.
9109         (ix86_init_machine_status): Likewise.
9110         (assign_386_stack_local): Likewise.
9112         * config/frv/frv.c (frv_init_machine_status): Likewise.
9114         * config/darwin.c (machopic_indirection_name): Likewise.
9116         * config/cris/cris.c (cris_init_machine_status): Likewise.
9118         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
9120         * config/avr/avr.c (avr_init_machine_status): Likewise.
9122         * config/arm/arm.c (arm_init_machine_status): Likewise.
9124         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
9125         (alpha_need_linkage): Likewise.
9126         (alpha_use_linkage): Likewise.
9128         * cgraph.c (cgraph_allocate_node): Likewise.
9129         (cgraph_create_edge_1): Likewise.
9130         (cgraph_create_indirect_edge): Likewise.
9131         (cgraph_add_asm_node): Likewise.
9133         * cfgrtl.c (init_rtl_bb_info): Likewise.
9135         * cfgloop.c (alloc_loop): Likewise.
9136         (rescan_loop_exit): Likewise.
9138         * cfg.c (init_flow): Likewise.
9139         (alloc_block): Likewise.
9140         (unchecked_make_edge): Likewise.
9142         * c-parser.c (c_parse_init): Likewise.
9143         (c_parse_file): Likewise.
9145         * c-decl.c (bind): Likewise.
9146         (record_inline_static): Likewise.
9147         (push_scope): Likewise.
9148         (make_label): Likewise.
9149         (lookup_label_for_goto): Likewise.
9150         (finish_struct): Likewise.
9151         (finish_enum): Likewise.
9152         (c_push_function_context): Likewise.
9154         * bitmap.c (bitmap_element_allocate): Likewise.
9155         (bitmap_gc_alloc_stat): Likewise.
9157         * alias.c (record_alias_subset): Likewise.
9158         (init_alias_analysis): Likewise.
9160 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
9162         * fold-const.c (fold_comparison): Remove redundant parenthesis.
9163         * tree-inline.c (expand_call_inline): Pass translated return value of
9164         cgraph_inline_failed_string to diagnostic function.
9166 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
9167             Shujing Zhao  <pearly.zhao@oracle.com>
9169         PR c/37724
9170         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
9171         implicit bad conversions is initialization.
9172         (error_init): Use gmsgid instead of msgid for argument name and change
9173         the call for error.
9174         (pedwarn_init): Use gmsgid instead of msgid for argument name and
9175         change the call for pedwarn.
9176         (warning_init): Use gmsgid instead of msgid for argument name and
9177         change the call for warning.
9179 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
9181         * config/mips/mips-protos.h (mips_print_operand): Delete.
9182         (mips_print_operand_address): Delete.
9183         * config/mips/mips.h (mips_print_operand_punct): Delete.
9184         (PRINT_OPERAND): Delete.
9185         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9186         (PRINT_OPERAND_ADDRESS): Delete.
9187         * config/mips/mips.c (mips_print_operand_punct): Make static.
9188         (mips_print_operand_address): Make static.
9189         (mips_print_operand): Make static.  Call
9190         mips_print_operand_punct_valid_p.
9191         (mips_print_operand_punct_valid_p): New function.
9192         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9193         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9195 2010-06-07  Jan Hubicka  <jh@suse.cz>
9197         PR middle-end/44454
9198         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
9199         are allocated.
9201 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
9203         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
9204         name of RECORD.
9206 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9208         * doc/sourcebuild.texi (Effective-Target Keywords, Other
9209         attributes): Document gas.
9211 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
9213         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
9214         <TYPE_LEA>: Split instruction.
9215         <default>: Remove alternative 2 handling.
9216         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
9217         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
9218         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
9220         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
9221         (ashift_zext lea splitter): Use DImode for multiplication.
9223         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
9224         to generate addition.
9226 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
9228         * common.opt (fira-verbose): Use Var.
9229         (fpcc-struct-return): Use Init instead of VarExists.
9230         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
9231         toplev.c.
9232         * flags.h (flag_signed_char, flag_short_enums,
9233         flag_pcc_struct_return, flag_ira_verbose,
9234         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
9235         * toplev.c (flag_detailed_statistics, flag_signed_char,
9236         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
9237         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
9238         * toplev.h (flag_crossjumping, flag_if_conversion,
9239         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
9240         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
9241         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
9242         flag_cprop_registers, time_report, flag_ira_loop_pressure,
9243         flag_ira_coalesce, flag_ira_move_spills,
9244         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
9246 2010-06-07  Jan Hubicka  <jh@suse.cz>
9248         * df-core.c (df_analyze_problem): Do verification after allocation.
9250         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
9251         (df_lr_alloc): Initialize problem data; move bitmaps to
9252         lr_bitmaps obstack.
9253         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
9254         (df_lr_verify_solution_start): Do not initialize problem data;
9255         allocate bitmaps in lr_bitmaps.
9256         (df_lr_verify_solution_end): Do not free problem data.
9258 2010-06-07  Jan Hubicka  <jh@suse.cz>
9260         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
9261         if caller is noreturn.
9262         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
9263         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
9264         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
9265         * ipa-pure-const.c (check_decl): Add IPA parameter.
9266         (state_from_flags): New function.
9267         (better_state, worse_state): New functions.
9268         (check_call): When in IPA mode, do not care about callees.
9269         (check_load, check_store): Update.
9270         (check_ipa_load, check_ipa_store): New.
9271         (check_stmt): When in IPA mode, use IPA checkers.
9272         (analyze_function): Use state_from_flags.
9273         (propagate): Check indirect edges and references.
9275 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
9277         PR rtl-optimization/44404
9278         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
9279         of count_occurrences to see if it's safe to modify mem_insn.
9281 2010-06-07  Richard Guenther  <rguenther@suse.de>
9283         * gimplify.c (gimplify_cleanup_point_expr): For empty body
9284         and EH-only cleanup drop the cleanup instead of inserting it
9285         unconditionally.
9287 2010-06-07  Ira Rosen  <irar@il.ibm.com>
9289         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
9290         documentation.
9291         * targhooks.c (default_builtin_vectorization_cost): New function.
9292         * targhooks.h (default_builtin_vectorization_cost): Declare.
9293         * target.h (enum vect_cost_for_stmt): Define.
9294         (builtin_vectorization_cost): Change argument and comment.
9295         * tree-vectorizer.h: Remove cost model macros.
9296         * tree-vect-loop.c: Include target.h.
9297         (vect_get_cost): New function.
9298         (vect_estimate_min_profitable_iters): Replace cost model macros with
9299         calls to vect_get_cost.
9300         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
9301         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
9302         default implementation.
9303         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
9304         calls to target hook builtin_vectorization_cost.
9305         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
9306         Likewise.
9307         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
9308         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
9309         implementation to return costs.
9310         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
9311         * config/spu/spu.h: Remove vectorizer cost model macros.
9312         * config/i386/i386.h: Likewise.
9313         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
9314         a call to target hook builtin_vectorization_cost.
9316 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
9318         PR target/44319
9319         * config/i386/i386.c (override_options): Turn zee pass on for level 2
9320         and above and defer till target is known.
9321         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
9322         turn off otherwise.
9324 2010-05-25  Jan Hubicka  <jh@suse.cz>
9326         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
9327         (df_compact_blocks): Likewise.
9328         * df.h (struct df): Turn hardware_regs_used,
9329         regular_block_artificial_uses, eh_block_artificial_uses,
9330         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
9331         bitmap_head.
9332         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
9333         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
9334         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
9335         df_scan_blocks, df_insn_delete, df_insn_rescan,
9336         df_insn_rescan_debug_internal, df_insn_rescan_all,
9337         df_process_deferred_rescans, df_process_deferred_rescans,
9338         df_notes_rescan, df_get_call_refs, df_get_call_refs,
9339         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
9340         df_record_entry_block_defs, df_record_exit_block_uses,
9341         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
9342         df_scan_verify): Update.
9344 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
9346         PR c++/44188
9347         * c-common.c (is_typedef_decl): Move this definition ...
9348         * tree.c (is_typedef_decl): ... here.
9349         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
9350         * c-common.h (is_typedef_decl): Move this declaration ...
9351         * tree.h (is_typedef_decl): ... here.
9352         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
9353         * dwarf2out.c (is_naming_typedef_decl): New function.
9354         (gen_tagged_type_die): Split out of ...
9355         (gen_type_die_with_usage): ... this function. When an anonymous
9356         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
9357         is emitted for the typedef.
9358         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
9359         anonymous tagged types.
9361 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9363         PR c/20000
9364         * c-decl.c (grokdeclarator): Delete warning.
9366 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
9368         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
9369         newly built CALL_EXPR.
9370         * tree-profile.c (tree_profiling): Don't profile functions produced
9371         for built-in stuff.
9373 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
9375         PR bootstrap/44427
9376         PR bootstrap/44428
9377         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
9378         endianness-independent.
9380 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
9382         * c-common.c: Move to c-family/.
9383         * c-common.def: Likewise.
9384         * c-common.h: Likewise.
9385         * c-cppbuiltin.c: Likewise.
9386         * c-dump.c: Likewise.
9387         * c-format.c: Likewise.
9388         * c-format.h : Likewise.
9389         * c-gimplify.c: Likewise.
9390         * c-lex.c: Likewise.
9391         * c-omp.c: Likewise.
9392         * c.opt: Likewise.
9393         * c-opts.c: Likewise.
9394         * c-pch.c: Likewise.
9395         * c-ppoutput.c: Likewise.
9396         * c-pragma.c: Likewise.
9397         * c-pragma.h: Likewise.
9398         * c-pretty-print.c: Likewise.
9399         * c-pretty-print.h: Likewise.
9400         * c-semantics.c: Likewise.
9401         * stub-objc.c: Likewise.
9403         * gengtype.c (get_file_langdir): Special-case files in c-family/.
9404         (get_output_file_with_visibility): Fix name for c-common.h.
9405         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
9407         * c-tree.h: Update include path for moved files.
9408         * c-lang.c: Likewise.
9409         * c-lang.h: Likewise.
9410         * c-parser.c: Likewise.
9411         * c-convert.c: Likewise.
9412         * c-decl.c: Likewise.
9413         * c-objc-common.c: Likewise.
9414         * configure.ac: Make sure c-family/ exists in the build directory.
9415         * configure: Regenerate.
9416         * Makefile.in: Update paths for moved files.  Regroup files per
9417         location and update dependencies.  Move generated_files down after
9418         ALL_GTFILES_H.
9420         * config/spu/spu-c.c: Update paths for moved files.
9421         * config/mep/mep-pragma.c: Likewise.
9422         * config/darwin-c.c: Likewise.
9423         * config/i386/msformat-c.c: Likewise.
9424         * config/i386/i386-c.c: Likewise.
9425         * config/avr/avr-c.c: Likewise.
9426         * config/sol2-c.c: Likewise.
9427         * config/ia64/ia64-c.c: Likewise.
9428         * config/rs6000/rs6000-c.c: Likewise.
9429         * config/arm/arm.c: Likewise.
9430         * config/arm/arm-c.c: Likewise.
9431         * config/h8300/h8300.c: Likewise.
9432         * config/v850/v850-c.c: Likewise.
9434         * config/t-darwin: Fix dependencies for moved files.
9435         * config/t-sol2: Fix dependencies for moved files.
9436         * config/mep/t-mep: Fix dependencies for moved files.
9437         * config/ia64/t-ia64: Fix dependencies for moved files.
9438         * config/rs6000/t-rs6000: Fix dependencies for moved files.
9439         * config/v850/t-v850: Fix dependencies for moved files.
9440         * config/v850/t-v850e: Fix dependencies for moved files.
9442         * config/m32c/m32c-pragma.c
9444         * po/exgettext: Look in c-family/ also.
9446 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
9448         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
9449         (mark_control_dependent_edges_necessary): Call it instead of marking
9450         the last statement manually.
9451         (propagate_necessity): Likewise.
9453 2010-06-05  Jan Hubicka  <jh@suse.cz>
9455         * basic-block.h (compute_dominance_frontiers): Updated.
9456         (compute_idf): Likewise.
9458         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
9459         for dominance frontiers.
9460         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
9461         (insert_updated_phi_nodes_for): Likewise.
9462         (update_ssa): Likewise.
9463         * cfganal.c (compute_dominance_frontiers_1): Likewise.
9464         (compute_dominance_frontiers): Likewise.
9465         (compute_idf): Likewise.
9466         * df-problems.c (df_md_local_compute): Likewise.
9468 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
9470         * target.h (struct gcc_target): Add memory_move_cost field.
9471         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
9472         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
9473         * targhooks.c (default_memory_move_cost): New function.
9474         * targhooks.h (default_memory_move_cost): Declare function.
9475         * reload.h (memory_move_cost): Declare.
9476         (memory_move_secondary_cost): Change type of 'in' argument to bool.
9477         * reginfo.c (memory_move_cost): New function.
9478         (memory_move_secondary_cost): Change type of 'in' argument to bool.
9479         * ira.h (ira_memory_move_cost): Update comment.
9480         * ira.c (ira_memory_move_cost): Update comment.
9481         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
9482         with memory_move_cost.
9483         * postreload.c (reload_cse_simplify_set): (Ditto.).
9484         * reload1.c (choose_reload_regs): (Ditto.).
9485         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
9486         (MEMORY_MOVE_COST):  Revise documentation.
9488         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
9489         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
9490         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
9491         type of 'in' argument to bool.
9492         (TARGET_MEMORY_MOVE_COST): Define.
9494 2010-06-05  Jan Hubicka  <jh@suse.cz>
9496         * ipa-pure-const.c (propagate): Fix typo in handling of functions
9497         that cannot return.  Be more careful when merging the results with
9498         previously known ones.
9500 2010-06-05  Matthias Klose  <doko@ubuntu.com>
9502         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
9503         function to add the -iplugindir option.
9504         (find_plugindir_spec_function): Add new declaration and function.
9505         (static_spec_func): Use it for "find-plugindir".
9507 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
9509         PR c++/44361
9510         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
9511         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
9512         statement expression.
9514 2010-06-05  Jan Hubicka  <jh@suse.cz>
9516         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
9517         (df_rd_problem_data): Convert sparse_invalidated_by_call,
9518         dense_invalidated_by_call to bitmap head.
9519         (df_rd_alloc, df_rd_bb_local_compute_process_def,
9520         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
9521         df_rd_start_dump, df_lr_verify_transfer_functions,
9522         df_live_verify_transfer_functions, df_chain_create_bb,
9523         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
9524         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
9525         df_simulate_one_insn_forwards, df_md_alloc,
9526         df_md_bb_local_compute_process_def,
9527         df_md_bb_local_compute_process_def, df_md_local_compute,
9528         df_md_transfer_function df_md_free): Update.
9530 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
9532         PR c/44322
9533         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
9534         target type for ADDR_EXPR; require no changes to qualifiers except
9535         for function types.
9536         * c-tree.h (c_build_type_variant): Remove.
9538 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
9540         * genautomata.c (get_excl_set): Do work per element, not per char.
9541         (check_presence_pattern_sets): Similar.
9542         (check_absence_pattern_sets): Similar.
9544 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
9546         * genautomata.c (curr_state_pass_num): Delete.
9547         (min_issue_delay_pass_states): Delete.
9548         (min_issue_delay): Delete.
9549         (initiate_min_issue_delay_pass_states): Delete.
9550         (output_min_issue_delay_table): Compute min_issue_delay_vect
9551         using a breadth-first search variant.
9552         (output_tables): Don't call initiate_min_issue_delay_pass_states.
9554 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
9556         PR boostrap/44421
9557         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
9558         (df_byte_lr_bb_local_compute): Likewise.
9560 2010-06-03  Jason Merrill  <jason@redhat.com>
9562         Implement noexcept operator (5.3.7)
9563         * c-common.c (c_common_reswords): Add noexcept.
9564         * c-common.h (enum rid): Add RID_NOEXCEPT.
9566 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
9568         * config/darwin-driver.c (darwin_default_min_version): Use
9569         GCC-specific formats in diagnostics.
9570         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
9571         diagnostics.
9572         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
9573         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
9574         eval_spec_function, handle_braces, process_brace_body, main,
9575         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
9576         getenv_spec_function, compare_version_strings,
9577         version_compare_spec_function): Use GCC-specific formats in
9578         diagnostics.
9580 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
9582         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
9583         that operand 0 and operand 1 are equal.
9584         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
9585         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
9586         and operand 1 are equal.
9587         <default>: Ditto.  Remove ??? comment.
9588         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
9589         and operand 1 are equal.
9590         <default>: Ditto.  Remove ??? comment.
9591         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
9592         are equal.
9593         (*add<mode>_4) <default>: Ditto.
9594         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
9596 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
9598         * config/i386/i386-protos.h (ix86_print_operand): Declare.
9599         * config/i386/i386.c (ix86_print_operand): Make non-static.
9600         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
9601         * output.h (output_operand): Declare.
9602         * final.c (output_operand): Make non-static.
9604 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
9606         PR rtl-optimization/44013
9607         * sched-deps.c (add_dependence_list_and_free): Don't free lists
9608         when processing debug insns.
9610         PR debug/41371
9611         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
9612         recursing.  Check that recursion is bounded.  Rename inner var
9613         to avoid hiding incoming argument.
9615 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
9617         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
9618         operands[2] == 255.
9619         (*addqi_3): Ditto.
9620         (*addqi_4): Ditto.
9621         (*addqi_5): Ditto.
9622         (*addqi_ext_1_rex64): Ditto.
9623         (*addqi_ext_1): Ditto.
9625         (*addqi_4): Check for incdec_operand in QImode.
9627         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
9628         using SWI mode iterator.
9629         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
9630         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
9631         mode iterator.
9632         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
9633         using SWI mode iterator.
9635 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9637         PR c/25880
9638         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
9639         * c-format.c (gcc_diag_flag_specs): Add hash.
9640         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
9641         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
9642         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
9643         pp_c_cv_qualifiers. Handle qualifiers spelling here.
9644         (pp_c_type_qualifier_list): Call the function above.
9645         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
9646         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
9647         (WARN_FOR_QUALIFIERS): New macro.
9648         (convert_for_assignment): Use it.
9650 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
9652         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
9654 2010-06-04  Jan Hubicka  <jh@suse.cz>
9656         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
9657         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
9658         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
9659         DF_BYTE_LR_OUT): Update for embedded bitmaps.
9660         * fwprop.c (single_def_use_enter_block): Likewise.
9661         * ddg.c (create_ddg_dep_from_intra_loop_link,
9662         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
9663         * loop-iv.c (latch_dominating_def): Likewise.
9664         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
9665         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
9666         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
9667         df_rd_transfer_function, df_rd_top_dump,
9668         df_rd_bottom_dump): Update.
9669         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
9670         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
9671         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
9672         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
9673         df_lr_verify_solution_start, df_lr_verify_solution_end,
9674         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
9675         df_live_free_bb_info, df_live_alloc, df_live_reset,
9676         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
9677         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
9678         df_live_verify_solution_start, df_live_verify_solution_end,
9679         df_live_verify_transfer_functions, df_chain_create_bb,
9680         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
9681         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
9682         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
9683         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
9684         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
9685         df_byte_lr_transfer_function, df_byte_lr_top_dump,
9686         df_byte_lr_bottom_dump, df_create_unused_note,
9687         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
9688         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
9689         df_md_transfer_function, df_md_init, df_md_confluence_0,
9690         df_md_confluence_n,
9691         df_md_top_dump, df_md_bottom_dump): Update.
9692         (struct df_lr_problem_data): Embedd bitmap headers.
9694 2010-06-04  Jan Hubicka  <jh@suse.cz>
9696         * dce.c (dce_process_block): Do not re-scan already marked
9697         instructions.
9699 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
9701         PR rtl-optimization/39871
9702         PR rtl-optimization/40615
9703         PR rtl-optimization/42500
9704         PR rtl-optimization/42502
9705         * ira.c (init_reg_equiv_memory_loc: New function.
9706         (ira): Call it twice.
9707         * reload.h (calculate_elim_costs_all_insns): Declare.
9708         * ira-costs.c: Include "reload.h".
9709         (regno_equiv_gains): New static variable.
9710         (init_costs): Allocate it.
9711         (finish_costs): Free it.
9712         (ira_costs): Call calculate_elim_costs_all_insns.
9713         (find_costs_and_classes): Take estimated elimination costs
9714         into account.
9715         (ira_adjust_equiv_reg_cost): New function.
9716         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
9717         * reload1.c (init_eliminable_invariants, free_reg_equiv,
9718         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
9719         (elim_bb): New static variable.
9720         (reload): Move code out of here into init_eliminable_invariants and
9721         free_reg_equiv.  Call them.
9722         (calculate_elim_costs_all_insns): New function.
9723         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
9724         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
9725         but call note_reg_elim_costly if we turned a valid memory address
9726         into an invalid one.
9727         * Makefile.in (ira-costs.o): Depend on reload.h.
9729 2010-06-04  Julian Brown  <julian@codesourcery.com>
9731         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
9732         for pool ranges.
9734 2010-06-04  Richard Guenther  <rguenther@suse.de>
9736         PR lto/41584
9737         * cgraph.h (struct varpool_node): Add lto_file_data field.
9738         * lto-cgraph.c (input_varpool_node): Initialize it.
9740 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
9742         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
9743         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
9744         predicate in "type" attribute calculation.
9745         (*addsi_1_zext): Ditto.
9746         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
9747         (*addsi_2_zext): Ditto.
9748         (*add<mode>_3): Ditto.
9749         (*addsi_3_zext): Ditto.
9750         (*add<mode>_5): Ditto.
9752 2010-06-03  Jan Hubicka  <jh@suse.cz>
9754         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
9755         of bitmap_bit_p.
9756         * cfganal.c (compute_dominance_frontiers_1): Likewise.
9758 2010-06-03  Jan Hubicka  <jh@suse.cz>
9760         * df-problems.c (df_create_unused_note, df_note_bb_compute):
9761         micro-optimize the checks when to add new note.
9763 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
9765         * final.c (output_asm_insn): Call
9766         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
9767         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
9768         (output_address): Call targetm.asm_out.print_operand_address.
9769         Update comments.
9770         * target.h (struct gcc_target): Add print_operand,
9771         print_operand_address, and print_operand_punct_valid_p fields.
9772         * targhooks.h (default_print_operand): Declare.
9773         (default_print_operand_address): Declare.
9774         (default_print_operand_punct_valid_p): Declare.
9775         * targhooks.c (default_print_operand): Define.
9776         (default_print_operand_address): Define.
9777         (default_print_operand_punct_valid_p): Define.
9778         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
9779         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
9780         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
9781         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
9782         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
9783         * vmsdbgout.c (addr_const_to_string): Update comment.
9784         * config/i386/i386.c (print_operand): Rename to...
9785         (ix86_print_operand): ...this.  Make static.
9786         (print_operand_address): Rename to...
9787         (ix86_print_operand_address): ...this.  Make static.  Call
9788         ix86_print_operand instead of PRINT_OPERAND.
9789         (ix86_print_operand_punct_valid_p): New function.
9790         (TARGET_PRINT_OPERAND): Define.
9791         (TARGET_PRINT_OPERAND_ADDRESS): Define.
9792         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
9793         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
9794         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
9795         (PRINT_OPERAND): Delete.
9796         (PRINT_OPERAND_ADDRESS): Delete.
9797         * config/i386/i386-protos.h (print_operand): Delete prototype.
9798         (print_operand_address): Delete prototype.
9800 2010-06-03  Richard Guenther  <rguenther@suse.de>
9802         PR tree-optimization/44403
9803         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9804         Preserve pointer qualifiers.
9805         (vect_create_data_ref_ptr): Likewise.
9807 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
9809         PR c++/44294
9810         * defaults.h (MAX_FIXED_MODE_SIZE): New.
9812         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
9814 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
9816         PR debug/44375
9817         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
9818         return false if merging the bbs would lead to goto_locus
9819         location being lost from the IL.
9821 2010-06-03  Jan Hubicka  <jh@suse.cz>
9822             Jakub Jelinek  <jakub@redhat.com>
9824         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
9825         set->regs[i] is NULL or has just one entry.
9827 2010-06-03  Jan Hubicka  <jh@suse.cz>
9829         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
9830         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
9832 2010-06-03  Paul Brook  <paul@codesourcery.com>
9834         * config/arm/arm.c (FL_TUNE): Define.
9835         (arm_default_cpu, arm_cpu_select): Remove.
9836         (all_cores): Populate core field.
9837         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
9838         (arm_find_cpu): New function.
9839         (arm_handle_option): Lookup cpu/architecture names.
9840         (arm_override_options): Cleanup mcpu/march/mtune handling.
9841         (arm_file_start): Ditto.
9843 2010-06-03  Alan Modra  <amodra@gmail.com>
9845         PR target/44169
9846         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
9847         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
9848         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
9849         (rs6000_emit_load_toc_table): Likewise.
9851 2010-06-02  Jan Hubicka  <jh@suse.cz>
9853         * passes.c (init_optimization_passes): Put ipa reference
9854         after ipa pure-const.
9856 2010-06-02  Jan Hubicka  <jh@suse.cz>
9858         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
9859         calls_read_all and calls_write_all.
9860         (get_reference_optimization_summary): Fix formatting.
9861         (is_proper_for_analysis): Check that decl is not readonly.
9862         (propagate_bits): Check CONST/PURE/noreturn flags.
9863         (ipa_init): Move all_module_statics to optimization_summary_obstack.
9864         (analyze_function): Ignore indirect edges.
9865         (copy_global_bitmap): For all module statics, do nothing.
9866         (generate_summary): Do not print calls_read_all/calls_write_all.
9867         (read_write_all_from_decl): Take node as argument; check
9868         cgraph_node_cannot_return.
9869         (propagate): Reorganize read_all/write_all computation;
9870         check indirect edges; check ecf flags; use all_module_statics
9871         in the results; do not free all_module_statics.
9872         (stream_out_bitmap): Handle all_module_statics.
9873         (ipa_reference_write_optimization_summary): Likewise; use
9874         varpool/cgraph encoders to get boundaries.
9875         (ipa_reference_read_optimization_summary): Read in all_module_statics;
9876         use it when possible.
9878 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
9880         PR target/44218
9881         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
9882         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
9884         * doc/extend.texi (powerpc builtins): Document vec_recip,
9885         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
9887         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
9888         (rs6000_emit_swrsqrt): Ditto.
9889         (rs6000_emit_swdivsf): Delete.
9890         (rs6000_emit_swdivdf): Ditto.
9891         (rs6000_emit_swrsqrtsf): Ditto.
9893         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
9894         describe the reciprocal estimate support for each type.
9895         (recip_options): Map -mrecip=<opt> into option bits.
9896         (gen_2arg_fn_t): New typedef for binary rtx gen function.
9897         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
9898         reciprocal estimate instructions.
9899         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
9900         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
9901         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
9902         cost information if -mdebug=cost or -mdebug=reg.
9903         (rs6000_override_options): Set -mrecip-precision for power6, and
9904         power7 machines.  If -mvsx or -mdfp, enable various options that
9905         came in previous instruction set ISAs, unless the option was
9906         explicitly disabled by the command line option.  Parse
9907         -mrecip=<opt> options.
9908         (rs6000_builtin_vectorized_function): Add support for vectorizing
9909         the reciprocal estimate builtins and expansions.
9910         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
9911         (bdesc_2arg): Add reciprocal estimate builtins.
9912         (bdesc_1arg): Add reciprocal square root estimate builtins.
9913         (rs6000_expand_builtin): Rewrite to use a switch statement,
9914         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
9915         (rs6000_init_builtins): Create declarations for reciprocal
9916         estimate builtins.
9917         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
9918         sized, prefer traditional floating point registers, if integer
9919         vector types, prefer altivec registers.  Don't actually look at
9920         the memory address any more.
9921         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
9922         builtins.
9923         (rs6000_load_constant_and_splat): New helper function to load up
9924         the constant for reciprocal estimate instructions.
9925         (rs6000_emit_madd): New helper function for generating
9926         multiply/add type instructions, based on the current switches.
9927         (rs6000_emit_msub): Ditto.
9928         (rs6000_emit_mnsub): Ditto.
9929         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
9930         replace a divide with a reciprocal estimate and fixup, adding
9931         support for machines with high precision and vectors.
9932         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
9933         low precision machines.
9934         (rs6000_emit_swdiv): New common function to be called to replace a
9935         division with reciprocal estimate and fixup.
9936         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
9937         for double and vector types.  Add support for high precision machines.
9939         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
9940         the reciprocal estimate instructions can be generated.
9941         (TARGET_FRE): Ditto.
9942         (TARGET_FRSQRTES): Ditto.
9943         (TARGET_FRSQRTE): Ditto.
9944         (RS6000_RECIP_*): New macros for reciprocal estimate support.
9946         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
9947         square root estimate on vectors.
9948         (re<mode>2): New insn for reciprocal division estimate on vectors.
9950         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
9951         New builtin.
9952         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
9953         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
9954         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
9955         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
9956         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
9957         (RS6000_BUILTIN_RSQRT): Ditto.
9958         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
9959         floating point builtin.
9961         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
9962         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
9963         __RECIP_PRECISION__ based on the command line switches.
9964         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
9966         * config/rs6000/rs6000.opt (-mrecip): Document add support for
9967         replacing division instructions with reciprocal estimate and fixup.
9968         (-mrecip=<opt>): New option.
9969         (-mrecip-precision): Ditto.
9971         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
9972         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
9973         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
9974         precision scalar.
9976         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
9977         (UNSPEC_VREFP): Ditto.
9978         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
9979         conterparts with regard to support of -mno-fused-madd and -ffast-math.
9980         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
9981         reciprocal estimate instructions to be generated.
9982         (altivec_vrefp): Ditto.
9984         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
9985         estimate support.
9986         (rreg): New mode attribute for reciprocal estimate support.
9987         (recip<mode>3): New insn for division using reciprocal estimate
9988         and fixup builtins.
9989         (divide define_split): New define_split to convert floating point
9990         division to use reciprocal estimate if the user used the
9991         appropriate options and the split is run when we can add new
9992         pseudo registers for the fixup.
9993         (rsqrt<mode>2): New insn for reciprocal square root support.
9994         (recipsf3): Move into recip<mode>3.
9995         (recipdf3): Ditto.
9996         (fres): Use TARGET_FRES.
9997         (rsqrtsf2): Move into rsqrt<mode>2.
9998         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
9999         (copysignsf3): Add support for VSX.
10000         (fred): Use TARGET_FRE.
10001         (fred_fpr): Ditto.
10002         (rsqrtdf_internal1): New function for frsqrte instruciton.
10004         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
10005         (vec_rsqrt): Ditto.
10007 2010-06-03  Richard Guenther  <rguenther@suse.de>
10009         PR middle-end/44291
10010         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
10011         (set_user_assembler_libfunc): Likewise.
10013 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
10015         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
10016         defaults.h.
10017         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
10018         to defaults.h
10019         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
10020         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
10021         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
10022         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
10023         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
10024         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
10025         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
10026         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
10027         * defaults.h: Updated for above mentioned changes.
10029 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
10031         * c-common.c: Remove header include of tm_p.h.
10032         * Makefile.in (c-common.o): Remove TM_P_H dependency.
10034 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
10036         * tree.h (struct tree_decl_map): New type.
10037         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
10038         (tree_decl_map_hash): New prototype.
10039         (debug_expr_for_decl, value_expr_for_decl): Change into
10040         tree_decl_map hashtab from tree_map.
10041         (init_ttree): Adjust initialization.
10042         (tree_decl_map_hash): New function.
10043         (decl_debug_expr_lookup, decl_debug_expr_insert,
10044         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
10046 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10048         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
10049         linker emulations.
10050         * configure: Regenerate.
10051         * config.in: Regenerate.
10053         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
10054         (X86_64_EMULATION): Define.
10055         (TARGET_LD_EMULATION): Use them.
10057         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
10058         (SPARC64_EMULATION): Define.
10059         (LINK_ARCH_SPEC): Use them.
10061 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
10063         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
10064         smallest_mode_for_size for computing the precision types of new
10065         graphite IVs.  Do not call lang_hooks.types.type_for_size.
10067 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
10069         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
10070         information.
10071         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
10073 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
10075         PR middle-end/44363
10076         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
10077         return false instead.
10079 2010-06-02  Jan Hubicka  <jh@suse.cz>
10081         PR middle-end/44295
10082         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
10083         create new cgraph node to check callee.
10085 2010-06-02  Richard Guenther  <rguenther@suse.de>
10087         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
10089 2010-06-02  Richard Guenther  <rguenther@suse.de>
10091         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
10092         (lto_wrapper_cleanup): ... this.  Do not exit.
10093         (fatal): Adjust.  Exit here.
10094         (fatal_perror): Likewise.
10095         (fatal_signal): New function.
10096         (main): Set up signal handlers to cleanup temporary files.
10097         * Makefile.in (lto-wrapper.o): Adjust dependencies.
10099 2010-06-02  Richard Guenther  <rguenther@suse.de>
10101         PR tree-optimization/44377
10102         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
10104 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10106         * config/s390/2097.md (z10_fhex): Remove insn reservation.
10107         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
10108         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
10109         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
10110         instruction.
10111         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
10113 2010-06-02  Jan Hubicka  <jh@suse.cz>
10115         * bitmap.c (bitmap_descriptor): Add search_iter.
10116         (bitmap_find_bit): Increment it.
10117         (print_statistics): Print it.
10119 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
10121         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
10122         instead of gimple_build_call_vec.  Delete unnecessary local variable.
10124 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
10126         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
10127         change from yesterday.
10129 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
10131         * c-ada-spec.c: Clean up redundant includes.
10133 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
10135         * gimplify.c: Do not include except.h and optabs.h.
10136         (gimplify_body): Do not initialize RTL profiling.
10137         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
10138         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
10139         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
10140         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
10141         langhooks.h.
10143         * tree-pretty-print.h: Include pretty-print.h.
10144         * gimple-pretty-print.h: Include pretty-print.h.
10146         * tree-pretty-print.c: Do not include diagnostic.h.
10147         * tree-vrp.c: Likewise.
10148         * tree-tailcall.c: Likewise
10149         * tree-scalar-evolution.c: Likewise
10150         * tree-ssa-dse.c: Likewise
10151         * tree-chrec.c: Likewise
10152         * tree-ssa-sccvn.c: Likewise
10153         * tree-ssa-copyrename.c: Likewise
10154         * tree-nomudflap.c: Likewise
10155         * tree-call-cdce.c: Likewise
10156         * tree-stdarg.c: Likewise
10157         * tree-ssa-math-opts.c: Likewise
10158         * tree-nrv.c: Likewise
10159         * tree-ssa-sink.c: Likewise
10160         * tree-browser.c: Likewise
10161         * tree-ssa-loop-ivcanon.c: Likewise
10162         * tree-ssa-loop.c: Likewise
10163         * tree-parloops.c: Likewise
10164         * tree-ssa-address.c: Likewise
10165         * tree-ssa-ifcombine.c: Likewise
10166         * tree-if-conv.c: Likewise
10167         * tree-data-ref.c: Likewise
10168         * tree-affine.c: Likewise
10169         * tree-ssa-phiopt.c: Likewise
10170         * tree-ssa-coalesce.c: Likewise
10171         * tree-ssa-pre.c: Likewise
10172         * tree-ssa-live.c: Likewise
10173         * tree-predcom.c: Likewise
10174         * tree-ssa-forwprop.c: Likewise
10175         * tree-ssa-dce.c: Likewise
10176         * tree-ssa-ter.c: Likewise
10177         * tree-ssa-loop-prefetch.c: Likewise
10178         * tree-optimize.c: Likewise
10179         * tree-ssa-phiprop.c: Likewise
10180         * tree-object-size.c: Likewise
10181         * tree-outof-ssa.c: Likewise
10182         * tree-ssa-structalias.c: Likewise
10183         * tree-switch-conversion.c: Likewise
10184         * tree-ssa-reassoc.c: Likewise
10185         * tree-ssa-operands.c: Likewise
10186         * tree-vectorizer.c: Likewise
10187         * tree-vect-data-refs.c: Likewise
10188         * tree-vect-generic.c: Likewise
10189         * tree-vect-stmts.c: Likewise
10190         * tree-vect-patterns.c: Likewise
10191         * tree-vect-slp.c: Likewise
10192         * tree-vect-loop.c: Likewise
10193         * tree-ssa-loop-ivopts.c: Likewise
10194         * tree-ssa-loop-im.c: Likewise
10195         * tree-ssa-loop-niter.c: Likewise
10196         * tree-ssa-loop-unswitch.c: Likewise
10197         * tree-ssa-loop-manip.c: Likewise
10198         * tree-ssa-loop-ch.c: Likewise
10199         * tree-dump.c: Likewise
10200         * tree-complex.c: Likewise
10202         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
10203         * tree-ssa-uninit.c: Likewise
10204         * tree-ssa-threadupdate.c: Likewise
10205         * tree-ssa-uncprop.c: Likewise
10206         * tree-ssa-ccp.c: Likewise
10207         * tree-ssa-dom.c: Likewise
10208         * tree-ssa-propagate.c: Likewise
10209         * tree-ssa-alias.c: Likewise
10210         * tree-dfa.c: Likewise
10211         * tree-cfgcleanup.c: Likewise
10212         * tree-sra.c: Likewise
10213         * tree-ssa-copy.c: Likewise
10214         * tree-ssa.c: Likewise
10215         * tree-profile.c: Likewise
10216         * tree-cfg.c: Likewise
10217         * tree-ssa-threadedge.c: Likewise
10218         * tree-vect-loop-manip.c: Likewise
10220         * tree-inline.c: Do not include diagnostic.h and expr.h.
10221         Include rtl.h.
10222         (copy_decl_for_dup_finish): Do not use NULL_RTX.
10224         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
10225         * tree-loop-distribution.c: Likewise.
10227 2010-06-01  Jan Hubicka  <jh@suse.cz>
10229         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
10231 2010-06-01  Jan Hubicka  <jh@suse.cz>
10233         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
10234         remove return value.
10235         (split_bbs_on_noreturn_calls) .... here.
10236         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
10237         * tree-flow.h (fixup_noreturn_call): New.
10239 2010-06-01  Jan Hubicka  <jh@suse.cz>
10241         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
10243 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
10245         * tree.h (build_nt_call_list): Delete.
10246         * tree.c (build_nt_call_list): Delete.
10248 2010-06-01  Jan Hubicka  <jh@suse.cz>
10250         * fwprop.c: Make emit-rtl.h include last.
10251         * rtlanal.c: Include emit-rtl.h.
10252         * genautomata.c: Output emit-rtl include into insn-automata.c
10253         * df-scan.c: Include emit-rtl.h.
10254         * haifa-sched.c: Indlude emit-rtl.h.
10255         * mode-switching.c: Indlude emit-rtl.h.
10256         * graph.c: Indlude emit-rtl.h.
10257         * sel-sched.c: Include emit-rtl.h.
10258         * sel-sched-ir.c: Include emit-rtl.h.
10259         * ira-build.c: Include emit-rtl.h.
10260         * emit-rtl.c (first_insn, last_insn): Remove defines.
10261         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
10262         Move to emit-rtl.h.
10263         (set_new_first_and_last_insn, get_last_insn_anywhere,
10264         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
10265         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
10266         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
10267         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
10268         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
10269         Use accessor functions.
10270         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
10271          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
10272         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
10273         mem_expr_equal_p): Move here from rtl.h.
10274         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
10275         Move here from emit-rtl.c; make inline.
10276         * cfglayout.h: Include emit-rtl.h.
10277         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
10278          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
10279         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
10280         mem_expr_equal_p, get_insns, set_first-insn,
10281         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
10282         * reg-stack.c: Include emit-rtl.h.
10283         * dce.c: Likewise.
10285 2010-06-01  Jan Hubicka  <jh@suse.cz>
10287         * cgraph.h (tree_function_versioning): Update prototype.
10288         (cgraph_function_versioning): Update prototype.
10289         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
10290         bitmap.
10291         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
10292         (cgraph_materialize_clone, save_inline_function_body): Update use of
10293         tree_function_versioning.
10294         * tree-inline.c (copy_bb): Look for previous copied block to link
10295         after; fix debug output.
10296         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
10297         (copy_body): Likewise.
10298         (expand_call_inline): Update use of copy_body.
10299         (tree_function_versioning): Update use of copy body; accept
10300         blocks_to_copy and new_entry.
10302 2010-06-01  Jan Hubicka  <jh@suse.cz>
10304         * gegenrtl.c: Remove unnecesary prototypes.
10305         (gendecl): Remove.
10306         (gendef): Produce static inline.
10307         (gencode): Remove.
10308         (main): Do not decode parameters; generate header only.
10309         * Makefile.in (genrtl.c): Remove.
10311 2010-06-01  Jan Hubicka  <jh@suse.cz>
10313         * tree-switch-conversion.c (build_one_array): Make it readonly.
10315 2010-06-01  Richard Guenther  <rguenther@suse.de>
10317         * optabs.c (init_optabs): Guard all accesses to reinit.
10318         * ipa-pure-const.c (propagate): Fix another typo.
10319         * opts.c (common_handle_option): Split assignment to bool.
10320         * c-opts.c (c_common_handle_option): Likewise.
10322 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
10323             Matthew Gingell  <gingell@adacore.com>
10325         * doc/invoke.texi: Mention -fdump-ada-spec.
10326         * tree-dump.c (dump_files): Add ada-spec.
10327         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
10328         * tree-pass.h (tree_dump_index): Add TDI_ada.
10329         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
10330         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
10331         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
10332         * c-decl.c: Include c-ada-spec.h.
10333         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
10334         functions.
10335         (c_write_global_declarations): Add handling of -fdump-ada-spec.
10336         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
10337         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
10338         * c-ada-spec.h, c-ada-spec.c: New files.
10340 2010-06-01  Richard Guenther  <rguenther@suse.de>
10342         PR lto/43853
10343         * ipa-pure-const.c (get_function_state): Hand back varying state
10344         if we do not have one.
10345         (has_function_state): New function.
10346         (duplicate_node_data): Adjust.
10347         (remove_node_data): Likewise.
10348         (pure_const_write_summary): Likewise.
10349         (propagate): Likewise.  Fix typo.
10351 2010-06-01  Jan Hubicka  <jh@suse.cz>
10353         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
10354         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
10355         (execute_all_ipa_transforms): Do not play with the states.
10357 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
10359         * config/arm/t-linux-androideabi: New.
10360         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
10362 2010-06-01  Jan Hubicka  <jh@suse.cz>
10364         * tree-inline.c (estimate_num_insns): For stdarg functions look
10365         into call statement to count cost of argument passing.
10367 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
10369         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
10370         argument for fprintf.
10371         (ix86_output_addr_diff_elt): Likewise.
10372         (x86_function_profiler): Likewise.
10373         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
10374         (LPREFIX): Likewise.
10375         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
10377 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
10379         PR target/44338
10380         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
10381         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
10382         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
10383         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
10384         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
10385         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
10386         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
10387         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
10388         TARGET_FUSED_MADD.
10390 2010-05-31  Jan Hubicka  <jh@suse.cz>
10392         * tree.h (tree_range_check_failed): Declare noreturn.
10394 2010-05-31  Jan Hubicka  <jh@suse.cz>
10396         * gimple.c (gimple_call_builtin_p): New function.
10397         * gimple.h (gimple_call_builtin_p): Declare.
10398         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
10399         to exit.
10400         (execute_warn_function_return): BUILT_IN_RETURN is return.
10401         (split_critical_edges): Return edges are not critical.
10402         (is_ctrl_altering_stmt): Builtin_in_return is altering.
10403         (gimple_verify_flow_info): Handle built_in_return.
10404         (execute_warn_function_return): Handle built_in_return.
10405         * ipa-pure-const.c (check_call): Ignore builtin_return.
10407 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
10409         PR middle-end/44337
10410         * expr.c (expand_assignment): Don't store anything for out-of-bounds
10411         array accesses with non-MEM.
10413         PR tree-optimization/44182
10414         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
10415         newly needs to end a bb is followed by debug stmts, instead return
10416         true from the function at the end.
10417         (maybe_move_debug_stmts_to_successors): New function.
10418         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
10420 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
10422         PR target/44161
10423         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
10425 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
10427         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
10428         for nested functions in non-optimized compilation.
10430 2010-05-31  Richard Guenther  <rguenther@suse.de>
10432         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
10434 2010-05-30  Jan Hubicka  <jh@suse.cz>
10436         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
10438 2010-05-30  Richard Guenther  <rguenther@suse.de>
10440         PR lto/42975
10441         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
10442         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
10443         no longer needed.
10445 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
10447         * config/darwin.c (output_objc_section_asm_op): Add comment.
10448         (name_needs_quotes): Add '_' to list of valid comment chars.
10449         (machopic_output_function_base_name): Remove unneeded quotes.
10450         (darwin_encode_section_info): Adjust asm whitespace.
10451         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
10452         (ASM_OUTPUT_LOCAL): Ditto.
10453         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
10454         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
10455         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
10457 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
10459         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
10460         RS6000_OUTPUT_BASENAME unconditionally.
10461         (rs6000_output_function_epilogue): Likewise.
10463 2010-05-30  Jan Hubicka  <jh@suse.cz>
10465         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
10466         nodes.
10468 2010-05-30  Richard Guenther  <rguenther@suse.de>
10470         * tree-cfg.c (verify_gimple_assign_single): Implement
10471         verification for COND_EXPR rhs.
10473 2010-05-30  Jan Hubicka  <jh@suse.cz>
10475         * cgraph.h (cgraph_dump_file): Declare.
10476         * cgraphunit.c (cgraph_dump_file): Export.
10477         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
10479 2010-05-30  Jan Hubicka  <jh@suse.cz>
10481         * dwarf2out.c (reference_to_unused,
10482         premark_types_used_by_global_vars_helper): Avoid creation of new
10483         varpool nodes.
10485 2010-05-30  Jan Hubicka  <jh@suse.cz>
10487         * cgraph.h (cgraph_node_cannot_return,
10488         cgraph_edge_cannot_lead_to_return): New functions.
10489         * cgraph.c (cgraph_node_cannot_return,
10490         cgraph_edge_cannot_lead_to_return): Use them.
10491         * ipa-pure-const.c (pure_const_names): New static var.
10492         (check_call): Handle calls not leading to return.
10493         (pure_const_read_summary): Dump info read.
10494         (propagate): Dump info about propagation process; ignore side effects
10495         of functions not leading to exit; fix handling of pure functions.
10497 2010-05-30  Jan Hubicka  <jh@suse.cz>
10499         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
10500         for tail call epilogues.
10502 2010-05-30  Jan Hubicka  <jh@suse.cz>
10504         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
10505         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
10506         dump files.
10508 2010-05-29  Jan Hubicka  <jh@suse.cz>
10510         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
10511         node; remove references in node we no longer keep in cgrpah but need
10512         body of.
10514 2010-05-29  Jan Hubicka  <jh@suse.cz>
10516         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
10518 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10520         PR target/44165
10521         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
10523 2010-05-29  Jan Hubicka  <jh@suse.cz>
10525         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
10526         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
10527         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
10528         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
10529         debug_names_replaced_by, debug_update_ssa): Likewise.
10530         * sbitmap.c (debug_sbitmap): Likewise.
10531         * genrecog.c (debug_decision, debug_decision_list): Likewise.
10532         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
10533         debug_tree_chain): Likewise.
10534         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
10535         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
10536         * optabs.c (debug_optab_libfuncs): Likewise.
10537         (verify_loop_closed_ssa): Likewise.
10538         * value-prof.c (verify_histograms): Likewise.
10539         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
10540         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
10541         * cfghooks.c (verify_flow_info): Likewise.
10542         * fold-const.c (debug_fold_checksum): Likewise.
10543         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
10544         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
10545         Likewise.
10546         * omega.c (debug_omega_problem): Likewise.
10547         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
10548         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
10549         * dominance.c (verify_dominators, debug_dominance_info,
10550         debug_dominance_tree): Likewise.
10551         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
10552         * df_regno_debug, df_ref_debug,
10553         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
10554         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
10555         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
10556         * sel-sched.c (debug_state): Likewise.
10557         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
10558         Likewise.
10559         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
10560         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
10561         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
10562         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
10563         Likewise.
10564         * c-pretty-print.c (debug_c_tree): Likewise.
10565         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
10566         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
10567         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
10568         * ebitmap.c (debug_ebitmap): Likewise.
10569         * function.c (debug_find_var_in_block_tree): Likewise.
10570         * print-rtl.c (debug_rtx): Likewise.
10571         (debug_rtx_count): Likewise.
10572         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
10573         * stor-layout.c (debug_rli): Likewise.
10574         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
10575         * tree-data-ref.c (debug_data_references,
10576         debug_data_dependence_relations, debug_data_reference,
10577         debug_data_dependence_relation, debug_rdg_vertex,
10578         debug_rdg_component, debug_rdg): Likewise.
10579         * tree-affine.c (debug_aff): Likewise.
10580         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
10581         Likewise.
10582         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
10583         * emit-rtl.c (verify_rtl_sharing): Likewise.
10584         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
10585         debug_value_expressions): Likewise.
10586         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
10587         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
10588         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
10589         * cfglayout.c (verify_insn_chain): Likewise.
10590         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
10591         debug_clast_stmt, debug_generated_program): Likewise.
10592         * ggc-page.c (debug_print_page_list): Likewise.
10593         * tree-ssa-ter.c (debug_ter): Likewise.
10594         * graphite-dependences.c (debug_pddr): Likewise.
10595         * sched-deps.c (debug_ds): Likewise.
10596         * tree-ssa.c (verify_ssa): Likewise.
10597         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
10598         debug_scattering_functions, debug_iteration_domains, debug_pdr,
10599         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
10600         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
10601         * tree-inline.c (debug_find_tree): Likewise.
10602         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
10603         debug_ppl_powerset_matrix): Likewise.
10604         * var-tracking.c (debug_dv): Likewise.
10605         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
10606         * cfgloop.c (verify_loop_structure): Likewise.
10607         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
10608         * c-common.c (verify_sequence_points): Likewise.
10609         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
10610         debug_candidates, debug_rgn_dependencies): Likewise.
10611         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
10612         * debug_constraint_graph, debug_solution_for_var,
10613         debug_sa_points_to_info): Likewise.
10614         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
10615         Likewie.
10616         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
10617         debug_loops, debug_loop, debug_loop_num): Likewise.
10618         * passes.c (debug_pass): Likewise.
10619         (dump_properties): Likewise; add cfglayout property.
10620         (debug_properties): Likewise.
10621         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
10622         * varpool.c (debug_varpool): Likewise.
10623         * regcprop.c (debug_value_data): Likewise.
10624         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
10625         debug_immediate_uses_for): Likewise.
10627 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
10629         PR bootstrap/44315
10630         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
10631         Filter out insn-flags.h.
10633 2010-05-29  Jan Hubicka  <jh@suse.cz>
10635         * cgraph.h (struct varpool_node_set_def,
10636         struct cgraph_node_set_def): Remove unused AUX pointer.
10637         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
10638         VEC_empty macro.
10640 2010-05-29  Jan Hubicka  <jh@suse.cz>
10642         PR middle-end/44324
10643         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
10645 2010-05-29  Richard Guenther  <rguenther@suse.de>
10647         * lto-streamer.c (cached_bp): New global variable.
10648         (bitpack_create): Return the cached bitpack, if available.
10649         (bitpack_delete): Clear and cache the bitpack, if appropriate.
10650         (bp_pack_value): Remove redundant asserts.
10652 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
10654         PR middle-end/44306
10655         * tree-if-conv.c (is_true_predicate): New.
10656         (is_predicated): Use is_true_predicate.
10657         (add_to_predicate_list): Same.  Do not use unshare_expr.
10658         (add_to_dst_predicate_list): Same.
10660 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
10662         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
10663         field on edges.
10664         (predicate_bbs): Same.
10665         (clean_predicate_lists): Same.
10666         (find_phi_replacement_condition): Do not AND the predicate from
10667         edge->aux.
10669 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
10671         PR bootstrap/44315
10672         * Makefile.in (build/gencondmd.o): Add a missing `\'.
10674 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10676         PR target/44261
10677         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
10678         (negdf2): Adjust expander pattern and use negdf2_slow.
10679         (negsf2): Likewise.
10681 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
10683         * basic-block.h (struct control_flow_graph): Move last_label_uid field
10684         up.
10685         * df.h (struct df_base_ref): Move regno field up.
10686         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
10687         * expr.h (struct separate_ops): Move location field up.
10688         * optabs.h (struct optab_d): Move libcall_basename field down.
10689         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
10690         * config/i386/i386.h (struct machine_function): Convert call_abi field
10691         into a bitfield.  Move cfa field to the end of the structure.
10693 2010-05-29  Jan Hubicka  <jh@suse.cz>
10695         * varpool.c (varpool_get_node): Fix lookup.
10697 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
10699         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
10700         RTL specific prototypes with #ifdef RTX_CODE.
10701         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
10702         * config/spu/t-spu-elf: Fix dependencies.
10704         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
10706 2010-05-29  Mike Stump  <mikestump@comcast.net>
10708         PR bootstrap/44315
10709         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
10710         TM_H when building to avoid dependency loops.
10712 2010-05-29  Jan Hubicka  <jh@suse.cz>
10714         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
10715         refs and body; not the whole node for masters of materialized clones.
10717 2010-05-29  Mike Stump  <mikestump@comcast.net>
10719         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
10721 2010-05-29  Jan Hubicka  <jh@suse.cz>
10723         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
10724         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
10725         use of clone_function_name.
10726         * cgraph.h (cgraph_create_virtual_clone,
10727         cgraph_function_versioning): update prototypes.
10728         (clone_function_name): Declare.
10729         * ipa-cp.c (ipcp_insert_stage): Update call of
10730         cgraph_create_virtual_clone.
10731         * omp-low.c (create_omp_child_function_name): Use
10732         cgraph_create_virtual_clone.
10733         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
10734         (cgraph_function_versioning): Take SUFFIX argument; produce new name
10735         and make decl local.
10737 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
10739         * vec.h: Include statistics.h
10740         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
10741         with VEC_H.
10743 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
10745         * c-lex.c: Do not include c-tree.h.
10746         * c-pretty-print.c: Likewise.
10747         * c-opts.c: Likewise.
10748         * c-gimplify.c: Likewise.
10749         * c-common.c: Likewise.
10750         * c-dump.c: Likewise.  Include c-common.h.
10752 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
10754         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
10755         before including diagnostic-core.h.
10756         (c_cpp_error): New prototype moved from c-tree.h.
10757         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
10758         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
10759         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
10760         (c_cpp_error): Prototype moved to c-common.h.
10761         * Makefile.in: Update dependency for C_COMMON_H.
10763 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
10765         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
10766         * c-common.c (c_register_addr_space): Remove here.
10767         * c-decl.c (c_register_addr_space): Re-add here.
10769 2010-05-28  Mike Stump  <mikestump@comcast.net>
10771         * config/darwin-c.c: Remove c-tree.h include.
10773 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
10775         * gcc.c: Include diagnostic.h.
10776         (error_count): Remove.  All users changed to use errorcount.
10777         (programname): Remove.  All users changed to use progname.
10778         (fancy_abort, internal_error, fatal_error, error, warning, inform,
10779         fnotice): Remove.
10780         (execute): Don't include "Internal error" and bug reporting
10781         information in argument of internal_error call.
10782         (process_command): Don't increment error_count after calling
10783         perror_with_name.
10784         (input_filename): Rename to gcc_input_filename.  All users
10785         changed.
10786         (main): Call diagnostic_initialize.  Register delete_temp_files
10787         with atexit.  Use seen_error to test for errors.
10788         * gcc.h: Include diagnostic-core.h.
10789         (fatal_error, error, warning): Remove.
10790         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
10791         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
10792         (gcc.o): Update dependencies.
10794 2010-05-28  Jeff Law  <law@redhat.com>
10796         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
10797         functions.
10798         * ira.h (ira_bad_reload_regno): Declare
10799         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
10801         * ira-color.c (update_curr_costs): Free updated hard reg costs.
10802         (ira_reassign_conflict_allocnos): Remove bogus asserts.
10803         (allocno_reload_assign): Likewise.
10805 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
10807         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
10808         build1_stat.
10810 2010-05-28  Richard Guenther  <rguenther@suse.de>
10812         PR lto/44312
10813         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
10814         Stream fixed-point constants mode.
10815         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
10816         and TYPE_PRECISION.
10817         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
10818         Stream fixed-point constants mode.
10819         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
10820         and TYPE_PRECISION.
10822 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
10824         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
10825         only place it was called from.
10826         (number_of_latch_executions): Do not return chrec_dont_know when the
10827         may_be_zero is a runtime condition: instead, return a COND_EXPR
10828         including the may_be_zero condition.
10829         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
10830         of nb_iterations.
10831         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
10832         COND_EXPRs.
10834 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
10836         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
10837         generate COND_EXPRs for degenerate_phi_result.
10839 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
10841         PR middle-end/44293
10842         * tree-if-conv.c (if_convertible_loop_p): Check the
10843         if-convertibility of phi nodes in non predicated BBs.
10845 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
10847         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
10849 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
10851         PR driver/15303
10852         * gcc.c (inform, warning, inform): New functions.
10853         (fatal_ice): Rename to internal_error; change cmsgid parameter to
10854         gmsgid.  All callers changed.
10855         (notice): Rename to fnotice; add parameter fp.  All callers changed.
10856         (fatal_error): Rename to fatal_signal.  All users changed.
10857         (fatal): Rename to fatal_error; change cmsgid parameter to
10858         gmsgid.  All callers changed.
10859         (process_command): Use warning instead of error for warnings.
10860         (end_going_arg): Don't use _() around argument of error.
10861         (do_spec_1): Use inform for message from %n specs.  Use warning
10862         instead of error for warnings.
10863         (main): Use inform for comparison messages.  Use warning for
10864         message about unused linker input.
10865         (error): Increment error_count.  Print "error: ".
10866         * gcc.h (fatal): Change to fatal_error.
10867         (warning): Declare.
10868         * config/darwin-driver.c (darwin_default_min_version): Use warning
10869         instead of fprintf for warnings.
10870         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
10872 2010-05-28  Julian Brown  <julian@codesourcery.com>
10874         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
10875         (*thumb2_addsi3_compare0_scratch): New.
10876         * config/arm/constraints.md (Pv): New.
10877         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
10878         for ARM mode only.
10879         (*addsi3_compare0_scratch): Likewise.
10881 2010-05-28  Jan Hubicka  <jh@suse.cz>
10883         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
10884         check.
10885         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
10886         only on local statics.
10888 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
10890         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
10892 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
10894         PR bootstrap/44314
10895         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
10896         (OPTION_GLIBC): Define.
10898 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
10900         PR debug/41048
10901         * dwarf2out.c (double_int_type_size_in_bits): New function.
10902         (round_up_to_align): Change first argument and return value to
10903         double_int.
10904         (field_byte_offset): Work internally on double_ints.
10906         PR target/43636
10907         * builtins.c (expand_movstr): Use a temporary pseudo instead
10908         of target even when target is not NULL and not const0_rtx, but
10909         fails movstr predicate.
10910         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
10912 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
10914         * final.c (rest_of_clean_state): Use %m in errors instead of
10915         strerror (errno).
10916         * gengtype.c (read_input_list, close_output_files): Use xstrerror
10917         instead of strerror.
10918         * toplev.c (process_options): Use %m in errors instead of strerror
10919         (errno).
10920         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
10921         (errno).
10923 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
10925         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
10926         (ix86_canonical_va_list_type): Make static.  Add declaration.
10927         (ix86_enum_va_list): Make static.  Reindent.
10928         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
10929         (ix86_canonical_va_list_type): Ditto.
10930         (ix86_enum_va_list): Ditto.
10932 2010-05-28  Richard Guenther  <rguenther@suse.de>
10934         * lto-wrapper.c (run_gcc): With -save-temps generate a
10935         user-visible ltrans filename.  Fixup ltrans unit numbering.
10937 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
10939         * c-common.c (c_common_nodes_and_builtins): Replace use
10940         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
10941         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
10942         to ix86_enum_va_list.
10943         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
10944         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
10945         (TARGET_ENUM_VA_LIST_P): Add hook description.
10946         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
10947         * target.h (gcc_target): Add enum_va_list hook.
10949         PR bootstrap/44299
10950         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
10951         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
10952         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
10954 2010-05-28  Alan Modra  <amodra@gmail.com>
10956         PR target/44266
10957         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
10958         emit_library_call machinery to set up __tls_get_addr calls.
10960 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10962         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
10964 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
10966         Revert fix for PR c++/44188
10967         * c-common.c (is_typedef_decl): Revert the moving of  this
10968         definition ...
10969         * tree.c (is_typedef_decl): ... here.
10970         (typdef_variant_p): Revert the moving of this  definition
10971         here from gcc/cp/tree.c.
10972         * c-common.h (is_typedef_decl): Revert the moving of this
10973         declaration ...
10974         * tree.h (is_typedef_decl): ... here.
10975         (typedef_variant_p): Revert the moving of this  declaration here
10976         from gcc/cp/cp-tree.h
10977         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
10978         (gen_tagged_type_die): Revert the splitting out of ...
10979         (gen_type_die_with_usage): ... this function. Revert the anonymous
10980         tagged type handling.
10981         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
10982         typedefs naming anonymous tagged types.
10984 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
10986         * config/rs6000/rs6000-modes.def (PSImode): Delete.
10988 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
10990         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
10991         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
10992         throughout.
10993         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
10994         "xer" to "ca".
10995         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
10996         XER_REGS to CA_REGS throughout.
10997         * config/rs6000/rs6000.h: Same.
10998         (ADDITIONAL_REGISTER_NAMES): Add "xer".
10999         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
11000         that mode_iterator "P" is the size for arithmetic carries as well.
11001         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
11003 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
11005         PR bootstrap/44255
11006         * combine.c (struct rtx_subst_pair): Define unconditionally.
11007         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
11008         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
11009         Call make_compound_operation on pair->to.
11010         (propagate_for_debug): Don't call make_compound_operation here.
11011         Always use simplify_replace_fn_rtx.
11013 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
11015         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
11016         * config/xtensa/xtensa.c (override_options): Check
11017           TARGET_FORCE_NO_PIC and set flag_pic.
11018         * config/xtensa/xtensa.opt: Document -mforce-no-pic
11020 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
11022         PR bootstrap/44299
11023         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
11024         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
11026 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
11028         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
11029         toplev.h.
11030         * diagnostic.c: Don't include toplev.h.
11031         (progname): Define.  Moved from toplev.c.
11032         (seen_error): New function.
11033         * diagnostic.h: Include diagnostic-core.h.
11034         (diagnostic_t, emit_diagnostic): Don't declare here.
11035         * toplev.c (progname): Move to toplev.c.
11036         (emit_debug_global_declarations, compile_file, finalize,
11037         do_compile, toplev_main): Use seen_error.
11038         * toplev.h: Include diagnostic-core.h.
11039         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
11040         internal_error, warning, warning_at, error, error_n, error_at,
11041         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
11042         verbatim, fnotice, progname): Move to diagnostic-core.h.
11043         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
11044         (expand_builtin_expect): Use seen_error.
11045         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
11046         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
11047         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
11048         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
11049         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
11050         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
11051         errorcount for errors.
11052         * c-opts.c (c_common_finish): Use seen_error.
11053         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
11054         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
11055         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
11056         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
11057         (get_coverage_counts): Use seen_error.
11058         * dwarf2out.c (dwarf2out_finish): Use seen_error.
11059         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
11060         gimplify_body): Use seen_error.
11061         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
11062         * ipa-pure-const.c (gate_pure_const): Use seen_error.
11063         * ipa-reference.c (gate_reference): Use seen_error.
11064         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
11065         * lambda-code.c: Include diagnostic-core.h instead of
11066         diagnostic.h.
11067         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
11068         * lto-compress.c: Include diagnostic-core.h instead of
11069         diagnostic.h.
11070         * lto-section-in.c: Include diagnostic-core.h instead of
11071         diagnostic.h.
11072         * lto-streamer-out.c: Include diagnostic-core.h instead of
11073         diagnostic.h.
11074         * lto-streamer.c: Include diagnostic-core.h instead of
11075         diagnostic.h.
11076         (gate_lto_out): Use seen_error.
11077         * matrix-reorg.c: Include diagnostic-core.h instead of
11078         diagnostic.h.
11079         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
11080         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
11081         (gate_expand_omp, lower_omp_1): Use seen_error.
11082         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
11083         (rest_of_decl_compilation, rest_of_type_compilation,
11084         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
11085         * tree-cfg.c (label_to_block_fn): Use seen_error.
11086         * tree-inline.c (optimize_inline_calls): Use seen_error.
11087         * tree-mudflap.c (mudflap_finish_file): Use
11088         seen_error.
11089         * tree-optimize.c (gate_all_optimizations,
11090         gate_all_early_local_passes, gate_all_early_optimizations): Use
11091         seen_error.
11092         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
11093         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
11094         (varpool_remove_unreferenced_decls,
11095         varpool_assemble_pending_decls): Use seen_error.
11096         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
11097         (TOPLEV_H, DIAGNOSTIC_H): Update.
11098         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
11099         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
11100         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
11101         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
11102         coverage.o, lambda-code.o): Update dependencies.
11104 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
11106         PR c++/44188
11107         * c-common.c (is_typedef_decl): Move this definition ...
11108         * tree.c (is_typedef_decl): ... here.
11109         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
11110         * c-common.h (is_typedef_decl): Move this declaration ...
11111         * tree.h (is_typedef_decl): ... here.
11112         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
11113         * dwarf2out.c (is_naming_typedef_decl): New function.
11114         (gen_tagged_type_die): Split out of ...
11115         (gen_type_die_with_usage): ... this function. When an anonymous
11116         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
11117         is emitted for the typedef.
11118         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
11119         anonymous tagged types.
11121 2010-05-27  Jason Merrill  <jason@redhat.com>
11123         * print-tree.c (debug_vec_tree): New fn.
11124         (print_vec_tree): New fn.
11125         * tree.h: Declare them.
11126         * gdbinit.in (pvt): New command.
11128         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
11130         * gdbinit.in (pdd): New command.
11132 2010-05-27  Jan Hubicka  <jh@suse.cz>
11134         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
11135         (update_caller_keys): Return early if there are no callers;
11136         only update fibheap when decresing the key.
11137         (update_callee_keys): Avoid recursion.
11138         (decide_inlining_of_small_functions): When badness does not match;
11139         re-insert into fibheap.
11141 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
11143         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
11144         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
11145         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
11146         (ALL_HOST_OBJS): Now a union of the above two.
11147         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
11148         all files in ALL_HOST_FRONTEND_OBJS.
11149         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
11151         * c-common.c: Pretend to be a backend file by undefining
11152         IN_GCC_FRONTEND (still need rtl.h here).
11154 2010-05-27  Jan Hubicka  <jh@suse.cz>
11156         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
11157         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
11159 2010-05-27  Jan Hubicka  <jh@suse.cz>
11161         * sched-ebb.c: Rename struct deps to struct deps_desc.
11162         * ddg.c: Likewise.
11163         * sel-sched-ir.c: Likewise.
11164         * sched-deps.c: Likewise.
11165         * sched-int.h: Likewise.
11166         * sched-rgn.c: Likewise.
11168 2010-05-27  Jon Beniston  <jon@beniston.com>
11170         PR 43726
11171         * config/lm32/lm32.h: Remove definition of
11172         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
11174 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
11176         PR lto/44230
11177         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
11179 2010-05-27  Richard Guenther  <rguenther@suse.de>
11181         PR tree-optimization/44284
11182         * tree-vect-stmts.c (vectorizable_assignment): Handle
11183         sign-changing conversions as simple copy.
11185 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
11187         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
11188         Bionic C library.
11189         (__gthread_active_p): Check for pthread_create if compiling against
11190         Bionic C library.
11192 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
11194         Support compilation for Android platform.  Reimplement -mandroid.
11196         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
11197         (*android*): Set ANDROID_DEFAULT.
11198         (arm*-*-linux*): Include linux-android.h.
11199         (arm*-*-eabi*): Don't include previous -mandroid implementation.
11200         * config/arm/eabi.h: Remove, move Android-specific parts ...
11201         * config/linux-android.h: ... here.  New file.
11202         * config/arm/eabi.opt: Rename to ...
11203         * config/linux-android.opt: ... this.
11204         (mandroid): Allow -mno-android option.  Initialize based on
11205         ANDROID_DEFAULT.
11206         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
11207         Move logic to corresponding LINUX_TARGET_* macros.
11208         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
11209         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
11210         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
11211         Android definitions.
11212         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
11213         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
11214         Document.
11216 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
11218         Add support for Bionic C library
11220         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
11221         macro.
11222         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
11223         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
11225         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
11226         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
11227         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
11228         to support multiple C libraries.  Handle Bionic.
11229         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
11230         (BIONIC_DYNAMIC_LINKER64): Define.
11231         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
11232         Update.
11233         (TARGET_HAS_SINCOS): Enable for Bionic.
11235         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
11236         the last option specified on command line take effect.
11237         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
11238         (mbionic): New.
11239         (mglibc, muclibc): Update.
11241         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
11242         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
11243         DEFAULT_LIBC.
11245         * doc/invoke.texi (-mglibc, -muclibc): Update.
11246         (-mbionic): Document.
11248 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11250         * c-common.h (c_register_addr_space): Add prototype.
11251         (ADDR_SPACE_KEYWORD): Remove.
11252         * c-common.c (c_register_addr_space): New function.
11253         (c_addr_space_name): Reimplement.
11254         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
11256         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
11257         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
11259         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
11260         Remove TARGET_ADDR_SPACE_KEYWORDS.
11262 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
11264         * input.c: New file.
11265         * input.h (main_input_filename): Move declaration to toplev.h.
11266         * toplev.c (input_location, line_table): Move to input.c
11267         * toplev.h (main_input_filename): Move declaration from input.h.
11268         * tree.c (expand_location): Move to input.c.
11269         * Makefile.in (OBJS-common): Add input.o.
11270         (input.o): Add dependencies.
11272 2010-05-27  Richard Guenther  <rguenther@suse.de>
11274         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
11275         for non-existant files.
11276         (fork_execute): Mark args_name file as deleted.
11278 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
11280         PR bootstrp/44287
11281         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
11282         (narrow_signed_type): Likewise.
11284 2010-05-26  Jan Hubicka  <jh@suse.cz>
11286         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
11287         edge only when checking is enabled; check using former_clone_of;
11288         check inline clones too.
11289         (cgraph_materialize_clone): Record former_clone_of pointer.
11290         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
11291         combining redirections; dump args_to_skip bitmap
11292         (cgraph_materialize_all_clones): Do no redirection here.
11293         * ipa-inline.c (inline_transform): Do redirection here.
11294         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
11295         cheking only).
11297 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
11299         * config/avr/avr-c.c: Do not include regs.h.
11300         Include cpplib.h for cpp_define and tree.h for c-common.h.
11301         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
11302         * config/avr/t-avr: Fix dependencies for avr-c.o.
11304 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
11306         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
11307         string instead of SYMBOL_REF rtx.
11308         * rtl.h (set_stack_check_libfunc): Move prototype from here...
11309         * libfuncs.h: ...to here.  Adjust for explow.c change.
11311 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
11313         * pretty-print.c: Don't include ggc.h.
11314         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
11315         (identifier_to_locale): Use them for allocation.
11316         * pretty-print.h (identifier_to_locale_alloc,
11317         identifier_to_locale_free): Declare.
11318         * toplev.c (alloc_for_identifier_to_locale): New.
11319         (general_init): Set identifier_to_locale_alloc and
11320         identifier_to_locale_free.
11321         * Makefile.in (pretty-print.o): Update dependencies.
11323 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
11325         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
11326         pointer types if they have different alignment or mode.
11328 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
11330         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
11331         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
11332         * config/sparc/sparc-protos.h (function_value): Remove declaration.
11333         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
11334         sparc_function_value_regno_p): New functions.
11335         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11336         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11337         (function_value): Rename to...
11338         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
11339         argument to 'outgoing'.
11340         (function_arg_record_value, function_arg_union_value,
11341         function_arg_vector_value): Update comment.
11343 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
11345         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
11346         (fde_needed_for_eh_p): New predicate.
11347         (output_call_frame_info): Use it throughout to decide whether FDEs
11348         are needed for EH purpose.
11349         (dwarf2out_begin_prologue): Reorder assignments.
11351 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
11353         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
11354         special case loop->header.
11355         (is_predicated): New.
11356         (if_convertible_loop_p): Call it.
11358 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
11360         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
11361         iterator in parameter.  Do not generate code during the analysis.
11362         (tree_if_convert_cond_stmt): Removed.
11363         (tree_if_convert_stmt): Removed.
11364         (predicate_bbs): New.
11365         (if_convertible_loop_p): Call predicate_bbs.
11366         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
11367         now contains all the analysis part.
11369 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
11371         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
11372         statements in the analysis part.
11373         (tree_if_convert_stmt): Update comment.
11374         (remove_conditions_and_labels): New.
11375         (combine_blocks): Call remove_conditions_and_labels.
11376         (tree_if_conversion): Update comment.
11378 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
11380         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
11381         than 2 predecessors or more than 2 successors.
11383 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
11385         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
11386         of loops in which the data dependence analysis fails.
11388 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
11390         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
11391         CDI_POST_DOMINATORS.
11392         (tree_if_conversion): Same.
11394 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
11396         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
11398 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
11400         * tree-if-conv.c: Update copyright years.  Fix comments.
11401         Fix indentation.
11403 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
11405         * builtin-types.def (BT_INT128): New primitive type.
11406         (BT_UINT128): Likewise.
11407         * c-common.c (c_common_r): Add __int128 keyword.
11408         (c_common_type_for_size): Handle __int128.
11409         (c_common_type_for_mode): Likewise.
11410         (c_common_signed_or_unsigned_type): Likewise.
11411         (c_common_nodes_and_builtins): Add builtin type
11412         if target supports 128-bit integer scalar.
11413         * c-common.h (enum rid): Add RID_INT128.
11414         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
11415         if target supports 128-bit integer scalar.
11416         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
11417         (finish_declspecs): Likewise.
11418         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
11419         (c_token_starts_declspecs): Likewise.
11420         (c_parser_declspecs): Likewise.
11421         (c_parser_attributes): Likewise.
11422         (c_parser_objc_selector): Likewise.
11423         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
11424         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
11425         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
11426         * tree.c (make_or_reuse_type): Likewise.
11427         (make_unsigned_type): Likewise.
11428         (build_common_tree_nodes_2): Likewise.
11429         * tree.h (enum integer_type_kind): Add itk_int128 and
11430         itk_unsigned_int128.
11431         (int128_integer_type_node): New define.
11432         (int128_unsigned_type_node): New define.
11433         * doc/extend.texi: Add documentation about __int128 type.
11435 2010-05-26  Richard Guenther  <rguenther@suse.de>
11437         * tree-ssa-sccvn.c (copy_nary): Adjust.
11438         (copy_phis): Rename to ...
11439         (copy_phi): ... this.  Adjust.
11440         (copy_references): Rename to ...
11441         (copy_reference): ... this.  Adjust.
11442         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
11443         result into the valid table.
11445 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
11447         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
11448         insn-config.h, insn-codes.h, recog.h, and optabs.h.
11450 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11452         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
11454 2010-05-26  Richard Guenther  <rguenther@suse.de>
11456         * opts.c (common_handle_option): Handle OPT_Ofast.
11458 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
11460         * diagnostic.c: Don't include opts.h.
11461         (permissive_error_option): Define.
11462         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
11463         for classify_diagnostic.  Don't use memset for
11464         classify_diagnostic.  Initialize new and recently added fields.
11465         (diagnostic_classify_diagnostic): Use context->n_opts instead of
11466         N_OPTS.
11467         (diagnostic_report_diagnostic): Pass context parameter to
11468         diagnostic_report_warnings_p.  Use option_enabled and option_name
11469         hooks from context.
11470         (emit_diagnostic): Use permissive_error_option.
11471         (permerror): Likewise.
11472         * diagnostic.h: Don't include options.h.
11473         (struct diagnostic_context): Add n_opts, opt_permissive,
11474         inhibit_warnings, warn_system_headers, option_enabled and
11475         option_name fields.  Change classify_diagnostic to a pointer.
11476         * opts-diagnostic.h: New file.
11477         * opts.c: Include opts-diagnostic.h.
11478         (common_handle_option): Set global_dc fields for -Wfatal-errors,
11479         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
11480         (option_name): New function.
11481         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
11482         (c_common_handle_option): Set global_dc->permissive for
11483         -fpermissive.
11484         * c-common.c (c_cpp_error): Save and restore
11485         global_dc->warn_system_headers, not variable warn_system_headers.
11486         * toplev.c: Include opts-diagnostic.h.
11487         (general_init): Update call to diagnostic_initialize.  Set
11488         global_dc->show_column, global_dc->option_enabled and
11489         global_dc->option_name.
11490         (process_options): Don't set global_dc fields here.
11491         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
11492         (diagnostic.o, opts.o, toplev.o): Update dependencies.
11494 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
11496         * config/picochip/picochip.md (movsi): Split a movsi from a
11497         const after reload.
11499 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11501         * ggc-zone.c: Update copyright year.
11502         (poison_region): Mark memory for Valgrind as undefined before
11503         memset () call and inaccessible afterwards.
11504         (ggc_pch_total_size): Change type of i to int.
11506 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11508         * ggc-common.c (ggc_free_overhead): Allow empty slot.
11510 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11512         * ggc-common.c: Update copyright year.
11513         (ggc_rlimit_bound): Remove prototype.  Compile only if
11514         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
11515         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
11516         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
11517         (ggc_min_heapsize_heuristic): Likewise.
11519 2010-05-26  Richard Guenther  <rguenther@suse.de>
11521         PR rtl-optimization/44164
11522         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
11523         no-common access-path disambiguation.
11524         (indirect_ref_may_alias_decl_p): Adjust.
11525         (indirect_refs_may_alias_p): Likewise.
11526         (refs_may_alias_p_1): Likewise.
11528 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
11530         * c-typeck.c: Do not include expr.h.
11532 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
11534         * rtl.h (decl_default_tls_model): Move prototype from here...
11535         * output.h: ...to here.
11536         * c-decl.c: Do not include rtl.h.
11537         * c-pragma.c: Likewise.
11538         * c-parser.c: Likewise.
11539         * c-gimplify.c: Likewise.  And also not hard-reg-set.
11540         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
11541         FIXME note for it.  Add a FIXME note for expr.h.
11542         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
11543         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
11544         defined.
11546 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
11548         PR target/44199
11549         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
11550         or total_size is larger than red zone size for non-V4 ABI, emit a
11551         stack_tie resp. frame_tie insn before stack pointer restore.
11552         * config/rs6000/rs6000.md (frame_tie): New insn.
11554 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
11556         * function.h (struct function): Add can_throw_non_call_exceptions bit.
11557         * lto-streamer-in.c (input_function): Stream it in.
11558         * lto-streamer-out.c (output_function): Stream it out.
11559         * function.c (allocate_struct_function): Set it.
11560         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
11561         for flag_non_call_exceptions.
11562         * cfgbuild.c (control_flow_insn_p): Likewise.
11563         (make_edges): Likewise.
11564         * cfgexpand.c (expand_stack_alignment): Likewise.
11565         * combine.c (distribute_notes): Likewise.
11566         * cse.c (cse_extended_basic_block): Likewise.
11567         * except.c (insn_could_throw_p): Likewise.
11568         * gcse.c (simple_mem): Likewise.
11569         * ipa-pure-const.c (check_call): Likewise.
11570         (check_stmt ): Likewise.
11571         * lower-subreg.c (lower-subreg.c): Likewise.
11572         * optabs.c (emit_libcall_block): Likewise.
11573         (prepare_cmp_insn): Likewise.
11574         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
11575         * postreload.c (rest_of_handle_postreload): Likewise.
11576         * reload1.c (reload_as_needed): Likewise.
11577         (emit_input_reload_insns): Likewise.
11578         (emit_output_reload_insns): Likewise.
11579         (fixup_abnormal_edges): Likewise.
11580         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
11581         * store-motion.c (find_moveable_store): Likewise.
11582         * tree-eh.c (stmt_could_throw_p): Likewise.
11583         (tree_could_throw_p): Likewise.
11584         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
11585         * config/arm/arm.c (arm_expand_prologue): Likewise.
11586         (thumb1_expand_prologue): Likewise.
11587         * config/rx/rx.md (cbranchsf4): Likewise.
11588         (cmpsf): Likewise.
11589         * config/s390/s390.c (s390_emit_prologue): Likewise.
11590         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
11591         (inline_forbidden_into_p): New predicate.
11592         (expand_call_inline): Use it to forbid inlining.
11593         (tree_can_inline_p): Likewise.
11595 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
11597         * config/i386/i386-c.c: Do not include rtl.h.
11598         * config/i386/t-i386: Update dependencies.
11600 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
11602         * attribs.c: Do not include rtl.h.
11603         * Makefile.in: Update dependencies.
11605 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
11607         * double-int.h (double_int_and): New.
11608         * combine.c (try_combine): Clean up, use double_int_* and
11609         immed_double_int_const functions.
11611 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11613         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
11614         stderr to /dev/null instead of grep -q.
11615         * configure: Regenerate.
11617 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
11619         * Makefile.in (EXCEPT_H): Fix typo.
11621 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
11623         * ira-build.c (update_conflict_hard_reg_costs): New.
11624         (ira_build): Call update_conflict_hard_reg_costs.
11626 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
11628         PR debug/41371
11629         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
11630         ENABLE_CHECKING.
11631         (intersect_loc_chains): Walk the s2var's loc_chain together
11632         with s1node chain as long as the locations are equal, don't
11633         call find_loc_in_1pdv in that case.
11635         PR debug/42801
11636         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
11637         (copy_bind_expr): ... instead of here.
11638         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
11639         if the block hasn't been remapped.
11640         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
11641         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
11643 2010-05-25  Richard Guenther  <rguenther@suse.de>
11645         PR middle-end/44069
11646         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
11647         out-of-bounds array accesses.
11649 2010-05-25  Richard Guenther  <rguenther@suse.de>
11651         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
11652         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
11653         (run_gcc): Re-organize to make cleanup easier.
11655 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11657         * config/s390/s390.c (optimization_options): Fix and move the
11658         flag_prefetch_loop_arrays override ...
11659         (override_options): ... here.
11661 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
11663         * diagnostic.c: Don't include plugin.h.
11664         (diagnostic_report_diagnostic): Don't handle plugins specially
11665         here.  Pass context to internal_error callback.
11666         * diagnostic.h (struct diagnostic_context): Add context parameter
11667         to internal_error callback.
11668         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
11669         * plugin.h (struct diagnostic_context): Declare.
11670         (warn_if_plugins, plugins_internal_error_function): Declare.
11671         * toplev.c (general_init): Set global_dc->internal_error.
11672         * Makefile.in (diagnostic.o): Update dependencies.
11674 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
11676         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
11677         * config/rs6000/t-darwin64: New.
11678         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
11679         build crt2.
11681 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
11683         PR 44203
11684         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
11685         match the original (and intended) behaviour before r159557.  This
11686         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
11687         in two ways.
11689 2010-05-25  Richard Guenther  <rguenther@suse.de>
11691         * doc/invoke.texi: Document -Ofast.
11692         * target.h (struct gcc_target): Add handle_ofast.
11693         * target-def.h (TARGET_HANDLE_OFAST): Add.
11694         (TARGET_INITIALIZER): Adjust.
11695         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
11696         * common.opt (Ofast): Add.
11698 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
11700         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
11701         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
11703 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
11705         PR target/43610
11706         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
11707         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
11708         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
11709         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
11711 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
11713         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
11714         DW_OP_minus with negated offset instead of DW_OP_plus.
11715         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
11717 2010-05-25  Wei Guozhi  <carrot@google.com>
11719         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
11720         tst instruction and a new alternative.
11721         * config/arm/constraints.md (Pu): New constraint.
11723 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
11725         * function.c (assign_stack_local_1): Initialize variable
11726         to avoid warning when bootstrapping at -O3.
11728 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
11730         * configure.ac (all_lang_makefiles): Remove everything related to it.
11731         * configure: Regenerate.
11732         * Makefile.in: Fix reference to ada Make-lang.in.
11733         Remove support for LANG_MAKEFILES.
11735 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
11736             Sandra Loosemore  <sandra@codesourcery.com>
11738         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
11739         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
11740         description.  Add arm_neon_fp16_ok.
11741         (Add Options): Add arm_neon and arm_neon_fp16.
11743 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
11745         * diagnostic.c: Don't include flags.h.
11746         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
11747         context parameters.  Check flags in the context passed as a parameter.
11748         (diagnostic_build_prefix): Add context parameter.  Check
11749         show_column flag in context.
11750         (diagnostic_action_after_output): Check fatal_errors flag in context.
11751         (diagnostic_report_current_module): Check show_column flag in context.
11752         (default_diagnostic_starter): Update call to
11753         diagnostic_build_prefix.
11754         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
11755         (emit_diagnostic): Pass context to permissive_error_kind.
11756         (permerror): Pass context to permissive_error_kind.
11757         * diagnostic.h (struct diagnostic_context): Add show_column,
11758         pedantic_errors, permissive and fatal_errors fields.
11759         (diagnostic_build_prefix): Update prototype.
11760         * langhooks.c
11761         * toplev.c (process_options): Set flags in global_dc from
11762         flag_show_column, flag_pedantic_errors, flag_permissive,
11763         flag_fatal_errors.
11764         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
11765         to diagnostic_build_prefix.
11766         * Makefile.in (diagnostic.o): Update dependencies.
11768 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
11770         * config/i386/ia32intrin.h (__crc32q): Define only if
11771         __SSE4_2__ is defined.
11773 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
11775         PR target/44132
11776         PR middle-end/43602
11777         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
11778         DECL_VISIBILITY_SPECIFIED.
11779         (emutls_decl): Set DECL_PRESERVE_P and copy
11780         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
11781         (emutls_finalize_control_var): New callback.
11782         (emutls_finish): Finalize emutls control variables.
11783         * toplev.c (compile_file): Move the call to emutls_finish ()
11784         before varpool_assemble_pending_decls ().
11786 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
11788         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
11789         added to the preprocessor condition.
11791 2010-05-24  Paul Brook  <paul@codesourcery.com>
11793         * gengtype-lex.l: Add HARD_REG_SET.
11794         * expr.c (expand_expr_real_1): Record writes to hard registers.
11795         * function.c (rtl_data): Add asm_clobbers.
11796         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
11797         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
11798         Use crtl->asm_clobbers.
11800 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11802         * doc/makefile.texi (Makefile): Mention stages 'profile'
11803         and 'feedback' for profiledbootstrap.
11805 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
11807         PR target/44245
11808         * config/i386/i386.c (def_builtin): Properly check
11809         OPTION_MASK_ISA_64BIT.
11811 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
11813         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
11814         typedefs with different but compatible types.  Allow duplicate
11815         typedefs with the same type except for pedantic non-C1X, but give
11816         warning for variably modified types.
11817         * c-typeck.c (tagged_types_tu_compatible_p,
11818         function_types_compatible_p, type_lists_compatible_p,
11819         comptypes_internal): Add parameter different_types_p; set
11820         *different_types_p for different but compatible types.  All
11821         callers changed.
11822         (comptypes_check_different_types): New.
11823         * c-tree.h (comptypes_check_different_types): Declare.
11825 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
11827         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
11828         * jump.c: Include basic-block.h.
11829         * profile.c: Likewise.
11830         * tree-profile.c: Likewise.
11831         * coverage.c: Likewise.
11832         * basic-block.h (optimize_function_for_size_p): Move to function.h.
11833         (optimize_function_for_speed_p): Likewise.
11834         * function.h (optimize_function_for_size_p,
11835         optimize_function_for_speed_p): Moved here from basic-block.h.
11836         * Makefile.in: Update dependencies.
11838 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11840         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
11841         before calling make; allow override through $MAKE.
11842         * doc/invoke.texi (Optimize Options): Document override.
11844 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
11846         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
11847         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11848         (rs6000_mode_dependent_address_ptr): Make static.
11849         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11850         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
11851         Remove.
11853 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
11855         PR target/43869
11856         * config/i386/i386.c: Make sure that the correct regparm is passed.
11858 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
11860         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
11861         * sbitmap.c: ...to here to internalize sbitmap element access.
11862         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
11863         Explain why basic-block.h is included.
11864         * function.h: Include tm.h for CUMULATIVE_ARGS.
11865         * Makefile.in: Update dependencies.
11867 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
11869         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
11870         New core types.
11871         * sbitmap.h (struct sbitmap_def): Do not typedef here.
11872         * sbitmap.c: Include sbitmap.h.
11873         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
11874         hard-reg-set.h.  Split everything related to regsets out from here...
11875         * regset.h: ...to here.  New file.
11876         * df.h: Include regset.h and sbitmap.h.
11877         * tree-flow.h: Likewise.
11878         * cfgloop.h: Likewise.
11879         * except.h: Do not include sbitmap.h.  Include hashtab.h.
11880         * cgraph.h: Include vec.h and function.h.
11881         * reload.h (struct insn_chain): Change types of live_throughout
11882         and dead_or_set from regset_head to bitmap_head.
11883         (compute_use_by_pseudos): Be defined also if regset.h is not included.
11884         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
11885         spilled_regs from regset_head to bitmap_head to avoid dependency
11886         in regset.h.
11887         * sel-sched-ir.h: Include regset.h.
11888         * reload.c: Include df.h before reload.h.
11889         * caller-save.c: Likewise.
11890         * reload1.c: Likewise.
11891         * ira.c: Likewise.
11892         (mark_elimination): Update type of r to bitmap, consistent with
11893         DF_LR_IN.
11894         * dominance.c: Include bitmap.h.
11895         * modulo-sched.c: Include df.h.
11896         * cfganal.c: Include bitmap.h and sbitmap.h.
11897         * cfgbuild.c: Include sbitmap.h.
11898         * lcm.c: Include sbitmap.h.
11899         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
11900         * domwalk.c: Include sbitmap.h, exclude ggc.h.
11901         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
11902         * cselib.c: Include bitmap.h.
11903         * tree-optimize.c: Include regset.h.
11904         * stmt.c: Include bitmap.h.
11905         * Makefile.in: Update dependencies.
11907 2010-05-22  Jan Hubicka  <jh@suse.cz>
11909         * cgraph.h (struct varpool_node): Add same_comdat_group.
11910         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
11911         pointer.
11912         (output_varpool): Update call of lto_output_varpool_node.
11913         (input_varpool): Read same_comdat_group pointer.
11914         (input_varpool_1): Fixup same_comdat_group pointer.
11915         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
11916         group is needed, all are.
11917         * varpool.c (varpool_remove_node): Remove node from same comdat group
11918         linklist too.
11919         (varpool_analyze_pending_decls): Walk same comdat groups.
11921 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
11923         * rtl.h (union rtunion_def): Remove rt_bit member.
11924         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
11925         * print-rtl (print_rtx): Do not print the member.
11926         * gengtype.c (adjust_field_rtx_def): Do not handle it.
11927         * gengenrtl.c (type_from_format): Likewise.
11928         (accessor_from_format): Likewise.
11930 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
11932         * dbgcnt.c: Include toplev.h instead of errors.h.
11933         * ira-emit.c: Don't include errors.h.
11934         * ira.c: Include toplev.h instead of errors.h.
11935         * lto-compress.c: Include toplev.h instead of errors.h.
11936         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
11937         ira.o, dbgcnt.o): Update dependencies.
11939 2010-05-22  Richard Guenther  <rguenther@suse.de>
11941         * gimple.c (gimple_types_compatible_p): Check type qualifications
11942         before merging pointer to complete and pointer to incomplete type.
11943         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
11944         we use our own resolution algorithm.  The gold linker plugin
11945         doesn't do the job we want it to do here.
11947 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
11949         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11950         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11951         (sparc_mode_dependent_address_p): New function.
11953 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
11955         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
11957         * timevar.c: Do not include any core headers.
11958         (timevar_print): De-i18n-ize.
11959         (print_time): Likewise.
11960         * timevar.h (timevar_push, timevar_pop): Make inline functions.
11962 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
11964         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
11965         langhooks-def.h.
11966         (diagnostic_initialize): Initialize x_data not last_function.
11967         (diagnostic_report_current_function): Move to tree-diagnostic.c.
11968         (default_diagnostic_starter): Call
11969         diagnostic_report_current_module not
11970         diagnostic_report_current_function.
11971         (diagnostic_report_diagnostic): Initialize x_data not
11972         abstract_origin.
11973         (verbatim): Likewise.
11974         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
11975         x_data.
11976         (struct diagnostic_context): Change last_function to x_data.
11977         (diagnostic_auxiliary_data): Replace with
11978         diagnostic_context_auxiliary_data and
11979         diagnostic_info_auxiliary_data.
11980         (diagnostic_last_function_changed, diagnostic_set_last_function,
11981         diagnostic_report_current_function): Move to tree-diagnostic.h.
11982         (print_declaration, dump_generic_node, print_generic_stmt,
11983         print_generic_stmt_indented, print_generic_expr,
11984         print_generic_decl, debug_c_tree, dump_omp_clauses,
11985         print_call_name, debug_generic_expr, debug_generic_stmt,
11986         debug_tree_chain, default_tree_printer): Move to
11987         tree-pretty-print.h.
11988         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
11989         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
11990         gimple-pretty-print.h.
11991         * pretty-print.c: Don't include tree.h
11992         (pp_base_format): Don't handle %K here.
11993         (pp_base_tree_identifier): Move to tree-pretty-print.c.
11994         * pretty-print.h (text_info): Change abstract_origin to x_data.
11995         (pp_tree_identifier, pp_unsupported_tree,
11996         pp_base_tree_identifier): Move to tree-pretty-print.h.
11997         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
11998         tree-pretty-print.h: New files.
11999         * tree-pretty-print.c: Include tree-pretty-print.h.
12000         (percent_K_format): New.  Moved from pretty-print.c.
12001         (pp_base_tree_identifier): Move from pretty-print.c.
12002         * c-objc-common.c: Include tree-pretty-print.h.
12003         (c_tree_printer): Handle %K here.
12004         * langhooks.c: Include tree-diagnostic.h.
12005         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
12006         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
12007         (default_tree_printer): Handle %K using percent_K_format.
12008         (general_init): Use default_tree_diagnostic_starter.
12009         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
12010         (free_lang_data): Use default_tree_diagnostic_starter.
12011         * c-pretty-print.c: Include tree-pretty-print.h.
12012         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
12013         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
12014         * dwarf2out.c: Include tree-pretty-print.h.
12015         * except.c: Include tree-pretty-print.h.
12016         * gimple-pretty-print.c: Include tree-pretty-print.h and
12017         gimple-pretty-print.h.
12018         * gimplify.c: Include tree-pretty-print.h.
12019         * graphite-poly.c: Include tree-pretty-print.h and
12020         gimple-pretty-print.h.
12021         * ipa-cp.c: Include tree-pretty-print.h.
12022         * ipa-inline.c: Include gimple-pretty-print.h.
12023         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
12024         * ipa-pure-const.c: Include gimple-pretty-print.h.
12025         * ipa-struct-reorg.c: Include tree-pretty-print.h and
12026         gimple-pretty-print.h.
12027         * ipa-type-escape.c: Include tree-pretty-print.h.
12028         * print-rtl.c: Include tree-pretty-print.h.
12029         * print-tree.c: Include gimple-pretty-print.h.
12030         * sese.c: Include tree-pretty-print.h.
12031         * tree-affine.c: Include tree-pretty-print.h.
12032         * tree-browser.c: Include tree-pretty-print.h.
12033         * tree-call-cdce.c: Include gimple-pretty-print.h.
12034         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
12035         * tree-chrec.c: Include tree-pretty-print.h.
12036         * tree-data-ref.c: Include tree-pretty-print.h and
12037         gimple-pretty-print.h.
12038         * tree-dfa.c: Include tree-pretty-print.h.
12039         * tree-if-conv.c: Include tree-pretty-print.h and
12040         gimple-pretty-print.h.
12041         * tree-inline.c: Include tree-pretty-print.h.
12042         * tree-into-ssa.c: Include tree-pretty-print.h and
12043         gimple-pretty-print.h.
12044         * tree-nrv.c: Include tree-pretty-print.h.
12045         * tree-object-size.c: Include tree-pretty-print.h and
12046         gimple-pretty-print.h.
12047         * tree-outof-ssa.c: Include tree-pretty-print.h and
12048         gimple-pretty-print.h.
12049         * tree-parloops.c: Include tree-pretty-print.h and
12050         gimple-pretty-print.h.
12051         * tree-predcom.c: Include tree-pretty-print.h and
12052         gimple-pretty-print.h.
12053         * tree-scalar-evolution.c: Include tree-pretty-print.h and
12054         gimple-pretty-print.h.
12055         * tree-sra.c: Include tree-pretty-print.h.
12056         * tree-ssa-address.c: Include tree-pretty-print.h.
12057         * tree-ssa-alias.c: Include tree-pretty-print.h.
12058         * tree-ssa-ccp.c: Include tree-pretty-print.h and
12059         gimple-pretty-print.h.
12060         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
12061         * tree-ssa-copy.c: Include tree-pretty-print.h and
12062         gimple-pretty-print.h.
12063         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
12064         * tree-ssa-dce.c: Include tree-pretty-print.h and
12065         gimple-pretty-print.h.
12066         * tree-ssa-dom.c: Include tree-pretty-print.h and
12067         gimple-pretty-print.h.
12068         * tree-ssa-dse.c: Include gimple-pretty-print.h.
12069         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
12070         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
12071         * tree-ssa-live.c: Include tree-pretty-print.h and
12072         gimple-pretty-print.h.
12073         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
12074         gimple-pretty-print.h.
12075         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
12076         gimple-pretty-print.h.
12077         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
12078         gimple-pretty-print.h.
12079         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
12080         gimple-pretty-print.h.
12081         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
12082         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
12083         * tree-ssa-operands.c: Include tree-pretty-print.h and
12084         gimple-pretty-print.h.
12085         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
12086         gimple-pretty-print.h.
12087         * tree-ssa-pre.c: Include tree-pretty-print.h and
12088         gimple-pretty-print.h.
12089         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
12090         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
12091         gimple-pretty-print.h.
12092         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
12093         gimple-pretty-print.h.
12094         * tree-ssa-sink.c: Include gimple-pretty-print.h.
12095         * tree-ssa-ter.c: Include tree-pretty-print.h and
12096         gimple-pretty-print.h.
12097         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
12098         * tree-ssa.c: Include tree-pretty-print.h and
12099         gimple-pretty-print.h.
12100         * tree-stdarg.c: Include gimple-pretty-print.h.
12101         * tree-switch-conversion.c: Include gimple-pretty-print.h.
12102         * tree-tailcall.c: Include tree-pretty-print.h and
12103         gimple-pretty-print.h.
12104         * tree-vect-data-refs.c: Include tree-pretty-print.h and
12105         gimple-pretty-print.h.
12106         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
12107         gimple-pretty-print.h.
12108         * tree-vect-loop.c: Include tree-pretty-print.h and
12109         gimple-pretty-print.h.
12110         * tree-vect-patterns.c: Include gimple-pretty-print.h.
12111         * tree-vect-slp.c: Include tree-pretty-print.h and
12112         gimple-pretty-print.h.
12113         * tree-vect-stmts.c: Include tree-pretty-print.h and
12114         gimple-pretty-print.h.
12115         * tree-vectorizer.c: Include tree-pretty-print.h.
12116         * tree-vrp.c: Include tree-pretty-print.h and
12117         gimple-pretty-print.h.
12118         * value-prof.c: Include tree-pretty-print.h and
12119         gimple-pretty-print.h.
12120         * var-tracking.c: Include tree-pretty-print.h.
12121         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
12122         (tree-diagnostic.o): New dependencies.
12123         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
12124         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
12125         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
12126         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
12127         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
12128         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
12129         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
12130         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
12131         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
12132         tree-ssa-address.o, tree-ssa-loop-niter.o,
12133         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
12134         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
12135         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
12136         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
12137         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
12138         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
12139         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
12140         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
12141         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
12142         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
12143         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
12144         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
12145         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
12146         tree-switch-conversion.o, var-tracking.o, value-prof.o,
12147         cfgexpand.o, pretty-print.o): Update dependencies.
12149 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
12151         * tree-ssa-structalias.c: Remove tm_p.h from include.
12153 2010-05-21  Jeff Law  <law@redhat.com>
12155         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
12157 2010-05-21  Jason Merrill  <jason@redhat.com>
12159         * tree-eh.c (cleanup_is_dead_in): New.
12160         (lower_try_finally): Don't generate a dead cleanup region.
12161         (lower_cleanup): Likewise.
12163 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
12165         PR debug/44223
12166         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
12167         unchain each use from the cyclic next_regno_use chain first.
12169 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
12171         * real: Do not include gmp.h, mpfr.h, and mpc.h.
12172         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
12173         (real_value_negate, real_value_abs): New prototypes.
12174         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
12175         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
12176         new include file for interface between MPFR and REAL_VALUE_TYPE.
12177         * real.c: Include realmpfr.h.
12178         (real_arithmetic2): Remove legacy function.
12179         (real_value_negate): New.
12180         (real_value_abs): New.
12181         (mfpr_from_real, real_from_mpfr): Move from here...
12182         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
12183         * builtins.c: Include realmpfr.h.
12184         * fold-const.c: Include realmpfr.h.
12185         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
12186         (fold_negate_const): Likewise.
12187         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
12188         * toplev.c: Include realmpfr.h.
12189         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
12190         and real_value_negate.
12191         * fixed-value.c (check_real_for_fixed_mode): Likewise.
12192         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
12193         (vfp3_const_double_index): Likewise.
12194         (arm_print_operand): Likewise.
12195         * Makefile.in: Update dependencies.
12197 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12199         * config/s390/s390.c (override_options): Increase the default
12200         of max-completely-peel-times.
12202 2010-05-21  Julian Brown  <julian@codesourcery.com>
12203             Mark Mitchell  <mark@codesourcery.com>
12205         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
12206         sibling calls for Thumb-1.
12207         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
12208         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
12209         Thumb-2.
12210         (*call_insn, *call_value_insn): Don't use for Thumb-2.
12211         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
12212         for Thumb-2.
12213         (return): New expander.
12214         (*arm_return): New name for ARM return insn.
12215         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
12217 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
12219         * config.gcc (sparc64-*-rtems*): New target.
12221 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
12223         * tree.c (build_function_decl_skip_args): Fix grammar.
12224         (build_function_type_list_1): Fix typos, adjust formatting.
12226 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
12228         * tree.h: Include real.h and fixed-value.h as basic datatypes.
12229         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
12230         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
12231         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
12232         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
12233         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
12234         tree-pretty-print.c, tree-loop-distribution.c,
12235         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
12236         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
12237         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
12238         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
12239         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
12240         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
12241         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
12242         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
12243         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
12244         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
12245         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
12246         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
12247         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
12248         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
12249         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
12250         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
12251         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
12252         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
12253         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
12254         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
12255         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
12256         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
12257         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
12258         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
12259         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
12260         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
12261         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
12262         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
12263         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
12264         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
12265         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
12266         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
12267         config/score/score7.c, config/score/score.c, config/arm/arm.c,
12268         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
12269         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
12270         config/bfin/bfin.c: Clean up redundant includes.
12271         * Makefile.in: Update accordingly.
12273 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
12275         PR middle-end/44204
12276         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
12277         statement has no arguments.
12279 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
12281         PR/44139
12282         * varasm.c (emutls_decl): Merge attributes to new decl.
12284 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
12286         PR middle-end/44101
12287         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
12288         around the uniquized constructor if its type requires a conversion.
12290 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
12292         PR debug/44205
12293         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
12294         at -O0 goto_locus of any of the incoming edges differs from
12295         goto_locus of outgoing edge, or gimple_location of any of the
12296         labels differs.
12298 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
12300         * ira.c (ira_non_ordered_class_hard_regs): Define.
12301         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
12302         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
12303         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
12304         cost of unaligned hard regs when allocating multi-reg pseudos.
12306 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
12308         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
12309         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
12310         for TARGET_NO_FLOAT.
12311         * config/mips/mips.c (mips_file_start): Expand conditional expression
12312         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
12313         (mips_override_options): Move -mno-float override -msoft-float and
12314         -mhard-float.
12315         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
12316         Condition(TARGET_SUPPORTS_NO_FLOAT).
12317         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
12318         __mips_no_float here.
12319         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
12320         (TARGET_SUPPORTS_NO_FLOAT): Define.
12321         * config/mips/sdemtk.opt: Delete.
12323 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
12325         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
12327 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
12329         PR target/43733
12330         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
12331         * configure: Regenerate.
12332         * config.in: Regenerate.
12333         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
12334         instead of sahf only for 64bit targets.
12336 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
12338         PR debug/44178
12339         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
12340         setup_ref_regs for DEBUG_INSNs.
12342 2010-05-20  Jan Hubicka  <jh@suse.cz>
12344         PR middle-end/44197
12345         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
12347 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
12349         PR bootstrap/43870
12350         * df-scan.c (df_ref_compare): Stabilize sort.
12352 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
12354         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
12355         argument.  Don't use DW_OP_piece if offset is non-zero,
12356         put offset into second DW_OP_bit_piece argument.
12357         (dw_sra_loc_expr): Adjust callers.  For memory expressions
12358         compute offset.
12360 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
12362         PR target/44202
12363         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
12364         settings for 16-bit-constant "addo" alternative.
12366 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
12368         * config/mips/mips-dsp.md (add<DSPV:mode>3,
12369         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
12371         PR target/43764
12372         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
12373         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
12374         Use it.
12376 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
12378         * diagnostic.c (FLOAT, FFS): Don't undefine.
12379         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
12380         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
12381         include ordering.
12383 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
12385         * combine.c (propagate_for_debug): Call make_compound_operation
12386         on the source value.
12387         (try_combine): When implementing a split chosen by find_split_point,
12388         either copy i2src or set it to null.  Assert that i2src is not null
12389         before substituting into CALL_INSN_FUNCTION_USAGE.
12391 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
12393         * double-int.h (double_int_ior): New function.
12394         * tree.h (build_int_cst_wide_type): Remove.
12395         * tree.c (build_int_cst_wide_type): Remove.
12396         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
12397         of build_int_cst_wide_type.
12398         * stor-layout.c (set_sizetype): (Ditto.).
12399         * dojump.c (do_jump): Use build_int_cstu instead of
12400         build_int_cst_wide_type.
12402 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
12404         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
12405         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
12406         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
12407         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
12408         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
12409         propagate the 'data' argument to copy_tree_r.
12410         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
12411         Propagate 'data' argument to walk_tree.
12412         (copy_if_shared): New function.
12413         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
12414         (unmark_visited): New function.
12415         (unshare_body): Call copy_if_shared instead of doing it manually.
12416         (unvisit_body): Call unmark_visited instead of doing it manually.
12418 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
12420         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
12421         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
12422         * hooks.c: Likewise.
12423         * target-def.h (TARGET_FOLD_BUILTIN): Define to
12424         hook_tree_tree_int_treep_bool_null.
12425         * target.h (struct gcc_target): Update signature of fold_builtin
12426         field.
12427         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
12428         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
12429         instead of the call expression.
12430         (fold_builtin_call_array): Pass n and argarray directly.
12431         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
12432         consing a list.
12433         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
12434         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
12435         `i' and use it in place of `arity'.
12436         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
12437         Dereference `args' directly.
12438         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
12440 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12442         * doc/sourcebuild.texi (Effective-Target Keywords): Document
12443         3dnow, sse3, sse2.
12444         (Directives): Document optional dg-require-effective-target
12445         selector.
12447 2010-05-19  Richard Guenther  <rguenther@suse.de>
12449         PR lto/44196
12450         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
12452 2010-05-19  Richard Guenther  <rguenther@suse.de>
12454         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
12455         * common.opt (fwhopr=): New.
12456         * opts.c (common_handle_option): Handle OPT_fwhopr.
12457         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
12458         * collect2.c (main): Match -fwhopr*.
12459         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
12460         Execute ltrans stage in parallel when jobs is bigger than 1.
12462 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12464         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
12465         pentiumpro on Solaris 8/x86 with Sun as.
12466         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
12467         hidden alias bug.
12468         (gcc_cv_as_ix86_quad): Check for .quad directive.
12469         * configure: Regenerate.
12470         * config.in: Regenerate.
12471         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
12473 2010-05-19  Martin Jambor  <mjambor@suse.cz>
12475         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
12476         also for indirect edges.  Actual printing moved...
12477         (ipa_print_node_jump_functions_for_edge): ...here.
12478         (ipa_compute_jump_functions): Renamed to
12479         ipa_compute_jump_functions_for_edge and made static.
12480         (ipa_compute_jump_functions): New function.
12481         (make_edge_direct_to_target): Check if the number of arguments on
12482         the newly direct edge is the same as the number of parametrs of
12483         the callee.
12484         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
12485         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
12486         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
12487         analysis functions unconditionally, call the new
12488         ipa_analyze_params_uses on the node instead of every edge.
12490 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
12492         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
12493         to tree.
12494         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
12495         also checks for a constant int vs.  non-constant but
12496         loop-invariant steps.
12497         (find_or_create_group): Change the sort algorithm to only consider
12498         steps that are constant ints.
12499         (idx_analyze_ref): Adopt code to handle a tree instead of a
12500         HOST_WIDE_INT for step.
12501         (gather_memory_references_ref): Handle tree instead of int and be
12502         prepared to see a NULL_TREE.
12503         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
12504         prefetches if the step cannot be calculated at compile time.
12505         (issue_prefetch_ref): Issue prefetches for non-constant but
12506         loop-invariant steps.
12508 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
12510         Revert:
12511         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
12513         * tree.h (build_call_list): Remove.
12514         * tree.c (build_call_list): Remove.
12516 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
12518         * tree.h (build_call_list): Remove.
12519         * tree.c (build_call_list): Remove.
12521 2010-05-18  Jan Hubicka  <jh@suse.cz>
12523         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
12525 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
12527         PR rtl-optimization/43332
12528         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
12530 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
12532         * tree.h (build_int_cstu): Implement as static inline.
12533         * tree.c (build_int_cstu): Remove function.
12534         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
12535         sign extended.
12537 2010-05-18  Richard Guenther  <rguenther@suse.de>
12539         PR lto/44143
12540         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
12541         (debug): Initialize from -save-temps.
12542         (collect_execute): Print command-line when verbose.
12543         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
12544         for ltrans invocation.  Produce -dumpbase flag again.
12545         (process_args): Remove.
12546         (main): Simplify.
12547         * collect2.c (maybe_run_lto_and_relink): Only pass object
12548         files to lto-wrapper.
12549         * gcc.c (LINK_COMMAND_SPEC): Likewise.
12551 2010-05-18  Jan Hubicka  <jh@suse.cz>
12553         * opts.c (decode_options): Do not disable whopr at ipa_cp.
12554         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
12556 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
12558         PR lto/44184
12559         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
12560         in a GIMPLE_ASM.
12561         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
12562         in a GIMPLE_ASM.
12564 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
12566         PR debug/41371
12567         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
12568         rtx_equal_p inline.
12570 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
12572         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
12573         lto-macho as lto_binary_reader.
12575         * darwin.c (darwin_asm_named_section): Do not add assembler comment
12576         after .section directive; just print it before the directive instead.
12578 2010-05-17  Jan Hubicka  <jh@suse.cz>
12580         * cgraph.c (cgraph_create_virtual_clone): Only check
12581         versionable_function_p when not in wpa and checking is enabled.
12582         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
12583         there are no more functions to materialize.
12585 2010-05-17  Jan Hubicka  <jh@suse.cz>
12587         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
12588         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
12589         New functions.
12590         (output_cgraph): Call output_cgraph_opt_summary.
12591         (input_cgrpah): Call input_cgraph_opt_summary.
12592         (output_cgraph_opt_summary_p, output_node_opt_summary,
12593         input_node_opt_summary, input_cgraph_opt_section): New functions.
12594         * lto-section-in.c (lto_section_name): Add cgraphopt.
12595         * tree-inline.c (tree_function_versioning): Handle parm_num.
12596         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
12597         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
12599 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
12601         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
12602         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
12603         the insn to prefetch ratio heuristic to loops with known trip count.
12605 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
12607         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
12608         (schedule_prefetches): Do not generate a prefetch if the unroll factor
12609         is far from what is required by the prefetch.
12611 2010-05-17  Jan Hubicka  <jh@suse.cz>
12613         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
12614         (ipcp_estimate_growth): Likewise.
12615         (ipcp_const_param_count): Likewise.
12616         (ipcp_insert_stage): Likewise.
12617         * ipa-prop.c (visit_load_for_mod_analysis): New function.
12618         (visit_store_addr_for_mod_analysis): Set used flag.
12619         (ipa_detect_param_modifications): Set used flag for SSE params;
12620         update use of walk_stmt_load_store_addr_ops.
12621         (ipa_print_node_params): Print used flag.
12622         (ipa_write_node_info): Stream used flag.
12623         (ipa_read_node_info): Likewise.
12624         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
12625         (ipa_is_param_used): New function.
12626         (lto_ipa_fixup_call_notes): Remove unused declaration.
12628 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12630         PR target/44074
12631         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
12632         * configure: Regenerate.
12633         * config.in: Regenerate.
12634         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
12635         !HAVE_AS_IX86_REP_LOCK_PREFIX.
12636         Don't emit whitespace.
12637         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
12638         (*rep_movsi): Likewise.
12639         (*rep_movsi_rex64): Likewise.
12640         (*rep_movqi): Likewise.
12641         (*rep_movqi_rex64): Likewise.
12642         (*rep_stosdi_rex64): Likewise.
12643         (*rep_stossi): Likewise.
12644         (*rep_stossi_rex64): Likewise.
12645         (*rep_stosqi): Likewise.
12646         (*rep_stosqi_rex64): Likewise.
12647         (*cmpstrnqi_nz_1): Use {%;} after repz.
12648         (*cmpstrnqi_nz_rex_1): Likewise.
12649         (*cmpstrnqi_1): Likewise.
12650         (*cmpstrnqi_rex_1): Likewise.
12651         (*strlenqi_1): Use {%;} after repnz.
12652         (*strlenqi_rex_1): Likewise.
12653         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
12654         (*sync_compare_and_swap<mode>): Likewise.
12655         (sync_double_compare_and_swap<mode>): Likewise.
12656         (*sync_double_compare_and_swapdi_pic): Likewise.
12657         (sync_old_add<mode>): Likewise.
12658         (sync_add<mode>): Likewise.
12659         (sync_sub<mode>): Likewise.
12660         (sync_<code><mode>): Likewise.
12662 2010-05-17  Martin Jambor  <mjambor@suse.cz>
12664         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
12665         otr_token and polymorphic.
12666         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
12667         (cgraph_clone_edge): Copy the above fields.
12668         * tree.c (get_binfo_at_offset): New function.
12669         * tree.h (get_binfo_at_offset): Declare.
12670         * ipa-prop.h (enum jump_func_type): Added known_type jump function
12671         type, reordered items, updated comments.
12672         (union jump_func_value): Added base_type field, reordered fields.
12673         (enum ipa_lattice_type): Moved down in the file.
12674         (struct ipa_param_descriptor): New field polymorphic.
12675         (ipa_is_param_polymorphic): New function.
12676         * ipa-prop.c: Include gimple.h and gimple-fold.h.
12677         (ipa_print_node_jump_functions): Print known type jump functions.
12678         (compute_complex_pass_through): Renamed to...
12679         (compute_complex_assign_jump_func): this.
12680         (compute_complex_ancestor_jump_func): New function.
12681         (compute_known_type_jump_func): Likewise.
12682         (compute_scalar_jump_functions): Create known type and complex ancestor
12683         jump functions.
12684         (ipa_note_param_call): New parameter polymorphic, set the corresponding
12685         flag in the call note accordingly.
12686         (ipa_analyze_call_uses): Renamed to...
12687         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
12688         variable var only in the block where it is used.
12689         (ipa_analyze_virtual_call_uses): New function.
12690         (ipa_analyze_call_uses): Likewise.
12691         (combine_known_type_and_ancestor_jfs): Likewise.
12692         (update_jump_functions_after_inlining): Implemented handling of a
12693         number of new jump function types combination.
12694         (print_edge_addition_message): Removed.
12695         (make_edge_direct_to_target): New function.
12696         (try_make_edge_direct_simple_call): Likewise.
12697         (try_make_edge_direct_virtual_call): Likewise.
12698         (update_call_notes_after_inlining): Renamed to...
12699         (update_indirect_edges_after_inlining): this.  Moved edge creation for
12700         indirect calls to try_make_edge_direct_simple_call, also calls
12701         try_make_edge_direct_virtual_call for virtual calls.
12702         (ipa_print_node_params): Changed the header message.
12703         (ipa_write_jump_function): Stream also known type jump functions.
12704         (ipa_read_jump_function): Likewise.
12705         (ipa_write_indirect_edge_info): Stream new fields in
12706         cgraph_indirect_call_info.
12707         (ipa_read_indirect_edge_info): Likewise.
12708         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
12709         GIMPLE_FOLD_H.
12711 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12713         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
12715 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
12717         * tree.h (CALL_EXPR_ARGS): Delete.
12718         (call_expr_arglist): Delete.
12719         * tree.c (call_expr_arglist): Delete.
12720         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
12721         targetm.fold_builtin.
12722         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
12723         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
12724         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
12725         arglist parameter.  Use CALL_EXPR_ARG.
12726         (picochip_expand_builtin_3op): Likewise.
12727         (picochip_expand_builtin_2opvoid): Likewise.
12728         (picochip_expand_array_get): Likewise.
12729         (picochip_expand_array_put): Likewise.
12730         (picochip_expand_array_testport): Likewise.
12731         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
12732         rather than arglist.
12733         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
12734         CALL_EXPR_ARGS.
12735         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
12736         than TREE_VALUE and TREE_CHAIN.
12737         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
12738         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
12739         the arglist.
12741 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
12743         PR bootstrap/42347
12744         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
12745         to have no fallthru edge.
12747         PR middle-end/44102
12748         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
12749         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
12750         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
12751         add BARRIER after previous bb if needed.
12753 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
12755         * tree.c (build_function_type_list_1): Remove bogus assert condition.
12757 2010-05-17  Alan Modra  <amodra@gmail.com>
12759         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
12760         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
12761         with copy_reg rtx param.
12762         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
12763         Correct cases where code for ABI_V4 did not initialise the reg
12764         used to access frame.  Also leave frame_reg_rtx as sp for large
12765         frames that save no regs.
12767 2010-05-17  Martin Jambor  <mjambor@suse.cz>
12769         PR middle-end/44133
12770         * tree-sra.c (create_access_replacement): New parameter rename, mark
12771         the replaement for renaming only when it is true.
12772         (get_access_replacement): Pass true in the rename parameter of
12773         create_access_replacement.
12774         (get_unrenamed_access_replacement): New function.
12775         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
12776         replacement declaration from it.
12778 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
12780         * function.c (try_fit_stack_local, add_frame_space): New static
12781         functions.
12782         (assign_stack_local_1): Use them.  Look for opportunities to use
12783         space previously wasted on alignment.
12784         * function.h (struct frame_space): New.
12785         (struct rtl_data): Add FRAME_SPACE_LIST member.
12786         * reload1.c (something_was_spilled): New static variable.
12787         (alter_reg): Set it.
12788         (reload): Test it in addition to testing if the frame size changed.
12790 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
12792         * config/s390/s390.c: Define sane prefetch settings and activate
12793         flag_prefetch_loop_arrays on -O3.
12794         * config/s390/s390.h: Declare that read can use write prefetch.
12796 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
12798         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
12799         build.
12801 2010-05-16  Jan Hubicka  <jh@suse.cz>
12803         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
12804         function body; do not check stdarg field of struct function.
12806 2010-05-16  Jan Hubicka  <jh@suse.cz>
12808         * cgraph.c (dump_cgraph_node): Dump versionable flag.
12809         * cgraph.h (cgraph_local_info): Add versionable flag.
12810         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
12811         (ipcp_versionable_function_p): Use it.
12812         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
12813         versionable flag.
12815 2010-05-16  Jan Hubicka  <jh@suse.cz>
12817         * cgraph.c (cgraph_clone_node): Take decl argument and insert
12818         clone into hash when it is different from orig.
12819         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
12820         * cgraph.h (cgraph_clone_node): Update prototype.
12821         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
12822         (lto_cgraph_encoder_delete): Delete body map.
12823         (lto_cgraph_encoder_size): Move to header.
12824         (lto_cgraph_encoder_encode_body_p,
12825         lto_set_cgraph_encoder_encode_body): New.
12826         (lto_output_node): Do not take written_decls argument; output clone_of
12827         pointer.
12828         (add_node_to): Add include_body_argument; call
12829         lto_set_cgraph_encoder_encode_body on master of the clone.
12830         (add_references): Update use of add_node_to.
12831         (compute_ltrans_boundary): Likewise.
12832         (output_cgraph): Do not create written_decls bitmap.
12833         (input_node): Take nodes argument; stream in clone_of correctly.
12834         (input_cgraph_1): Update use of input_node.
12835         * lto-streamer-out.c (lto_output): Use encoder info to decide
12836         what bodies to output.
12837         * ipa-inline.c (cgraph_clone_inlined_nodes,
12838         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
12839         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
12840         (lto_cgraph_encoder_size): Define here.
12841         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
12842         Declare.
12844 2010-05-16  Richard Guenther  <rguenther@suse.de>
12846         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
12847         -fipa-type-escape.
12848         * ipa-type-escape.c (gate_type_escape_vars): Run when
12849         -fipa-struct-reorg runs.
12850         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
12851         * common.opt (fipa-type-escape): Remove.
12853 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
12855         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
12856         (decode_options): Likewise.
12857         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
12859 2010-05-16  Jan Hubicka  <jh@suse.cz>
12861         * ipa.c (function_and_variable_visibility): Also bring local all
12862         aliases.
12864 2010-05-16  Richard Guenther  <rguenther@suse.de>
12866         * alias.c (nonoverlapping_memrefs_p): Remove use of
12867         IPA type-escape information.
12869 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
12871         * c-common.c (c_common_reswords): Add _Static_assert for C.
12872         * c-parser.c (c_token_starts_declaration,
12873         c_parser_next_token_starts_declaration,
12874         c_parser_static_assert_declaration_no_semi,
12875         c_parser_static_assert_declaration): New.
12876         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
12877         Handle static assertions if static_assert_ok.
12878         (c_parser_external_declaration, c_parser_declaration_or_fndef,
12879         c_parser_compound_statement_nostart, c_parser_label,
12880         c_parser_for_statement, c_parser_objc_methodprotolist,
12881         c_parser_omp_for_loop): All callers of
12882         c_parser_declaration_or_fndef changed.
12883         (c_parser_struct_declaration): Handle static assertions.
12884         (c_parser_compound_statement_nostart): Use
12885         c_parser_next_token_starts_declaration and
12886         c_token_starts_declaration to detect start of declarations.
12887         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
12888         Likewise.
12890 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
12892         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
12893         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12894         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12895         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12896         (mmix_function_outgoing_value): Rename to...
12897         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
12898         (mmix_function_value_regno_p): Make static.
12899         (mmix_libcall_value): New function.
12900         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
12901         mmix_function_value_regno_p): Remove declaration.
12903 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
12905         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
12906         BUILT_IN_ALLOCA if stack checking is enabled.
12908 2010-05-16  Richard Guenther  <rguenther@suse.de>
12910         * var-tracking.c (vars_copy_1): Inline ...
12911         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
12912         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
12913         (variable_merge_over_cur): Adjust.  Merge asserts.
12914         (variable_merge_over_src): Likewise.
12915         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
12916         (variable_post_merge_new_vals): Merge asserts.
12917         (variable_post_merge_perm_vals): Likewise.
12918         (find_mem_expr_in_1pdv): Likewise.
12919         (dataflow_set_different_value): Remove.
12920         (onepart_variable_different_p): Merge asserts.
12921         (variable_different_p): Likewise.
12922         (dataflow_set_different_1): Inline ...
12923         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
12924         (emit_notes_for_differences_1): Merge asserts.
12926 2010-05-16  Richard Guenther  <rguenther@suse.de>
12928         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
12929         * optabs.c (libfunc_decl_hash): Likewise.
12930         * varasm.c (emutls_decl): Likewise.
12932 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
12934         * c-decl.c: Don't include gimple.h.
12935         (merge_decls): Do not copy gimple_body.
12937 2010-05-15  Jason Merrill  <jason@redhat.com>
12939         * c.opt: Add -fnothrow-opt.
12941 2010-05-15  Jan Hubicka  <jh@suse.cz>
12943         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
12944         analyzed.
12945         * passes.c (ipa_write_summaries): Write all analyzed nodes.
12947 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
12949         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
12950         * Makefile.in: Add it.
12951         Fix all other Makefile dependencies for changes below.
12952         * tree.h: Include it instead of defining VEC primitives here.
12953         * gimple.h: Likewise.
12954         * rtl.h: Likewise.
12955         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
12956         * except.h: Include vecir.h, break dependence on tree.h.
12958         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
12959         Move from here...
12960         * tree-iterator.c: ...to here.
12961         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
12963         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
12964         tm_p.h.
12965         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
12966         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
12967         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
12968         tree-mudflap.h, and target.h.
12969         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
12970         predict.h, tree-inline.h, gimple.h, and langhooks.h.
12971         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
12972         Add FIXME for why gimple.h is still included (should be unnecessary
12973         since GCC 4.5 gimplification unit-at-a-time).
12974         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
12975         * c-pragma.c: Add FIXME for why function.h needs to be included just
12976         for cfun, at front-end level.
12977         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
12978         Do not include ggc.h, but include vecprim.h for VEC(char).
12979         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
12980         Explain why target.h is included.
12981         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
12982         Explain why gimple.h is included.
12983         * c-ppoutput.c: Do not include tm.h.
12984         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
12985         * c-parses.c: Explain why rtl.h is included, and that this (and only
12986         this) is also why tm.h must be included.
12987         Do not include except.h.
12988         * c-lang.c: Do not include ggc.h.
12990 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
12992         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
12994 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
12996         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
12997         unions by default if those structs and unions have no tags.  Do
12998         not condition anonymous struct and unions handling on flag_iso.
12999         Allow anonymous structs and unions for C1X.
13000         (finish_struct): Do not diagnose lack of named fields when
13001         anonymous structs and unions present for C1X.  Accept flexible
13002         array members in structure with anonymous structs or unions but no
13003         directly named fields.
13004         * doc/extend.texi (Unnamed Fields): Update.
13006 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
13008         * gimple.h (compare_field_offset): Rename into...
13009         (gimple_compare_field_offset): ...this.
13010         * gimple.c (compare_field_offset): Rename into...
13011         (gimple_compare_field_offset): ...this.  Compare the full access if
13012         the offset is self-referential.
13013         (gimple_types_compatible_p): Adjust for above renaming.
13014         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
13015         DECL_NONADDRESSABLE_P flag of fields before merging them.
13017 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
13019         * tree.h (ctor_to_list): Delete.
13020         * tree.c (ctor_to_list): Delete.
13022 2010-05-15  Jan Hubicka  <jh@suse.cz>
13024         * ipa-reference.c: Include toplev.h
13025         (is_proper_for_analysis): Only add to all_module_statics
13026         if it is allocated.
13027         (write_node_summary_p, stream_out_bitmap,
13028         ipa_reference_write_optimization_summary,
13029         ipa_reference_read_optimization_summary): New.
13030         (struct ipa_opt_pass_d pass_ipa_reference): Add
13031         optimization summary streaming.
13032         * lto-cgraph.c (referenced_from_this_partition_p,
13033         reachable_from_this_partition_p): New functions.
13034         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
13035         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
13036         * opts.c (decode_options): Enable ipa_reference.
13037         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
13038         * lto-streamer.h (referenced_from_this_partition_p,
13039         reachable_from_this_partition_p): Declare.
13041 2010-05-15  Richard Guenther  <rguenther@suse.de>
13043         PR tree-optimization/44038
13044         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
13045         taking the address of a V_C_E of a constant.
13047 2010-05-14  Jan Hubicka  <jh@suse.cz>
13049         * tree.h (memory_identifier_string): Remove.
13050         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
13051         (ipa_reference_global_vars_info_d): Remove statics_not_read and
13052         statics_not_written.
13053         (ipa_reference_optimization_summary_d): New structure.
13054         (ipa_reference_optimization_summary_t): New type and vector.
13055         (ipa_reference_vars_info_d): Embedd structures instead of using
13056         pointers.
13057         (reference_vars_to_consider): Remove out of GGC space.
13058         (module_statics_escape): Remove.
13059         (global_info_obstack): Rename to ...
13060         (optimization_summary_obstack): ... this one.
13061         (initialization_status_t): Remove.
13062         (memory_identifier_string): Remove.
13063         (get_reference_vars_info): Fix indenting.
13064         (set_reference_vars_info): Likewise.
13065         (get_reference_optimization_summary): New.
13066         (set_reference_optimization_summary): New.
13067         (get_global_reference_vars_info): Remove.
13068         (ipa_reference_get_read_global): Remove.
13069         (ipa_reference_get_written_global): Remove.
13070         (ipa_reference_get_not_read_global): Update.
13071         (ipa_reference_get_not_written_global): Update.
13072         (is_proper_for_analysis): Outlaw addressable.
13073         (propagate_bits): Update for new datastructures.
13074         (analyze_variable): Remove.
13075         (init_function_info): Update for new datastructures.
13076         (clean_function_local_data): Remove.
13077         (clean_function): Remove.
13078         (copy_global_bitmap): Use optimizations_summary_obstack.
13079         (duplicate_node_data): Duplicate optimization summary only.
13080         (remove_node_data): Remove optimization summary only.
13081         (generate_summary): Do not analyze variables; do not compute
13082         module_statics_escape; do not prune solutions by it.
13083         (read_write_all_from_decl): Fix typos in comments.
13084         (propagate): Doscover readonly and nonaddressable first;
13085         update for new datastructures; share global bitmaps.
13086         * ipa-reference.h (ipa_reference_get_read_global,
13087         ipa_reference_get_written_global): Remove.
13088         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
13089         * Makefile.in: Remove ipa-refereference from GT files.
13091 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
13093         PR debug/44112
13094         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
13095         for all SYMBOL_REF_DECLs.
13097 2010-05-14  Jan Hubicka  <jh@suse.cz>
13099         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
13100         (varpool_all_refs_explicit_p): New inline function.
13101         * ipa-reference.c: Update comment.
13102         (module_statics_written): Remove.
13103         (get_static_decl): Remove.
13104         (ipa_init): Do not initialize module_statics_written.
13105         (analyze_function): Likewise.
13106         (generate_summary): Likewise; do not compute module_statics_readonly
13107         and do not update variable flags.
13108         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
13109         * ipa.c: Inlucde flags.h
13110         (cgraph_local_node_p): New.
13111         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
13112         promote functions to local.
13113         (ipa_discover_readonly_nonaddressable_vars): New function.
13114         (function_and_variable_visibility): Use cgraph_local_node_p.
13115         * varpool.c (varpool_finalize_decl): Set force_output for
13116         DECL_PRESERVE_P vars.
13118 2010-05-14  Jan Hubicka  <jh@suse.cz>
13120         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
13122 2010-05-14  Richard Guenther  <rguenther@suse.de>
13124         PR tree-optimization/44119
13125         * tree-ssa-pre.c (eliminate): Properly mark replacement of
13126         a PHI node necessary.
13128 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
13130         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
13132 2010-05-14  Jason Merrill  <jason@redhat.com>
13134         PR c++/44127
13135         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
13136         (gimple_call_set_nothrow): New.
13137         * gimple.c (gimple_build_call_from_tree): Call it.
13138         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
13140         PR c++/44127
13141         * gimplify.c (gimplify_seq_add_stmt): No longer static.
13142         * gimple.h: Declare it.
13143         * gimple.c (gimple_build_eh_filter): No ops.
13145 2010-05-14  Jan Hubicka  <jh@suse.cz>
13147         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
13148         nodes already in queue.
13149         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
13150         re-enqueueing node.
13152 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
13154         PR debug/44136
13155         * cfgexpand.c (expand_debug_expr): If non-memory op0
13156         has BLKmode, return NULL.
13158 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
13160         * config.gcc: Add support for --with-cpu option for bdver1.
13161         * config/i386/i386.h (TARGET_BDVER1): New macro.
13162         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
13163         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
13164         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
13165         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
13166         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
13167         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
13168         (processor_type): Add PROCESSOR_BDVER1.
13169         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
13170         processor_type in config/i386/i386.h.
13171         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
13172         movaps <reg, reg> instead of movapd <reg, reg> when replacing
13173         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
13174         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
13175         to emit packed xor instead of packed double/packed integer
13176         xor for SSE and AVX when moving a zero value.
13177         * config/i386/sse.md: Add check for
13178         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
13179         movapd/movdqa for SSE and AVX.
13180         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
13181         single logical operations i.e and, or and xor instead of packed double
13182         logical operations for SSE and AVX.
13183         * config/i386/i386-c.c (ix86_target_macros_internal):
13184         Add PROCESSOR_BDVER1.
13185         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
13186         (has_fma4, has_xop): New.
13187         * config/i386/i386.c (bdver1_cost): New variable.
13188         (m_BDVER1): New macro.
13189         (m_AMD_MULTIPLE): Add m_BDVER1.
13190         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
13191         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
13192         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
13193         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
13194         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
13195         x86_tune_sse_partial_reg_dependency,
13196         x86_tune_sse_unaligned_load_optimal,
13197         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
13198         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
13199         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
13200         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
13201         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
13202         Enable/disable for bdver1.
13203         (processor_target_table): Add bdver1_cost.
13204         (cpu_names): Add bdver1.
13205         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
13206          processor_alias_table.
13207         (ix86_expand_vector_move_misalign): Change.
13208         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
13209         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
13210         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
13211         of movupd/movdqu for SSE and AVX.
13212         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
13213         (ix86_tune_adjust_cost): Add code for bdver1.
13214         (standard_sse_constant_opcode): Add check for
13215         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
13216         of packed double xor for SSE and AVX.
13218 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
13220         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
13221         result to unsigned.
13223 2010-05-14  Tristan Gingold  <gingold@adacore.com>
13225         * toplev.c (default_debug_hooks): Remove this variable.
13226         (process_options): Remove assignments to default_debug_hooks.
13228 2010-05-14  Martin Jambor  <mjambor@suse.cz>
13230         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
13231         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
13232         * langhooks.h (struct lang_hooks_for_decls): Removed field
13233         fold_obj_type_ref.
13234         * tree.c (free_lang_data): Remove assignment to
13235         lang_hooks.fold_obj_type_ref.
13236         * tree.def (OBJ_TYPE_REF): Update comment.
13238 2010-05-14  Richard Guenther  <rguenther@suse.de>
13240         PR tree-optimization/44124
13241         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
13243 2010-05-14  Alan Modra  <amodra@gmail.com>
13245         PR target/44075
13246         * config/rs6000/rs6000.c (struct machine_function): Reorder
13247         fields for better packing.  Add lr_save_state.
13248         (rs6000_ra_ever_killed): Return lr_save_state if set.
13249         (rs6000_emit_eh_reg_restore): Set lr_save_state.
13251 2010-05-13  Jan Hubicka  <jh@suse.cz>
13253         * varpool.c (decide_is_variable_needed): Drop code checking
13254         TREE_SYMBOL_REFERENCED.
13256 2010-05-13  Jan Hubicka  <jh@suse.cz>
13258         * final.c (output_addr_const): Do not call mark_decl_referenced.
13259         * cgraphunit.c (process_function_and_variable_attributes): Use
13260         mark_needed_node dirrectly.
13261         (assemble_thunk): Do not call mark_decl_referenced.
13263 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
13265         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
13267 2010-05-13  Jeff Law  <law@redhat.com>
13269         * ira-conflicts.c (print_allocno_conflicts): New function broken out
13270         from...
13271         (print_conflicts): Call print_allocno_conflicts.
13273 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
13275         PR debug/44104
13276         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
13277         if it is NULL.
13279 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
13281         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
13282         t-mingw-w64 or t-mingw-w32 for multilib configuration.
13283         * config/i386/t-mingw-w32: New.
13284         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
13286 2010-05-13  Martin Jambor  <mjambor@suse.cz>
13288         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
13289         gimple-fold.c).
13290         * gimple-fold.c (get_base_binfo_for_type): New function.
13291         (gimple_get_relevant_ref_binfo): Likewise.
13292         (gimple_fold_obj_type_ref_known_binfo): Likewise.
13293         (gimple_fold_obj_type_ref): Likewise.
13294         (fold_gimple_call): Simplify condition for folding virtual calls
13295         and call gimple_fold_obj_type_ref.
13296         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
13297         (gimple_fold_obj_type_ref_known_binfo): Likewise.
13299 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
13301         * config/rs6000/rs6000-protos.h
13302         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
13303         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
13304         (rs6000_debug_mode_dependent_address)
13305         (rs6000_mode_dependent_address_ptr): Likewise.
13307 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
13309         PR debug/43983
13310         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
13311         by SRA.
13312         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
13313         * tree-sra.c (create_access_replacement): Call unshare_expr before
13314         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
13315         * dwarf2out.c: Include tree-flow.h.
13316         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
13317         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
13318         Handle DW_OP_bit_piece.
13319         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
13320         construct_piece_list, adjust_piece_list): New functions.
13321         (add_var_loc_to_decl): Handle SRA optimized variables.
13322         Adjust for var_loc_note to loc field renaming.
13323         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
13324         in VAR_LOCATION note.
13325         (new_loc_descr_op_bit_piece): New function.
13326         (dw_sra_loc_expr): New function.
13327         (dw_loc_list): Use it.  Don't handle the last range after the
13328         loop, handle it inside of the loop.  Adjust for var_loc_note
13329         to loc field renaming.
13330         (add_location_or_const_value_attribute): Only special case
13331         single entry loc lists if loc is NOTE_P.  Adjust for
13332         var_loc_note to loc field renaming.
13333         (dwarf2out_var_location): Don't set newloc->var_loc_note
13334         and newloc->next here.
13336 2010-05-12  Jan Hubicka  <jh@suse.cz>
13338         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
13339         flag.
13340         * cgraph.h (cgraph_only_called_directly_p,
13341         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
13342         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
13343         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
13344         (assemble
13345         * ipa.c (cgraph_remove_unreachable_nodes): Use
13346         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
13347         flags.
13348         * tree-inline.c (copy_bb): Check address_taken flag.
13349         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
13350         externally_visible flag.
13352 2010-05-12  Jason Merrill  <jason@redhat.com>
13354         PR bootstrap/44048
13355         PR target/44099
13356         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
13357         * sdbout.c (plain_type_1): Likewise.
13358         * dwarf2out.c (is_base_type): Likewise.
13359         (gen_type_die_with_usage): Likewise.  Generate
13360         DW_TAG_unspecified_type for any LANG_TYPE.
13362 2010-05-12  Jan Hubicka  <jh@suse.cz>
13364         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
13365         indrect edges too.
13366         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
13367         (cgraph_clone_edge): Update.
13368         (cgraph_node_remove_callees): Remove indirect calls too.
13369         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
13370         (cgraph_create_indirect_edge): Update prototype.
13371         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
13372         is_proper_for_analysis.
13373         (add_new_function, visited_nodes, function_insertion_hook_holder,
13374         get_local_reference_vars_info, mark_address_taken, mark_address,
13375         mark_load, mark_store, check_asm_memory_clobber, check_call,
13376         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
13377         (ipa_init): Do not initialize visited_nodes;
13378         function_insertion_hook_holder.
13379         (analyze_variable): Rewrite.
13380         (analyze_function): Rewrite.
13381         (copy_local_bitmap): Remove.
13382         (duplicate_node_dat): Do not duplicate local info.
13383         (generate_summary): Simplify to only walk cgraph.
13384         (write_node_summary_p, ipa_reference_write_summary,
13385         ipa_reference_read_summary): Remove.
13386         (propagate): Do not remove function insertion;
13387         generate summary.
13388         (pass_ipa_reference): NULLify summary handling fields.
13389         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
13390         (input_edge): Input ecf_flags.
13391         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
13392         (update_indirect_edges_after_inlining): Ignore edges with unknown
13393         param.
13395 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
13397         * implicit-zee.c: New file.
13398         * tree-pass.h (pass_implicit_zee): Declare.
13399         * passes.c (init_optimization_passes): Add zee pass.
13400         * common.opt (fzee): New flag.
13401         * timevar.def (TV_ZEE): Define.
13402         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
13403         and beyond.
13404         * Makefile.in (implicit-zee.o): Add new build file.
13406 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
13407             Nathan Froyd  <froydnj@codesourcery.com>
13409         * c-common.c (sync_resolve_params): Remove write-only variable.
13411 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
13413         * target.h (struct gcc_target): Add mode_dependent_address_p field.
13414         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
13415         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
13416         * targhooks.c (default_mode_dependent_address_p): New function.
13417         * targhooks.h (default_mode_dependent_address_p): Declare function.
13418         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
13419         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
13420         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
13421         target hook. Change return type to bool.
13422         * recog.h (mode_dependent_address_p): Change return type to bool.
13424 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
13425             Nathan Froyd  <froydnj@codesourcery.com>
13427         * tree-mudflap.c (build_function_type_0, build_function_type_1,
13428         build_function_type_2, build_function_type_3): Remove.
13429         (mudflap_init): Use build_function_type_list.
13431 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
13432             Nathan Froyd  <froydnj@codesourcery.com>
13434         * coverage.c (build_fn_info_value): Call build_constructor instead of
13435         build_constructor_from_list.
13436         (build_ctr_info_value): Likewise.
13437         (build_gcov_info): Likewise.
13439 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
13441         * tree.c (build_constructor): Compute TREE_CONSTANT for the
13442         resultant constructor.
13443         (build_constructor_single): Don't set TREE_CONSTANT.
13444         (build_constructor_from_list): Don't compute TREE_CONSTANT.
13446 2010-05-12  Jan Hubicka  <jh@suse.cz>
13448         * cgraph.h (struct varpool_node): Add aux.
13449         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
13450         * varpool.c (varpool_remove_node): Do not remove initializer.
13451         (varpool_reset_queue): Export.
13452         (varpool_finalize_decl): Volatile vars are forced to be output.
13453         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
13454         replaced decl.
13455         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
13456         process_references, varpool_can_remove_if_no_refs): New functions.
13457         (cgraph_remove_unreachable_nodes): Handle variables too.
13459 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
13461         PR target/44088
13462         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
13464 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
13466         PR middle-end/44085
13467         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
13468         change value of ORT_TASK.
13469         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
13470         (omp_notice_threadprivate_variable): New function.
13471         (omp_notice_variable): Call it for threadprivate variables.
13472         If enclosing ctx is a task, print enclosing task rather than
13473         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
13474         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
13475         if task has untied clause.
13477         PR debug/42278
13478         * dwarf2out.c (base_type_die): Don't add name attribute here.
13479         (modified_type_die): Instead of sizetype use
13480         its underlying original type.  If a DW_TAG_base_type doesn't
13481         have name added, add __unknown__.
13482         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
13483         always call force_type_die instead.
13485 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
13487         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
13488         for __stack_chk_guard.
13490 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
13492         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
13493         don't call start_source_file debug hook here...
13494         (finish_options): ... but here, after outputting predefined and
13495         command line defines and undefs.
13497         PR middle-end/44071
13498         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
13499         no fallthru edge.
13500         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
13501         optimizing away empty bb with no successors, move over its
13502         footer chain to fallthru predecessor.
13503         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
13504         (rtl_split_edge): For asm goto call patch_jump_insn even if
13505         splitting fallthru edge.
13507         PR c++/44059
13508         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
13509         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
13510         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
13511         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
13512         on DW.ref.* decls.
13514         PR c++/44062
13515         * c-parser.c (c_parser_expression): Mark LHS of a comma
13516         expression as read if it is a decl, handled component or
13517         COMPOUND_EXPR with that on the RHS.
13518         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
13519         if it is a decl or handled component.
13521 2010-05-11  Jan Hubicka  <jh@suse.cz>
13523         * lto-symtab.c (lto_symtab_free): New function.
13524         * lto-streamer.h (lto_symtab_free): Declare.
13526 2010-05-11  Jan Hubicka  <jh@suse.cz>
13528         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
13529         that if function is needed it is reachable.
13530         (lto_output_node): See if it the function is reachable or referenced.
13531         (output_cgraph): Update call of lto_output_node.
13532         * lto-streamer.h (reachable_from_other_partition_p): Declare.
13534 2010-05-11  Jan Hubicka  <jh@suse.cz>
13536         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
13537         Mark as used.
13539 2010-05-11  Jan Hubicka  <jh@suse.cz>
13541         PR tree-optimize/44063
13542         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
13543         queue.
13544         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
13545         limits.
13546         (estimate_function_body_sizes): Compute sizes even when disregarding.
13548 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
13550         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
13552 2010-05-11  Jan Hubicka  <jh@suse.cz>
13554         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
13555         into every boundary.
13557 2010-05-11  Jan Hubicka  <jh@suse.cz>
13559         * matrix-reorg.c (matrix_reorg): Rebuild edges.
13561 2010-05-11  Jan Hubicka  <jh@suse.cz>
13563         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
13564         lto_streamer_cache_delete): Put nodes into heap.
13565         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
13566         heap.
13568 2010-05-11  Jan Hubicka  <jh@suse.cz>
13570         * cgraphbuild.c (cgraph_rebuild_references): New.
13571         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
13572         out extern inlines.
13573         * cgraph.h (cgraph_rebuild_references): Declare.
13574         * tree-inline.c (tree_function_versioning): Use it.
13575         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
13577 2010-05-11  Jan Hubicka  <jh@suse.cz>
13579         * cgraph.c: Include ipa-utils.h
13580         (cgraph_create_virtual_clone): Update references.
13581         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
13583 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
13585         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
13586         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
13587         cache size.
13589 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
13591         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
13593 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
13595         * gcc.c (execute): For -### don't quote arguments that
13596         contain just alphanumerics and _/-. characters.
13597         * doc/invoke.texi: Document that change for -###.
13599         PR debug/44023
13600         * df-problems.c (struct dead_debug): Add to_rescan field.
13601         (dead_debug_init): Clear to_rescan field.
13602         (dead_debug_finish): Rescan all debug insns in to_rescan
13603         bitmap and free the bitmap.
13604         (dead_debug_insert_before): Instead of rescanning debug insns
13605         immediately queue their rescanning until dead_debug_finish.
13606         (df_note_bb_compute): After dead_debug_add do continue instead
13607         of break.
13609 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
13611         PR debug/44028
13612         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
13613         clear also INSN_REG_USE_LIST.
13615 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13617         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
13619 2010-05-10  Jan Hubicka  <jh@suse.cz>
13621         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
13622         commited change.
13624 2010-05-10  Jan Hubicka  <jh@suse.cz>
13626         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
13627         Allocate encoders.
13628         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
13629         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
13630         (lto_streamer_cache_create): Init alloc pool.
13631         (lto_streamer_cache_delete): Free alloc pool.
13632         * lto-streamer.h: Include alloc pool.
13633         (lto_streamer_cache_d): Use alloc pool.
13634         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
13636 2010-05-10  Jan Hubicka  <jh@suse.cz>
13638         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
13639         * cgraphbuild.c: Include except.h
13640         (record_type_list, record_eh_tables): New function.
13641         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
13643 2010-05-10  Jan Hubicka  <jh@suse.cz>
13645         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
13646         __frame_dummy_init_array_entry, force_to_data): Attribute as used
13647         rather than unused.
13649 2010-05-10  Michael Matz  <matz@suse.de>
13651         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
13652         (can_reassociate_p): Use FLOAT_TYPE_P.
13653         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
13654         (vect_force_simple_reduction): ... this.
13655         * tree-parloops.c (gather_scalar_reductions): Use
13656         vect_force_simple_reduction.
13657         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
13658         vect_is_simple_reduction, add modify argument, if true rewrite
13659         "a-b" into "a+(-b)".
13660         (vect_is_simple_reduction, vect_force_simple_reduction): New
13661         functions.
13662         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
13664 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
13665             Vladimir Makarov  <vmakarov@redhat.com>
13667         PR rtl-optimization/44012
13668         * ira-build.c (remove_unnecessary_allocnos): Nullify
13669         regno_allocno_map of the removed allocno.
13671 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13673         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
13674         to /dev/null.
13675         * configure: Regenerate.
13677 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13679         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
13680         unused.
13681         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
13682         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
13683         support in Sun ld.
13684         * configure: Regenerate.
13686 2010-05-10  Richard Guenther  <rguenther@suse.de>
13688         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
13689         marked if the entry identifier is marked.
13691 2010-05-10  Richard Guenther  <rguenther@suse.de>
13693         * c-common.c (struct c_common_attributes): Add fnspec attribute.
13694         (handle_fnspec_attribute): New function.
13695         * gimple.h (gimple_call_return_flags): Declare.
13696         (gimple_call_arg_flags): Likewise.
13697         * gimple.c (gimple_call_arg_flags): New function.
13698         (gimple_call_return_flags): Likewise.
13699         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
13700         New argument flags.
13701         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
13702         return value flags.
13703         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
13704         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
13705         main work to ...
13706         (make_heapvar_for): ... this new function.
13707         (handle_rhs_call): Handle fnspec attribute argument specifiers.
13708         (handle_lhs_call): Likewise.
13709         (find_func_aliases): Adjust.
13711 2010-05-10  Richard Guenther  <rguenther@suse.de>
13713         PR tree-optimization/44050
13714         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
13716 2010-05-10  Wei Guozhi  <carrot@google.com>
13718         PR target/42879
13719         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
13721 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
13723         PR c/10676
13724         * c-typeck.c (lookup_field): Take a type directly.  Update
13725         recursive calls.
13726         (build_component_ref): Update call to lookup_field.
13727         (set_init_label): Use lookup_field to find initialized field.
13728         Handle returned list of fields like a sequence of designators.
13730 2010-05-09  Richard Guenther  <rguenther@suse.de>
13732         PR middle-end/44024
13733         * fold-const.c (tree_single_nonzero_warnv_p): Properly
13734         handle &FUNCTION_DECL.
13736 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
13738         PR c/4784
13739         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
13740         structures and unions recursively.
13741         (detect_field_duplicates): Move duplicate detection with a hash to
13742         detect_field_duplicates_hash.  Always use a hash if anonymous
13743         structures or unions are present.
13744         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
13745         give errors.
13747 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
13749         PR target/44046
13750         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
13751         detect Atom, Core 2 and Core i7.
13753 2010-05-09  Richard Guenther  <rguenther@suse.de>
13755         * gcc.c (store_arg): Handle temporary file deletion for
13756         joined arguments.
13758 2010-05-09  Richard Guenther  <rguenther@suse.de>
13760         PR middle-end/44043
13761         * ipa-inline.c (estimate_function_body_sizes): Return after
13762         disregarding inline limits.
13764 2010-05-09  Richard Guenther  <rguenther@suse.de>
13766         * gcc.c (store_arg): Revert last change.
13768 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
13770         PR middle-end/28685
13771         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
13772         (optimize_ops_list): Call it.
13774 2010-05-08  Richard Guenther  <rguenther@suse.de>
13776         PR tree-optimization/44030
13777         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
13778         NECESSARY flag if we propagate from a inserted expression.
13780 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
13782         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
13783         domain types as equal if they are both PLACEHOLDER_EXPRs.
13785 2010-05-08  Richard Guenther  <rguenther@suse.de>
13787         * lto-wrapper.c (run_gcc): Remove linker output from
13788         command line for LTRANS invocation.
13790 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
13792         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
13793         lto-macho as lto_binary_reader.
13794         * target.h (struct gcc_target): New hooks lto_start and lto_end.
13795         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
13796         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
13797         in lto_start and lto_end calls.
13798         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
13799         magic numbers.
13800         (scan_prog_file): Update is_elf_or_coff call.
13801         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
13803         * collect2.c (main): Fix enum comparison.
13805         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
13806         Add prototypes.
13807         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
13808         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
13809         and TARGET_ASM_LTO_END.
13810         * darwin.c: Include obstack.h and lto-streamer.h.
13811         (lto_section_names_offset, lto_section_names_obstack,
13812         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
13813         global variables.
13814         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
13815         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
13816         to a temporary file.
13817         (darwin_asm_lto_end): New function.  Restore asm_out_file.
13818         (darwin_asm_named_section): For LTO sections, replace the name with
13819         the offset of the section name in a string table, and build this
13820         table.
13821         (darwin_file_start): Initialize global vars for LTO support.
13822         (darwin_file_end): If output to asm_out_file was redirected, append it
13823         to the proper asm_out_file here.  Add the section names section.
13825 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
13827         * c-pragma.c (pending_weak_d, pending_weak): New.
13828         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
13829         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
13830         handle_pragma_weak): Update the uses of pending_weaks.
13832 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13834         PR documentation/44016
13835         * doc/standards.texi (Standards): Link to unversioned
13836         cxx0x_status.html page.
13838 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
13840         PR target/43708
13841         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
13842         in addition to TREE_USED, to avoid "set but unused" warnings.
13844 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
13846         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
13847         (is_loop_prefetching_profitable): Do not insert prefetches
13848         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
13849         times the prefetch ahead distance.
13851 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
13853         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
13854         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
13855         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
13856         the unroll_factor.
13858 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
13860         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
13861         a diagnostic info when the insn-to-mem ratio is too small.
13863 2010-05-07  Richard Guenther  <rguenther@suse.de>
13865         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
13866         the linker plugin.
13867         (store_arg): Queue temp_filename for deletion instead of
13868         the whole argument.
13870 2010-05-07  Richard Guenther  <rguenther@suse.de>
13872         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
13873         (run_gcc): Handle LTRANS phase invocation.
13874         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
13876 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
13878         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
13879         this is also meaningful on PARM_DECLs and RESULT_DECLs.
13881 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13883         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
13885 2010-05-07  Richard Guenther  <rguenther@suse.de>
13887         PR tree-optimization/44020
13888         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
13889         code when PRE is not yet initialized.
13891 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13893         * config/mips/dbxmdebug.h: Remove.
13894         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
13896 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
13898         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
13899         with null pointer and also warn about ordered comparison of zero with
13900         pointer if -Wextra.
13902 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
13904         * graphite-blocking.c
13905         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
13906         * graphite-clast-to-gimple.c
13907         (clast_to_gcc_expression): Same.
13908         (precision_for_value): Same.
13909         (precision_for_interval): Same.
13910         (gcc_type_for_interval): Same.
13911         (graphite_create_new_guard): Same.
13912         (compute_bounds_for_level): Same.
13913         (graphite_create_new_loop_guard): Same.
13914         * graphite-interchange.c
13915         (build_linearized_memory_access): Same.
13916         (pdr_stride_in_loop): Same.
13917         (memory_strides_in_loop_1): Same.
13918         (memory_strides_in_loop): Same.
13919         (extend_scattering): Same.
13920         (psct_scattering_dim_for_loop_depth): Same.
13921         (pbb_number_of_iterations): Same.
13922         * graphite-poly.h
13923         (debug_iteration_domains): Same.
13924         * graphite-ppl.c
13925         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
13926         (ppl_set_inhomogeneous_gmp): Same.
13927         (ppl_strip_loop): Same.
13928         (ppl_lexico_compare_linear_expressions): Same.
13929         (ppl_read_polyhedron_matrix): Same.
13930         (ppl_max_for_le_pointset): Same.
13931         * graphite-ppl.h
13932         (ppl_read_polyhedron_matrix): Same.
13933         (tree_int_to_gmp): Same.
13934         (gmp_cst_to_tree): Same.
13935         (ppl_set_inhomogeneous): Same.
13936         (ppl_set_inhomogeneous_tree): Same.
13937         (ppl_set_coef): Same.
13938         (ppl_set_coef_tree): Same.
13939         * graphite-sese-to-poly.c
13940         (build_pbb_scattering_polyhedrons): Same.
13941         (build_scop_scattering): Same.
13942         (scan_tree_for_params_right_scev): Same.
13943         (scan_tree_for_params): Same.
13944         (find_params_in_bb): Same.
13945         (find_scop_parameters): Same.
13946         (add_upper_bounds_from_estimated_nit): Same.
13947         (build_loop_iteration_domains): Same.
13948         (add_condition_to_domain): Same.
13949         (pdr_add_memory_accesses): Same.
13951 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
13953         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
13954         CLooG's value_* macros to their respective mpz_* counterparts.
13955         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
13956         (graphite_create_new_loop_guard): Same.
13957         * graphite-interchange.c (build_linearized_memory_access): Same.
13958         (pdr_stride_in_loop): Same.
13959         (memory_strides_in_loop_1): Same.
13960         (1st_interchange_profitable_p): Same.
13961         * graphite-poly.c (extend_scattering): Same.
13962         (psct_scattering_dim_for_loop_depth): Same.
13963         (pbb_number_of_iterations): Same.
13964         (pbb_number_of_iterations_at_time): Same.
13965         * graphite-poly.h (new_1st_loop): Same.
13966         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
13967         (oppose_constraint): Same.
13968         (insert_constraint_into_matrix): Same.
13969         (ppl_set_inhomogeneous_gmp): Same.
13970         (ppl_set_coef_gmp): Same.
13971         (ppl_strip_loop): Same.
13972         (ppl_lexico_compare_linear_expressions): Same.
13973         (ppl_max_for_le_pointset): Same.
13974         (ppl_min_for_le_pointset): Same.
13975         (ppl_build_realtion): Same.
13976         * graphite-ppl.h (gmp_cst_to_tree): Same.
13977         (ppl_set_inhomogeneous): Same.
13978         (ppl_set_inhomogeneous_tree): Same.
13979         (ppl_set_coef): Same.
13980         (ppl_set_coef_tree): Same.
13981         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
13982         (build_scop_scattering): Same.
13983         (add_value_to_dim): Same.
13984         (scan_tree_for_params_right_scev): Same.
13985         (scan_tree_for_params_int): Same.
13986         (scan_tree_for_params): Same.
13987         (find_params_in_bb): Same.
13988         (find_scop_parameters): Same.
13989         (add_upper_bounds_from_estimated_nit): Same.
13990         (build_loop_iteration_domains): Same.
13991         (create_linear_expr_from_tree): Same.
13992         (add_condition_to_domain): Same.
13993         (pdr_add_memory_accesses): Same.
13995 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
13996             Jason Merrill  <jason@redhat.com>
13998         * c-common.c (c_common_reswords): Add nullptr.
13999         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
14000         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
14001         (gen_type_die_with_usage): Likewise.
14002         * dbxout.c (dbxout_type): Likewise.
14003         * sdbout.c (plain_type_1): Likewise.
14005 2010-05-06  Jason Merrill  <jason@redhat.com>
14007         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
14008         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
14009         ret appropriately.
14010         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
14012         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
14013         stripping WITH_SIZE_EXPR.
14014         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
14015         change.
14017 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14019         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
14020         list of obsolete configurations.
14021         Disabled check for obsolete configurations.
14022         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
14023         Removed support for previous versions.
14024         * config/mips/iris.h: Removed.
14025         * config/mips/iris5.h: Removed.
14026         * config/mips/iris6.h: Merged old iris.h contents.
14027         (TARGET_IRIX): Removed.
14028         (DRIVER_SELF_SPECS): Removed mabi=32.
14029         (IDENT_ASM_OP): Removed undef.
14030         (STARTFILE_SPEC): Removed mabi=32.
14031         (ENDFILE_SPEC): Likewise.
14032         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
14033         (MACHINE_TYPE): Update for IRIX 6.5.
14034         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
14035         TARGET_IRIX by TARGET_IRIX6.
14036         (mips_file_start): Likewise.
14037         (mips_output_external): Remove IRIX 5/6 O32 support.
14038         (mips_output_function_prologue): Likewise.
14039         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
14040         TARGET_IRIX6.
14041         (TARGET_CPU_CPP_BUILTINS): Likewise.
14042         (TARGET_IRIX): Removed.
14043         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
14044         (MULTILIB_DIRNAMES): Removed 32.
14045         (MULTILIB_OSDIRNAMES): Removed ../lib.
14046         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
14047         (Specific, mips-sgi-irix5): Document removal.
14048         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
14049         Remove references to older IRIX 6 releases and the O32 ABI.
14051 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
14053         PR bootstrap/43994
14054         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
14055         instead of DF_REF_REAL_REG.
14057 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
14059         PR target/43888
14060         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
14061         handling to still return true for x64 targets.
14063 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
14065         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
14067 2010-05-06  Jan Hubicka  <jh@suse.cz>
14069         PR tree-optimization/43791
14070         * ipa-inline.c (update_caller_keys): Remove bogus
14071         disregard_inline_limits check.
14073 2010-05-06  Michael Matz  <matz@suse.de>
14075         PR tree-optimization/43984
14076         * tree-ssa-pre.c (inserted_phi_names): Remove.
14077         (inserted_exprs): Change to bitmap.
14078         (create_expression_by_pieces): Set bits, don't append to vector.
14079         (insert_into_preds_of_block): Don't handle inserted_phi_names.
14080         (eliminate): Don't look at inserted_phi_names, remove deleted
14081         insns from inserted_exprs.
14082         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
14083         (init_pre, fini_pre): Allocate and free bitmaps.
14084         (execute_pre): Insert insns on edges before elimination.
14086 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
14088         * tree.c (initializer_zerop): Handle STRING_CST.
14090 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14092         PR 40989
14093         * doc/invoke.texi (Wimplicit): Document as C only.
14094         * opts.c (common_handle_option): Add argument kind.
14095         (handle_option): Rename as read_cmdline_option. Factor out code to...
14096         (handle_option): ... here. New.
14097         (handle_options): Rename as read_cmdline_options.
14098         (decode_options): Update call.
14099         (set_option): Use option index instead of option pointer. Classify
14100         diagnostics correctly.
14101         (enable_warning_as_error): Call handle_option.
14102         * opts.h (set_option): Update declaration.
14103         (handle_option): Declare.
14104         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
14105         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
14106         * c-opts.c (set_Wimplicit): Delete.
14107         (c_family_lang_mask): New static constant.
14108         (c_common_handle_option): Add argument kind. Use handle_option
14109         instead of set_Wimplicit.
14110         (c_common_post_options): warn_implicit and warn_implicit_int
14111         are disabled by default.
14112         * c-common.c (warn_implicit): Do not define here.
14113         * c-common.h (warn_implicit): Do not declare here.
14114         (c_common_handle_option): Update declaration.
14115         * lto-opts.c (lto_reissue_options): Update call to set_option.
14117 2010-05-06  Richard Guenther  <rguenther@suse.de>
14119         PR tree-optimization/43571
14120         * domwalk.c (walk_dominator_tree): Walk the dominator
14121         sons in more optimal order.
14123 2010-05-06  Richard Guenther  <rguenther@suse.de>
14125         PR tree-optimization/43934
14126         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
14127         (stmt_cost): Likewise.
14128         (extract_true_false_args_from_phi): New helper.
14129         (determine_max_movement): For PHI nodes verify we can hoist them
14130         and compute their cost.
14131         (determine_invariantness_stmt): Handle PHI nodes.
14132         (move_computations_stmt): Likewise.  Hoist PHI nodes in
14133         if-converted form using COND_EXPRs.
14134         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
14135         (tree_ssa_lim): Likewise.
14136         * tree-flow.h (tree_ssa_lim): Adjust prototype.
14137         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
14139 2010-05-06  Richard Guenther  <rguenther@suse.de>
14141         PR tree-optimization/43987
14142         * tree-ssa-structalias.c (could_have_pointers): For possibly
14143         address-taken variables force pointers to be recorded.
14144         (create_variable_info_for_1): Likewise.
14145         (push_fields_onto_fieldstack): Pass in wheter all fields
14146         must have pointers.
14147         (find_func_aliases): Query types instead of vars whether
14148         they contain pointers where appropriate.
14150 2010-05-06  Jan Hubicka  <jh@suse.cz>
14152         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
14153         (record_reference, mark_address, mark_load, mark_store): Record
14154         references.
14155         (record_references_in_initializer): Update call of record_references.
14156         (rebuild_cgraph_edges): Remove all references before rebuiding.
14157         * cgraph.c (cgraph_create_node): Clear ref list.
14158         (cgraph_remove_node): Remove references.
14159         (dump_cgraph_node): Dump references.
14160         (cgraph_clone_node): Clone references.
14161         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
14162         (struct cgraph_node, varpool_node): Add ref_lst.
14163         * ipa-ref.c: New file.
14164         * ipa-ref.h: New file.
14165         * ipa-ref-inline.h: New file.
14166         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
14167         (referenced_from_other_partition_p): New function.
14168         (lto_output_varpool_node): Take set arugment; call
14169         referenced_from_other_partition.
14170         (lto_output_ref): New.
14171         (add_references): New.
14172         (output_refs): New.
14173         (output_cgraph): Compute boundary based on references; output refs.
14174         (output_varpool): Accept cgraph_node_set argument.
14175         (input_ref): New.
14176         (input_refs): New.
14177         (input_cgraph): Call input_refs.
14178         * lto-section-in.c (lto_section_name): Add refs.
14179         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
14180         (ipa-ref.o): New file.
14181         * varpool.c (varpool_node): Clear ipa ref list.
14182         (varpool_remove_node): Remove references.
14183         (dump_varpool_node): Dump references.
14184         (varpool_assemble_decl): Only compile finalized ones.
14185         (varpool_extra_name_alias): Initialize ref list.
14186         * lto-streamer.c (lto-get_section_name): Add .refs section.
14187         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
14188         (referenced_from_other_partition_p): Declared.
14190 2010-05-06  Ira Rosen  <irar@il.ibm.com>
14192         PR tree-optimization/43901
14193         * tree-vect-stmts.c (vectorizable_call): Assert that vector
14194         type is not NULL if it's transformation phase, and return
14195         FALSE if it's analysis.
14196         (vectorizable_conversion, vectorizable_operation,
14197         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
14199 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
14201         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
14202         Delete.
14203         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
14204         New define.
14205         * config/mips/mips-protos.h
14206         (mips_small_register_classes_for_mode_p): Delete prototype.
14208 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
14210         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
14211         * config/arm/arm.c (multiple_operation_profitable_p,
14212         compute_offset_order): New static functions.
14213         (load_multiple_sequence, store_multiple_sequence): Use them.
14214         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
14215         memory offsets, not register numbers.
14216         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
14218 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
14220         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
14221         (get_pending_sizes, put_pending_size, put_pending_sizes):
14222         Update the uses of pending_sizes.
14223         * c-decl.c (store_parm_decls): Likewise.
14224         * c-tree.h (struct c_arg_info): Likewise.
14225         * tree.h: Update the prototype for get_pending_sizes and
14226         put_pending_sizes.
14228 2010-05-05  Jason Merrill  <jason@redhat.com>
14230         PR debug/43370
14231         * c-common.c (handle_aligned_attribute): Respect
14232         ATTR_FLAG_TYPE_IN_PLACE.
14234         PR testsuite/43758
14235         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
14236         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
14237         (TARGET_INITIALIZER): Use it.
14238         * c-common.c (attribute_takes_identifier_p): Call it.
14239         * c-common.h: Update prototype.
14240         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
14241         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
14243 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
14245         PR debug/43950
14246         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
14247         DW_ID_down_case for Fortran compilation units.
14249 2010-05-05  Jan Hubicka  <jh@suse.cz>
14251         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
14252         handle aliases.
14254 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
14256         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
14257         a variable-sized RESULT_DECL.
14259 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
14261         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
14263 2010-05-05  Jason Merrill  <jason@redhat.com>
14265         PR c++/43787
14266         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
14267         returns GS_OK.
14268         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
14270 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
14271             Jakub Jelinek  <jakub@redhat.com>
14273         PR debug/43478
14274         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
14275         (dead_debug_init, dead_debug_finish): New functions.
14276         (dead_debug_add, dead_debug_insert_before): Likewise.
14277         (df_note_bb_compute): Initialize a dead_debug object, add dead
14278         debug uses to it, insert debug bind insns before death insns,
14279         reset debug insns that refer to pending uses at the end.
14280         * rtl.h (make_debug_expr_from_rtl): New prototype.
14281         * varasm.c (make_debug_expr_from_rtl): New function.
14283 2010-05-05  Jan Hubicka  <jh@suse.cz>
14285         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
14286         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
14287         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
14288         lto_varpool_encoder_deref, lto_varpool_encoder_size,
14289         lto_varpool_encoder_encode_initializer_p,
14290         lto_set_varpool_encoder_encode_initializer): New functions.
14291         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
14292         call output_varpool.
14293         (input_varpool_node): Do not always set analyzed.
14294         (input_cgraph_1): Return vector of cgraph nodes.
14295         (input_varpool_1): Return vector of varpools.
14296         (input_cgraph): Free the vectors.
14297         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14298         output only initializers needed.
14299         (lto_output): Only call output_cgraph.
14300         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
14301         * lto-section-out.c (lto_new_out_decl_state): Initialize
14302         state->varpool_node_encoder.
14303         * lto-streamer.h (lto_varpool_encoder_d): New.
14304         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
14305         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
14306         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
14307         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
14308         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
14309         Declare.
14310         (output_varpool, input_varpool): Remove declarations.
14312 2010-05-05  Jan Hubicka  <jh@suse.cz>
14314         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
14315         with body can prevail.
14317 2010-05-05  Jan Hubicka  <jh@suse.cz>
14319         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
14320         size.
14322 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
14324         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
14326         * gengtype.h (erro_at_line): Constify pos argument.
14328         * gengtype.c: Include hashtab.h.
14329         (enum gc_used): Document GC_MAYBE_POINTED_TO.
14330         (error_at_line): Constify pos argument.
14331         (do_typedef): Initialize p->opt field.
14332         (get_file_gtfilename): Fix comment typo.
14333         (struct walk_type_data): Constify line field.
14334         (get_output_file_for_structure): New function.
14335         (write_local_func_for_structure): Constify orig_s argument.
14336         Use get_output_file_for_structure.
14337         (write_func_for_structure): Use get_output_file_for_structure.
14338         (INDENT): New define.
14339         (dump_pair, dump_type, dump_type_list, dump_typekind)
14340         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
14341         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
14342         functions.
14343         (seen_types): New variable.
14344         (main): New variable do_dump.  Process "-d" command line option.
14345         Call dump_everything if dump requested.
14347 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
14349         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
14350         in a temporary instead of invoking the macro multiple times.
14351         (track_expr_p): Likewise.
14353 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
14355         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
14356         per new semantics.
14357         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
14358         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
14359         conditions for printing notes.
14360         * common.opt (-Wcoverage-mismatch): Allow negative, default to
14361         true, update documentation.
14362         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
14364 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
14366         PR c/43981
14367         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
14368         on dimen.
14370 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
14372         PR target/43799
14373         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
14374         (*sse_prologue_save_insn1): Likewise.
14375         (SSE prologue save splitter): Likewise.
14377 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
14379         * tree.c (free_lang_data_in_one_sizepos): New inline function.
14380         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
14381         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
14382         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
14383         all decls.  Call it on DECL_FIELD_OFFSET of fields.
14384         (find_decls_types_r): Follow DECL_VALUE_EXPR.
14385         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
14387 2010-05-04  Martin Jambor  <mjambor@suse.cz>
14389         * tree-sra.c (build_access_from_expr_1): The first parameter type
14390         changed to simple tree.
14391         (build_access_from_expr): Likewise, gsi parameter was eliminated.
14392         (scan_assign_result): Renamed to assignment_mod_result, enum elements
14393         renamed as well.
14394         (build_accesses_from_assign): Removed all parameters except for a
14395         simple gimple statement.  Now returns a simple bool.
14396         (scan_function): All non-analysis parts moved to separate functions
14397         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
14398         parameters and updated both callers.
14399         (sra_modify_expr): Removed parameter data.
14400         (sra_modify_function_body): New function.
14401         (perform_intra_sra): Call sra_modify_function_body to modify the
14402         function body.
14403         (replace_removed_params_ssa_names): Parameter data changed into
14404         adjustments vector.
14405         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
14406         changed the parameter dont_convert to convert with the opposite
14407         meaning.
14408         (sra_ipa_modify_assign): Parameter data changed into adjustments
14409         vector, return value changed to bool.
14410         (ipa_sra_modify_function_body): New function.
14411         (sra_ipa_reset_debug_stmts): Updated a comment.
14412         (modify_function): Use ipa_sra_modify_function_body to modify function
14413         body.
14415 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
14417         PR middle-end/43671
14418         * alias.c (true_dependence): Handle the same VALUE in x and mem.
14419         (canon_true_dependence): Likewise.
14420         (write_dependence_p): Likewise.
14422 2010-05-04  Jan Hubicka  <jh@suse.cz>
14424         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
14425         * cgraphbuild.c: Include ipa-utils.h
14426         (record_reference_ctx): New struct.
14427         (record_reference): Simplify to work on initializers; not statements.
14428         (mark_address, mark_load, mark_store): New.
14429         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
14430         walk PHI nodes too.
14431         (record_references_in_initializer): Update use of record_reference.
14432         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
14433         walk PHI nodes too.
14435 2010-05-04  Jan Hubicka  <jh@suse.cz>
14437         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
14438         node will be removed anyway.
14439         (lto_varpool_replace_node): Allow also unanalyzed nodes;
14440         relink aliases of node into prevailing node.
14441         * varpool.c (varpool_remove_node): Remove aliases properly;
14442         when removing node, remove all its aliases too; remove DECL_INITIAL
14443         of removed node; ggc_free the varpool node.
14445 2010-05-04  Richard Guenther  <rguenther@suse.de>
14447         PR tree-optimization/43879
14448         * tree-ssa-structalias.c (alias_get_name): Use
14449         DECL_ASSEMBLER_NAME if available.
14450         (create_function_info_for): Return the varinfo node.
14451         (ipa_pta_execute): Associate same-body aliases and extra names
14452         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
14454 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
14456         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
14458 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
14460         PR bootstrap/43964
14461         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
14462         only if HONOR_REG_ALLOC_ORDER is not defined.
14464 2010-05-04  Richard Guenther  <rguenther@suse.de>
14466         PR tree-optimization/43949
14467         * tree-vrp.c (extract_range_from_binary_expr): Only handle
14468         TRUNC_MOD_EXPR.
14470 2010-04-26  Jason Merrill  <jason@redhat.com>
14472         * c.opt (-fstrict-enums): New.
14473         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
14475 2010-05-03  David Ung  <davidu@mips.com>
14476             James E. Wilson  <wilson@codesourcery.com>
14478         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
14479         emit the trap instruction before the divide for TUNE_74K.
14481 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
14483         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
14484         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
14485         based on the above, for new target hook.
14487         * hooks.c (hook_bool_mode_true): New generic hook.
14488         * hooks.h (hook_bool_mode_true): Add prototype.
14490         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
14491         target hook.
14492         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
14493         target hook, set to hook_bool_mode_false.
14494         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
14495         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
14496         with targetm.small_register_classes_for_mode_p.
14497         (find_reusable_reload): Likewise.
14498         (combine_reloads): Likewise.
14499         * reload1.c (reload_as_needed): Likewise.
14500         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
14501         * ifcvt.c (noce_process_if_block, check_cond_move_block,
14502         dead_or_predicable): Likewise.
14503         * regmove.c (optimize_reg_copy_1): Likewise.
14504         * calls.c (prepare_call_address): Likewise.
14505         (precompute_register_parameters): Likewise.
14507         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
14508         hook definition.
14509         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
14510         implementation of the hook that considers all register classes
14511         small except for SH64.
14512         (sh_override_options): Use the new hook.
14513         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
14514         Add prototype.
14516         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
14517         hook definition.
14518         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
14519         implementation of the hook that considers all register classes
14520         small for THUMB1.
14521         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
14522         Add prototype.
14524         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
14525         hook definition.
14526         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
14527         implementation of the hook that considers all register classes
14528         small for MIPS16.
14529         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
14530         Add prototype.
14532         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
14533         hook definition.
14534         * config/m32c/m32c.h: Likewise.
14535         * config/pdp11/pdp11.h: Likewise.
14536         * config/avr/avr.h: Likewise.
14537         * config/xtensa/xtensa.h: Likewise.
14538         * config/m68hc11/m68hc11.h: Likewise.
14539         * config/mn10300/mn10300.h: Likewise.
14540         * config/mcore/mcore.h: Likewise.
14541         * config/h8300/h8300.h: Likewise.
14542         * config/bfin/bfin.h: Likewise.
14544         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
14545         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
14547 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
14549         * double-int.h (tree_to_double_int): Remove macro.
14550         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
14551         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
14552         (tree_to_double_int): New function.
14553         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
14554         Move ...
14555         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
14557 2010-05-03  Richard Guenther  <rguenther@suse.de>
14559         PR tree-optimization/43971
14560         * tree-ssa-structalias.c (get_constraint_for_1): Fix
14561         constraints in the !flag_delete_null_pointer_checks case.
14563 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
14565         PR debug/43972
14566         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
14567         result mode matches original rtl mode.
14569 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
14571         PR target/43888
14572         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
14574 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
14576         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
14577         when processing flag options.
14579 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
14581         * gcov-iov.c (main): Change format string placeholder
14582         from %#08x to 0x%08x.
14583         * genchecksum.c (dosum): Change format string placeholder
14584         from %#02x to 0x%02x.
14586 2010-05-02  Richard Guenther  <rguenther@suse.de>
14588         PR tree-optimization/43879
14589         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
14591 2010-05-02  Bruno Haible  <bruno@clisp.org>
14593         * doc/extend.texi (Function Attributes): Fix a typo.
14595 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
14597         Revert:
14598         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
14599         placeholder from 0x%x to %#x.
14600         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
14601         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
14602         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
14603         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
14604         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
14605         * config/i386/i386.c (ix86_target_string): Ditto.
14606         * config/i386/i386.c (output_pic_addr_const): Ditto.
14607         (print_operand): Ditto.
14609 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
14611         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
14612         placeholder from 0x%x to %#x.
14613         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
14614         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
14615         (ASM_OUTPUT_DEBUG_DATA): Ditto.
14616         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
14617         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
14618         * optc-gen.awk: Ditto.
14619         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
14620         (HOST_WIDE_INT_PRINT_HEX): Ditto.
14621         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
14622         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
14624 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
14626         * target.h (struct calls): Add function_value_regno_p field.
14627         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
14628         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
14629         * targhooks.c (default_function_value_regno_p): New function.
14630         * targhooks.h (default_function_value_regno_p): Declare function.
14631         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
14632         * builtins.c. (apply_result_size): (Ditto.).
14633         * combine.c. (likely_spilled_retval_p): (Ditto.).
14634         * mode-switching.c. Include 'target.h'.
14635         (create_pre_exit): Use function_value_regno_p hook.
14636         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
14637         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
14638         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
14640         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
14641         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
14642         (ix86_function_value_regno_p): Declare as static, change argument
14643         type to const unsigned int.
14644         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
14646 2010-05-01  Richard Guenther  <rguenther@suse.de>
14648         PR tree-optimization/43949
14649         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
14650         types.
14651         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
14653 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
14655         * rtl.h (CONST_DOUBLE_P): Define.
14656         (rtx_to_double_int): Declare.
14657         * emit-rtl.c (rtx_to_double_int): New function.
14658         * dwarf2out.c (insert_double): New function.
14659         (loc_descriptor, add_const_value_attribute): Clean up, use
14660         rtx_to_double_int and insert_double functions.
14662 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
14664         * doc/extend.texi (Inline): Add missing return keyword to examples.
14665         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
14666         "command-line".
14668 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
14670         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
14671         the variable part of the offset as well.  Use highest_pow2_factor for
14672         all alignment checks.
14674 2010-04-30  Richard Guenther  <rguenther@suse.de>
14676         PR tree-optimization/43879
14677         * tree-ssa-structalias.c (type_could_have_pointers): Functions
14678         can have pointers.
14680 2010-04-30  Jan Hubicka  <jh@suse.cz>
14682         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
14683         varpool.
14684         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
14686 2010-04-30  Jan Hubicka  <jh@suse.cz>
14688         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
14689         New.
14690         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
14691         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
14692         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
14693         cgraph_node_set_needs_ltrans_p): Remove.
14695 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
14697         * sdbout.c: Include vec.h, do not include varray.h.
14698         (deferred_global_decls, sdbout_global_decl,
14699         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
14700         * toplev.c: Do not include varray.h.
14701         (dump_memory_report): Do not dump VARRAY statistics.
14702         * gengtype.c (open_base_file): Ignore varray.h.
14703         * Makefile.in: Update for abovementioned changes.
14704         Remove all traces of varray.c and varray.h.
14705         * varray.c: Remove file.
14706         * varray.h: Remove file.
14708 2010-04-30  Jan Hubicka  <jh@suse.cz>
14710         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
14711         references.
14713 2010-04-30  Jan Hubicka  <jh@suse.cz>
14715         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
14716         needed.
14718 2010-04-30  Richard Guenther  <rguenther@suse.de>
14720         * tree-ssa-structalias.c (get_constraint_for_1): Generate
14721         constraints for CONSTRUCTOR.
14723 2010-04-30  Richard Guenther  <rguenther@suse.de>
14725         PR lto/43946
14726         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
14727         first after all lowering passes.
14729 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
14731         * toplev.c: Include varray.h for statistics dumping.
14732         * tree.h: Do not declare varray_head_tag.
14733         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
14734         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
14735         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
14736         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
14737         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
14738         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
14739         c-common.c, c-common.h, reg-stack.c, basic-block.h,
14740         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
14741         include varray.h.
14742         * Makefile.in: Update for abovementioned changes.
14744 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
14746         PR debug/43942
14747         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
14749 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
14751         * config/picochip/picochip.c (picochip_legitimize_address): Define.
14752         Use this function to do machine-specific conversion.
14753         (picochip_legitimize_reload_address): Likewise.
14754         (picochip_legitimate_address_p): Check valid base register only if
14755         strict.
14756         (picochip_check_conditional_copy): Check for modw only if opnd is
14757         register.
14758         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
14759         to call the function in c.
14760         * config/picochip/picochip-protos.h
14761         (picochip_legitimize_reload_address): Define.
14762         * config/picochip/picochip.md (supported_compare1): Define.
14764 2010-04-30  Jan Hubicka  <jh@suse.cz>
14766         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
14767         (cgraph_global_info): Remove inlined.
14768         (LTO_cgraph_tag_names): Remove.
14769         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
14770         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
14771         simplify cgraph tags and document.
14772         (lto_output_node): Use only LTO_cgraph_unavail_node and
14773         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
14774         for_functions_valid, global info, process and output flags.
14775         (input_overwrite_node): Initialize estimated stack size and
14776         estimated growth.  Do not read flags we no longer store.
14777         (input_node): Likewise do not read info no longer stored.
14778         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
14779         flag.
14781 2010-04-30  Richard Guenther  <rguenther@suse.de>
14783         PR tree-optimization/43879
14784         * tree-ssa-structalias.c (get_constraint_for_1): Properly
14785         handle non-zero initializers.
14787 2010-04-30  Richard Guenther  <rguenther@suse.de>
14789         * builtins.c (fold_builtin_1): Delete free (0).
14791 2010-04-29  Jan Hubicka  <jh@suse.cz>
14793         * gengtype.c (open_base_files): Add lto-streamer.h
14794         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
14795         (pass_ipa_cp): GGC collect.
14796         * toplev. (compile_file): Do not output symbols.
14797         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
14798         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
14799         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
14800         * lto-section-in.c: Include ggc.h
14801         (lto_new_in_decl_state): Alloc in GGC.
14802         (lto_delete_in_decl_state): Likewise.
14803         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
14804         Collect.
14806 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
14808         PR target/42895
14809         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
14810         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
14811         (HONOR_REG_ALLOC_ORDER): Describe new macro.
14812         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
14813         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
14814         account only if HONOR_REG_ALLOC_ORDER is not defined.
14815         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
14816         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
14818 2010-04-29  Jon Grant  <04@jguk.org>
14820         * collect2.c (vflag): Change type from int to bool.
14821         (debug): Likewise.
14822         (helpflag): New global bool.
14823         (main): Set vflag and debug with boolean, not integer truth values.
14824         Accept new "--help" option and output usage text if found.
14825         * collect2.h (vflag): Update prototype.
14826         (debug): Likewise.
14828 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
14830         PR bootstrap/43936
14831         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
14833 2010-04-29  Richard Guenther  <rguenther@suse.de>
14835         PR bootstrap/43935
14836         * plugin.h (invoke_plugin_callbacks): Annotate arguments
14837         with ATTRIBUTE_UNUSED.
14839 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
14841         PR target/43921
14842         * config/i386/i386.c (get_some_local_dynamic_name): Replace
14843         INSN_P with NONDEBUG_INSN_P.
14844         (distance_non_agu_define): Likewise.
14845         (distance_agu_use): Likewise.
14847 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
14849         From Dominique d'Humieres  <dominiq@lps.ens.fr>
14850         PR bootstrap/43858
14851         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
14852         test_set.
14854 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
14856         * plugin.h (invoke_plugin_callbacks): New inline function.
14857         * plugin.c (flag_plugin_added): New global flag.
14858         (add_new_plugin): Initialize above flag.
14859         (invoke_plugin_callbacks): Rename to ...
14860         (invoke_plugin_callbacks_full): ... this.
14862 2010-04-28  Jan Hubicka  <jh@suse.cz>
14864         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
14865         (lto_varpool_replace_node): New.
14866         (lto_symtab_resolve_symbols): Resolve varpool nodes.
14867         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
14868         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
14869         * cgraph.h (varpool_node_ptr): New type.
14870         (varpool_node_ptr): New vector.
14871         (varpool_node_set_def): New structure.
14872         (varpool_node_set): New type.
14873         (varpool_node_set): New vector.
14874         (varpool_node_set_element_def): New structure.
14875         (varpool_node_set_element, const_varpool_node_set_element): New types.
14876         (varpool_node_set_iterator): New type.
14877         (varpool_node): Add prev pointers, add used_from_other_partition,
14878         in_other_partition.
14879         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
14880         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
14881         varpool_get_node, varpool_remove_node): Declare.
14882         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
14883         varpool_node_set_size): New inlines.
14884         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
14885         * tree-pass.h (varpool_node_set_def): Forward declare.
14886         (ipa_opt_pass_d): Summary writting takes vnode sets too.
14887         (ipa_write_optimization_summaries): Update prototype.
14888         * ipa-cp.c (ipcp_write_summary): Update.
14889         * ipa-reference.c (ipa_reference_write_summary): Update.
14890         * lto-cgraph.c (lto_output_varpool_node): New static function.
14891         (output_varpool): New function.
14892         (input_varpool_node): New static function.
14893         (input_varpool_1): New function.
14894         (input_cgraph): Input varpool.
14895         * ipa-pure-const.c (pure_const_write_summary): Update.
14896         * lto-streamer-out.c (lto_output): Update, output varpool too.
14897         (write_global_stream): Kill WPA hack.
14898         (produce_asm_for_decls): Update.
14899         (output_alias_pair_p): Handle variables.
14900         (output_unreferenced_globals): Output only needed partition of varpool.
14901         * ipa-inline.c (inline_write_summary): Update.
14902         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
14903         cgraph.
14904         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
14905         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
14906         varpool_node_set_new, varpool_node_set_add,
14907         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
14908         debug_varpool_node_set): New functions.
14909         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
14910         (execute_one_pass): Process new decls too.
14911         (ipa_write_summaries_2): Pass around vsets.
14912         (ipa_write_summaries_1): Likewise.
14913         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
14914         to add.
14915         (ipa_write_optimization_summaries_1): Pass around vsets.
14916         (ipa_write_optimization_summaries): Likewise.
14917         * varpool.c (varpool_get_node): New.
14918         (varpool_node): Update doubly linked lists.
14919         (varpool_remove_node): New.
14920         (dump_varpool_node): More dumping.
14921         (varpool_enqueue_needed_node): Update doubly linked lists.
14922         (decide_is_variable_needed): Kill ltrans hack.
14923         (varpool_finalize_decl): Kill lto hack.
14924         (varpool_assemble_decl): Skip decls in other partitions.
14925         (varpool_assemble_pending_decls): Update doubly linkes lists.
14926         (varpool_empty_needed_queue): Likewise.
14927         (varpool_extra_name_alias): Likewise.
14928         * lto-streamer.c (lto_get_section_name): Add vars section.
14929         * lto-streamer.h (lto_section_type): Update.
14930         (output_varpool, input_varpool): Declare.
14932 2010-04-28  Mike Stump  <mikestump@comcast.net>
14934         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
14936 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
14938         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
14939         record or union type with RECORD_OR_UNION_TYPE_P predicate.
14940         (lto_input_ts_type_tree_pointers): Likewise.
14941         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
14942         (lto_output_ts_type_tree_pointers): Likewise.
14944 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
14946         Uniquization of constants at the Tree level
14947         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
14948         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
14949         bit to the end.
14950         (tree_output_constant_def): Declare.
14951         * gimplify.c (gimplify_init_constructor): When using block copy, first
14952         uniquize the constant constructor on the RHS.
14953         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
14954         DECL_IN_CONSTANT_POOL flag.
14955         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
14956         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
14957         constant pool.
14958         (assemble_variable): Deal with symbols belonging to the tree constant
14959         pool.
14960         (get_constant_section): Add ALIGN parameter and simplify.
14961         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
14962         (assemble_constant_contents): Use the expression of the VAR_DECL.
14963         (output_constant_def_contents): Use the alignment of the VAR_DECL.
14964         (tree_output_constant_def): New global function.
14965         (mark_constant): Use the expression of the VAR_DECL.
14966         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
14967         its expression.
14968         (output_object_block): Likewise and assemble the expression.
14970 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
14972         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
14973         hash_tree, eq_tree): New tree hash table.
14974         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
14975         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
14976         lto_orig_address_remove): Reimplement.
14978 2010-04-28  Xinliang David Li  <davidxl@google.com>
14980         PR c/42643
14981         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
14982         (compute_uninit_opnds_pos): New function.
14983         (is_non_loop_exit_postdominating): New function.
14984         (compute_control_dep_chain): New function.
14985         (find_pdom): New function.
14986         (convert_control_dep_chain_into_preds): New function.
14987         (find_predicates): New function.
14988         (find_control_equiv_block): New function.
14989         (collect_phi_def_edges): New function.
14990         (find_def_preds): New function.
14991         (find_dom): New function.
14992         (dump_predicates): New function.
14993         (get_cmp_code): New function.
14994         (is_value_included_in): New function.
14995         (find_matching_predicate_in_rest_chains): New function.
14996         (use_pred_not_overlap_with_undef_path_pred): New function.
14997         (is_use_properly_guarded): New function.
14998         (normalize_cond_1): New function.
14999         (is_and_or_or): New function.
15000         (normalize_cond): New function.
15001         (is_gcond_subset_of): New function.
15002         (is_subset_of_any): New function.
15003         (is_or_set_subset_of): New function.
15004         (is_and_set_subset_of): New function.
15005         (is_norm_cond_subset_of): New function.
15006         (is_pred_expr_subset_of): New function.
15007         (is_pred_chain_subset_of): New function.
15008         (is_included_in): New function.
15009         (is_superset_of): New function.
15010         (find_uninit_use): New function.
15011         (warn_uninitialized_phi): New function.
15012         (compute_possibly_undefined_names): New function.
15013         (ssa_undefined_value_p): New function.
15014         (execute_late_warn_uninitialized): New function.
15015         * tree-ssa.c (ssa_undefined_value_p): Removed.
15016         (warn_uninit): Changed to extern.
15017         (warn_uninitialized_phi): Removed.
15018         (warn_uninitialized_vars): Changed to extern.
15019         (execute_late_warn_uninitialized): Removed
15020         * tree-flow.h: Add new prototypes.
15021         * timevar.def: Add new time variable.
15022         * Makefile.in: Add new build file.
15024 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
15026         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
15027         type if available.
15029 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15031         PR target/22224
15032         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
15034 2010-04-28  Martin Jambor  <mjambor@suse.cz>
15036         * cgraph.h (struct cgraph_node): New field indirect_calls.
15037         (struct cgraph_indirect_call_info): New type.
15038         (struct cgraph_edge): Removed field indirect_call. New fields
15039         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
15040         (cgraph_create_indirect_edge): Declare.
15041         (cgraph_make_edge_direct): Likewise.
15042         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
15043         * ipa-prop.h (struct ipa_param_call_note): Removed.
15044         (struct ipa_node_params): Removed field param_calls.
15045         (ipa_create_all_structures_for_iinln): Declare.
15046         * cgraph.c: Described indirect edges and uids in initial comment.
15047         (cgraph_add_edge_to_call_site_hash): New function.
15048         (cgraph_edge): Search also among the indirect edges, use
15049         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
15050         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
15051         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
15052         site hash.
15053         (initialize_inline_failed): Assign a reason to indirect edges.
15054         (cgraph_create_edge_1): New function.
15055         (cgraph_create_edge): Moved some functionality to
15056         cgraph_create_edge_1.
15057         (cgraph_create_indirect_edge): New function.
15058         (cgraph_edge_remove_callee): Add an assert checking for
15059         non-indirectness.
15060         (cgraph_edge_remove_caller): Special-case indirect edges.
15061         (cgraph_remove_edge): Likewise.
15062         (cgraph_set_edge_callee): New function.
15063         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
15064         (cgraph_make_edge_direct): New function.
15065         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
15066         the declaration of the call statement matches.
15067         (cgraph_node_remove_callees): Special-case indirect edges.
15068         (cgraph_clone_edge): Likewise.
15069         (cgraph_clone_node): Clone also the indirect edges.
15070         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
15071         indirect_call, dump count of indirect_calls edges.
15072         * ipa-prop.c (iinlining_processed_edges): New variable.
15073         (ipa_note_param_call): Create indirect edges instead of
15074         creating notes.  New parameter node.
15075         (ipa_analyze_call_uses): New parameter node, pass it on to
15076         ipa_note_param_call.
15077         (ipa_analyze_stmt_uses): Likewise.
15078         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
15079         (print_edge_addition_message): Work on edges rather than on notes.
15080         (update_call_notes_after_inlining): Likewise, renamed to
15081         update_indirect_edges_after_inlining.
15082         (ipa_create_all_structures_for_iinln): New function.
15083         (ipa_free_node_params_substructures): Do not free notes.
15084         (ipa_edge_duplication_hook): Propagate bits within
15085         iinlining_processed_edges bitmap.
15086         (ipa_node_duplication_hook): Do not duplicate notes.
15087         (free_all_ipa_structures_after_ipa_cp): Renamed to
15088         ipa_free_all_structures_after_ipa_cp.
15089         (free_all_ipa_structures_after_iinln): Renamed to
15090         ipa_free_all_structures_after_iinln.
15091         (ipa_write_param_call_note): Removed.
15092         (ipa_read_param_call_note): Removed.
15093         (ipa_write_indirect_edge_info): New function.
15094         (ipa_read_indirect_edge_info): Likewise.
15095         (ipa_write_node_info): Do not stream notes, do stream information
15096         in indirect edges.
15097         (ipa_read_node_info): Likewise.
15098         (lto_ipa_fixup_call_notes): Removed.
15099         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
15100         * ipa-inline.c (pass_ipa_inline): Likewise.
15101         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
15102         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
15103         * tree-inline.c (copy_bb): Removed an unnecessary double check for
15104         is_gimple_call.
15105         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
15106         edges.
15107         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
15108         (output_cgraph): Stream also indirect edges.
15109         (lto_output_edge): Added capability to stream indirect edges.
15110         (input_edge): Likewise.
15111         (input_cgraph_1): Likewise.
15112         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
15113         of indirect edges.
15115 2010-04-28  Richard Guenther  <rguenther@suse.de>
15117         PR tree-optimization/43879
15118         PR tree-optimization/43909
15119         * tree-ssa-structalias.c (struct variable_info): Add
15120         only_restrict_pointers flag.
15121         (new_var_info): Initialize it.  Increment stats.total_vars here.
15122         (create_function_info_for): Do not increment stats.total_vars here.
15123         (get_function_part_constraint): Fix build with C++.
15124         (insert_into_field_list): Remove.
15125         (push_fields_onto_fieldstack): Properly merge fields.
15126         (create_variable_info_for): Split and simplify.
15127         (create_variable_info_for_1): New piece.
15128         (intra_create_variable_infos): Properly make restrict constraints
15129         from parameters.
15131 2010-04-28  Richard Guenther  <rguenther@suse.de>
15133         PR c++/43880
15134         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
15136 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15137             Jan Hubicka  <hubicka@ucw.cz>
15139         * doc/invoke.texi (-Wsuggest-attribute=const,
15140         -Wsuggest-attribute=pure): Document.
15141         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
15142         (function_always_visible_to_compiler_p,
15143         suggest_attribute, warn_function_pure, warn_function_const):
15144         New functions.
15145         (check_call): Improve debug info.
15146         (analyze_function): Do not check availability.
15147         (add_new_function): Check availability.
15148         (propagate): Output warnings.
15149         (skip_function_for_local_pure_const): New function.
15150         (local_pure_const): Use it; output warnings.
15151         * common.opt (Wsuggest-attribute=const,
15152         Wsuggest-attribute=pure): New.
15154 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
15156         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
15157         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
15158         or DW_CFA_def_cfa_offset{,_sf}.
15160 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
15162         * tree.h: Fix truncated long macros.
15164 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
15166         * collect2.c (TARGET_64BIT): Redefine to target's default.
15167         * tlink.c: Likewise.
15168         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
15169         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
15170         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
15171         for underscoring __USER_LABEL_PREFIX__.
15172         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
15173         (SUB_LINK_ENTRY32): New.
15174         (SUB_LINK_ENTRY64): New.
15175         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
15176         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
15177         (SUB_LINK_ENTRY64): New.
15178         (SUB_LINK_ENTRY): New.
15179         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
15180         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
15181         x64 target is choosen.
15182         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
15183         * configure: Regenerated.
15184         * configure.ac (leading-mingw64-underscores): Option added.
15186 2010-04-27  Jan Hubicka  <jh@suse.cz>
15188         * doc/invoke.texi (-fipa-profile): Document.
15189         * opts.c (decode_options): Enable ipa-profile at -O1.
15190         * timevar.def (TV_IPA_PROFILE): Define.
15191         * common.opt (fipa-profile): Add.
15192         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
15193         flag for clones.
15194         (cgraph_propagate_frequency): Handle only local ones.
15195         * tree-pass.h (pass_ipa_profile): Declare.
15196         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
15197         (pass_ipa_profile): Use TV_IPA_PROFILE.
15198         * ipa.c (ipa_profile): New function.
15199         (gate_ipa_profile): Likewise.
15200         (pass_ipa_profile): New global variable.
15201         * passes.c (pass_ipa_profile): New.
15203 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
15205         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
15207 2010-04-27  Martin Jambor  <mjambor@suse.cz>
15209         PR middle-end/43812
15210         * ipa.c (dissolve_same_comdat_group_list): New function.
15211         (function_and_variable_visibility): Call
15212         dissolve_same_comdat_group_list when comdat group contains external or
15213         newly local nodes.
15214         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
15215         lists are circular and that they contain only DECL_ONE_ONLY nodes.
15217 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
15219         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
15220         (const_hash_1) <VECTOR_CST>: New case.
15221         (compare_constant) <VECTOR_CST>: Likewise.
15222         <ADDR_EXPR>: Deal with LABEL_REFs.
15223         (copy_constant) <VECTOR_CST>: New case.
15225 2010-04-27  Jan Hubicka  <jh@suse.cz>
15227         * cgraph.c (cgraph_propagate_frequency): New function.
15228         * cgraph.h (cgraph_propagate_frequency): Declare.
15229         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
15230         cgraph_propagate_frequency.
15232 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
15234         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
15236 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
15238         PR target/40657
15239         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
15240         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
15241         here to determine which regs to push and how much stack to reserve.
15243 2010-04-27  Jie Zhang  <jie@codesourcery.com>
15245         * doc/gimple.texi (gimple_statement_with_ops): Remove
15246         addresses_taken field.
15247         (gimple_statement_with_memory_ops): Likewise.
15249 2010-04-27  Jan Hubicka  <jh@suse.cz>
15251         * tree-inline.c (eni_inlining_weights): Remove.
15252         (estimate_num_insns): Special case more builtins.
15254 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
15256         PR c/32207
15257         * c-typeck.c (build_binary_op): Move forward check for comparison
15258         pointer with null pointer constant and adjust the diagnostic message.
15260 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
15262         PR lto/42776
15263         * configure.ac (gcc_cv_as_section_has_align): Set if installed
15264         binutils supports extended .section directive needed by LTO, or
15265         warn if older binutils found.
15266         (LTO_BINARY_READER): New AC_SUBST'd variable.
15267         (LTO_USE_LIBELF): Likewise.
15268         * gcc/config.gcc (lto_binary_reader): New target-specific configure
15269         variable.
15270         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
15271         (LTO_USE_LIBELF): Likewise.
15272         * configure: Regenerate.
15274         * collect2.c (is_elf): Rename from this ...
15275         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
15276          object files in addition to ELF-formatted ones.
15277         (scan_prog_file): Caller updated.  Also allow for LTO info marker
15278         symbol to be prefixed or not by an extra underscore.
15280         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
15281         * config/i386/winnt.c: Also #include lto-streamer.h
15282         (i386_pe_asm_named_section): Specify 1-byte section alignment for
15283         LTO named sections.
15284         (i386_pe_asm_output_aligned_decl_common): Add comment.
15285         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
15287 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
15289         PR target/43889
15290         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
15291         Add missing earlyclobber for second alternative.
15293 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
15295         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
15296         bits for artificial defs at the top of the block.
15297         * fwprop.c (single_def_use_enter_block): Don't call it.
15299 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
15301         PR 43715
15302         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
15303         instead of "$gcc_cv_objdump -T".
15304         Use "-undefined dynamic_lookup" on darwin.
15305         * gcc/configure: Regenerate.
15307 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
15309         PR c/43893
15310         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
15312 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
15314         * c-parser.c (struct c_token): Move location field up.
15315         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
15316         (struct c_declspecs): Convert typespec_word, storage_class, and
15317         default_int_p into bitfields.
15318         (struct c_declarator): Move loc field up.
15320 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
15322         * cfgloop.h (struct loop): Move can_be_parallel field up.
15323         * ipa-prop.h (struct ip_node_params): Move bitfields up.
15324         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
15325         down.
15326         (struct iv_cand): Convert pos field into a bitfield.
15327         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
15328         field up.
15329         (struct _stmt_vec_info): Shuffle fields for better packing.
15331 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
15333         * varasm.c (IN_NAMED_SECTION): Remove guard.
15334         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
15335         (IN_NAMED_SECTION_P): ...this.
15336         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
15337         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
15339 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
15341         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
15342         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
15343         of shadowing it.  Fix comments.
15345 2010-04-26  Jan Hubicka  <jh@suse.cz>
15347         * cgraph.c (cgraph_create_node): Set node frequency to normal.
15348         (cgraph_clone_node): Copy function frequency.
15349         * cgraph.h (node_frequency): New enum
15350         (struct cgraph_node): Add.
15351         * final.c (rest_of_clean_state): Update.
15352         * lto-cgraph.c (lto_output_node): Output node frequency.
15353         (input_overwrite_node): Input node frequency.
15354         * tre-ssa-loop-ivopts (computation_cost): Update.
15355         * lto-streamer-out.c (output_function): Do not output function
15356         frequency.
15357         * predict.c (maybe_hot_frequency_p): Update and handle functions
15358         executed once.
15359         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
15360         attribute lookup.
15361         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
15362         (compute_function_frequency): Set noreturn functions to be executed
15363         once.
15364         (choose_function_section): Update.
15365         * lto-streamer-in.c (input_function): Do not input function frequency.
15366         * function.c (allocate_struct_function): Do not initialize function
15367         frequency.
15368         * function.h (function_frequency): Remove.
15369         (struct function): Remove function frequency.
15370         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
15371         (try_update): Update.
15372         * tree-inline.c (initialize_cfun): Do not update function frequency.
15373         * passes.c (pass_init_dump_file): Update.
15374         * i386.c (ix86_compute_frame_layout): Update.
15375         (ix86_pad_returns): Update.
15377 2010-04-26  Jie Zhang  <jie@codesourcery.com>
15379         PR tree-optimization/43833
15380         * tree-vrp.c (range_int_cst_p): New.
15381         (range_int_cst_singleton_p): New.
15382         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
15383         when both operands are constants.  Use range_int_cst_p in
15384         BIT_IOR_EXPR case.
15386 2010-04-26  Jan Hubicka  <jh@suse.cz>
15388         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
15390 2010-04-26  Richard Guenther  <rguenther@suse.de>
15392         PR lto/43080
15393         * gimple.c (gimple_decl_printable_name): Deal gracefully
15394         with a NULL DECL_NAME.
15396 2010-04-26  Richard Guenther  <rguenther@suse.de>
15398         PR lto/42425
15399         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
15400         if emitting debug information and it is either a function
15401         or a namespace decl.
15403 2010-04-26  Ira Rosen  <irar@il.ibm.com>
15405         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
15406         determine if the statement is vectorizable, and a macro to access it.
15407         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15408         Skip statements that can't be vectorized. If the analysis fails,
15409         mark the statement as unvectorizable if vectorizing basic block.
15410         (vect_compute_data_refs_alignment): Likewise.
15411         (vect_verify_datarefs_alignment): Skip statements marked as
15412         unvectorizable. Add print.
15413         (vect_analyze_group_access): Skip statements that can't be
15414         vectorized. If the analysis fails, mark the statement as
15415         unvectorizable if vectorizing basic block.
15416         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
15417         * tree-vect-stmts.c (vectorizable_store): Fix the number of
15418         generated stmts for SLP.
15419         (new_stmt_vec_info): Initialize the new field.
15420         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
15421         statements marked as unvectorizable.
15423 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
15425         * c-common.c (flag_isoc1x): New.
15426         (flag_isoc99): Update comment.
15427         * c-common.h (flag_isoc1x): New.
15428         (flag_isoc99): Update comment.
15429         * c-cppbuiltin.c (builtin_define_float_constants): Also define
15430         __<type>_DECIMAL_DIG__.
15431         * c-opts.c (set_std_c1x): New.
15432         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
15433         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
15434         * c.opt (-std=c1x, -std=gnu1x): New options.
15435         * doc/cpp.texi: Mention -std=c1x.
15436         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
15437         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
15438         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
15439         * doc/standards.texi: Mention C1X.
15440         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
15441         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
15442         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
15443         Define for C1X.
15445 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
15447         * config/i386/gmon-sol2.c (_mcleanup): Change format string
15448         placeholder from 0x%x to %#x.
15449         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
15450         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
15451         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
15452         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
15453         * config/i386/i386.c (ix86_target_string): Ditto.
15454         (output_pic_addr_const): Ditto.
15455         (print_operand): Ditto.
15457 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
15459         * combine.c (find_split_point): Add third argument.  Use it
15460         to find nested multiply-accumulate instructions.  Adjust calls.
15461         (try_combine): Adjust call to find_split_point.
15463 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
15465         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
15467 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
15469         PR tree-optimization/41442
15470         * fold-const.c (merge_truthop_with_opposite_arm): New function.
15471         (fold_binary_loc): Call it.
15473 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15475         * toplev.c (general_init): Set default for fdiagnostics-show-option.
15476         * opts.c (common_handle_option): Allow disabling it.
15477         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
15479 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
15481         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
15482         between modes if both types are integral.
15484 2010-04-23  Richard Guenther  <rguenther@suse.de>
15486         PR tree-optimization/43572
15487         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
15489 2010-04-23  Richard Guenther  <rguenther@suse.de>
15491         PR lto/43455
15492         * tree-inline.c (tree_can_inline_p): Also check compatibility
15493         of return types.
15495 2010-04-23  Martin Jambor  <mjambor@suse.cz>
15497         PR tree-optimization/43846
15498         * tree-sra.c (struct access): New flag grp_assignment_read.
15499         (build_accesses_from_assign): Set grp_assignment_read.
15500         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
15501         (enum mark_read_status): New type.
15502         (analyze_access_subtree): Propagate grp_assignment_read, create
15503         accesses also if both direct_read and root->grp_assignment_read.
15505 2010-04-23  Martin Jambor  <mjambor@suse.cz>
15507         PR middle-end/43835
15508         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
15509         function does not have type attributes.
15511 2010-04-23  Richard Guenther  <rguenther@suse.de>
15513         PR lto/42653
15514         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
15515         of FUNCTION_DECLs.
15517 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15519         * sese.h (create_if_region_on_edge): Remove.
15521         * sese.c (create_if_region_on_edge): Make static.
15523         * tree-inline.c: Do not include ggc.h.
15525         * expr.c: Do not include ggc.h.
15527         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
15528         dependencies.
15530 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
15532         PR target/43744
15533         * config/sh/sh.c (find_barrier): Don't emit a constant pool
15534         in the middle of insns for casesi_worker_2.
15536 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
15538         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
15540 2010-04-22  Ira Rosen  <irar@il.ibm.com>
15542         PR tree-optimization/43842
15543         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
15544         loop unrolling in update of exit phis. Fix comment.
15545         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
15546         least two reduction statements in the loop before starting SLP
15547         analysis.
15549 2010-04-22  Nick Clifton  <nickc@redhat.com>
15551         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
15553 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
15555         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
15556         to simplify a + ~a.
15558 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15560         * tree-parloops.c (loop_parallel_p): New argument
15561         parloop_obstack.  Pass it down.
15562         (parallelize_loops): New variable parloop_obstack.  Initialize it,
15563         pass it down, free it.
15565         * tree-loop-linear.c (linear_transform_loops): Pass down
15566         lambda_obstack.
15568         * tree-data-ref.h (lambda_compute_access_matrices): New argument
15569         of type struct obstack *.
15571         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
15572         scratch_obstack.  Initialize it, pass down, free it.
15574         * lambda.h (lambda_loop_new): Remove.
15575         (lambda_matrix_new, lambda_matrix_inverse)
15576         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
15577         argument of type struct obstack *.
15579         * lambda-trans.c (lambda_trans_matrix_new): New argument
15580         lambda_obstack.  Pass it down, use obstack allocation for ret.
15581         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
15582         it down.
15584         * lambda-mat.c (lambda_matrix_get_column)
15585         (lambda_matrix_project_to_null): Remove.
15586         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
15587         allocation for mat.
15588         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
15589         lambda_obstack.
15591         * lambda-code.c (lambda_loop_new): New function.
15592         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
15593         (lambda_compute_auxillary_space, lambda_compute_target_space)
15594         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
15595         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
15596         (build_access_matrix): New argument lambda_obstack.  Use obstack
15597         allocation for am.
15598         (lambda_compute_step_signs, lambda_compute_access_matrices): New
15599         argument lambda_obstack.  Pass it down.
15601 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
15603         * optabs.h (expand_widening_mult): Declare.
15605 2010-04-22  Richard Guenther  <rguenther@suse.de>
15607         PR tree-optimization/43845
15608         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
15609         lookup the CALL_EXPR function and arguments.
15611 2010-04-22  Nick Clifton  <nickc@redhat.com>
15613         * config/stormy16/stormy16.c
15614         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
15615         * config/stormy16/stormy16.h: Tidy up formatting.
15616         (DONT_USE_BUILTIN_SETJMP): Remove definition.
15617         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
15618         (ineqbranchsi): Delete pattern.
15619         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
15620         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
15621         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
15622         stormy16-lib2-ucmpsi2.c.
15624 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
15626         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
15627         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
15628         extra set merge_set_noclobber, and use it to relax the final test
15629         slightly.
15630         * df.h (df_simulate_find_noclobber_defs): Declare.
15631         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
15632         conditional defs.
15633         (df_simulate_find_noclobber_defs): New function.
15635 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
15637         * config/i386/i386.md: Use {} around multi-line preparation statements.
15639 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15641         * c-tree.h (push_init_level, pop_init_level, set_init_index)
15642         (process_init_element): New argument of type struct obstack *.
15644         * c-typeck.c (push_init_level, pop_init_level, set_designator)
15645         (set_init_index, set_init_label, set_nonincremental_init)
15646         (set_nonincremental_init_from_string, find_init_member)
15647         (output_init_element, output_pending_init_elements)
15648         (process_init_element): New argument braced_init_obstack.  Pass it
15649         down.
15650         (push_range_stack, add_pending_init): New argument
15651         braced_init_obstack.  Use obstack allocation.
15653         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
15654         braced_init_obstack.  Pass it down.
15655         (c_parser_braced_init): New variables ret, braced_init_obstack.
15656         Initialize obstack, pass it down and finally free it.
15658 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
15660         PR middle-end/29274
15661         * tree-pass.h (pass_optimize_widening_mul): Declare.
15662         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
15663         gate_optimize_widening_mul): New static functions.
15664         (pass_optimize_widening_mul): New.
15665         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
15666         <case MULT_EXPR>: Remove support for widening multiplies.
15667         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
15668         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
15669         simplify_gen_unary rather than directly building extensions.
15670         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
15671         WIDEN_MULT_EXPR.
15672         * expmed.c (expand_widening_mult): New function.
15673         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
15675 2010-04-21  Jan Hubicka  <jh@suse.cz>
15677         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
15678         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
15679         * lto-wpa-fixup.c: Remove.
15680         * Makefile.in (lto-wpa-fixup.o): Remove.
15681         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
15682         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
15683         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
15685 2010-04-21  Jan Hubicka  <jh@suse.cz>
15687         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
15688         add write_optimization_summary, read_optimization_summary.
15689         (ipa_write_summaries_of_cgraph_node_set): Remove.
15690         (ipa_write_optimization_summaries): Declare.
15691         (ipa_read_optimization_summaries): Declare.
15692         * ipa-cp.c (pass_ipa_cp): Update.
15693         * ipa-reference.c (pass_ipa_reference): Update.
15694         * ipa-pure-const.c (pass_ipa_pure_const): Update.
15695         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
15696         Update.
15697         * ipa-inline.c (pass_ipa_inline): Update.
15698         * ipa.c (pass_ipa_whole_program): Update.
15699         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
15700         * passes.c (ipa_write_summaries_1): Do not test wpa.
15701         (ipa_write_optimization_summaries_1): New.
15702         (ipa_write_optimization_summaries): New.
15703         (ipa_read_summaries): Do not test ltrans.
15704         (ipa_read_optimization_summaries_1): New.
15705         (ipa_read_optimization_summaries): New.
15707 2010-04-21  Jan Hubicka  <jh@suse.cz>
15709         * lto-cgraph.c (lto_output_node): Do not output comdat groups
15710         for boundary nodes.
15711         (output_cgraph): Do not arrange comdat groups for boundary nodes.
15713 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
15715         PR debug/40040
15716         * dwarf2out.c (add_name_and_src_coords_attributes): Add
15717         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
15719 2010-04-21  Jan Hubicka  <jh@suse.cz>
15721         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
15723 2010-04-21  Jan Hubicka  <jh@suse.cz>
15725         * varpool.c (decide_is_variable_needed): Variable is always needed
15726         during ltrans.
15728 2010-04-21  Jan Hubicka  <jh@suse.cz>
15730         * opts.c (decode_options): Enable pure-const pass for whopr.
15732 2010-04-21  Jan Hubicka  <jh@suse.cz>
15734         * cgraph.c (dump_cgraph_node): Dump also assembler name.
15735         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
15736         at WPA dumping.
15737         (cgraph_decide_inlining): Do not expect callee to be removed in all
15738         cases.
15740 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
15742         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
15744 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
15746         * config/i386/i386.md (x86_shrd): Add athlon_decode and
15747         amdfam10_decode attributes.
15749 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
15751         PR middle-end/43570
15752         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
15753         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
15754         (lower_copyprivate_clauses): Use private var in outer
15755         context instead of original var.  Make sure the types
15756         are correct for VLAs.
15758 2010-04-21  Richard Guenther  <rguenther@suse.de>
15760         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
15761         to non-pointer objects.
15763 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
15765         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
15766         last chain entry if it starts with the still current label.
15767         (add_location_or_const_value_attribute): Check that
15768         loc_list->first->next is NULL instead of comparing ->first with ->last.
15769         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
15770         to add_var_loc_to_decl.
15772         * dwarf2out.c (output_call_frame_info): For dw_cie_version
15773         >= 4 add also address size and segment size fields into CIE header.
15775         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
15776         long as address size is the same as sizeof (void *) and
15777         segment size is 0.
15778         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
15779         address size or segment size is unexpected, return DW_EH_PE_omit.
15780         (classify_object_over_fdes): If get_cie_encoding returned
15781         DW_EH_PE_omit, return -1.
15782         (init_object): If classify_object_over_fdes returned -1,
15783         pretend there were no FDEs at all.
15785 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
15787         * config/i386/i386.md (bswap<mode>2): Macroize expander from
15788         bswap{si,di}2 using SWI48 mode iterator.
15789         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
15790         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
15791         set modrm attribute of bswap insn to 0 and remove length attribute.
15792         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
15793         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
15794         set mode attribute to <MODE> and remove length attribute.
15796 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
15798         PR rtl-optimization/43520
15799         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
15800         zero available registers.
15802 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15804         * builtins.c (fold_builtin_cproj): Fold more cases.
15806 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15808         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
15809         (fold_builtin_1): Fold builtin cproj.
15810         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
15811         Use ATTR_CONST_NOTHROW_LIST.
15813 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
15815         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
15816         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
15817         ffsi2_no_cmove for !TARGET_CMOVE.
15818         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
15819         (ffssi2): Remove expander.
15820         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
15821         mode iterator.
15822         (ctz<mode>2): Ditto from ctz{si,di}2.
15823         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
15824         mode iterator.
15825         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
15826         mode iterator.
15828 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
15830         * dwarf2out.c (AT_linkage_name): Define.
15831         (clone_as_declaration): Handle DW_AT_linkage_name.
15832         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
15833         of DW_AT_MIPS_linkage_name.
15834         (move_linkage_attr): Likewise.
15835         (dwarf2out_finish): Likewise.
15837 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
15839         PR middle-end/41952
15840         * fold-const.c (fold_comparison): New folding rule.
15842 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
15844         * double-int.h (double_int_setbit): Declare.
15845         * double-int.c (double_int_setbit): New function.
15846         * rtl.h (immed_double_int_const): Declare.
15847         * emit-rtl.c (immed_double_int_const): New function.
15848         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
15849         and immed_double_int_const functions.
15850         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
15851         expand_copysign_bit): (Ditto.).
15852         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
15853         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
15854         * dojump.c (prefer_and_bit_test): (Ditto.).
15855         * expr.c (convert_modes, reduce_to_bit_field_precision,
15856         const_vector_from_tree): (Ditto.).
15857         * expmed.c (mask_rtx, lshift_value): (Ditto.).
15859 2010-04-20  Jan Hubicka  <jh@suse.cz>
15861         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
15862         (dump_cgraph_node): Dump new flags.
15863         * cgraph.h (struct cgraph_node): Add flags
15864         reachable_from_other_partition and in_other_partition.
15865         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
15866         other partition can not be removed.
15867         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
15868         the other partition must be output; silence sanity checking on
15869         leaking functions bodies from other paritition.
15870         * lto-cgraph.c (reachable_from_other_partition_p): New function.
15871         (lto_output_node): Output new flags; do not sanity check that inline
15872         clones are output; drop lto_forced_extern_inline_p code; do not mock
15873         visibility flags at partition boundaries.
15874         (add_node_to): New function.
15875         (output_cgraph): Use it to sort functions so masters appear before
15876         clones.
15877         (input_overwrite_node): Input new flags.
15878         * passes.c (ipa_write_summaries): Do not call
15879         lto_new_extern_inline_states.
15880         * lto-section-out.c (forced_extern_inline,
15881         lto_new_extern_inline_states lto_delete_extern_inline_states,
15882         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
15883         * lto-streamer.h (lto_new_extern_inline_states,
15884         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
15885         lto_forced_extern_inline_p): Kill.
15887 2010-04-20  Richard Guenther  <rguenther@suse.de>
15889         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
15890         from vars that can have pointers.
15891         (process_constraint): Dump useless constraints.
15893 2010-04-20  Richard Guenther  <rguenther@suse.de>
15895         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
15896         (dump_sa_points_to_info): Remove asserts.
15897         (init_base_vars): nothing_id isn't an escape point nor does it
15898         have pointers.
15900 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
15902         * tree.h (TYPE_REF_IS_RVALUE): Define.
15903         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
15904         should_move_die_to_comdat, prune_unused_types_walk): Handle
15905         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
15906         (modified_type_die, gen_reference_type_die): Emit
15907         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
15908         if TYPE_REF_IS_RVALUE and -gdwarf-4.
15910 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15912         PR target/43635
15913         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
15914         calls for -fpic -m31 if they have been sibcall optimized.
15916 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
15918         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
15919         ar.lc fixed and call-used.
15921         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
15923 2010-04-19  Jan Hubicka  <jh@suse.cz>
15925         * opts.c (decode_options): Disable whpr incompatible passes.
15926         * lto/lto.c (lto_1_to_1_map): Skip clones.
15927         (read_cgraph_and_symbols): Do not mark everything as needed.
15928         (do_whole_program_analysis): Do map only after optimizing;
15929         set proper cgraph_state; use passmanager.
15931 2010-04-19  DJ Delorie  <dj@redhat.com>
15933         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
15934         POINTER_PLUS_EXPR and fix them.
15936 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
15938         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
15939         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
15940         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
15941         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
15942         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
15943         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
15944         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
15945         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
15946         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
15947         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
15948         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
15950 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
15952         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
15953         (check_cond_move_block): Likewise.
15954         (cond_move_process_if_block): Likewise.
15955         (noce_find_if_block): Improve formatting.
15956         (find_if_header): Pass 0 to memset and tweak conditions.
15957         (cond_exec_find_if_block): Fix long lines and tweak conditions.
15959 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
15961         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
15962         for -gdwarf-4.
15964         PR middle-end/43337
15965         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
15966         with non-local decl doesn't need chain.
15968 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
15970         * ira-color.c (allocno_reload_assign): Avoid accumulating
15971         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
15973 2010-04-19  Martin Jambor  <mjambor@suse.cz>
15975         * gimple.h (create_tmp_reg): Declare.
15976         * gimplify.c (create_tmp_reg): New function.
15977         (gimplify_return_expr): Use create_tmp_reg.
15978         (gimplify_omp_atomic): Likewise.
15979         (gimple_regimplify_operands): Likewise.
15980         * tree-dfa.c (make_rename_temp): Likewise.
15981         * tree-predcom.c (predcom_tmp_var): Likewise.
15982         (reassociate_to_the_same_stmt): Likewise.
15983         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
15984         (get_replaced_param_substitute): Likewise.
15985         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
15986         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
15987         * tree-ssa-pre.c (get_representative_for): Likewise.
15988         (create_expression_by_pieces): Likewise.
15989         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
15990         (create_tailcall_accumulator): Likewise.
15992 2010-04-19  Martin Jambor  <mjambor@suse.cz>
15994         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
15995         new_stmt.
15996         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
15998 2010-04-19  Richard Guenther  <rguenther@suse.de>
16000         PR tree-optimization/43796
16001         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
16002         from SCEV in the lattice.
16003         (vrp_visit_phi_node): Dump change.
16005 2010-04-19  Richard Guenther  <rguenther@suse.de>
16007         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
16008         * configure: Re-generated.
16010 2010-04-19  Richard Guenther  <rguenther@suse.de>
16012         PR tree-optimization/43783
16013         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
16014         constant ARRAY_REF operands two and three if possible.
16016 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
16018         PR target/43766
16019         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
16021 2010-04-19  Jie Zhang  <jie@codesourcery.com>
16023         PR target/43662
16024         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
16026 2010-04-19  Ira Rosen  <irar@il.ibm.com>
16028         PR tree-optimization/37027
16029         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
16030         and macro to access it.
16031         (vectorizable_reduction): Add argument.
16032         (vect_get_slp_defs): Likewise.
16033         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
16034         statements for possible use in SLP.
16035         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
16036         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
16037         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
16038         add new argument.
16039         (vectorizable_reduction): Likewise.
16040         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
16041         vect_get_slp_defs.
16042         (vectorizable_type_demotion, vectorizable_type_promotion,
16043         vectorizable_store): Likewise.
16044         (vect_analyze_stmt): Update call to vectorizable_reduction.
16045         (vect_transform_stmt): Likewise.
16046         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
16047         (vect_build_slp_tree): Fix indentation. Check that there are no loads
16048         from different interleaving chains in same node.
16049         (vect_slp_rearrange_stmts): New function.
16050         (vect_supported_load_permutation_p): Allow load permutations for
16051         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
16052         inside SLP nodes if necessary.
16053         (vect_analyze_slp_instance): Handle reductions.
16054         (vect_analyze_slp): Try to build SLP instances originating from groups
16055         of reductions.
16056         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
16057         (vect_get_constant_vectors): Create initial vectors for reductions
16058         according to reduction code. Add new argument.
16059         (vect_get_slp_defs): Add new argument, pass it to
16060         vect_get_constant_vectors.
16061         (vect_schedule_slp_instance): Remove SLP tree root statements.
16063 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
16065         * tree.h (ENUM_IS_SCOPED): Define.
16066         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
16067         for ENUM_IS_SCOPED enums.
16069 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
16071         * fold-const.c (fold_comparison): Use ssizetype.
16072         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
16073         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
16074         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
16075         * tree-object-size.c (compute_object_sizes): Use size_type_node.
16077         * tree.h (initialize_sizetypes): Remove parameter.
16078         (build_common_tree_nodes): Remove second parameter.
16079         * stor-layout.c (initialize_sizetypes): Remove parameter.
16080         Always create an unsigned type.
16081         (set_sizetype): Assert that the passed type is unsigned and simplify.
16082         * tree.c (build_common_tree_nodes): Remove second parameter.
16083         Adjust call to initialize_sizetypes.
16084         * c-decl.c (c_init_decl_processing): Remove second argument in call to
16085         build_common_tree_nodes.
16087 2010-04-18  Matthias Klose  <doko@ubuntu.com>
16089         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
16091 2010-04-18  Ira Rosen  <irar@il.ibm.com>
16093         PR tree-optimization/43771
16094         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
16095         load permutation doesn't have gaps.
16097 2010-04-18  Jan Hubicka  <jh@suse.cz>
16099         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
16100         (sse_prologue_save_insn expander): Use new pattern.
16101         (sse_prologue_save_insn1): New pattern and splitter.
16102         (sse_prologue_save_insn): Update to deal also with 64bit aligned
16103         blocks.
16104         * i386.c (setup_incoming_varargs_64): Do not compute jump
16105         destination here.
16106         (ix86_gimplify_va_arg): Update alignment needed.
16107         (ix86_local_alignment): Do not align all local arrays to 128bit.
16109 2010-04-17  Jan Hubicka  <jh@suse.cz>
16111         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
16113 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
16115         * arm.md (negdi2): Remove redundant code to force values into a
16116         register.
16118 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
16120         * arm/bpabi.S: Add EABI alignment attributes to objects.
16121         * arm/bpabi-v6m.S: Likewise.
16122         * arm/crti.asm: Likewise.
16123         * arm/crtn.asm: Likewise.
16124         * arm/lib1funcs.asm: Likewise.
16125         * arm/libunwind.S: Likewise.
16127 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
16129         * arm-protos.h (tune_params): New structure.
16130         * arm.c (current_tune): New variable.
16131         (arm_constant_limit): Delete.
16132         (struct processors): Add pointer to the tune parameters.
16133         (arm_slowmul_tune): New tuning option.
16134         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
16135         (all_cores): Adjust to pick up the tuning model.
16136         (arm_constant_limit): New function.
16137         (arm_override_options): Select the appropriate tuning model.  Delete
16138         initialization of arm_const_limit.
16139         (arm_split_constant): Use the new constant-limit model.
16140         (arm_rtx_costs): Pick up the current tuning model.
16141         * arm.md (is_strongarm, is_xscale): Delete.
16142         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
16143         for Xscale variant architectures.
16144         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
16146 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16148         * config/arm/arm.c (arm_gen_constant): Remove unused variable
16149         can_shift.
16150         (arm_rtx_costs_1): Remove unused variable extra_cost.
16151         (arm_unwind_emit_set): Use variable offset.
16152         (thumb1_output_casesi): Remove unused variable flags.
16154 2010-04-16  Jeff Law  <law@redhat.com>
16156         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
16157         needing assignment rather than doing a two-phase assignment.  Remove
16158         unused variable 'm'.
16160 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
16162         PR bootstrap/43767
16163         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
16165 2010-04-16  Doug Kwan  <dougkwan@google.com>
16167         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
16168         (next_operand_entry_id): New static variable.
16169         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
16170         (add_to_ops_vec): Assigned unique ID to operand entry.
16171         (struct oecount_s): New field ID.
16172         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
16173         (undistribute_ops_list): Assign unique IDs to oecounts.
16174         (init_reassoc): reset next_operand_entry_id.
16176 2010-04-16  Doug Kwan  <dougkwan@google.com>
16178         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
16179         missing left parenthesis.
16181 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
16183         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
16184         *btdi_rex64 using SWI48 mode iterator.
16185         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
16186         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
16187         *jcc_btdi_mask_rex64.
16189 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
16191         * double-int.h (tree_to_double_int): Convert to macro.
16192         * double-int.c (tree_to_double_int): Remove.
16194 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
16196         PR debug/43762
16197         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
16198         with want_address 2 and in case a single element list might be
16199         possible, call it again with want_address 0.
16201 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
16203         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
16204         case 'W' print operands for HI mode.
16205         * config/h8300/h8300.h (Y0, Y2) : New constraints.
16206         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
16207         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
16208         * config/h8300/predicate.md (bit_register_indirect_operand): New.
16210         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
16212         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
16213         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
16214         #xx:3 and #xx:4 mode.
16216         * config/h8300/h8300.md (inverted load with HImode dest): Add
16217         support for H8300SX.
16219         * config/h8300/predicate.md (bit_operand): Allow immediate values that
16220         satisfy 'U' constraint.
16222 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16224         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
16225         * configure: Regenerate.
16226         * config.in: Regenerate.
16227         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
16228         works.
16230 2010-04-16  Richard Guenther  <rguenther@suse.de>
16232         * tree.h (struct tree_decl_minimal): Move pt_uid ...
16233         (struct tree_decl_common): ... here.
16234         (DECL_PT_UID): Adjust.
16235         (SET_DECL_PT_UID): Likewise.
16236         (DECL_PT_UID_SET_P): Likewise.
16238 2010-04-16  Richard Guenther  <rguenther@suse.de>
16240         PR tree-optimization/43572
16241         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
16242         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
16243         * tree-flow.h (is_call_clobbered): Remove.
16244         * tree-flow-inline.h (is_call_clobbered): Likewise.
16245         * tree-dfa.c (dump_variable): Do not dump call clobber state.
16246         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
16247         (execute_return_slot_opt): Adjust.
16248         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
16249         check for call clobbered vars here.
16250         (find_tail_calls): Move tailcall verification to the
16251         proper place.
16253 2010-04-16  Diego Novillo  <dnovillo@google.com>
16255         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
16257 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
16259         PR target/40603
16260         * config/arm/arm.md (cbranchqi4): New pattern.
16261         * config/arm/predicates.md (const0_operand,
16262         cbranchqi4_comparison_operator): New predicates.
16264 2010-04-16  Richard Guenther  <rguenther@suse.de>
16266         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
16267         (dump_gimple_stmt): Likewise.
16269 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
16271         * recog.h (struct recog_data): New field is_operator.
16272         (struct insn_operand_data): New field is_operator.
16273         * recog.c (extract_insn): Set recog_data.is_operator.
16274         * genoutput.c (output_operand_data): Emit code to set the
16275         is_operator field.
16276         * reload.c (find_reloads): Use it rather than testing for an
16277         empty constraint string.
16279         PR target/41514
16280         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
16281         If the previous insn is a cbranchsi4_insn with the same arguments,
16282         omit the compare instruction.
16284         * config/arm/arm.md (addsi3_cbranch): If destination is a high
16285         register, inputs must be low registers and we need a low register
16286         scratch.  Handle alternative 2 like alternative 3.
16288 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
16290         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
16291         don't call get_addr on both.  If one expression is a VALUE and
16292         the other a REG, check VALUE's locs if the REG isn't among them.
16294 2010-04-16  Christian Bruel  <christian.bruel@st.com>
16296         * config/sh/sh.h (sh_frame_pointer_required): New function.
16297         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
16298         (flag_omit_frame_pointer) Set.
16299         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
16300         (rounded_frame_size): Adjust size with outgoing_args_size.
16301         (sh_set_return_address): Must return from stack pointer.
16302         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
16303         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
16304         (ACCUMULATE_OUTGOING_ARGS): Define.
16305         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
16306         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
16308 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
16310         PR target/43471
16311         * config/sh/sh.c (sh_legitimize_reload_address): Use
16312         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
16313         Remove a unneeded check for offset_base.
16315 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
16317         * configure: Regenerated.
16319 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16321         * config/s390/s390.c (s390_call_save_register_used): Switch back
16322         to HARD_REGNO_NREGS.
16324 2010-04-15  Richard Guenther  <rguenther@suse.de>
16326         * alias.c (alias_set_subset_of): Handle alias-set zero
16327         child properly.
16329 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
16330             Julian Brown  <julian@codesourcery.com>
16332         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
16333         alternatives according to use of high and low regs.
16334         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
16335         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
16336         optimizing for size on Thumb-2.
16338 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
16340         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
16342 2010-04-15  Richard Guenther  <rguenther@suse.de>
16344         * tree-ssa-structalias.c (struct variable_info): Add
16345         is_fn_info flag.
16346         (new_var_info): Initialize it.
16347         (dump_constraints): Support printing last added constraints.
16348         (debug_constraints): Adjust.
16349         (dump_constraint_graph): Likewise.
16350         (make_heapvar_for): Check for NULL cfun.
16351         (get_function_part_constraint): New function.
16352         (get_fi_for_callee): Likewise.
16353         (find_func_aliases): Properly implement IPA PTA constraints.
16354         (process_ipa_clobber): New function.
16355         (find_func_clobbers): Likewise.
16356         (insert_into_field_list_sorted): Remove.
16357         (create_function_info_for): Properly allocate vars for IPA mode.
16358         Do not use insert_into_field_list_sorted.
16359         (create_variable_info_for): Properly generate constraints for
16360         global vars in IPA mode.
16361         (dump_solution_for_var): Always dump the solution.
16362         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
16363         (find_what_var_points_to): Adjust.
16364         (pt_solution_set): Change.
16365         (pt_solution_ior_into): New function.
16366         (pt_solution_empty_p): Export.
16367         (pt_solution_includes_global): Adjust.
16368         (pt_solution_includes_1): Likewise.
16369         (pt_solutions_intersect_1): Likewise.
16370         (dump_sa_points_to_info): Check some invariants.
16371         (solve_constraints): Move constraint dumping ...
16372         (compute_points_to_sets): ... here.
16373         (ipa_pta_execute): ... and here.
16374         (compute_may_aliases): Do not re-compute points-to info
16375         locally if IPA info is available.
16376         (ipa_escaped_pt): New global var.
16377         (ipa_pta_execute): Properly implement IPA PTA.
16378         * tree-into-ssa.c (dump_decl_set): Support dumping
16379         decls not in referenced-vars.
16380         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
16381         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
16382         (dump_points_to_solution): Likewise.
16383         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
16384         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
16385         (remap_gimple_stmt): Reset call clobber/use information if necessary.
16386         (copy_decl_to_var): Copy DECL_PT_UID.
16387         (copy_result_decl_to_var): Likewise.
16388         * tree.c (make_node_stat): Initialize DECL_PT_UID.
16389         (copy_node_stat): Copy it.
16390         * tree.h (DECL_PT_UID): New macro.
16391         (SET_DECL_PT_UID): Likewise.
16392         (DECL_PT_UID_SET_P): Likewise.
16393         (struct tree_decl_minimal): Add pt_uid member.
16394         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
16395         (pt_solution_empty_p): Declare.
16396         (pt_solution_set): Adjust.
16397         (ipa_escaped_pt): Declare.
16398         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
16399         * gimple-pretty-print.c (pp_points_to_solution): New function.
16400         (dump_gimple_call): Dump call clobber/use information.
16401         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
16402         * tree-pass.h (TDF_ALIAS): New dump option.
16403         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
16404         * doc/invoke.texi (-fipa-pta): Update documentation.
16406 2010-04-15  Richard Guenther  <rguenther@suse.de>
16408         * Makefile.in (OBJS-common): Add gimple-fold.o.
16409         (gimple-fold.o): New rule.
16410         * tree.h (maybe_fold_offset_to_reference,
16411         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
16412         prototypes ...
16413         * gimple.h: ... here.
16414         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
16415         may_propagate_address_into_dereference): Move prototypes ...
16416         * gimple.h: ... here.
16417         * tree-ssa-ccp.c (get_symbol_constant_value,
16418         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
16419         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
16420         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
16421         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
16422         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
16423         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
16424         gimplify_and_update_call_from_tree): Move ...
16425         * gimple-fold.c: ... here.  New file.
16426         (ccp_fold_builtin): Rename to ...
16427         (gimple_fold_builtin): ... this.
16428         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
16430 2010-04-15  Richard Guenther  <rguenther@suse.de>
16432         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
16433         fit_double_type, force_fit_type_double, add_double_with_sign,
16434         neg_double, mul_double_with_sign, lshift_double, rshift_double,
16435         lrotate_double, rrotate_double, div_and_round_double): Move ...
16436         * double-int.c: ... here.
16437         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
16438         add_double, neg_double, mul_double_with_sign, mul_double,
16439         lshift_double, rshift_double, lrotate_double, rrotate_double,
16440         div_and_round_double): Move prototypes ...
16441         * double-int.h: ... here.
16443 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
16445         PR target/43742
16446         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
16447         matching constraints to ensure inputs match the output.
16449 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
16451         PR target/43742
16452         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
16453         in an input-only operand.
16455 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
16457         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
16458         (double_int_not, double_int_lshift, double_int_rshift): Declare.
16459         (double_int_negative_p): Convert to static inline function.
16460         * double-int.c (double_int_lshift, double_int_lshift): New functions.
16461         (double_int_negative_p): Remove.
16462         * tree.h (lshift_double, rshift_double):
16463         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
16464         * fold-const.c (fold_convert_const_int_from_real,
16465         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
16466         (lshift_double): Change type of arith argument to bool.
16467         (rshift_double): Change type of arith argument to bool. Correct
16468         comment.
16469         * expmed.c (mask_rtx, lshift_value): (Ditto.).
16471 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
16473         PR target/21803
16474         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
16475         at the start and end of the then/else blocks, and omit them from the
16476         conversion.
16477         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
16478         argument; all callers changed.  Pass zero to old_insns_match_p instead.
16479         (flow_find_head_matching_sequence): New function.
16480         (old_insns_match_p): Check REG_EH_REGION notes for calls.
16481         * basic-block.h (flow_find_cross_jump,
16482         flow_find_head_matching_sequence): Declare functions.
16484 2010-04-14  Jason Merrill  <jason@redhat.com>
16486         PR c++/36625
16487         * c-common.c (attribute_takes_identifier_p): New fn.
16488         * c-common.h: Declare it.
16490 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
16492         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
16493         splitter condition.
16494         (*udivmod<mode>4): Ditto.
16496 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
16498         * config/i386/i386.md (maxmin_int): Rename code attribute from
16499         maxminiprefix and update all users.
16500         (maxmin_float): Ditto from maxminfprefix.
16501         (logic): Ditto from logicprefix.
16502         (absneg_mnemonic): Ditto from absnegprefix.
16503         * config/i386/mmx.md: Update all users of maxminiprefix,
16504         maxminfprefix and logicprefix for rename.
16505         * config/i386/sse.md: Ditto.
16506         * config/i386/sync.md (sync_<code><mode>): Update for
16507         logicprefix rename.
16509 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16511         PR 42966
16512         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
16513         warnings converted to errors.
16515 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
16517         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
16518         used insn_type variable.
16519         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
16520         to avoid set-but-not-used warning.
16522 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
16524         * df-core.c (df_ref_debug): Change format string placeholder
16525         from 0x%x to %#x.
16526         * dwarf2asm.c (dw2_asm_output_data_raw,
16527         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
16528         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
16529         * dwarf2out.c (output_cfi, output_cfi_directive,
16530         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
16531         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
16532         Ditto.
16533         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
16534         * print-rtl.c (print_rtx): Ditto.
16536 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
16538         PR middle-end/42694
16539         * builtins.c (expand_builtin_pow_root): New function to expand pow
16540         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
16541         series of sqrt and cbrt calls under -ffast-math.
16542         (expand_builtin_pow): Call it.
16544 2010-04-14  Michael Matz  <matz@suse.de>
16546         PR tree-optimization/42963
16547         * tree-cfg.c (touched_switch_bbs): New static variable.
16548         (group_case_labels_stmt): New function broken out from ...
16549         (group_case_labels): ... here, use the above.
16550         (start_recording_case_labels): Allocate touched_switch_bbs.
16551         (end_recording_case_labels): Deallocate it, call
16552         group_case_labels_stmt.
16553         (gimple_redirect_edge_and_branch): Remember index of affected BB.
16555 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
16557         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
16558         from insn template.
16560 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
16562         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
16564 2010-04-13  Jan Hubicka  <jh@suse.cz>
16566         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
16567         of optimized out static functions.
16568         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
16569         cost computation.  Also sanity check for overflows.
16570         (update_caller_keys): Update cgraph_edge_badness call; properly
16571         update fibheap and sanity check that it is up to date.
16572         (add_new_edges_to_heap): Update cgraph_edge_badness.
16573         (cgraph_decide_inlining_of_small_function): Likewise;
16574         add sanity checking that badness in heap is up to date;
16575         improve dumping of reason; Update badness of calls to the
16576         offline copy of function currently inlined; dump badness
16577         of functions not inlined because of unit growth limits.
16579 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
16581         PR middle-end/32628
16582         * c-common.c (pointer_int_sum): Disregard overflow that occured only
16583         because of sign-extension change when converting to sizetype here...
16584         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
16586         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
16587         the folding to constants.  Remove redundant final conversion.
16588         (fold_binary) <associate>: Do not associate if the re-association of
16589         constants alone overflows.
16590         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
16591         to the end of the list.
16592         (multiple_of_p) <COND_EXPR>: New case.
16594 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16596         * opt-functions.awk (opt_sanitized_name): New.
16597         (opt_enum): New.
16598         * optc-gen.awk: Use it
16599         * opth-gen.awk: Use it.
16601 2010-04-13  Martin Jambor  <mjambor@suse.cz>
16603         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
16604         (sra_modify_assign): Delete stmts loading dead data even if racc has no
16605         children.  Call replace_uses_with_default_def_ssa_name to handle
16606         SSA_NAES on lhs.
16608 2010-04-13  Michael Matz  <matz@suse.de>
16610         PR middle-end/43730
16611         * builtins.c (expand_builtin_interclass_mathfn): Also create
16612         a register if the predicate doesn't match.
16614 2010-04-13  Diego Novillo  <dnovillo@google.com>
16616         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
16617         * c-pch.c: Include timevar.h.
16618         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
16619         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
16620         * ggc-common.c: Include timevar.h.
16621         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
16622         * timevar.def (TV_PCH_SAVE): Define.
16623         (TV_PCH_CPP_SAVE): Define.
16624         (TV_PCH_PTR_REALLOC): Define.
16625         (TV_PCH_PTR_SORT): Define.
16626         (TV_PCH_RESTORE): Define.
16627         (TV_PCH_CPP_RESTORE): Define.
16629 2010-04-13  Michael Matz  <matz@suse.de>
16631         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
16632         into MINUS_EXPRs.
16633         (can_reassociate_p): New function.
16634         (break_up_subtract_bb, reassociate_bb): Use it.
16636 2010-04-13  Richard Guenther  <rguenther@suse.de>
16638         PR bootstrap/43737
16639         * builtins.c (c_readstr): Fix assert.
16641 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
16643         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
16644         when generating cltd insn.
16646         (*ashl<mode>3_1): Remove special handling for register operand 2.
16647         (*ashlsi3_1_zext): Ditto.
16648         (*ashlhi3_1): Ditto.
16649         (*ashlhi3_1_lea): Ditto.
16650         (*ashlqi3_1): Ditto.
16651         (*ashlqi3_1_lea): Ditto.
16652         (*<shiftrt_insn><mode>3_1): Ditto.
16653         (*<shiftrt_insn>si3_1_zext): Ditto.
16654         (*<shiftrt_insn>qi3_1_slp): Ditto.
16655         (*<rotate_insn><mode>3_1): Ditto.
16656         (*<rotate_insn>si3_1_zext): Ditto.
16657         (*<rotate_insn>qi3_1_slp): Ditto.
16659 2010-04-13  Richard Guenther  <rguenther@suse.de>
16661         * tree-ssa-structalias.c (callused_id): Remove.
16662         (call_stmt_vars): New.
16663         (get_call_vi): Likewise.
16664         (lookup_call_use_vi): Likewise.
16665         (lookup_call_clobber_vi): Likewise.
16666         (get_call_use_vi): Likewise.
16667         (get_call_clobber_vi): Likewise.
16668         (make_transitive_closure_constraints): Likewise.
16669         (handle_const_call): Adjust to do per-call call-used handling.
16670         (handle_pure_call): Likewise.
16671         (find_what_var_points_to): Remove general callused handling.
16672         (init_base_vars): Likewise.
16673         (init_alias_vars): Initialize call_stmt_vars.
16674         (compute_points_to_sets): Process call-used and call-clobbered
16675         vars for call statements.
16676         (delete_points_to_sets): Free call_stmt_vars.
16678 2010-04-13  Richard Guenther  <rguenther@suse.de>
16680         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
16681         Only add RW dependence for dependence distance zero.
16682         Adjust maximal vectorization factor according to dependences.
16683         Move alignment handling ...
16684         (vect_find_same_alignment_drs): ... here.  New function.
16685         (vect_analyze_data_ref_dependences): Adjust.
16686         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
16687         (vect_analyze_data_refs): Adjust minimal vectorization factor
16688         according to data references.
16689         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
16690         dependences before determining the vectorization factor.
16691         Analyze alignment after determining the vectorization factor.
16692         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
16693         dependences before alignment.
16694         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
16695         Adjust prototype.
16696         (vect_analyze_data_refs): Likewise.
16697         (MAX_VECTORIZATION_FACTOR): New define.
16699 2010-04-13  Duncan Sands  <baldrick@free.fr>
16701         * except.h (lang_eh_type_covers): Remove.
16702         * except.c (lang_eh_type_covers): Likewise.
16704 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16705             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16707         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
16708         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
16709         UNITS_PER_LONG where it is ABI relevant.
16710         (s390_return_addr_rtx): Likewise.
16711         (s390_back_chain_rtx): Likewise.
16712         (s390_frame_area): Likewise.
16713         (s390_frame_info): Likewise.
16714         (s390_initial_elimination_offset): Likewise.
16715         (save_gprs): Likewise.
16716         (s390_emit_prologue): Likewise.
16717         (s390_emit_epilogue): Likewise.
16718         (s390_function_arg_advance): Likewise.
16719         (s390_function_arg): Likewise.
16720         (s390_va_start): Likewise.
16721         (s390_gimplify_va_arg): Likewise.
16722         (s390_function_profiler): Likewise.
16723         (s390_optimize_prologue): Likewise.
16724         (s390_rtx_costs): Likewise.
16725         (s390_secondary_reload): Likewise.
16726         (s390_promote_function_mode): Likewise.
16727         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
16728         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
16729         registers available.
16730         (s390_unwind_word_mode): New function.
16731         (s390_function_value): Split 64 bit values into register pair if
16732         used as return value.
16733         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
16734         function call parameters.  Handle parallels.
16735         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
16736         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
16737         (DWARF_CIE_DATA_ALIGNMENT): New macro.
16738         (s390_expand_setmem): Remove unused variable src_addr.
16739         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
16740         deal with 64 bit registers.
16741         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
16742         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
16743         (UNITS_PER_LONG): New macro.
16744         * libjava/include/s390-signal.h: Define extended ucontext
16745         structure containing the upper halfs of the 64 bit registers.
16747 2010-04-13  Simon Baldwin  <simonb@google.com>
16749         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
16751 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
16753         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
16754         rvalue on the RHS if the LHS is of a non-renamable type.
16755         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
16757 2010-04-13  Matthias Klose  <doko@ubuntu.com>
16759         * gcc.c (cc1_options): Handle -iplugindir before processing
16760         the cc1 spec. Only add -iplugindir once.
16761         (cpp_unique_options): Add -iplugindir option if -fplugin* options
16762         found.
16763         * common.opt (iplugindir): Remove `Separate' property, initialize.
16764         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
16765         option.
16766         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
16767         (distclean): Remove plugin dir.
16768         * doc/invoke.texi: Document -iplugindir.
16770 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
16772         * doc/plugins.texi (Loading Plugins): Document short
16773         -fplugin=foo option.
16774         (Plugin API): Mention default_plugin_dir_name function.
16776         * gcc.c (find_file_spec_function): Add new declaration.
16777         (static_spec_func): Use it for "find-file".
16778         (find_file_spec_function): Add new function.
16779         (cc1_options): Add -iplugindir option if -fplugin* options found.
16781         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
16783         * plugin.c (add_new_plugin): Updated comment, and handle short
16784         plugin name.
16785         (default_plugin_dir_name): Added new function.
16787         * common.opt (iplugindir): New option to set the plugin directory.
16789 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
16791         * config/i386/i386.md (any_rotate): New code iterator.
16792         (rotate_insn): New code attribute.
16793         (rotate): Ditto.
16794         (SWIM124): New mode iterator.
16795         (<rotate_insn>ti3): New expander.
16796         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
16797         any_rotate code iterator.
16798         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
16799         using any_rotate code iterator and SWIM124 mode iterator.
16800         (ix86_rotlti3): New insn_and_split pattern.
16801         (ix86_rotrti3): Ditto.
16802         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
16803         ix86_rotl{di,ti}3 patterns.
16804         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
16805         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
16806         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
16807         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
16808         code iterator and SWI mode iterator.
16809         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
16810         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
16811         code iterator.
16812         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
16813         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
16814         (bswap rotatert splitter): Add splitter.
16815         (bswap splitter): Macroize splitter using any_rotate code iterator.
16816         Add insn predicate to split only for TARGET_USE_XCHGB or when
16817         optimizing function for size.
16819 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
16821         * config/pa/pa.c (emit_move_sequence): Remove use of
16822         deleted variable flag_argument_noalias.
16824 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16826         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
16827         configurations.
16828         Add to unsupported targets list.
16829         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
16830         sparc*-sun-solaris2.[567]* from target lists.
16831         * configure: Regenerate.
16832         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
16833         removal.
16834         Remove Solaris 7 patch references.
16835         (Specific, sparc-sun-solaris2.7): Removed.
16836         (sparc-sun-solaris2*): Update Solaris 7 example.
16837         (sparc64-*-solaris2*): Likewise.
16839 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16841         * config.build (alpha*-dec-osf4*): Remove.
16842         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
16843         of obsolete configurations.
16844         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
16845         support.
16846         * config/alpha/t-osf4: Renamed to ...
16847         * config/alpha/t-osf5: ... this.
16848         * config/alpha/osf.h: Renamed to ...
16849         * config/alpha/osf5.h: ... this.
16850         Merged old osf5.h contents.
16851         Update comments.
16852         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
16853         (EXTRA_SPECS): Removed.
16854         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
16855         reflect removal of Tru64 UNIX V4.0/V5.0 support.
16856         Document that.
16858 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16860         * doc/contrib.texi (Contributors, Rainer Orth): Update.
16862 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
16864         PR/43702
16865         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
16866         __thiscall convention.
16868 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
16870         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
16871         orig_base.
16872         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
16874 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
16876         * function.c (assign_parms_initialize_all): Add unused attribute
16877         to fntype.
16879 2010-04-12  Richard Guenther  <rguenther@suse.de>
16881         * gsstruct.def (GSS_CALL): New.
16882         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
16883         * gimple.h: Include tree-ssa-alias.h.
16884         (struct gimple_statement_call): New.
16885         (union gimple_statement_struct_d): Add gimple_call member.
16886         (gimple_call_reset_alias_info): Declare.
16887         (gimple_call_use_set): New function.
16888         (gimple_call_clobber_set): Likewise.
16889         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
16890         * gimple.c (gimple_call_reset_alias_info): New function.
16891         (gimple_build_call_1): Call it.
16892         * lto-streamer-in.c (input_gimple_stmt): Likewise.
16893         * tree-inline.c (remap_gimple_stmt): Likewise.
16894         (expand_call_inline): Remove callused handling.
16895         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
16896         * tree-dfa.c (dump_variable): Likewise.
16897         * tree-parloops.c (parallelize_loops): Likewise.
16898         * tree-ssa.c (init_tree_ssa): Likewise.
16899         (delete_tree_ssa): Likewise.
16900         * tree-flow-inline.h (is_call_used): Remove.
16901         * tree-flow.h (struct gimple_df): Remove callused member.
16902         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
16903         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
16904         (ref_maybe_used_by_call_p_1): Simplify.
16905         (call_may_clobber_ref_p_1): Likewise.
16906         * tree-ssa-structalias.c (compute_points_to_sets): Set
16907         the call stmt used and clobbered sets.
16908         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
16909         (find_tail_calls): Verify the tail call.
16911 2010-04-12  Richard Guenther  <rguenther@suse.de>
16913         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
16914         single-iteration always-inline inlining.
16915         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
16916         (cgraph_decide_inlining): Do not handle always-inline specially.
16917         (try_inline): Remove always-inline cycle detection special case.
16918         Do not recurse on always-inlines.
16919         (cgraph_early_inlining): Do not iterate if not optimizing.
16920         (cgraph_gate_early_inlining): remove.
16921         (pass_early_inline): Run unconditionally.
16922         (gate_cgraph_decide_inlining): New function.
16923         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
16924         not inlining or optimizing.
16925         (cgraph_decide_inlining_of_small_functions): Also consider
16926         always-inline functions.
16927         (cgraph_default_inline_p): Return true for nodes which should
16928         disregard inline limits.
16929         (estimate_function_body_sizes): Assume zero size and time for
16930         nodes which are marked as disregarding inline limits.
16931         (cgraph_decide_recursive_inlining): Do not perform recursive
16932         inlining on always-inline nodes.
16934 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
16936         PR bootstrap/43699
16937         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
16938         for exprs satisfying handled_component_p.
16940 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
16942         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
16943         non-constant aggregate elements.
16945         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
16946         is a real initialization.
16948 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
16950         PR c/36774
16951         * c-decl.c (start_function): Move forward check for nested function.
16953 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
16955         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
16956         * config/sh/sh.c: Include reload.h.
16957         (sh_legitimize_reload_address): New.
16958         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
16959         sh_legitimize_reload_address.
16961 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
16963         * config/sh/sh.md (*movqi_pop): New insn pattern.
16964         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
16966 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
16968         * config/i386/i386.md (any_shiftrt): New code iterator.
16969         (shiftrt_insn): New code attribute.
16970         (shiftrt): Ditto.
16971         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
16972         using any_shiftrt code iterator.
16973         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
16974         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
16975         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
16976         pattern from corresponding peephole2 patterns.
16977         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
16978         using any_shiftrt code iterator.
16979         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
16980         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
16981         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
16982         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
16983         *{ashr,lshr}<mode>3_cmp_zext.
16984         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
16986 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
16988         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
16989         scratch register.
16990         (*lshr<mode>3_cconly): Ditto.
16992 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
16994         * config/i386/i386.md (lshr<mode>3): Macroize expander from
16995         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
16996         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
16997         pattern from *lshr{di,ti}3_1 and corresponding splitters using
16998         DWI mode iterator.
16999         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
17000         from corresponding peephole2 patterns.
17001         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
17002         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
17003         and *lshrdi3_1_rex64 using SWI mode iterator.
17004         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
17005         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
17006         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
17007         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
17008         and *lshrdi3_cmp_rex64 using SWI mode iterator.
17009         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
17010         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
17011         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
17012         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
17013         SWI mode iterator.
17015 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
17017         * config/i386/i386.md (ashr<mode>3): Macroize expander from
17018         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
17019         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
17020         pattern from *ashr{di,ti}3_1 and corresponding splitters using
17021         DWI mode iterator.
17022         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
17023         from corresponding peephole2 patterns.
17024         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
17025         (ashrsi3_cvt): Rename from ashrsi3_31.
17026         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
17027         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
17028         and x86_64_shift_adj_3 using SWI48 mode iterator.
17029         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
17030         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
17031         and *ashrdi3_1_rex64 using SWI mode iterator.
17032         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
17033         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
17034         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
17035         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
17036         and *ashrdi3_cmp_rex64 using SWI mode iterator.
17037         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
17038         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
17039         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
17040         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
17041         SWI mode iterator.
17042         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
17043         * config/i386/i386.c (ix86_split_ashr): Update for renamed
17044         x86_shift<mode>_adj_3 expanders.
17046 2010-04-10  Wei Guozhi  <carrot@google.com>
17048         PR target/42601
17049         * config/arm/arm.c (arm_pic_static_addr): New function.
17050         (legitimize_pic_address): Call arm_pic_static_addr when it detects
17051         a static symbol.
17052         (arm_output_addr_const_extra): Output expression for new pattern.
17053         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
17055 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
17057         * ira-costs.c (record_reg_classes): Ignore alternatives that are
17058         not enabled.
17060         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
17061         * web.c: Include "insn-config.h" and "recog.h".
17062         (union_match_dups): New function.
17063         (web_main): Call it.
17064         (union_defs): Don't try to recognize match_dups.
17066         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
17067         if doing so would replace the entire pattern.
17069 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
17071         PR target/43707
17072         PR target/43709
17073         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
17074         and splitter pattern.  Change splitter operand 1 predicate to
17075         nonmemory_operand.
17077 2010-04-09  Martin Jambor  <mjambor@suse.cz>
17079         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
17080         lattices are addresses of CONST_DECLs with the same initial value.
17081         (ipcp_print_all_lattices): Print values of CONST_DECLs.
17082         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
17084 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
17085             Bernd Schmidt  <bernds@codesourcery.com>
17087         * loop-invariant.c (replace_uses): New static function.
17088         (move_invariant_reg): Use it to ensure we can replace the uses.
17090 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
17092         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
17093         function template.
17094         (picochip_override_options): Enable section anchors only above -O1.
17095         (picochip_reorg): Fixed a couple of build warnings.
17097 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17099         * configure.ac (plugin -rdynamic test): Log result.
17100         * configure: Regenerate.
17101         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
17102         (RDYNAMIC_SPEC): Define.
17103         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
17105 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17107         * configure.ac: Determine Sun ld version numbers.
17108         (comdat_group): Restrict GNU ld version checks to gld.
17109         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
17110         (enable_comdat): Support --enable-comdat.
17111         * configure: Regenerate.
17112         * doc/install.texi (Configuration): Document --enable-comdat.
17114 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17116         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
17117         * config/sol2-gld.h: ... here.
17118         * config.gcc (sparc*-*-solaris2*): Reflect this.
17119         (i[34567]86-*-solaris2*): Use it.
17121 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
17123         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
17124         setup_clocks_p.
17125         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
17127 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17129         PR 42965
17130         * diagnostic.c (diagnostic_initialize): Initialize
17131         some_warnings_are_errors.
17132         (diagnostic_finish): New.
17133         (diagnostic_action_after_output): Call it before exiting.
17134         (diagnostic_report_diagnostic): Do not print message here. Set
17135         some_warnings_are_errors.
17136         * diagnostic.h (diagnostic_context): Delete
17137         issue_warnings_are_errors_message. Add some_warnings_are_errors.
17138         (diagnostic_finish): Declare.
17139         * toplev.c (toplev_main): Call it before exit.
17141 2010-04-09  Jason Merrill  <jason@redhat.com>
17143         PR c++/42623
17144         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
17145         for incomplete type.
17147         PR c++/41788
17148         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
17149         based on a warning flag.
17151 2010-04-09  Richard Guenther  <rguenther@suse.de>
17153         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
17155 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
17157         PR bootstrap/43684
17158         * varasm.c (default_assemble_visibility): Wrap vars that are
17159         set, but unused, by targets without GAS.
17160         * config/rs6000/rs6000.c (paired_emit_vector_compare):
17161         Remove set, but unused, vars.
17162         (rs6000_legitimize_tls_address): Likewise.
17163         (altivec_expand_dst_builtin): Likewise.
17164         * config/darwin.c (machopic_classify_symbol): Likewise.
17165         (machopic_indirection_name): Likewise.
17167 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
17169         * config/i386/i386.md (DWI): New mode iterator.
17170         (S): New mode attribute.
17171         (shift_operand): Ditto.
17172         (shift_immediate_operand): Ditto.
17173         (ashl_input_operand): Ditto.
17174         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
17175         using SDWIM mode iterator.
17176         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
17177         pattern from *ashl{di,ti}3_1 and corresponding splitters using
17178         DWI mode iterator.
17179         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
17180         from corresponding peephole2 patterns.
17181         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
17182         and x86_64_shift_adj_1 using SWI48 mode iterator.
17183         (x86_shift<mode>_adj_2): Ditto.
17184         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
17185         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
17186         using SWI48 mode iterator.
17187         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
17188         *ashldi3_cmp_rex64 using SWI mode iterator.
17189         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
17190         *ashldi3_cconly_rex64 using SWI mode iterator.
17191         * config/i386/i386.c (ix86_split_ashl): Update for renamed
17192         x86_shift<mode>_adj_{1,2}.
17193         (ix86_split_ashr): Ditto.
17194         (ix86_split_lshr): Ditto.
17196 2010-04-09  Richard Guenther  <rguenther@suse.de>
17198         * target.h (builtin_conversion): Pass in input and output types.
17199         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
17200         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
17201         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
17202         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
17204         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
17205         Handle AVX modes.
17206         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
17208 2010-04-09  Richard Guenther  <rguenther@suse.de>
17210         PR target/43152
17211         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
17213 2010-04-09  Richard Guenther  <rguenther@suse.de>
17215         * tree-vectorizer.h (struct _stmt_vec_info): Document
17216         that vectype is the type of the LHS.
17217         (supportable_widening_operation, supportable_narrowing_operation):
17218         Get both input and output vector types as arguments.
17219         (vect_is_simple_use_1): Declare.
17220         (get_same_sized_vectype): Likewise.
17221         * tree-vect-loop.c (vect_determine_vectorization_factor):
17222         Set STMT_VINFO_VECTYPE to the vector type of the def.
17223         (vectorizable_reduction): Adjust.
17224         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
17225         Adjust.  Specify the output vector type.
17226         (vect_pattern_recog_1): Adjust.
17227         * tree-vect-stmts.c (get_same_sized_vectype): New function.
17228         (vectorizable_call): Adjust.
17229         (vectorizable_conversion): Likewise.
17230         (vectorizable_operation): Likewise.
17231         (vectorizable_type_demotion): Likewise.
17232         (vectorizable_type_promotion): Likewise.
17233         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
17234         the def.
17235         (vect_is_simple_use_1): New function.
17236         (supportable_widening_operation): Get both input and output
17237         vector types.
17238         (supportable_narrowing_operation): Likewise.
17239         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
17241 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
17243         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
17244         __thiscall and _thiscall as predefined macros.
17245         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
17246         thiscall attribute handling.
17247         (ix86_comp_type_attributes): Likewise.
17248         (ix86_function_regparm): Likewise.
17249         (ix86_return_pops_args): Likewise.
17250         (init_cumulative_args): Likewise.
17251         (find_drap_reg): Likewise.
17252         (ix86_static_chain): Likewise.
17253         (x86_this_parameter): Likewise.
17254         (x86_output_mi_thunk): Likewise.
17255         (ix86_attribute_table): Add description for thiscall attribute.
17256         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
17257         * doc/extend.texi: Add documentation for thiscall.
17259 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17261         PR c++/28584
17262         * c.opt (Wint-to-pointer-cast): Available in C++.
17263         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
17265 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
17267         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
17268         * calls.c (expand_call): Pass the function type to aggregate_value_p.
17269         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
17270         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
17271         function type instead.  Reorder and simplify checks.
17273         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
17275 2010-04-08  Jing Yu  <jingyu@google.com>
17276             Zdenek Dvorak  <ook@ucw.cz>
17278         PR tree-optimization/42720
17279         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
17280         loop unswitch conditions here from ...
17281         (tree_unswitch_single_loop): ... here.
17283 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
17285         * tree-if-conv.c: Fix comments and simplify logic.
17287 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
17289         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
17290         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
17291         (main_tree_if_conversion): Update call to tree_if_conversion.
17293 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17295         PR 42485
17296         * doc/invoke.texi (-b,-V): Delete.
17297         * doc/tm.texi: Do not mention -b.
17298         * gcc.c (display_help): Delete -b and -V.
17299         (process_command): Delete -b and -V.
17300         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
17302 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
17303             Wolfgang Gellerich  <gellerich@de.ibm.com>
17305         Implement target hook for loop unrolling
17306         * target.h (loop_unroll_adjust): Add a new target hook function.
17307         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
17308         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
17309         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
17310         (s390_loop_unroll_adjust): Implement the new target hook for s390.
17311         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
17312         target hook.
17313         (decide_unroll_stupid): Likewise.
17315 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17317         PR target/43643
17318         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
17320 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17322         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
17323         (Specific, *-*-solaris2*): Likewise.
17324         Don't prefer Sun as over GNU as.
17326 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
17328         * config/s390/s390.c (override_options): Adjust the z10 defaults
17329         for max-unroll-times, max-completely-peeled-insns
17330         and max-completely-peel-times.
17332 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17334         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
17335         instructions for z10.
17336         (s390_expand_setmem): Likewise.
17337         (s390_expand_cmpmem): Likewise.
17339 2010-04-08  Richard Guenther  <rguenther@suse.de>
17341         PR tree-optimization/43679
17342         * tree-ssa-pre.c (eliminate): Only propagate copies.
17344 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
17346         PR bootstrap/43681
17347         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
17348         set but not used variable warning.
17350 2010-04-08  Wei Guozhi  <carrot@google.com>
17352         PR target/41653
17353         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
17354         (arm_size_rtx_costs): Call the new function when optimized for size.
17356 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
17358         PR debug/43670
17359         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
17360         op0 is not a MEM, just return NULL instead of assertion
17361         failure.
17362         (discover_nonconstant_array_refs): Don't walk debug stmts.
17364 2010-04-08  Doug Kwan  <dougkwan@google.com>
17366         * configure.ac: Recognize gold and do not use its version number
17367         to test ld features.
17368         * configure: Regenerate.
17370 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
17372         PR middle-end/40815
17373         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
17374         (negate_value): Move code to push elements to broken_up_substracts ...
17375         (eliminate_plus_minus_pair): ... here.  Push operands that have no
17376         negative pair to plus_negates.
17377         (repropagate_negates, init_reassoc, fini_reassoc): Update.
17379 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17381         * doc/install.texi (Configuration): Move description of
17382         --enable-lto, --with-libelf*, --enable-gold from Java section to
17383         general section.
17385         * doc/generic.texi (Working with declarations)
17386         (Function Properties, C and C++ Trees): Fix typos.
17387         * doc/sourcebuild.texi (Top Level): Likewise.
17389 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
17391         PR c/18624
17392         * tree.h (DECL_READ_P): Define.
17393         (struct tree_decl_common): Add decl_read_flag.
17394         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
17395         a set but not used warning.
17396         (merge_decls): Merge DECL_READ_P flag.
17397         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
17398         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
17399         * c-common.c (handle_used_attribute, handle_unused_attribute):
17400         Likewise.
17401         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
17402         New prototypes.
17403         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
17404         New functions.
17405         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
17406         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
17407         c_parser_binary_expression, c_parser_cast_expression,
17408         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
17409         Call default_function_array_read_conversion instead of
17410         default_function_array_conversion where needed.
17411         (c_parser_unary_expression, c_parser_conditional_expression,
17412         c_parser_postfix_expression_after_primary, c_parser_initelt):
17413         Likewise.  Call mark_exp_read where needed.
17414         (c_parser_statement_after_labels, c_parser_asm_operands,
17415         c_parser_typeof_specifier, c_parser_sizeof_expression,
17416         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
17417         where needed.
17418         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
17419         New.
17420         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
17421         (warn_unused_but_set_parameter): Default to warn_unused
17422         && extra_warnings.
17423         * doc/invoke.texi: Document -Wunused-but-set-variable and
17424         -Wunused-but-set-parameter.
17426         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
17427         used count variable.
17428         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
17429         when operandN variables aren't used in the body of the expander
17430         or splitter.
17431         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
17432         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
17433         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
17434         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
17435         FOR_EACH_IMM_USE_ON_STMT): Likewise.
17436         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
17437         * tree.c (PROCESS_ARG): Likewise.
17439 2010-04-07  Simon Baldwin  <simonb@google.com>
17441         * diagnostic.h (diagnostic_override_option_index): New macro to
17442         set a diagnostic's option_index.
17443         * c-tree.h (c_cpp_error): Add warning reason argument.
17444         * opts.c (_warning_as_error_callback): New.
17445         (register_warning_as_error_callback): Store callback for
17446         warnings enabled via enable_warning_as_error.
17447         (enable_warning_as_error): Call callback, minor code tidy.
17448         * opts.h (register_warning_as_error_callback): Declare.
17449         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
17450         response to -Werror=.
17451         (c_common_init_options): Register warning_as_error_callback in opts.c.
17452         * common.opt: Add -Wno-cpp option.
17453         * c-common.c (struct reason_option_codes_t): Map cpp warning
17454         reason codes to gcc option indexes.
17455         * (c_option_controlling_cpp_error): New function, lookup the gcc
17456         option index for a cpp warning reason code.
17457         * (c_cpp_error): Add warning reason argument, call
17458         c_option_controlling_cpp_error for diagnostic_override_option_index.
17459         * doc/invoke.texi: Document -Wno-cpp.
17461 2010-04-07  Richard Guenther  <rguenther@suse.de>
17463         * ipa-reference.c (mark_load): Use get_base_address.
17464         (mark_store): Likewise.
17466         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
17467         inserting GIMPLE_NOPs into the IL.
17468         * tree-ssa-structalias.c (get_constraint_for_component_ref):
17469         Explicitly strip handled components and indirect references.
17471         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
17472         folding address expressions.
17473         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
17474         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
17475         operand_equal_p to compare decls.
17476         (ptr_deref_may_alias_decl_p): Likewise.
17477         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
17478         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
17479         Handle reversed comparison ops.
17480         * tree-sra.c (asm_visit_addr): Use get_base_address.
17481         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
17482         * ipa-reference.c (mark_address): Use get_base_address.
17484 2010-04-07  Richard Guenther  <rguenther@suse.de>
17486         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
17487         Propagate constants everywhere.
17489 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
17491         PR debug/43516
17492         * tree.c (MAX_INT_CACHED_PREC): Define.
17493         (nonstandard_integer_type_cache): New array.
17494         (build_nonstandard_integer_type): Cache results for precision
17495         <= MAX_INT_CACHED_PREC.
17497 2010-04-07  Richard Guenther  <rguenther@suse.de>
17499         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
17500         -fargument-noalias-global, -fargument-noalias-anything): Remove.
17501         * common.opt: Likewise.
17502         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
17503         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
17504         (nonoverlapping_memrefs_p): Likewise.
17505         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
17506         * opts.c (common_handle_option): Handle OPT_fargument_alias,
17507         OPT_fargument_noalias, OPT_fargument_noalias_anything and
17508         OPT_fargument_noalias_global for backward compatibility.
17510 2010-04-07  Richard Guenther  <rguenther@suse.de>
17512         PR tree-optimization/43270
17513         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
17514         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
17515         * tree-ssa-pre.c (phi_translate_1): Adjust.
17516         (fully_constant_expression): Split out vn_reference handling to ...
17517         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
17518         Fold reads from constant strings.
17519         (vn_reference_lookup): Handle fully constant references.
17520         (vn_reference_lookup_pieces): Likewise.
17521         * Makefile.in (expmed.o-warn): Add -Wno-error.
17523 2010-04-07  Martin Jambor  <mjambor@suse.cz>
17525         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
17527 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
17529         PR driver/41594
17530         * gcc.c: Add -static-libstdc++ to list of recognized options.
17532 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17534         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
17536 2010-04-07  Richard Guenther  <rguenther@suse.de>
17538         PR middle-end/42617
17539         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
17540         bases build simple mem attributes to retain points-to information.
17542 2010-04-07  Richard Guenther  <rguenther@suse.de>
17544         PR middle-end/42617
17545         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
17546         preserve points-to related information.
17548 2010-04-07  Richard Guenther  <rguenther@suse.de>
17550         PR middle-end/42617
17551         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
17552         discard plain indirect references.
17553         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
17554         * tree.c (tree_nop_conversion): Likewise.
17556 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
17558         PR debug/43628
17559         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
17561 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
17563         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
17564         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
17566 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
17568         * tree-if-conv.c: Fix indentation and comments.
17570 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
17572         * tree-if-conv.c: Sort static functions in topological order.
17574 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
17576         * tree-if-conv.c: Fix indentation and comments.
17578 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
17580         PR middle-end/43519
17581         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
17582         lang_hooks.types.type_for_size instead of
17583         build_nonstandard_integer_type.
17584         When converting an unsigned type to signed, double its precision.
17585         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
17586         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
17587         (graphite_create_new_loop_guard): When ub + 1 wraps around,
17588         use lb <= ub.
17590 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
17592         PR middle-end/43519
17593         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
17594         POINTER_PLUS_EXPR for pointer types.
17596 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
17598         PR middle-end/43519
17599         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
17600         * graphite-clast-to-gimple.c: Include langhooks.h.
17601         (max_signed_precision_type): New.
17602         (max_precision_type): Takes two types as arguments.
17603         (precision_for_value): New.
17604         (precision_for_interval): New.
17605         (gcc_type_for_interval): New.
17606         (gcc_type_for_value): New.
17607         (gcc_type_for_clast_term): New.
17608         (gcc_type_for_clast_red): New.
17609         (gcc_type_for_clast_bin): New.
17610         (gcc_type_for_clast_expr): Split up into several functions.
17611         (gcc_type_for_clast_eq): Rewritten.
17612         (compute_bounds_for_level): New.
17613         (compute_type_for_level_1): New.
17614         (compute_type_for_level): New.
17615         (gcc_type_for_cloog_iv): Removed.
17616         (gcc_type_for_iv_of_clast_loop): Rewritten.
17617         (graphite_create_new_loop): Compute the lower and upper bound types
17618         with gcc_type_for_clast_expr.
17619         (graphite_create_new_loop_guard): Same.
17620         (find_cloog_iv_in_expr): Removed.
17621         (compute_cloog_iv_types_1): Removed.
17622         (compute_cloog_iv_types): Removed.
17623         (gloog): Do not call compute_cloog_iv_types.
17624         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
17625         GBB_CLOOG_IV_TYPES.
17626         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
17627         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
17628         (GBB_CLOOG_IV_TYPES): Removed.
17630 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
17632         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
17633         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
17634         (detect_commutative_reduction): Same.
17636 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
17638         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
17639         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
17640         argument.
17641         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
17642         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
17643         (rewrite_commutative_reductions_out_of_ssa): Same.
17644         * passes.c (execute_function_todo): Call verify_ssa for every pass
17645         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
17646         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
17647         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
17648         with an extra argument.
17649         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
17650         verify_ssa only when the extra argument is true.
17651         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
17652         with an extra argument.
17653         (tree_transform_and_unroll_loop): Same.
17655 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
17657         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
17658         for all the passes of the LNO having LOOP_CLOSED_SSA.
17659         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
17660         * tree-loop-distribution.c (pass_loop_distribution): Same.
17661         * tree-pass.h (TODO_verify_loops): Removed.
17662         * tree-ssa-loop.c (pass_tree_loop_init): Same.
17663         (pass_lim): Same.
17664         (pass_tree_unswitch): Same.
17665         (pass_predcom): Same.
17666         (pass_vectorize): Same.
17667         (pass_linear_transform): Same.
17668         (pass_graphite_transforms): Same.
17669         (pass_iv_canon): Same.
17670         (pass_complete_unroll): Same.
17671         (pass_complete_unrolli): Same.
17672         (pass_parallelize_loops): Same.
17673         (pass_loop_prefetch): Same.
17674         (pass_iv_optimize): Same.
17676 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
17678         PR middle-end/32824
17679         * passes.c (init_optimization_passes): Move pass_lim before
17680         pass_copy_prop and pass_dce_loop.
17682 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
17684         PR target/43667
17685         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
17686         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
17687         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
17688         MULTI_* defines for 4 argument vpermil2p* builtins.
17690 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
17692         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
17693         * config/i386/i386.c (x86_maybe_negate_const_int): New.
17694         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
17695         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
17696         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
17697         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
17698         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
17699         Use x86_maybe_negate_const_int to output insn mnemonic.
17700         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
17701         check from instruction predicate.  Update comments.
17702         * config/i386/sync.md (sync_add<mode>): Use
17703         x86_maybe_negate_const_int to output insn mnemonic.
17705 2010-04-06  Jan Hubicka  <jh@suse.cz>
17707         PR tree-optimization/42906
17708         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
17709         IGNORE_SELF argument.  Set visited_control_parents for fully
17710         processed BBs.
17711         (find_obviously_necessary_stmts): Update call of
17712         mark_control_dependent_edges_necessary.
17713         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
17715 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
17717         * config/i386/i386.md: Remove comment about 'e' and 'E'
17718         operand modifier.
17720 2010-04-06  Richard Guenther  <rguenther@suse.de>
17722         PR tree-optimization/43627
17723         * tree-vrp.c (extract_range_from_unary_expr): Widenings
17724         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
17725         not varying.
17727 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
17729         * BASE-VER: Change to 4.6.0.
17731         PR target/43638
17732         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
17733         handling.
17735 2010-04-06  Richard Guenther  <rguenther@suse.de>
17737         PR middle-end/43661
17738         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
17740 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17742         * doc/invoke.texi (Optimize Options): Document that LTO
17743         won't remove object access purely due to incompatible
17744         declarations.
17746 2010-04-04  Matthias Klose  <doko@ubuntu.com>
17748         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
17749         Initialize variable.
17751 2010-04-03  Richard Guenther  <rguenther@suse.de>
17753         PR middle-end/42509
17754         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
17755         require a non-NULL MEM_OFFSET.
17757 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
17759         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
17760         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
17761         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
17762         config/alpha/predicates.md, config/arm/arm.md,
17763         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
17764         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
17765         config/darwin9.h, config/darwin.c, config/darwin.h,
17766         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
17767         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
17768         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
17769         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
17770         config/mips/mips.md, config/mn10300/mn10300.c,
17771         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
17772         config/rs6000/aix.h, config/rs6000/dfp.md,
17773         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
17774         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
17775         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
17776         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
17777         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
17778         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
17779         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
17780         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
17781         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
17782         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
17783         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
17784         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
17785         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
17786         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
17787         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
17788         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
17789         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
17790         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
17791         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
17792         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
17793         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
17794         opt-functions.awk, opth-gen.awk, params.def, passes.c,
17795         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
17796         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
17797         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
17798         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
17799         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
17800         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
17801         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
17802         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
17803         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
17804         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
17805         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
17806         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
17807         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
17808         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
17810 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17812         PR other/43620
17813         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
17814         * aclocal.m4: Regenerate.
17816 2010-04-02  Richard Guenther  <rguenther@suse.de>
17818         PR tree-optimization/43629
17819         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
17820         if we have seen a constant value.
17822 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
17824         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
17826 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
17828         PR target/43469
17829         * arm.c (legitimize_tls_address): Adjust call to
17830         gen_tls_load_dot_plus_four.
17831         (arm_note_pic_base): New function.
17832         (arm_cannot_copy_insn_p): Use it.
17833         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
17834         constraint.
17836 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17838         PR bootstrap/43531
17840         Revert:
17841         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17843         * Makefile.in ($(out_object_file)): Depend on
17844         gt-$(basename $(notdir $(out_file))).h.
17846 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
17848         * config.gcc (lm32-*-rtems*): Add t-lm32.
17850 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
17852         * config.gcc: Add lm32-*-rtems*.
17853         * config/lm32/rtems.h: New file.
17855 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
17857         PR target/42609
17858         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
17860 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
17862         * dwarf2out.c (output_compilation_unit_header): For
17863         -gdwarf-4 use version 4 instead of version 3.
17864         (output_line_info): For version 4 and above emit additional
17865         maximum ops per insn header field.
17866         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
17868         * dwarf2out.c (is_c_family, is_java): Remove.
17869         (lower_bound_default): New function.
17870         (add_bound_info, gen_descr_array_type_die): Use it.
17872 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
17874         PR debug/43325
17875         * dwarf2out.c (gen_variable_die): Allow debug info for variable
17876         re-declaration when it happens in a function.
17878 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
17880         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
17881         (cgraph_remove_function_insertion_hook): Same.
17882         (cgraph_call_function_insertion_hooks): Same.
17884 2010-04-01  Richard Guenther  <rguenther@suse.de>
17886         PR middle-end/43614
17887         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
17888         and TREE_THIS_VOLATILE.
17889         (copy_ref_info): Likewise.
17890         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
17891         * tree.c (build6_stat): Ignore side-effects of all but arg5
17892         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
17893         TARGET_MEM_REF.
17895 2010-04-01  Richard Guenther  <rguenther@suse.de>
17897         PR tree-optimization/43607
17898         * ipa-type-escape.c (check_call): Do not access non-existing
17899         arguments.
17901 2010-04-01  Richard Guenther  <rguenther@suse.de>
17903         PR middle-end/43602
17904         Revert
17905         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
17906                     Jack Howarth  <howarth@bromo.med.uc.edu>
17908         * tree-profile.c (tree_init_ic_make_global_vars): Make static
17909         variables TLS.
17911 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17913         * doc/install.texi (Prerequisites): Document libelf usability on
17914         IRIX 5/6 and Solaris 2.
17915         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
17916         Update GNU as, GNU ld requirements.
17917         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
17918         Document Sun Studio compiler download.
17919         Update and simplify as, ld recommendations.
17920         (Specific, *-*-solaris2.7): Note obsoletion, removal.
17922 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17924         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
17925         with_tune_32 to pentium4.
17927 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
17929         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
17931 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17933         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
17934         obsoletion, removal.
17935         Update IDO URL.
17936         Document GNU as requirement.
17937         Update configure requirements.
17938         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
17939         Recomment IRIX 6.5.18+.
17940         Document IDF/IDL requirement.
17941         Document GNU as requirement.
17942         Document GNU ld bootstrap failure.
17943         Remove freeware.sgi.com reference.
17945 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17947         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
17948         UNIX V4.0, V5.0 obsoletion, removal.
17949         Remove --with-gc=simple reference.
17950         Update VM requirements during bootstrap.
17951         Remove -oldas bootstrap description.
17952         Update binutils reference.
17953         Remove comparison failure note.
17955 2010-03-31  Richard Guenther  <rguenther@suse.de>
17956             Zdenek Dvorak  <ook@ucw.cz>
17957             Sebastian Pop  <sebastian.pop@amd.com>
17959         PR middle-end/43464
17960         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
17961         with multiple arguments.
17962         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
17964 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
17966         * graphite-dependences.c (print_pddr): Call print_pdr with an
17967         extra argument.
17968         * graphite-poly.c (debug_pdr): Add an extra argument for the
17969         verbosity level.
17970         (print_pdr): Same.
17971         (print_pbb_domain): Same.
17972         (print_pbb): Same.
17973         (print_scop_context): Same.
17974         (print_scop): Same.
17975         (print_cloog): Same.
17976         (debug_pbb_domain): Same.
17977         (debug_pbb): Same.
17978         (print_pdrs): Same.
17979         (debug_pdrs): Same.
17980         (debug_scop_context): Same.
17981         (debug_scop): Same.
17982         (debug_cloog): Same.
17983         (print_scop_params): Same.
17984         (debug_scop_params): Same.
17985         (print_iteration_domain): Same.
17986         (print_iteration_domains): Same.
17987         (debug_iteration_domain): Same.
17988         (debug_iteration_domains): Same.
17989         (print_scattering_function): Same.
17990         (print_scattering_functions): Same.
17991         (debug_scattering_function): Same.
17992         (debug_scattering_functions): Same.
17993         * graphite-poly.h (debug_pdr): Update declaration.
17994         (print_pdr): Same.
17995         (print_pbb_domain): Same.
17996         (print_pbb): Same.
17997         (print_scop_context): Same.
17998         (print_scop): Same.
17999         (print_cloog): Same.
18000         (debug_pbb_domain): Same.
18001         (debug_pbb): Same.
18002         (print_pdrs): Same.
18003         (debug_pdrs): Same.
18004         (debug_scop_context): Same.
18005         (debug_scop): Same.
18006         (debug_cloog): Same.
18007         (print_scop_params): Same.
18008         (debug_scop_params): Same.
18009         (print_iteration_domain): Same.
18010         (print_iteration_domains): Same.
18011         (debug_iteration_domain): Same.
18012         (debug_iteration_domains): Same.
18013         (print_scattering_function): Same.
18014         (print_scattering_functions): Same.
18015         (debug_scattering_function): Same.
18016         (debug_scattering_functions): Same.
18018 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
18020         * graphite-poly.c (print_scattering_function_1): New.
18021         (print_scattering_function): Call it.
18022         (print_scop_params): Remove spaces at the end of lines.
18023         (print_cloog): New.
18024         (debug_cloog): New.
18025         * graphite-poly.h (print_cloog): Declared.
18026         (debug_cloog): Declared.
18028 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
18030         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
18031         in loop->header.
18032         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
18033         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
18034         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
18035         to switch between adding the IV bump in loop->latch or in loop->header.
18037 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
18039         * graphite-poly.c (print_scattering_function): Pretty print following
18040         the scoplib format.
18041         (print_pdr): Same.
18042         (print_pbb_domain): Same.
18043         (dump_gbb_cases): Same.
18044         (dump_gbb_conditions): Same.
18045         (print_pdrs): Same.
18046         (print_pbb): Same.
18047         (print_scop_params): Same.
18048         (print_scop_context): Same.
18049         (print_scop): Same.
18050         (print_pbb_body): New.
18051         (lst_indent_to): New.
18052         (print_lst): Start new lines with a #.
18053         * graphite-poly.h (pbb_bb): New.
18054         (pbb_index): Use pbb_bb.
18055         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
18056         disjuncts.
18057         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
18059 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
18061         * dwarf2out.c (size_of_die): For -gdwarf-4 use
18062         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
18063         and 0 instead of 1 for dw_val_class_flag.
18064         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
18065         dw_val_class_range_list, dw_val_class_loc_list,
18066         dw_val_class_lineptr and dw_val_class_macptr, use
18067         DW_FORM_flag_present for dw_val_class_flag and
18068         DW_FORM_exprloc for dw_val_class_loc.
18069         (output_die): For -gdwarf-4 print dw_val_class_loc
18070         size as uleb128 instead of 1 or 2 bytes and don't print
18071         anything for dw_val_class_flag.
18073         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
18074         instead of cselib_lookup following by tweaking locs->setting_insn.
18076         PR bootstrap/43596
18077         * cselib.c (cselib_process_insn): Clear cselib_current_insn
18078         even before returning from label, setjmp call or volatile asm
18079         handling.
18081 2010-03-31  Richard Guenther  <rguenther@suse.de>
18083         PR middle-end/43600
18084         * cgraphunit.c (cgraph_output_in_order): Do not allocate
18085         temporary data on stack.
18087 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18089         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
18090         (PUSHSECTION_ASM_OP): Remove.
18091         (POPSECTION_ASM_OP): Remove.
18092         (PUSHSECTION_FORMAT): Remove.
18093         * config/sol2.h (PUSHSECTION_FORMAT): Define.
18094         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
18095         * config/sol2.c (solaris_output_init_fini): Use it.
18097 2010-03-31  Jie Zhang  <jie@codesourcery.com>
18099         PR 43574
18100         * opt-functions.awk (var_type_struct): Use signed char type
18101         for simple variables.
18103 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18105         * config/sol2.c: Include output.h.
18106         (solaris_assemble_visibility): New function.
18107         * config/t-sol2 (sol2.o): Add output.h dependency.
18108         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
18109         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
18110         Redefine.
18112 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
18114         PR target/43580
18115         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
18116         V2SImode or XFmode on PRE_DEC.
18118         PR debug/43557
18119         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
18120         BLKmode.
18122 2010-03-31  Jie Zhang  <jie@codesourcery.com>
18124         PR 43562
18125         * reload.h (caller_save_initialized_p): Declare.
18126         * toplev.c (backend_init_target): Don't call
18127         init_caller_save but set caller_save_initialized_p to false.
18128         * caller-save.c (caller_save_initialized_p): Define.
18129         (init_caller_save): Check caller_save_initialized_p.
18130         * ira.c (ira): Call init_caller_save if flag_caller_saves.
18132 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18134         PR target/39048
18135         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
18136         and soft-fp/t-softfp to tmake_file.
18137         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
18138         (LIBGCC2_TF_CEXT): Define.
18139         (TF_SIZE): Define.
18141 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
18143         PR debug/42977
18144         * cselib.c (n_useless_values): Document handling of debug locs.
18145         (n_useless_debug_values, n_debug_values): New variables.
18146         (new_elt_loc_list): Don't add to debug values, keep count.
18147         (promote_debug_loc): New.
18148         (cselib_reset_table): Zero new variables.
18149         (entry_and_rtx_equal_p): Promote debug locs.
18150         (discard_useless_locs): Increment n_useless_debug_values for
18151         debug values.
18152         (remove_useless_values): Adjust n_useless_values and n_debug_values
18153         with n_useless_debug_values.
18154         (add_mem_for_addr): Promote debug locs.
18155         (cselib_lookup_mem): Likewise.
18156         (cselib_lookup_addr): Renamed to...
18157         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
18158         (cselib_log_lookup): ... this.  Turn into...
18159         (cselib_lookup_addr): ... new wrapper.
18160         (cselib_lookup_from_insn): New.
18161         (cselib_invalidate_regno): Increment n_useless_debug_values for
18162         debug values.
18163         (cselib_invalidate_mem): Likewise.
18164         (cselib_process_insn): Take n_deleted and n_debug_values into
18165         account to guard remove_useless_value call.
18166         (cselib_finish): Zero n_useless_debug_values.
18167         * cselib.h (cselib_lookup_from_insn): Declare.
18168         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
18169         (sched_analyze_2): Likewise.
18171 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
18173         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
18174         functions.
18175         (adjust_mems): Replace narrowing SUBREG of expression containing
18176         just PLUS, MINUS, MULT and ASHIFT of registers and constants
18177         with operations in the narrower mode.
18179         PR debug/43593
18180         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
18181         regs_invalidated_by_call instead all call_used_reg_set registers.
18183 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
18185         PR middle-end/43430
18186         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
18187         pointer comparisons with types_compatible_p.
18188         * tree-vect-stmts.c (vectorizable_call): Same.
18189         (vectorizable_condition): Same.
18191 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18193         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
18194         stack check if the mask would be zero.
18196 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
18197             Jack Howarth  <howarth@bromo.med.uc.edu>
18199         * tree-profile.c (tree_init_ic_make_global_vars): Make static
18200         variables TLS.
18202 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
18204         PR other/25232
18205         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
18206         and __unordtf2.
18207         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
18208         Include ___unordxf2 and ___unordtf2.
18209         * config/i386/libgcc-glibc.ver: Do not define inheritance from
18210         GCC_4.4.0 here.
18212 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
18214         * config/lm32/t-lm32: New file.
18215         * config.gcc: Use the above file when targetting lm32.
18217 2010-03-28  Duncan Sands  <baldrick@free.fr>
18219         * Makefile.in (PLUGIN_HEADERS): Add except.h.
18221 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
18223         PR middle-end/43431
18224         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
18225         Improve vectorization cost model diagnostic.
18227 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
18229         PR middle-end/43436
18230         * tree-vect-data-refs.c (vect_analyze_data_refs): When
18231         compute_data_dependences_for_loop returns false, early exit
18232         and output an extra diagnostic for the failed data reference
18233         analysis.
18235 2010-03-29  Richard Guenther  <rguenther@suse.de>
18237         PR tree-optimization/43560
18238         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
18239         (can_sm_ref_p): Treat stores to readonly locations as trapping.
18241 2010-03-29  Jie Zhang  <jie@codesourcery.com>
18243         PR 43564
18244         * toplev.c (process_options): Set optimization_default_node
18245         and optimization_current_node.
18246         * opts.c (decode_options): Don't set optimization_default_node
18247         and optimization_current_node.
18249 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
18251         * config/rtems.h: Abandon -qrtems_debug.
18253 2010-03-28  Jan Hubicka  <jh@suse.cz>
18255         PR tree-optimization/43505
18256         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
18257         map should not be copied.
18259 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18261         PR middle-end/41674
18262         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
18263         cdtors, set DECL_PRESERVE_P.
18264         * ipa.c (cgraph_externally_visible_p): Return true if declaration
18265         should be preseved.
18267 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
18269         PR tree-optimization/43528
18270         * stor-layout.c (place_field): Check that constant fits into
18271         unsigned HWI when skipping calculation of MS bitfield layout.
18273 2010-03-27  Jan Hubicka  <jh@suse.cz>
18275         PR middle-end/43391
18276         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
18277         notice_global_symbol work.
18279 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
18281         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
18282         instead of dwarf2out_decl.
18283         (struct var_loc_node): Remove section_label field.
18284         (dwarf2out_function_decl): New function.
18285         (dwarf2out_var_location): Don't set section_label field.
18286         (dwarf2out_begin_function): Don't empty decl_loc_table here.
18288 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
18290         PR tree-optimization/43544
18291         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
18292         First argument for builtin vectorized function hook is now a
18293         tree to be able to distinguish between machine specific and
18294         standard builtins.
18295         * targhooks.c (default_builtin_vectorized_function): Ditto.
18296         * targhooks.h (default_builtin_vectorized_function): Ditto.
18297         * target.h (struct gcc_target): Ditto.
18298         * tree-vect-stmts.c (vectorizable_function): Ditto.
18299         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
18300         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
18301         Ditto.
18303 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
18305         PR c/43381
18306         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
18307         nested binding iff it is a FUNCTION_DECL.
18308         (store_parm_decls_newstyle): Pass nested=true to bind for
18309         FUNCTION_DECLs amongst parameters.
18311 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
18313         * var-tracking.c (vt_expand_loc_callback): Don't run
18314         cselib_expand_value_rtx_cb in dummy mode if
18315         cselib_dummy_expand_value_rtx_cb returned false.
18317         * var-tracking.c (emit_note_insn_var_location): For one part
18318         notes with offset 0, don't add EXPR_LIST around the location.
18319         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
18320         add_location_or_const_value_attribute): Adjust for that change.
18322         PR debug/43540
18323         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
18324         into first operand and location into second.
18325         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
18326         dw_cfi_oprnd_loc for DW_CFA_expression.
18327         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
18328         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
18329         assume first argument is regnum and second argument is location.
18331 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
18333         PR target/42113
18334         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
18335         of scratch register to DImode.  Split to DImode comparison operator.
18336         Use SImode subreg of scratch register in the multiplication.
18337         (*cmp_sadd_sidi): Ditto.
18338         (*cmp_ssub_si): Ditto.
18339         (*cmp_ssub_sidi): Ditto.
18341 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
18343         PR target/43524
18344         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
18345         Remove invalid assert and wrong comment.
18347 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
18349         PR debug/43516
18350         * flags.h (final_insns_dump_p): New extern.
18351         * final.c (final_insns_dump_p): New variable.
18352         (rest_of_clean_state): Set it before -fdump-final-insns=
18353         dumping, clear afterwards.
18354         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
18355         MEM_ALIAS_SET on MEMs.
18357 2010-03-26  David S. Miller  <davem@davemloft.net>
18359         * configure.ac: Fix sparc GOTDATA_OP bug check.
18360         * configure: Rebuild.
18362 2010-03-26  Alan Modra  <amodra@gmail.com>
18364         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
18366 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18368         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
18369         TLS_SECTION_ASM_FLAG.
18371 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
18373         PR bootstrap/43511
18374         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
18375         Clear first_function_block_is_cold.
18377         PR c/43385
18378         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
18379         argument if the argument is truth_value_p.
18381 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
18383         * config/rs6000/constraints.md: Update copyright year for my changes.
18385         PR target/43484
18386         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
18387         used in reg+reg addressing, swap registers.
18389 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
18391         PR debug/43293
18392         * target.h (struct gcc_target): Add code_end hook.
18393         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
18394         if not yet defined.
18395         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
18396         * toplev.c (compile_file): Call targetm.asm_out.code_end
18397         hook before unwind info/debug info output.
18398         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
18399         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
18400         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
18401         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
18402         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
18403         * config/i386/i386.c (ix86_file_end): Renamed to...
18404         (ix86_code_end): ... this.  Make static.  Don't call
18405         file_end_indicate_exec_stack.  Emit unwind info using
18406         final_start_function/final_end_function.
18407         (darwin_x86_file_end): Remove.
18408         (TARGET_ASM_CODE_END): Define.
18409         * config/i386/i386.h (TARGET_ASM_FILE_END,
18410         NEED_INDICATE_EXEC_STACK): Don't define.
18411         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
18412         (TARGET_ASM_FILE_END): Define to darwin_file_end.
18413         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
18414         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
18416         PR target/43498
18417         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
18418         at the beginning and final_end_function at the end.
18419         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18421 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18423         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
18424         and Sun as TLS syntax.
18425         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
18426         * configure: Regenerate.
18427         * config.in: Regenerate.
18428         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
18429         (default_elf_asm_named_section): Use it.
18430         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
18431         (i386_output_dwarf_dtprel): Likewise.
18432         (output_addr_const_extra): Likewise.
18433         (output_pic_addr_const): Lowercase @GOTTPOFF.
18434         (output_addr_const_extra): Likewise.
18435         (output_pic_addr_const): Lowercase @GOTNTPOFF.
18436         (output_addr_const_extra): Likewise.
18437         (output_pic_addr_const): Lowercase @INDNTPOFF.
18438         (output_addr_const_extra): Likewise.
18439         (output_pic_addr_const): Lowercase @NTPOFF.
18440         (output_addr_const_extra): Likewise.
18441         (output_pic_addr_const): Lowercase @TPOFF.
18442         (output_addr_const_extra): Likewise.
18443         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
18444         (*tls_global_dynamic_64): Likewise.
18445         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
18446         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
18448         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
18449         (ASM_OUTPUT_TLS_COMMON): Use it.
18450         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
18452         PR target/38118
18453         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
18454         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
18455         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
18456         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
18457         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
18458         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
18460 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18462         * config/i386/i386.c (override_options): Don't accept
18463         -mtls-dialect=sun any longer.
18464         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
18465         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
18466         (*tls_local_dynamic_base_32_sun): Likewise.
18467         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
18469 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
18471         PR debug/43508
18472         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
18473         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
18475         PR debug/43479
18476         * ira.c (adjust_cleared_regs): New function.
18477         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
18479         PR debug/19192
18480         PR debug/43479
18481         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
18482         from gimple_block.
18483         * expr.c (expand_expr_real): Restore previous
18484         curr_insn_source_location and curr_insn_block after
18485         expand_expr_real_1 call.
18486         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
18487         instead of expand_expr_real_1.
18489 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
18491         PR rtl-optimization/43413
18492         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
18493         hard regs too.
18495 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
18497         PR target/43348
18498         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
18499         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
18501 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
18503         * config/i386/i386.c (ix86_target_string): Add -mfma.
18504         Fix a typo in comment.
18506 2010-03-22  Mike Stump  <mikestump@comcast.net>
18508         PR target/23071
18509         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
18510         Don't overly align based upon packed packed fields.
18512 2010-03-22  Jason Merrill  <jason@redhat.com>
18514         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
18515         Use () rather than [], and move before the element type.
18517 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18519         * doc/configfiles.texi (Configuration Files): Removed
18520         fixinc/Makefile*, intl/Makefile.*.
18521         * doc/makefile.texi: Fixed markup. Abstract from version
18522         control system used.
18523         (Makefile): Removed obsolete gcc/java/parse.y example.
18524         * doc/sourcebuild.texi: Likewise.
18525         (Top Level): Added config, gnattools, libdecnumber, libgcc,
18526         libgomp, libssp.  Removed fastjar.
18527         (Miscellaneous Docs): Clarify location.
18528         Added COPYING3, COPYING3.LIB.
18529         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
18531 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18533         PR target/38085
18534         * config/i386/i386.c (x86_function_profiler)
18535         [!NO_PROFILE_COUNTERS]: Fix typo.
18536         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
18537         instead of callq.
18539 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
18540             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18542         * doc/sourcebuild.texi (Test Directives): Split into six
18543         subsections, with most of the current text in new subsections
18544         Directives, Selectors, and Final Actions.
18545         (Directives): Split list of test directives into multiple
18546         subsubsections.
18547         (Selectors): Describe use and syntax of selectors.
18548         (Effective-Target Keywords): Describe all existing keywords.
18549         (Add Options): Describe features for dg-add-options.
18550         (Require Support): Describe variants of dg-require-support.
18551         (Final Actions): Describe commands to use in dg-final.
18553 2010-03-22  Michael Matz  <matz@suse.de>
18555         PR middle-end/43475
18556         * recog.c (validate_replace_rtx_group): Replace also in
18557         REG_EQUAL and REG_EQUIV notes.
18559 2010-03-22  Richard Guenther  <rguenther@suse.de>
18561         PR tree-optimization/43390
18562         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
18563         sure vector extracts are type correct.
18565 2010-03-22  Richard Guenther  <rguenther@suse.de>
18567         PR middle-end/40106
18568         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
18569         x * sqrt (x) even when optimizing for size if the target
18570         has native support for sqrt.
18572 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
18574         * varasm.c (make_decl_rtl_for_debug): Also clear
18575         flag_mudflap for the duration of make_decl_rtl call.
18577         PR debug/43443
18578         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
18579         locs from preserved VALUEs.
18581 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18583         PR middle-end/42718
18584         * pa.md (movmemsi): Set align to one if zero.
18585         (movmemdi): Likewise.
18587 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
18589         PR target/42321
18590         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
18591         with their corresponding prologue pushes.
18593 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
18595         PR target/43156
18596         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
18597         at the begining or end.
18598         (spu_expand_epilogue): Likewise.
18600 2010-03-20  Richard Guenther  <rguenther@suse.de>
18602         PR rtl-optimization/43438
18603         * combine.c (make_extraction): Properly zero-/sign-extend an
18604         extraction of the low part of a CONST_INT.  Also handle
18605         CONST_DOUBLE.
18607 2010-03-19  Mike Stump  <mikestump@comcast.net>
18609         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
18610         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
18611         (override_options): Use SUBTARGET32_DEFAULT_CPU.
18613 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
18615         PR c/43211
18616         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
18617         an error.
18619 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
18621         PR rtl-optimization/42258
18622         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
18623         use that may match DEF.
18625         PR target/40697
18626         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
18627         the cost of loading the constant rather than assuming
18628         COSTS_N_INSNS (1).
18629         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
18630         outer code is AND, do the same tests as the andsi3 expander and
18631         return COSTS_N_INSNS (1) if and is cheap.
18633         * optabs.c (avoid_expensive_constant): Fix formatting.
18635 2010-03-19  Michael Matz  <matz@suse.de>
18637         PR c++/43116
18638         * attribs.c (decl_attributes): When rebuilding a function pointer
18639         type use the same qualifiers as the original pointer type.
18641 2010-03-19  Martin Jambor  <mjambor@suse.cz>
18643         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
18644         and is_gimple_ip_invariant_address.
18646 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18648         Revert
18649         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18651         * config/arm/arm.c (arm_override_options): Turn off
18652         flag_dwarf2_cfi_asm for AAPCS variants.
18654 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18656         PR target/43399
18657         * config/arm/arm.c (emit_multi_reg_push): Update comments.
18658         Use PRE_MODIFY instead of PRE_DEC.
18659         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
18660         (vfp_emit_fstmd): Likewise.
18662 2010-03-19  Michael Matz  <matz@suse.de>
18664         PR target/43305
18665         * builtins.c (expand_builtin_interclass_mathfn,
18666         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
18667         if that fails.
18669 2010-03-19  Richard Guenther  <rguenther@suse.de>
18671         PR tree-optimization/43415
18672         * tree-ssa-pre.c (phi_translate): Split out worker to ...
18673         (phi_translate_1): ... this.
18674         (phi_translate): Move all caching here.  Cache all NARY
18675         and REFERENCE translations.
18677 2010-03-19  David S. Miller  <davem@davemloft.net>
18679         With help from Eric Botcazou.
18680         * config/sparc/sparc.c: Include dwarf2out.h.
18681         (emit_pic_helper): Delete.
18682         (pic_helper_symbol_name): Delete.
18683         (pic_helper_emitted_p): Delete.
18684         (pic_helper_needed): New.
18685         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
18686         (get_pc_thunk_name): New.
18687         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
18688         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
18689         Set pic_helper_needed to true.  Don't call emit_pic_helper.
18690         (sparc_expand_prologue): Update load_pic_register call.
18691         (sparc_output_mi_thunk): Likewise.
18692         (sparc_file_end): Emit a hidden comdat symbol for the PIC
18693         thunk if possible.  Output CFI information as needed.
18695 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18696             Jack Howarth  <howarth@bromo.med.uc.edu>
18698         PR target/36399
18699         * config/i386/i386.h: Fix ABI on darwin x86-32.
18701 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
18703         * tree.h: Declare make_decl_rtl_for_debug.
18704         * varasm.c (make_decl_rtl_for_debug): New.
18705         * dwarf2out.c (rtl_for_decl_location): Call it.
18706         * cfgexpand.c (expand_debug_expr): Call it.
18708 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
18710         PR bootstrap/43399
18711         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
18712         mem_mode.
18714         PR bootstrap/43403
18715         * var-tracking.c (vt_init_cfa_base): Do nothing if
18716         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
18718 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
18720         PR debug/42873
18721         * var-tracking.c (canonicalize_vars_star): New.
18722         (dataflow_post_merge_adjust): Use it.
18724 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
18726         PR debug/43058
18727         * var-tracking.c (non_suitable_const): New function.
18728         (add_uses): For DEBUG_INSNs with constants, don't record any
18729         value, instead just the constant value itself.
18730         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
18731         is not VAR_LOC_UNKNOWN_P, set var to the constant.
18732         (emit_notes_in_bb): Likewise.
18733         (emit_note_insn_var_location): For onepart variables if
18734         cur_loc is a VOIDmode constant, use DECL_MODE.
18736 2010-03-18  Martin Jambor  <mjambor@suse.cz>
18738         PR middle-end/42450
18739         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
18740         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
18741         all non-clones.  Moved call redirection...
18742         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
18743         (cgraph_materialize_all_clones): Dispose of all
18744         combined_args_to_skip bitmaps.
18745         (verify_cgraph_node): Do not check for edges pointing to wrong
18746         nodes in inline clones.
18747         * tree-inline.c (copy_bb): Call
18748         cgraph_redirect_edge_call_stmt_to_callee.
18749         * ipa.c (cgraph_remove_unreachable_nodes): Call
18750         cgraph_node_remove_callees even when there are used clones.
18752 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
18754         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
18756 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
18758         PR target/43383
18759         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
18760         for 32bit.
18762 2010-03-18  Michael Matz  <matz@suse.de>
18764         PR middle-end/43419
18765         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
18766         into sqrt(x) if we need to preserve signed zeros.
18768 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
18769             Eric Botcazou  <ebotcazou@adacore.com>
18771         PR rtl-optimization/43360
18772         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
18773         note if we don't know its invariant status.
18775 2010-03-18  Michael Matz  <matz@suse.de>
18777         PR tree-optimization/43402
18778         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
18779         PHI chains of ssa names registered for update.
18781 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
18783         PR target/42427
18784         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
18785         non-offsettable and pre_modify update addressing.
18786         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
18787         and "2" alternatives "#".
18788         (*movdd_softfloat32): Make all alternatives "#";
18789         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
18790         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
18791         (*movdf_softfloat32): Make all alternatives "#";
18792         (movdi): Use the new DIFD mode iterator to create a common splitter
18793         for movdi, movdf and movdd patterns.
18795 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
18797         * common.opt (dumpdir): Remove redundant tab.
18799 2010-03-17  Martin Jambor  <mjambor@suse.cz>
18801         PR tree-optimization/43347
18802         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
18803         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
18805 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
18807         PR rtl-optimization/42216
18808         * regrename.c (create_new_chain): New function, broken out from...
18809         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
18810         appending a use to an empty chain.
18811         (build_def_use): Remove previous changes that convert OP_INOUT to
18812         OP_OUT operands; instead detect the case where an OP_INOUT operand
18813         uses a previously untracked register and create an empty chain for it.
18815 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18817         * doc/extend.texi (Function Attributes): Rewrite unfinished
18818         sentence in ms_abi documentation.
18820 2010-03-17  Alan Modra  <amodra@gmail.com>
18822         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
18823         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
18824         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
18825         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
18827 2010-03-16  Richard Henderson  <rth@redhat.com>
18829         PR middle-end/43365
18830         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
18831         (lower_try_finally): Save and restore eh_seq around the expansion
18832         of the try-finally.
18834 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
18836         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
18837         statements before splitting block.
18839 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18841         * doc/sourcebuild.texi (Testsuites): Fix markup.
18842         Use pathnames relative to gcc/testsuite.
18843         (Test Directives): Move description of how timeout is determined.
18844         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
18845         (C Tests): Correct gcc.misc-tests directory.
18846         Framework tests now live in gcc.test-framework.
18848 2010-03-16  Richard Guenther  <rguenther@suse.de>
18850         PR middle-end/43379
18851         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
18852         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
18854 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
18855             Alexandre Oliva  <aoliva@redhat.com>
18857         PR tree-optimization/42917
18858         * lambda-code.c (remove_iv): Skip debug statements.
18859         (lambda_loopnest_to_gcc_loopnest): Likewise.
18860         (not_interesting_stmt): Debug statements are not interesting.
18862 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
18864         PR debug/43051
18865         PR debug/43092
18866         * cselib.c (cselib_preserve_constants,
18867         cfa_base_preserved_val): New static variables.
18868         (preserve_only_constants): New function.
18869         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
18870         clear its REG_VALUES.  If cselib_preserve_constants, don't
18871         empty the whole hash table, but preserve there VALUEs with constants,
18872         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
18873         (cselib_preserve_cfa_base_value): New function.
18874         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
18875         (cselib_init): Change argument to int bitfield.  Set
18876         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
18877         is in it.
18878         (cselib_finish): Clear cselib_preserve_constants and
18879         cfa_base_preserved_val.
18880         * cselib.h (enum cselib_record_what): New enum.
18881         (cselib_init): Change argument to int.
18882         (cselib_preserve_cfa_base_value): New prototype.
18883         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
18884         * dse.c (dse_step1): Likewise.
18885         * cfgcleanup.c (thread_jump): Likewise.
18886         * sched-deps.c (sched_analyze): Likewise.
18887         * gcse.c (local_cprop_pass): Likewise.
18888         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
18889         If FN is non-NULL, call the callback always and whenever it returns
18890         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
18891         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
18892         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
18893         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
18894         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
18895         * var-tracking.c: Include recog.h.
18896         (bb_stack_adjust_offset): Remove.
18897         (vt_stack_adjustments): Don't call it, instead just gather the
18898         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
18899         (adjust_stack_reference): Remove.
18900         (compute_cfa_pointer): New function.
18901         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
18902         (struct adjust_mem_data): New type.
18903         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
18904         functions.
18905         (get_address_mode): New function.
18906         (replace_expr_with_values): Use it.
18907         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
18908         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
18909         (adjust_sets): Remove.
18910         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
18911         Use get_address_mode.
18912         (get_adjusted_src): Remove.
18913         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
18914         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
18915         (add_with_sets): Don't call adjust_sets.
18916         (fp_setter, vt_init_cfa_base): New functions.
18917         (vt_initialize): Change return type to bool.  Move most of pool etc.
18918         initialization to the beginning of the function from end.  Pass
18919         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
18920         If !frame_pointer_needed, call vt_stack_adjustment before mos
18921         vector is filled, call vt_init_cfa_base if argp/framep has been
18922         eliminated to sp.  If frame_pointer_needed and argp/framep has
18923         been eliminated to hard frame pointer, set
18924         hard_frame_pointer_adjustment and call vt_init_cfa_base after
18925         encountering fp setter in the prologue.  For MO_ADJUST, call
18926         log_op_type before pusing the op into mos vector, not afterwards.
18927         Call adjust_insn before cselib_process_insn/add_with_sets,
18928         call cancel_changes (0) afterwards.
18929         (variable_tracking_main_1): Adjust for vt_initialize calling
18930         vt_stack_adjustments and returning whether it succeeded or not.
18932 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
18934         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
18935         debug statements.
18937 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
18939         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
18940         has been set.
18941         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
18942         drap_reg has not been set.
18944 2010-03-15  Michael Matz  <matz@suse.de>
18946         PR middle-end/43300
18947         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
18948         use it to expand block copies.
18949         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
18950         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
18951         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
18953 2010-03-15  Richard Guenther  <rguenther@suse.de>
18955         PR tree-optimization/43367
18956         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
18957         elimination check.
18959 2010-03-15  Richard Guenther  <rguenther@suse.de>
18961         PR tree-optimization/43317
18962         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
18964 2010-03-15  Martin Jambor  <mjambor@suse.cz>
18966         PR tree-optimization/43141
18967         * tree-sra.c (create_abstract_origin): New function.
18968         (modify_function): Call create_abstract_origin.
18970 2010-03-15  Chris Demetriou  <cgd@google.com>
18972         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
18973         wasn't copied.
18975 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
18977         PR middle-end/43354
18978         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
18979         call insert_out_of_ssa_copy for default definitions.
18981 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
18983         * graphite-clast-to-gimple.c (my_long_long): Defined.
18984         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
18985         * graphite-sese-to-poly.c (my_long_long): Defined.
18986         (scop_ivs_can_be_represented): Use it.
18988 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
18990         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
18991         graphite-max-bbs-per-function, and loop-block-tile-size.
18992         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
18993         with "maximum".
18994         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
18996 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
18998         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
18999         forward declaration.
19000         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
19001         (add_upper_bounds_from_estimated_nit): New.
19002         (build_loop_iteration_domains): Use it.
19004 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19006         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
19008 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19010         PR middle-end/43306
19011         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
19012         should be an INTEGER_CST.  Also handle CASE_CONVERT.
19014 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19016         * graphite.c (graphite_initialize): To bound the number of bbs per
19017         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
19018         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
19019         * doc/invoke.texi: Document it.
19021 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19023         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
19024         * graphite-sese-to-poly.h (build_poly_scop): Same.
19026 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
19028         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
19029         the number of parameters in the scop.  Use as an upper bound
19030         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
19031         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
19032         * doc/invoke.texi: Document it.
19034 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
19036         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
19037         * doc/c-tree.texi: Remove.
19038         * doc/generic.texi: Merge c-tree.texi here.
19039         * doc/gccint.texi (Trees): Remove menu entry.
19040         (c-tree.texi): Remove @include.
19041         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
19042         * doc/languages.texi (Reading RTL): Ditto.
19044 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
19046         PR target/42869
19047         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
19049 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
19051         PR middle-end/42431
19052         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
19053         code added to work around reload clobbering CONST insns.
19055 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
19057         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
19058         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
19059         (cselib_preserve_only_values): Remove retain argument, don't
19060         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
19061         * cselib.h (cselib_preserve_only_values): Remove retain argument.
19062         * var-tracking.c (micro_operation): Move insn field before union.
19063         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
19064         (struct variable_tracking_info_def): Remove n_mos field, change
19065         mos into a vector of micro_operations.
19066         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
19067         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
19068         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
19069         changing into a vector.
19070         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
19071         come before all other uops generated by add_stores.
19072         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
19073         argument removal.
19074         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
19075         a vector.  Run just one pass over the bbs instead of separate counting
19076         and computation phase.
19077         (vt_finalize): Free VTI (bb)->mos vector instead of array.
19079         PR debug/43329
19080         * tree-inline.c (remap_decls): Put old_var rather than origin_var
19081         into *nonlocalized_list vector.
19082         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
19083         even if origin is non-NULL.
19084         (gen_variable_die): Likewise.
19085         (process_scope_var): Don't change origin.
19086         (gen_decl_die): Likewise.
19087         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
19088         before adding new edges instead of after it, fix moving over
19089         debug stmts.
19091 2010-03-11  David S. Miller  <davem@davemloft.net>
19093         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
19094         of four.
19095         * configure: Rebuild.
19097 2010-03-11  Martin Jambor  <mjambor@suse.cz>
19099         PR tree-optimization/43257
19100         * tree.c (assign_assembler_name_if_neeeded): New function.
19101         (free_lang_data_in_cgraph): Assembler name assignment moved to the
19102         above new function.
19103         * tree.h (assign_assembler_name_if_neeeded): Declare.
19104         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
19105         the function if needed.
19107 2010-03-11  Chris Demetriou  <cgd@google.com>
19109         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
19110         include/stdint-gcc.h, and include/stdint.h world-readable.
19112 2010-03-11  Richard Guenther  <rguenther@suse.de>
19114         PR tree-optimization/43255
19115         * tree-vrp.c (process_assert_insertions_for): Do not insert
19116         asserts for trivial conditions.
19118 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19120         PR tree-optimization/43280
19121         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
19122         generation.  Move calculation of size out of the if branch.
19123         (find_bswap): Modify compare number generation.
19125 2010-03-11  Richard Guenther  <rguenther@suse.de>
19127         PR lto/43200
19128         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
19129         (input_gimple_stmt): Fixup handled component types during
19130         operand read.  Also fix up decls in ADDR_EXPRs.
19132 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
19134         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
19135         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
19137 2010-03-10  Jan Hubicka  <jh@suse.cz>
19139         PR c/43288
19140         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
19141         * varasm.c (get_variable_section): Don't do that here...
19142         (make_decl_rtl): ... and here.
19143         (do_assemble_alias): Produce decl RTL.
19144         (assemble_alias): Likewise.
19146 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
19148         PR debug/43290
19149         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
19150         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
19151         of fde->vdrap_reg.
19152         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
19153         (based_loc_descr): Only express drap or vdrap regno based expressions
19154         using DW_OP_fbreg when not optimizing.
19155         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
19156         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
19157         REG_CFA_SET_VDRAP note.
19159 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
19161         PR tree-optimization/43236
19162         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
19163         error in calculation of base address in reverse iteration case.
19164         (generate_builtin): Take number of latch executions if the statement
19165         is in the latch.
19167 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
19169         PR middle-end/42859
19170         * tree-eh.c: Include pointer-set.h.
19171         (lower_eh_dispatch): Filter out duplicate case labels and
19172         remove the unneeded edge when the label is unused.  Return
19173         true when some edges are removed.
19174         (execute_lower_eh_dispatch): When any lowering resulted in
19175         removing an edge, also delete unreachable blocks.
19177 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
19179         PR bootstrap/43287
19180         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
19181         UNSPEC_MACHOPIC_OFFSET.
19183 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
19185         PR target/43294
19186         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
19187         (m68k_delegitimize_address): New function.
19189 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
19191         PR debug/43299
19192         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
19194         PR debug/43299
19195         * var-tracking.c (adjust_sets): New function.
19196         (count_with_sets, add_with_sets): Use it.
19197         (get_adjusted_src): New inline function.
19198         (add_stores): Use it.
19200         PR debug/43304
19201         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
19202         call cselib_dummy_expand_value_rtx_cb instead of
19203         cselib_expand_value_rtx_cb.
19205         PR debug/43293
19206         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
19207         * config/i386/i386.c: Include debug.h and dwarf2out.h.
19208         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
19209         and .cfi_endproc around the pic thunks.
19210         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
19211         all queued unwind info register saves are saved before the call.
19212         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
19213         considered as sp-=4 for unwind info and the pop as sp+=4 which
19214         also clobbers dest, but doesn't actually restore it.
19216         PR debug/43290
19217         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
19218         RTX_FRAME_RELATED_P.
19220 2010-03-09  Jie Zhang  <jie@codesourcery.com>
19222         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
19223         whitespaces in output template.
19225 2010-03-09  Jie Zhang  <jie@codesourcery.com>
19227         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
19228         out array boundary.
19230 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
19232         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
19233         builtins.exp in a separate job.
19235 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
19237         * graphite-sese-to-poly.c (add_param_constraints): Use
19238         lower_bound_in_type and upper_bound_in_type.
19240 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
19242         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
19243         instead of unsigned_type_node.
19245 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
19246             Reza Yazdani  <reza.yazdani@amd.com>
19248         PR middle-end/43065
19249         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
19250         on pointer type parameters.
19252 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
19254         PR middle-end/42644
19255         PR middle-end/42130
19256         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
19257         handle conversions from pointer to integers.
19258         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
19259         induction variable, to be able to work with code generated by CLooG.
19260         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
19261         (build_poly_scop): Bail out if we cannot codegen a loop.
19263 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
19265         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
19266         code generation with gloog_error.
19268 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
19270         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
19271         Call fold_convert on all the returned values.
19272         (expand_scalar_variables_expr): Pass to
19273         expand_scalar_variables_ssa_name the type of the resulting expression.
19275 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
19277         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
19278         ppl_min_for_le_pointset.
19279         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
19280         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
19282 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
19284         * graphite-dependences.c (map_into_dep_poly): Removed.
19285         (dependence_polyhedron_1): Use combine_context_id_scat.
19287 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
19289         * graphite-poly.h (struct poly_scattering): Add layout documentation.
19290         (struct poly_bb): Same.
19291         (combine_context_id_scat): New.
19293 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
19295         PR middle-end/42326
19296         * sese.c (name_defined_in_loop_p): Return false for default
19297         definitions.
19299 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
19301         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
19302         and clean up the logic.
19304 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
19306         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
19307         early return.
19309 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
19311         * var-tracking.c (remove_cselib_value_chains): Define only for
19312         ENABLE_CHECKING.
19313         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
19314         delete_slot_part, emit_notes_for_differences_1): Don't call
19315         remove_cselib_value_chains here.
19316         (set_slot_part, emit_notes_for_differences_2): Don't call
19317         add_cselib_value_chains here.
19318         (preserved_values): New vector.
19319         (preserve_value): New function.
19320         (add_uses, add_stores, vt_add_function_parameters): Use it
19321         instead of cselib_preserve_value.
19322         (changed_values_stack): New vector.
19323         (check_changed_vars_0): New function.
19324         (check_changed_vars_1, check_changed_vars_2): Use it.
19325         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
19326         changed_values_stack VALUEs.
19327         (vt_emit_notes): For all preserved_values call
19328         add_cselib_value_chains.  If ENABLE_CHECKING call
19329         remove_cselib_value_chains before verifying value_chains is empty.
19330         Initialize and free changed_values_stack.
19331         (vt_initialize): Initialize preserved_values.
19332         (vt_finalize): Free preserved_values.
19334 2010-03-08  Richard Guenther  <rguenther@suse.de>
19336         PR tree-optimization/43269
19337         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
19338         region detection.
19340 2010-03-08  Martin Jambor  <mjambor@suse.cz>
19342         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
19343         (ipa_is_param_called): Removed.
19344         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
19345         (ipa_print_node_params): Do not print the called flag.
19346         (ipa_write_node_info): Do not stream the called flag.
19347         (ipa_read_node_info): Likewise.
19349 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
19351         PR debug/43176
19352         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
19353         * cselib.c (struct expand_value_data): Add dummy field.
19354         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
19355         dummy to false.
19356         (cselib_dummy_expand_value_rtx_cb): New function.
19357         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
19358         any rtl.
19359         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
19360         * var-tracking.c: Include pointer-set.h.
19361         (variable): Change n_var_parts to char from int.  Add
19362         cur_loc_changed and in_changed_variables fields.
19363         (variable_canonicalize): Remove.
19364         (shared_var_p): New inline function.
19365         (unshare_variable): Maintain cur_loc_changed and
19366         in_changed_variables fields.  If var was in changed_variables,
19367         replace it there with new_var.  Just copy cur_loc instead of
19368         resetting it to something else.
19369         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
19370         (dataflow_set_union): Don't call variable_canonicalize.
19371         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
19372         of their DEBUG_EXPR_TREE_DECLs.
19373         (canonicalize_loc_order_check): Verify that cur_loc is NULL
19374         and in_changed_variables and cur_loc_changed is false.
19375         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
19376         and cur_loc_changed.  Don't update cur_loc here.
19377         (variable_merge_over_src): Don't call variable_canonicalize.
19378         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
19379         removing loc that is equal to cur_loc, clear cur_loc,
19380         set cur_loc_changed and ensure variable_was_changed is called.
19381         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
19382         compare pointers in cur_loc check, if it is equal to loc,
19383         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
19384         (variable_different_p): Remove compare_current_location argument,
19385         don't compare cur_loc.
19386         (dataflow_set_different_1): Adjust variable_different_p caller.
19387         (variable_was_changed): If dv had some var in changed_variables
19388         already, reset in_changed_variables flag for it and propagate
19389         cur_loc_changed over to the new variable.  On empty var
19390         always set cur_loc_changed.  Set in_changed_variables on whatever
19391         var is added to changed_variables.
19392         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
19393         Use shared_var_p.  When removing loc that is equal to cur_loc,
19394         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
19395         end, don't set it to something else, just call variable_was_changed.
19396         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
19397         loc being removed, clear cur_loc and set cur_loc_changed.
19398         Set cur_loc_changed if all locations have been removed.
19399         (struct expand_loc_callback_data): New type.
19400         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
19401         allocated.  Always create SUBREGs if simplify_subreg failed.
19402         Prefer to use cur_loc, when that fails and still in
19403         changed_variables (and seen first time) recompute it.  Set
19404         cur_loc_changed of variables which had to change cur_loc and
19405         compute elcd->cur_loc_changed if any of the subexpressions used
19406         had to change cur_loc.
19407         (vt_expand_loc): Adjust to pass arguments in
19408         expand_loc_callback_data structure.
19409         (vt_expand_loc_dummy): New function.
19410         (emitted_notes): New variable.
19411         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
19412         that weren't used for any other decl in current
19413         emit_notes_for_changes call call vt_expand_loc_dummy to update
19414         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
19415         first loc_chain location if NULL before.  Always use just
19416         cur_loc instead of first loc_chain location.  When cur_loc_changed
19417         is false, when not --enable-checking=rtl just don't emit any note.
19418         When rtl checking, compute the note and assert it is the same
19419         as previous note.  Clear cur_loc_changed and in_changed_variables
19420         at the end before removing from changed_variables.
19421         (check_changed_vars_3): New function.
19422         (emit_notes_for_changes): Traverse changed_vars to call
19423         check_changed_vars_3 on each changed var.
19424         (emit_notes_for_differences_1): Clear cur_loc_changed and
19425         in_changed_variables.  Recompute cur_loc of new_var.
19426         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
19427         (vt_emit_notes): Initialize and destroy emitted_notes.
19429 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
19431         PR rtl-optimization/42220
19432         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
19433         Use verify_reg_tracked to determine if we should use OP_OUT rather
19434         than OP_INOUT.
19435         (build_def_use): If we see an in-out operand for a register that we
19436         know nothing about, treat is an output if possible, fail the block if
19437         not.
19439 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
19441         PR debug/42897
19442         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
19443         permanently.
19445 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
19447         PR debug/42897
19448         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
19449         uses of relevant DEFs that are dead outside the loop too.
19451 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
19453         * var-tracking.c (dataflow_set_merge): Swap src and src2.
19454         Reverted:
19455         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
19456         PR debug/41371
19457         * var-tracking.c (values_to_unmark): New variable.
19458         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
19459         values_to_unmark vector.  Moved body to...
19460         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
19461         instead queue it into values_to_unmark vector.
19462         (vt_find_locations): Free values_to_unmark vector.
19464 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
19466         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
19467         (site.exp): Export them when plugins are enabled.
19469 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
19471         PR middle-end/42326
19472         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
19473         that contain scevs.
19474         (chrec_fold_multiply): Same.
19476 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
19478         PR c/43248
19479         * c-decl.c (build_compound_literal): Return early if init is
19480         an error_mark_node.
19482 2010-03-04  Martin Jambor  <mjambor@suse.cz>
19484         PR tree-optimization/43164
19485         PR tree-optimization/43191
19486         * tree-sra.c (type_consists_of_records_p): Reject records with
19487         zero-size bit-fields at the end.
19489 2010-03-04  Mike Stump  <mikestump@comcast.net>
19491         * Makefile.in (TAGS): Remove *.y.
19493 2010-03-04  Richard Guenther  <rguenther@suse.de>
19495         PR tree-optimization/40761
19496         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
19497         in reverse order.
19498         (my_rev_post_order_compute): New function.
19499         (init_pre): Call it.
19501 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
19503         PR middle-end/43209
19504         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
19505         decrease the cost of an IV candidate when the cost is infinite.
19507 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19509         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
19510         Use '3DNow!' for the extension of that name, ensure normal space
19511         after the string.
19512         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
19514 2010-03-03  Jeff Law  <law@redhat.com>
19516         * PR middle-end/32693
19517         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
19518         than gen_rtx_SUBREG.
19519         (extract_bit_field_1): Likewise.
19521 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
19523         * doc/sourcebuild.texi (Test directives): Document that arguments
19524         include-opts and exclude-opts are now optional for dg-skip-if,
19525         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
19527 2010-03-03  Jason Merrill  <jason@redhat.com>
19529         PR c++/12909
19530         * cgraph.h (varpool_node): Add extra_name field.
19531         * varpool.c (varpool_extra_name_alias): New.
19532         (varpool_assemble_decl): Emit extra name aliases.
19533         (varpool_mark_needed_node): Look past an extra name alias.
19534         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
19535         * lto-streamer-in.c (lto_input_tree): Read it.
19536         * lto-streamer-out.c (output_unreferenced_globals): Write it.
19538 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
19540         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
19541         (sparc*-*-solaris2*): ...this.
19543 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
19545         PR debug/43229
19546         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
19547         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
19548         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
19549         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
19551         PR debug/43237
19552         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
19553         fallthrough to default handling, just with want_address 0 instead of 2.
19554         For single element lists, add_AT_loc directly, otherwise create an
19555         artificial variable DIE and stick location list to it.
19557         PR debug/43177
19558         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
19559         (VAL_EXPR_HAS_REVERSE): Define.
19560         (reverse_op): New function.
19561         (add_stores): For reversible operations add an extra MO_VAL_USE.
19563 2010-03-02  Jason Merrill  <jason@redhat.com>
19565         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
19567 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
19569         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
19570         (sparc64-*-linux*): Likewise.
19571         (sparc64-*-solaris2*): Include assembler files before linker ones.
19572         (sparc-*-solaris2*): Simplify and reorder to match previous case.
19573         * config/sparc/gas.h: Delete.
19574         * config/sparc/sol2-64.h: Add copyright notice.
19575         * config/sparc/sol2-gas-bi.h: Likewise.
19576         * config/sparc/sol2-gld.h: Likewise.
19577         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
19578         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
19579         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
19580         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
19581         (sparc_elf_asm_named_section): Rename into...
19582         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
19584 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
19586         * config/alpha/alpha.c (override_options): Fix -mtune error message.
19588 2010-03-02  Jeff Law  <law@redhat.com>
19590         PR middle-end/42431
19591         * reload1.c (rtx_p, substitute_stack): Declare.
19592         (substitute): Record addresses of changed rtxs.
19593         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
19594         Restore the original rtx when complete.
19595         (reload): Free subsitute_stack when complete.
19597 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
19599         * doc/gccint.texi (menu): Add Testsuites as a chapter.
19600         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
19601         new chapter.
19602         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
19603         LTO Testing, gcov Testing, profopt Testing, compat Testing,
19604         Torture Tests): Change from subsection to section.
19606 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
19607             Steven Bosscher  <steven@gcc.gnu.org>
19609         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
19610         instead of bb.
19612 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
19614         PR middle-end/42640
19615         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
19616         the assignment from the new induction variable to the assignment
19617         of the value from the original loop PHI function.
19619 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
19620             Daniel Jacobowitz  <dan@codesourcery.com>
19622         * doc/sourcebuild.texi (Test directives): Clarify options to
19623         dg-skip-if.
19625 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19627         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
19628         Disable cfi directives unless GCC and gas agree on using read-only
19629         .eh_frame sections for 64-bit.
19630         * configure: Regenerate.
19632 2010-03-01  Richard Guenther  <rguenther@suse.de>
19634         PR tree-optimization/43220
19635         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
19636         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
19638 2010-03-01  Richard Guenther  <rguenther@suse.de>
19639             Martin Jambor  <mjambor@suse.cz>
19641         PR middle-end/41250
19642         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
19643         gimplified parameters.
19645 2010-03-01  Christian Bruel  <christian.bruel@st.com>
19647         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
19649 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
19651         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
19653 2010-03-01  Richard Guenther  <rguenther@suse.de>
19655         PR middle-end/43213
19656         * expr.c (expand_assignment): Use the alias-oracle to tell
19657         if the rhs aliases the result decl.
19659 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19661         PR pch/14940
19662         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
19663         to sol_gt_pch_get_address.
19664         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
19665         64-bit, SPARC and x86.
19666         (sol_gt_pch_get_address): New function.
19668 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
19670         * toplev.h (inform_n, error_n): Declare.
19671         * diagnostic.c (inform_n, error_n): New function.
19673 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
19675         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
19676         has no rtl yet when processing local_decls, queue it and recheck
19677         if deferred stack allocation hasn't assigned it rtl.
19679 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
19681         * config/sh/sh.c (unspec_bbr_uid): New.
19682         (gen_block_redirect): Use it instead of INSN_UID.
19683         (gen_far_branch): Likewise.
19685 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
19687         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
19688         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
19690 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19692         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
19693         (Warning Options): -Wno-conversion-null is valid for
19694         Objective-C++ as well.
19695         * doc/tm.texi (Named Address Spaces): Likewise.
19696         * doc/plugins.texi (Plugins): Replace TABs with spaces.
19697         * doc/tree-ssa.texi (Tree SSA): Likewise.
19699 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
19701         PR bootstrap/43202
19702         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
19703         by default.  Don't set the default arch for
19704         i[34567]86-*-darwin*|x86_64-*-darwin*.
19706 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
19708         PR bootstrap/43202
19709         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
19710         default.  Set the default 32bit/64bit archs with $with_arch
19711         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
19713 2010-02-27  Richard Guenther  <rguenther@suse.de>
19715         PR tree-optimization/43186
19716         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
19717         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
19718         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
19719         unroller iterations.
19721 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
19723         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
19724         required and i[34567]86-*-* targets don't support 64bit ISA.
19726 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
19728         PR ada/43096
19729         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
19730         the same alias set.
19732 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
19734         * config.gcc: Set the default arch at least to Prescott for
19735         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
19736         if SSE math is enabled.
19738 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19740         * diagnostic.c (diagnostic_initialize): Update.
19741         (diagnostic_report_diagnostic): Test inhibit_notes_p for
19742         informative notes.
19743         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
19744         (diagnostic_inhibit_notes): New.
19745         * toplev.c (process_options): inhibit notes with -fcompare-debug.
19747 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19749         PR c/20631
19750         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
19751         * doc/standards.texi: Likewise.
19752         * doc/extend.texi: Likewise.
19753         * doc/trouble.texi: Likewise.
19754         * doc/cppopts.texi: Likewise.
19755         * doc/install.texi: Likewise.
19756         * c.opt (std=c90,std=gnu90): New options.
19757         * c-opts.c (c_common_handle_option): Handle them.
19759 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19761         PR c/24577
19762         * c-decl.c (undeclared_variable): Use an informative note.
19764 2010-02-26  Richard Guenther  <rguenther@suse.de>
19766         PR tree-optimization/43186
19767         * gimple.h (gimple_fold): Remove.
19768         * gimple.c (gimple_fold): Remove.  Inline into single user ...
19769         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
19770         Try harder for conditions.
19772 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
19774         PR debug/43190
19775         * function.c (used_types_insert): Don't skip through named pointer
19776         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
19777         and it is different from the main variant's type.
19779 2010-02-26  Nick Clifton  <nickc@redhat.com>
19781         * config/rx/rx.md (sminsi3): Remove bogus alternative.
19783 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
19785         * config.gcc: Support --with-fpmath=sse for x86.
19787         * config/i386/ssemath.h: New.
19789         * doc/install.texi (--with-fpmath=sse): Documented.
19791 2010-02-26  Richard Guenther  <rguenther@suse.de>
19793         PR tree-optimization/43188
19794         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
19795         vector types of over-aligned element type.
19797 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
19799         PR target/43175
19800         * config/i386/i386.c (expand_vec_perm_blend): Use correct
19801         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
19803 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
19805         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
19807 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
19809         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
19810         * var-tracking.c: Include diagnostic.h.
19811         (debug_dv): New function.
19812         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
19814         PR debug/43160
19815         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
19816         (add_value_chain, add_value_chains, remove_value_chain,
19817         remove_value_chains): Handle DEBUG_EXPRs.
19818         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
19820         PR debug/43161
19821         * regcprop.c (struct queued_debug_insn_change): New type.
19822         (struct value_data_entry): Add debug_insn_changes field.
19823         (struct value_data): Add n_debug_insn_changes field.
19824         (debug_insn_changes_pool): New variable.
19825         (free_debug_insn_changes, apply_debug_insn_changes,
19826         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
19827         (kill_value_one_regno): Call free_debug_insn_changes if needed.
19828         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
19829         fields.
19830         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
19831         changes for them.
19832         (copyprop_hardreg_forward_1): Don't call apply_change_group for
19833         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
19834         changes, call cprop_find_used_regs via note_stores.
19835         (copyprop_hardreg_forward): When copying vd from predecessor
19836         which has any queued DEBUG_INSN changes, make sure the pointers are
19837         cleared.  At the end call df_analyze and then if there are any
19838         DEBUG_INSN changes queued at the end of some basic block for still
19839         live registers, apply them.
19840         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
19842 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
19844         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
19845         (arm*-*-*): Ditto.
19847 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
19849         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
19850         targets.  Set the default with_cpu/with_arch from arch/cpu.
19851         Allow x86-64 and native for with_cpu/with_arch.
19853 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
19855         * ebitmap.c: Change calls to verify_popcount with calls to
19856         sbitmap_verify_popcount.
19857         (ebitmap_clear_bit): Fixed map->cacheindex test and
19858         map>cache update when bit clearing results in an empty
19859         element.
19861 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
19863         PR target/43154
19864         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
19865         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
19866         and support both V2DF and V2DI modes.
19867         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
19868         support both V2DF and V2DI modes.
19869         (general): Delete trailing whitespace from a few patterns.
19871         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19872         V2DF/V2DI interleave high/low builtins.
19874         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
19875         new VSX builtins.
19877         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
19878         interleave high/low functions.
19880 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
19882         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
19883         #pragma extern_prefix.
19885 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
19887         PR debug/43166
19888         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
19889         BLKmode, assert op0 is a MEM and just adjust its mode.
19891         PR debug/43165
19892         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
19893         if bitpos isn't multiple of mode's bitsize.
19895 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19897         * c.opt (-ftemplate-depth=): New.
19898         (-ftemplate-depth-): Deprecate.
19899         * optc-gen.awk: Handle -ftemplate-depth=.
19900         * opth-gen.awk: Likewise.
19901         * c-opts.c (c_common_handle_option): Likewise.
19902         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
19904 2010-02-24  Jason Merrill  <jason@redhat.com>
19906         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
19908 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19910         * cfg.c (alloc_aux_for_block): Remove inline.
19911         (alloc_aux_for_edge): Likewise.
19913 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19915         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
19917 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19919         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
19920         * config/i386/sol2-gas.h: New file.
19921         * config.gcc (i[34567]86-*-solaris2*): Use it.
19923 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19925         PR c/43128
19926         * c-typeck.c (ep_convert_and_check): New.
19927         (build_conditional_expr): Use it.
19928         (build_binary_op): Likewise.
19930 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
19932         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
19934         PR debug/43150
19935         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
19936         bounds even for -O+.
19937         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
19938         expr needs to have DECL_NAME set.
19940 2010-02-24  Nick Clifton  <nickc@redhat.com>
19942         * config/mep/mep.c: Include gimple.h.
19943         (mep_function_uses_sp): Delete unused function.
19944         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
19945         parameters.  Use unsigned integers to count args.  Return a
19946         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
19948 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
19950         PR target/43107
19951         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
19952         greater or equal to nelt instead of 2 * nelt.
19953         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
19954         with nelt - 1.
19956 2010-02-23  Jason Merrill  <jason@redhat.com>
19958         PR debug/42800
19959         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
19960         in cfun->local_decls even if they have register types.
19962         PR c++/42837
19963         * stor-layout.c (place_field): Don't warn about unnecessary
19964         DECL_PACKED if the type is packed.
19966 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
19968         PR target/43139
19969         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
19970         GOTOFF relocs, even when the base reg isn't pic pointer.
19972 2010-02-23  Michael Matz  <matz@suse.de>
19974         PR debug/43077
19975         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
19976         (expand_gimple_basic_block): Generate and use debug temps if there
19977         are debug uses left after the last real use of TERed ssa names.
19978         Unlink debug immediate uses when they are expanded.
19980 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19982         PR 43123
19983         * config/i386/i386.c (override_options): Reorganise to provide
19984         better error messages.
19986 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
19988         PR middle-end/43083
19989         * graphite-scop-detection.c (create_single_exit_edge): Move
19990         the call to find_single_exit_edge to....
19991         (create_sese_edges): ...here.  Don't handle multiple edges
19992         exiting the function.
19993         (build_graphite_scops): Don't handle multiple edges
19994         exiting the function.
19996 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
19998         PR middle-end/43097
19999         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
20000         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
20002 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
20004         PR middle-end/43026
20005         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
20007 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20009         PR c++/43126
20010         * c-typeck.c (convert_arguments): Print declaration location.
20011         * c-common.c (validate_nargs): Rename as
20012         builtin_function_validate_nargs.
20013         (check_builtin_function_arguments): Update.
20015 2010-02-22  Richard Guenther  <rguenther@suse.de>
20017         PR lto/43045
20018         * tree-inline.c (declare_return_variable): Use the type of
20019         the call stmt lhs if available.
20021 2010-02-22  Duncan Sands  <baldrick@free.fr>
20023         * passes.c (register_pass): Always consider all pass lists when
20024         ref_pass_instance_number is zero.
20026 2010-02-22  Richard Guenther  <rguenther@suse.de>
20028         PR tree-optimization/42749
20029         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
20030         parameter.  Do arithmetic in the original type.
20031         (update_accumulator_with_ops): Likewise.
20032         (adjust_accumulator_values): Adjust.
20034 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20036         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
20037         (QI to BLKmode splitter): New splitter.
20039 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
20041         * config/i386/i386.c (initial_ix86_tune_features): Turn on
20042         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
20044 2010-02-22  Richard Guenther  <rguenther@suse.de>
20046         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
20048 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
20050         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
20051         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
20052         ($(T)crti.o, $(T)crtn.o): Remove rules.
20054 2010-02-21  Tobias Burnus  <burnus@net-b.de>
20056         PR fortran/35259
20057         * doc/invoke.texi (-fassociative-math): Document that this
20058         option is automatically enabled for Fortran.
20060 2010-02-20  David S. Miller  <davem@davemloft.net>
20062         * configure.ac: Test if linker and assembler properly support
20063         GOTDATA_OP relocations.
20064         * configure: Rebuild.
20065         * config.in: Likewise.
20066         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
20067         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
20068         (movsi_high_pic): Likewise.
20069         (movdi_lo_sum_pic): Likewise.
20070         (movdi_high_pic): Likewise.
20071         (movsi_pic_gotdata_op): New pattern.
20072         (movdi_pic_gotdata_op): Likewise.
20073         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
20074         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
20076 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
20078         PR target/43067
20079         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
20080         attribute to ssemul.
20081         (xop_mulv2div2di3_high): Ditto.
20083 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20085         PR c++/35669
20086         * c.opt (Wconversion-null): New option.
20087         * doc/invoke.texi (Wconversion-null): Document.
20089 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20091         * common.opt (Wlarger-than-): Add Undocumented.
20093 2010-02-19  Mike Stump  <mikestump@comcast.net>
20095         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
20097 2010-02-19  Jason Merrill  <jason@redhat.com>
20099         PR target/40332
20100         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
20101         * configure: Likewise.
20103 2010-02-20  Alan Modra  <amodra@gmail.com>
20105         PR middle-end/42344
20106         * cgraph.h (cgraph_make_decl_local): Declare.
20107         * cgraph.c (cgraph_make_decl_local): New function.
20108         (cgraph_make_node_local): Use it.
20109         * cgraphunit.c (cgraph_function_versioning): Likewise.
20110         * ipa.c (function_and_variable_visibility): Likewise.
20112 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
20114         PR bootstrap/43121
20115         * except.c (sjlj_emit_function_enter): Don't call
20116         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
20117         directly.
20118         * rtl.h (add_reg_br_prob_note): Remove prototype.
20120 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20122         PR 41779
20123         * c-common.c (conversion_warning): Remove widening conversions
20124         before checking the conversion of integers to reals.
20126 2010-02-19  Mike Stump  <mikestump@comcast.net>
20128         PR middle-end/43125
20129         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
20131         PR objc/43061
20132         * cgraphunit.c (process_function_and_variable_attributes): Check
20133         DECL_PRESERVE_P instead of looking up attribute "used".
20134         * ipa-pure-const.c (check_decl): Likewise.
20135         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
20136         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
20137         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
20138         instead of attribute "used".
20139         * config/sol2-c.c (solaris_pragma_init): Likewise.
20140         (solaris_pragma_fini): Likewise.
20142 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
20144         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
20145         Use XCNEW instead of xcalloc.
20146         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
20147         XNEW instead of xmalloc.
20148         (get_fields): Use XNEWVEC instead of xmalloc.
20150         PR debug/43084
20151         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
20152         populate vars array.
20153         (create_new_general_access): For debug stmts just reset value.
20154         (get_stmt_accesses): For accesses within debug stmts just record them
20155         using add_access_to_acc_sites instead of preventing the peeling or
20156         counting them as accesses.
20158         PR middle-end/42233
20159         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
20161 2010-02-19  Richard Guenther  <rguenther@suse.de>
20163         PR tree-optimization/42916
20164         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
20165         instructions.
20167 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
20169         * configure.ac: Replace all uses of changequote in macro arguments
20170         with proper quoting.
20172 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
20174         PR middle-end/42233
20175         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
20177 2010-02-19  Richard Guenther  <rguenther@suse.de>
20179         PR tree-optimization/42944
20180         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
20181         test for aliasing with errno.
20183 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
20185         PR middle-end/42233
20186         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
20187         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
20188         * dojump.c: Include output.h.
20189         (inv): New inline function.
20190         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
20191         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
20192         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
20193         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
20194         argument, pass it down to other calls.
20195         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
20196         add REG_BR_PROB note to the conditional jump.
20197         * cfgexpand.c (add_reg_br_prob_note): Removed.
20198         (expand_gimple_cond): Don't call it, add the probability
20199         as last argument to jumpif_1/jumpifnot_1.
20200         * Makefile.in (dojump.o): Depend on output.h.
20201         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
20202         callers.
20203         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
20204         * stmt.c (do_jump_if_equal): Likewise.
20205         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
20206         * loop-unswitch.c (compare_and_jump_seq): Likewise.
20207         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
20208         Likewise.
20209         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
20210         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
20211         jumpifnot_1 callers.
20212         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
20213         callers.
20214         (store_expr): Adjust jumpifnot caller.
20215         (store_constructor): Adjust jumpif caller.
20217         PR middle-end/42233
20218         * gimplify.c (gimple_boolify): For __builtin_expect call
20219         gimple_boolify also on its first argument.
20221 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
20223         * configure.ac (gnu-unique-object): Wrap regexps using [] in
20224         changequote block.
20225         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
20226         * configure: Regenerated.
20228 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20230         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
20231         lang_hooks.types_compatible_p instead of comptypes.
20233 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20235         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
20236         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
20237         if __prefer_thumb__ is defined.
20239 2010-02-18  Martin Jambor  <mjambor@suse.cz>
20241         PR tree-optimization/43066
20242         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
20243         array with zero-sized element type.
20245 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
20247         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
20248         rtx, allocate struct var_loc_node here and return it to the
20249         caller, and only if it is actually needed.
20250         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
20251         move it earlier and return immediately if it returns NULL.
20253 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
20255         * config/sparc/gas.h: New file.  Restore
20256         TARGET_ASM_NAMED_SECTION to its ELF default.
20257         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
20258         check !HAVE_GNU_AS.
20259         * config/sparc/sparc.c (sparc_elf_asm_named_section):
20260         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
20261         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
20262         after sparc/sysv4.h.
20264 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
20266         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
20268 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
20270         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
20271         patterns from predicated pattern.
20273 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
20275         PR target/43103
20276         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
20277         for insn mnemonic suffix.
20279 2010-02-17  Richard Guenther  <rguenther@suse.de>
20281         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
20282         to loop PHI nodes.
20284 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
20286         PR debug/42918
20287         * caller-save.c (save_call_clobbered_regs): If BB ends with
20288         a DEBUG_INSN, move any notes in between last real insn and the last
20289         DEBUG_INSN after the last DEBUG_INSN.
20291 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
20293         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
20294         Fix return type.  Fix argument type.  Explain meaning of return value.
20296 2010-02-16  Richard Guenther  <rguenther@suse.de>
20298         PR tree-optimization/41043
20299         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
20300         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
20301         statements ...
20302         (vrp_visit_phi_node): ... but only for loop PHI nodes.
20304 2010-02-16  Ira Rosen  <irar@il.ibm.com>
20306         PR tree-optimization/43074
20307         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
20308         * tree-vect-loop.c (vect_analyze_loop_operations): Add
20309         vectorizable cycles in hybrid SLP check.
20310         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
20312 2010-02-16  Richard Guenther  <rguenther@suse.de>
20314         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
20315         (true_dependence): If memrefs_conflict_p computes must-alias
20316         trust it.  Move TBAA check after offset-based disambiguation.
20317         (canon_true_dependence): Likewise.
20319 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
20321         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
20322         * doc/invoke.texi: Document it.
20323         * var-tracking.c: Include toplev.h and params.h.
20324         (vt_find_locations): Return bool indicating success.  Compute
20325         hash sizes unconditionally.  Check new parameter, report.
20326         (variable_tracking_main_1): Check vt_find_locations results and
20327         retry.  Renamed from...
20328         (variable_tracking_main): ... this.  New wrapper to preserve
20329         flag_var_tracking_assignments.
20330         * Makefile.in (var-tracking.o): Adjust dependencies.
20332 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
20333             Jakub Jelinek  <jakub@redhat.com>
20335         PR target/42854
20336         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
20337         if weak_import attribute is present.
20338         * config/darwin.c (machopic_select_section): Likewise.
20340 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
20342         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
20343         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
20344         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
20345         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
20347         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
20348         types.
20350         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
20351         Fix argument types.
20353         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
20354         Rewrite text to refer to the names.
20356 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
20358         * config/i386/i386-builtin-types.def
20359         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
20360         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
20361         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
20362         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
20363         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
20364         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
20365         IX86_BUILTIN_VPERMIL2PS256.
20366         (MULTI_ARG_4_DF2_DI_I): Defined.
20367         (MULTI_ARG_4_DF2_DI_I1): Defined.
20368         (MULTI_ARG_4_SF2_SI_I): Defined.
20369         (MULTI_ARG_4_SF2_SI_I1): Defined.
20370         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
20371         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
20372         __builtin_ia32_vpermil2ps256.
20373         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
20374         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
20375         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
20376         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
20377         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
20378         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
20379         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
20380         CODE_FOR_xop_vpermil2v8sf3.
20381         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
20382         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
20383         * config/i386/xopintrin.h (_mm_permute2_pd): New.
20384         (_mm256_permute2_pd): New.
20385         (_mm_permute2_ps): New.
20386         (_mm256_permute2_ps): New.
20388 2010-02-15  Nick Clifton  <nickc@redhat.com>
20390         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
20391         boolean parameters.  Use emit_jump_insn when emitting a pop
20392         instruction containing a return insn.
20393         (push): Use 'true' rather than '1' as second parameter to F.
20394         (h8300_expand_prologue): Likewise.
20395         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
20396         (h8300_expand_epilogue): Likewise.
20398 2010-02-15  Richard Guenther  <rguenther@suse.de>
20400         PR middle-end/43068
20401         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
20402         if that is zero.
20404 2010-02-15  Nick Clifton  <nickc@redhat.com>
20406         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
20407         delta.
20409 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
20411         * intl.c (fake_ngettext): New function.
20412         * intl.h (fake_ngettext): Declare.
20413         (ngettext): Define macro.
20414         * collect2.c (notice_translated): New function.
20415         (main): Use notice_translated and ngettext.
20416         * collect2.h (notice_translated): Declare.
20418 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
20420         * reorg.c (delete_computation): Comment fixes.
20421         * caller-save.c (setup_save_areas): Idem.
20422         * sel-sched-dump.c (dump_lv_set): Idem.
20423         * rtl.def: Idem.
20425 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20427         * config/s390/s390.c (s390_sched_init): New function.
20428         (TARGET_SCHED_INIT): Target hook defined.
20430 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
20431             Jack Howarth  <howarth@bromo.med.uc.edu>
20432             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
20434         PR target/42982
20435         Partial revert of unintended change in fix for PR41605.
20436         * config/darwin.h: Fix typo.
20437         * config/darwin9.h: Same.
20439 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
20441         * c-pch.c (pch_init): Clear v.
20443 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
20445         PR middle-end/42930
20446         * graphite-scop-detection.c (graphite_can_represent_scev): Call
20447         graphite_can_represent_init for MULT_EXPR.
20449 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
20451         PR middle-end/42914
20452         PR middle-end/42530
20453         * graphite-sese-to-poly.c (remove_phi): New.
20454         (translate_scalar_reduction_to_array): Call remove_phi.
20456 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
20458         PR middle-end/42771
20459         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
20460         * graphite-clast-to-gimple.h (gloog): Update declaration.
20461         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
20462         * graphite-poly.h (struct poly_bb): Add missing comments.
20463         (struct scop): Add poly_scop_p field.
20464         (POLY_SCOP_P): New.
20465         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
20466         * graphite.c (graphite_transform_loops): Build the polyhedral
20467         representation for each scop before code generation.
20468         * sese.c (rename_variables_in_operand): Removed.
20469         (rename_variables_in_expr): Return the renamed expression.
20470         (rename_sese_parameters): New.
20471         * sese.h (rename_sese_parameters): Declared.
20473 2010-02-11  Richard Guenther  <rguenther@suse.de>
20475         PR tree-optimization/42998
20476         * tree-ssa-pre.c (create_expression_by_pieces): Treat
20477         POINTER_PLUS_EXPR properly.
20479 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
20480             Changpeng Fang  <changpeng.fang@amd.com>
20482         PR middle-end/40886
20483         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
20484         the cost of an IV candidate when the IV is used in a test against zero.
20486         * gcc.dg/tree-ssa/ivopts-3.c: New.
20488 2010-02-11  Richard Guenther  <rguenther@suse.de>
20490         PR lto/41664
20491         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
20492         pointer-vs-decl case by swapping refs.  Handle some cases
20493         of pointer-vs-decl disambiguations more conservatively.
20494         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
20495         to false after expanding.
20497 2010-02-11  Richard Guenther  <rguenther@suse.de>
20499         PR driver/43021
20500         * gcc.c (process_command): Handle LTO file@offset case more
20501         appropriately.
20503 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
20505         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
20506         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
20507         of DEBUG_INSNs.
20508         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
20510         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
20511         if MEM's mode size isn't DWARF2_ADDR_SIZE.
20512         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
20513         Optimize eq/ne comparisons when both arguments are known to be
20514         zero-extended.
20515         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
20516         Don't mask operands unnecessarily if they are known to be already
20517         zero-extended.
20519 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
20521         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
20522         instead of loop.
20524 2010-02-10  Richard Guenther  <rguenther@suse.de>
20526         PR tree-optimization/43017
20527         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
20528         for wrapping signed arithmetic.
20530 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
20532         PR debug/43010
20533         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
20534         if no debug info should be emitted for it.
20536 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
20538         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
20539         note when flag_exceptions is set.
20541 2010-02-10  Duncan Sands  <baldrick@free.fr>
20543         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
20545 2010-02-10  Richard Guenther  <rguenther@suse.de>
20547         PR c/43007
20548         * tree.c (get_unwidened): Handle constants.
20549         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
20551 2010-02-10  Martin Jambor  <mjambor@suse.cz>
20553         PR lto/42985
20554         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
20555         check for variable argument counts independently.
20557 2010-02-10  Christian Bruel  <christian.bruel@st.com>
20559         PR target/42841
20560         * config/sh/sh.c (find_barrier): Increase length for non delayed
20561         conditional branches.
20563 2010-02-10  Christian Bruel  <christian.bruel@st.com>
20565         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
20567 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
20569         * builtins.c (set_builtin_user_assembler_name): Also handle
20570         ffs if int is smaller than word.
20572 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
20574         PR middle-end/42973
20575         * ira-conflicts.c (get_dup): Remove.
20576         (process_reg_shuffles): Add new parameter.  Use it as an
20577         additional guard for copy generation.
20578         (add_insn_allocno_copies): Rewrite.
20580 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
20582         * common.opt (fsched2-use-traces): Preserved for backward
20583         compatibility.
20584         * doc/invoke.texi: Remove the documentation about option
20585         -fsched2-use-traces.
20586         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
20587         flag_sched2_use_traces.
20588         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
20589         the backward compatibility flag section.
20591 2010-02-09  Richard Guenther  <rguenther@suse.de>
20593         PR tree-optimization/43008
20594         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
20595         make HEAP variables initialized from global memory if they
20596         are not known builtin functions.
20597         (find_func_aliases): Adjust.
20599 2010-02-09  Richard Guenther  <rguenther@suse.de>
20601         PR tree-optimization/43000
20602         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
20603         arithmetic manually.
20605 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
20607         PR tree-optimization/42931
20608         * tree-loop-linear.c (try_interchange_loops): Don't call
20609         double_int_mul if estimated_loop_iterations failed.
20611 2010-02-08  Martin Jambor  <mjambor@suse.cz>
20613         PR middle-end/42898
20614         * tree-sra.c (build_accesses_from_assign): Do not mark in
20615         should_scalarize_away_bitmap if stmt has volatile ops.
20616         (sra_modify_assign): Do not process assigns piecemeal if if stmt
20617         has volatile ops.
20619 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
20621         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
20623 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
20625         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
20626         before the pattern.
20628 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
20630         PR middle-end/42946
20631         * df-core.c (df_finish_pass): Change type of saved_flags to int.
20633 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
20635         PR middle-end/42988
20636         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
20637         to unknown_dependence.
20638         (graphite_legal_transform_dr): Handle the unknown_dependence.
20639         (graphite_carried_dependence_level_k): Same.
20641 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
20643         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
20645 2010-02-07  Richard Guenther  <rguenther@suse.de>
20647         PR middle-end/42991
20648         * expr.c (get_inner_reference): Always initialize *pbitsize.
20650 2010-02-07  Richard Guenther  <rguenther@suse.de>
20652         PR middle-end/42956
20653         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
20654         new ARRAY_REFs on variable size element or minimal index arrays.
20655         Complete.
20656         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
20657         gimple_fold_indirect_ref.
20659 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
20661         PR target/42957
20662         * arm.c (arm_override_options): Just return if the user has specified
20663         an invalid fpu name.
20665 2010-02-03  Jason Merrill  <jason@redhat.com>
20667         PR c++/42870
20668         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
20669         i386_pe_maybe_record_exported_symbol.
20671 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
20673         PR target/42924
20674         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
20675         (pa_delegitimize_address): New function.
20677 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
20679         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
20680         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
20682 2010-02-05  Richard Guenther  <rguenther@suse.de>
20684         PR lto/42762
20685         * lto-streamer-in.c (get_resolution): Deal with references
20686         to undefined functions.
20688 2010-02-05  Richard Guenther  <rguenther@suse.de>
20690         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
20691         (fold_const_aggregate_ref): Likewise.
20692         (ccp_fold_stmt): Substitute loads.
20693         (maybe_fold_reference): Verify types before substituting.
20694         Unshare properly.
20695         (fold_gimple_assign): Unshare properly.
20696         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
20698 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
20700         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
20701         for rs6000_gen_cell_microcode.
20703 2010-02-04  Richard Guenther  <rguenther@suse.de>
20705         PR rtl-optimization/42952
20706         * dse.c (const_or_frame_p): Remove MEM handling.
20708 2010-02-04  Nick Clifton  <nickc@redhat.com>
20710         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
20711         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
20712         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
20713         (mn10300_asm_output_mi_thunk): New function.
20714         (mn10300_can_output_mu_thunk): New function.
20715         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
20716         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
20717         (FUNCTION_ARG): Delete incorrect comment.
20719 2010-02-03  Jason Merrill  <jason@redhat.com>
20721         PR c++/40138
20722         * fold-const.c (operand_equal_p): Handle erroneous types.
20724 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
20726         * config/h8300/h8300.md (can_delay): Fix attibute condition.
20728 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
20730         PR rtl-optimization/42941
20731         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
20732         of xmalloc.
20734 2010-02-03  Jason Merrill  <jason@redhat.com>
20736         PR c++/35652
20737         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
20739 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
20741         PR debug/42896
20742         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
20743         (cselib_reset_table): Renamed from...
20744         (cselib_reset_table_with_next_value): ... this.
20745         (cselib_get_next_uid): Renamed from...
20746         (cselib_get_next_unknown_value): ... this.
20747         * cselib.c (next_uid): Renamed from...
20748         (next_unknown_value): ... this.
20749         (cselib_clear_table): Adjust.
20750         (cselib_reset_table): Adjust.  Renamed from...
20751         (cselib_reset_table_with_next_value): ... this.
20752         (cselib_get_next_uid): Adjust.  Renamed from...
20753         (cselib_get_next_unknown_value): ... this.
20754         (get_value_hash): Use hash.
20755         (cselib_hash_rtx): Likewise.
20756         (new_cselib_val): Adjust.  Set and dump uid.
20757         (cselib_lookup_mem): Pass next_uid as hash.
20758         (cselib_subst_to_values): Likewise.
20759         (cselib_log_lookup): Dump uid.
20760         (cselib_lookup): Pass next_uid as hash.  Adjust.
20761         (cselib_process_insn): Adjust.
20762         (cselib_init): Initialize next_uid.
20763         (cselib_finish): Adjust.
20764         (dump_cselib_table): Likewise.
20765         * dse.c (canon_address): Dump value uid.
20766         * print-rtl.c (print_rtx): Print value uid.
20767         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
20768         (dvuid): New type.
20769         (dv_uid): New function, sort of renamed from...
20770         (dv_htab_hash): ... this, reimplemented in terms of it and...
20771         (dv_uid2hash): ... this.  New.
20772         (variable_htab_eq): Drop excess assertions.
20773         (tie_break_pointers): Removed.
20774         (canon_value_cmp): Compare uids.
20775         (variable_post_merge_New_vals): Print uids.
20776         (vt_add_function_parameters): Adjust.
20777         (vt_initialize): Reset table.  Adjust.
20779 2010-02-03  Richard Guenther  <rguenther@suse.de>
20781         PR tree-optimization/42944
20782         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
20783         (call_may_clobber_ref_p_1): Likewise.  Properly handle
20784         malloc and calloc clobbering errno.
20786 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
20788         * doc/invoke.texi: Fix name of sched1 dump.
20790         * opts.c (decode_options): Set flag_tree_switch_conversion
20791         only conditionally on optimize >= 2.
20793         * gcse.c: Assorted comment fixes in pass description.
20795 2010-02-03  Anthony Green  <green@moxielogic.com>
20797         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
20798         nop padding in order to maintain alignment of storage location of
20799         target function address.
20800         (moxie_trampoline_init): Store target function address at newly
20801         aligned location.
20802         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
20803         to 32.
20804         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
20806 2010-02-03  Richard Guenther  <rguenther@suse.de>
20808         PR middle-end/42927
20809         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
20811 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20813         * config.gcc: Reenable check for obsolete targets.
20814         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
20815         mips-sgi-irix6.[0-4]*.
20817 2010-02-02  Nick Clifton  <nickc@redhat.com>
20819         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
20820         constant size of 4 as being the same as 0.
20821         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
20822         can take values in the range 0..4.
20824 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
20826         PR java/41991
20827         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
20828         as _darwin10_Unwind_FindEnclosingFunction().
20829         * libgcc-libsystem.ver: New.
20831 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
20833         PR target/41399
20834         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
20835         implicitly set registers.
20837 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
20839         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
20840         (arm_override_options): Allow automatic selection of the thread
20841         pointer register if thumb2.
20842         (legitimize_pic_address): Improve code sequences for Thumb2.
20843         (arm_call_tls_get_addr): Likewise.
20844         (legitimize_tls_address): Likewise.
20845         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
20846         (pic_load_addr_32bit): ... this.  New named pattern.
20847         * thumb2.md (pic_load_addr_thumb2): Delete.
20848         (pic_load_dot_plus_four): Delete.
20849         (tls_load_dot_plus_four): New named pattern.
20851 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20853         PR libgomp/29986
20854         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
20855         Document fix for TLS bug.
20857 2010-01-31  Richard Guenther  <rguenther@suse.de>
20859         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
20860         conservatively correct.
20862 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20864         PR target/42850
20865         Revert:
20866         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20868         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
20870 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20872         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
20874 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
20876         * config.gcc: Adjust order of makefile fragments for mingw targets.
20878 2010-01-31  Richard Guenther  <rguenther@suse.de>
20880         PR middle-end/42898
20881         * gimplify.c (gimplify_init_constructor): For volatile LHS
20882         initialize a temporary.
20884 2010-01-31  Matthias Klose  <doko@ubuntu.com>
20886         * configure.ac: Fix __stack_chk_fail check for cross builds configured
20887         --with-headers
20888         * configure: Regenerate.
20890 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
20892         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
20893         the same alias set and their sizes different constantness.
20894         (aliasing_component_refs_p): Revert 2009-10-24 change.
20896 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20898         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
20899         unused.
20901 2010-01-29  Richard Guenther  <rguenther@suse.de>
20903         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
20904         Assert we successfully updated the call.
20906 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
20908         PR rtl-optimization/42889
20909         * df.h (df_set_bb_dirty_nonlr): New prototype.
20910         * df-core.c (df_set_bb_dirty_nonlr): New function.
20911         * df-scan.c (df_insn_rescan): Call it instead of
20912         df_set_bb_dirty for DEBUG_INSNs.
20914 2010-01-29  Richard Guenther  <rguenther@suse.de>
20916         PR middle-end/37448
20917         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
20918         quadratic behavior in most cases.
20920 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
20922         PR target/42891
20923         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
20924         in the call to gen_x86_movsicc_0_m1.
20926 2010-01-28  Richard Guenther  <rguenther@suse.de>
20928         PR tree-optimization/42871
20929         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
20931 2010-01-28  Richard Guenther  <rguenther@suse.de>
20933         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
20934         into call arguments.
20936 2010-01-28  Richard Guenther  <rguenther@suse.de>
20938         PR middle-end/42883
20939         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
20940         the forwarder if the destination is an EH landing pad.
20942 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
20944         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
20945         block list passed to gimple_duplicate_sese_tail.
20946         (parallelize_loops): Avoid parallelization when the function
20947         has_nonlocal_label.
20948         Avoid parallelization when the preheader is IRREDUCIBLE.
20949         Try to optimize when estimated_loop_iterations_int is unresolved.
20950         Add the loop's location to the dump file.
20951         * tree-cfg.c (add_phi_args_after_redirect): Remove.
20952         (gimple_duplicate_sese_tail): Remove the check for the latch.
20953         Redirect nexits to the exit block.
20954         Remove handling of the incoming edges to the latch.
20955         Redirect the backedge from the copied latch to the exit bb.
20957 2010-01-28  Michael Matz  <matz@suse.de>
20959         PR target/42881
20960         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
20961         Wrap force_reg into a sequence, emit it before user.
20963 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
20965         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
20966         (arm_rev): New.
20967         (arm_legacy_rev): Likewise.
20968         (thumb_legacy_rev): Likewise.
20970 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
20972         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
20973         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
20974         on MEM's address failed, try avoid_constant_pool_reference and
20975         recurse if it returned something different.
20976         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
20977         address, try avoid_constant_pool_reference and recurse if it
20978         returned something different.
20979         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
20980         address and avoid_constant_pool_reference returned something
20981         different, don't set have_address.
20983 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
20985         PR debug/42861
20986         * var-tracking.c (val_store): Add modified argument, obey it.
20987         Adjust callers.
20988         (count_uses): Move down logging of main.
20989         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
20990         don't need resolution.
20991         (emit_notes_in_bb): Likewise.
20993 2010-01-27  Richard Guenther  <rguenther@suse.de>
20995         PR middle-end/42878
20996         * tree-inline.c (remap_decl): Delay remapping of SSA name
20997         default definitions until we need them.
20999 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
21001         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
21002         (rs6000_delegitimize_address): New function.
21004         * config/s390/s390.c (s390_delegitimize_address): Call
21005         delegitimize_mem_from_attrs.
21007         PR middle-end/42874
21008         * tree-inline.c (cannot_copy_type_1): Removed.
21009         (copy_forbidden): Don't forbid copying of functions containing
21010         records/unions with variable length fields.
21012 2010-01-27  Christian Bruel  <christian.bruel@st.com>
21014         Revert:
21015         PR target/42841
21016         * config/sh/sh.c (find_barrier): Increase length for non delayed
21017         conditional branches.
21019 2010-01-27  Matthias Klose  <doko@ubuntu.com>
21021         * configure.ac (gnu-unique-object): Fix ldd version check.
21022         * configure: Regenerate.
21024 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21026         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
21027         HAVE_GNU_AS value.
21028         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
21029         Test for HAVE_GNU_AS value.
21031 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21033         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
21034         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
21035         INT64_TYPE): Define.
21036         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
21037         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
21038         INT_LEAST64_TYPE): Define.
21039         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
21040         UINT_LEAST64_TYPE): Define.
21041         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
21042         INT_FAST64_TYPE): Define.
21043         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
21044         UINT_FAST64_TYPE): Define.
21045         (INTMAX_TYPE, UINTMAX_TYPE): Define.
21046         (INTPTR_TYPE, UINTPTR_TYPE): Define.
21047         (SIG_ATOMIC_TYPE): Define.
21049 2010-01-26  Richard Guenther  <rguenther@suse.de>
21051         * df-scan.c (df_scan_set_bb_info): Remove assert.
21052         (df_insn_rescan_debug_internal): Merge asserts.
21053         (df_install_ref): Likewise.
21054         (df_mark_reg): Use bitmap_set_range.
21055         (df_hard_reg_used_p): Remove assert.
21056         (df_hard_reg_used_count): Likewise.
21058 2010-01-26  Richard Guenther  <rguenther@suse.de>
21060         PR rtl-optimization/42685
21061         * web.c (web_main): Ignore DEBUG_INSNs.
21063 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
21065         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
21067         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
21068         Fix types of fndecl and arglist parameters.
21070 2010-01-26  Richard Guenther  <rguenther@suse.de>
21072         PR middle-end/42806
21073         * tree-eh.c (unsplit_eh): Skip debug insns.
21075 2010-01-26  Richard Guenther  <rguenther@suse.de>
21077         PR tree-optimization/42250
21078         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
21080 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
21082         PR fortran/42866
21083         * omp-low.c (expand_omp_sections): Only use single_pred if
21084         l2_bb is single_pred_p.
21086 2010-01-25  Christian Bruel  <christian.bruel@st.com>
21088         PR target/42841
21089         * config/sh/sh.c (find_barrier): Increase length for non delayed
21090         conditional branches.
21091         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
21093 2010-01-24  David S. Miller  <davem@davemloft.net>
21095         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
21096         define if not using GAS.
21097         * config/sparc/sparc.c (sparc_elf_asm_named_section):
21098         Likewise.  Delete SECTION_MERGE code, which is only applicable
21099         when using GAS.
21101 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
21103         PR c++/42748
21104         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
21105         mangling of va_list in system headers.
21107 2010-01-23  Toon Moene  <toon@moene.org>
21109         * tree-predcom.c (combine_chains): Return NULL, not false.
21111 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
21113         * tree-loop-distribution.c (distribute_loop): Fix declaration and
21114         initialization of variable res to agree with return type.
21116 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
21118         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
21119         * tree-sra.c: Add include of expr.h.
21121 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
21123         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
21124         insert the debug stmt on the single non-EH edge from the stmt.
21126 2010-01-22  Richard Henderson  <rth@redhat.com>
21128         PR tree-opt/42833
21129         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
21130         the RHS until after generate_subtree_copies has insertted its
21131         code before the current statement.
21133 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
21135         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
21137         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
21139 2010-01-21  Martin Jambor  <mjambor@suse.cz>
21141         PR tree-optimization/42585
21142         * tree-sra.c (struct access): New field grp_total_scalarization.
21143         (dump_access): Dump the new field.
21144         (should_scalarize_away_bitmap): New variable.
21145         (cannot_scalarize_away_bitmap): Likewise.
21146         (sra_initialize): Allocate new bitmaps.
21147         (sra_deinitialize): Free new bitmaps.
21148         (create_access_1): New function.
21149         (create_access): Parts moved to create_access_1.
21150         (type_consists_of_records_p): New function.
21151         (completely_scalarize_record): Likewise.
21152         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
21153         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
21154         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
21155         access.
21156         (analyze_all_variable_accesses): Completely scalarize small eligible
21157         records.
21159 2010-01-21  Martin Jambor  <mjambor@suse.cz>
21161         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
21163 2010-01-21  Andrew Haley  <aph@redhat.com>
21165         * gcc.c (process_command): Move lang_specific_driver before
21166         setting cc_libexec_prefix.
21168 2010-01-21  Richard Guenther  <rguenther@suse.de>
21170         PR middle-end/19988
21171         * fold-const.c (negate_expr_p): Pretend only negative
21172         real constants are easily negatable.
21174 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
21175             Jason Merrill  <jason@redhat.com>
21177         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
21178         (TYPE_TRANSPARENT_AGGR): this, for union and record.
21179         * calls.c (initialize argument_information): Handle it.
21180         * c-common.c (handle_transparent_union_attribute): Use new name.
21181         * c-decl.c (finish_struct): Ditto.
21182         * c-typeck.c (type_lists_compatible_p): Ditto.
21183         (convert_for_assignment): Use new name and also handle record.
21184         * function.c (aggregate_value_p): Handle it.
21185         (pass_by_reference): Ditto.
21186         (assign_parm_data_types): Ditto.
21187         * print-tree.c (print_node): Ditto.
21188         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
21189         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
21190         * tree.c (first_field): New fn.
21192 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
21194         PR target/42818
21195         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
21196         even when linking statically, for now.
21198 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
21200         PR debug/42715
21201         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
21202         without a cselib val.
21203         (count_uses): Accept MO_VAL_SET with no val on stores.
21204         (add_stores): Likewise.
21206 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
21208         * var-tracking.c (check_value_val): Add a compile time assertion.
21209         (dv_is_decl_p): Simplify.
21210         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
21211         gcc_assert if ENABLE_CHECKING.
21213 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
21215         PR debug/42782
21216         * var-tracking.c: Include tree-flow.h.
21217         (mem_dies_at_call): New.
21218         (dataflow_set_preserve_mem_locs): Use it.
21219         (dataflow_set_remove_mem_locs): Likewise.
21220         (dump_var): Renamed from dump_variable.  Adjust all callers.
21221         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
21222         * Makefile.in (var-tracking.o): Adjust deps.
21224 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
21226         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
21228 2010-01-20  Richard Guenther  <rguenther@suse.de>
21230         PR tree-optimization/42717
21231         * tree-ssa-dce.c (get_live_post_dom): Remove.
21232         (forward_edge_to_pdom): Take an arbitrary edge to copy
21233         degenerate PHI args from.
21234         (remove_dead_stmt): Use the first post-dominator even if it
21235         does not contain live statements as redirection destination.
21237 2010-01-20  Richard Guenther  <rguenther@suse.de>
21239         * tree-inline.c (estimate_num_insns): Handle EH builtins.
21241 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
21243         * sel-sched.c (create_speculation_check): Remove set but not used
21244         variable twin.
21245         (try_transformation_cache): Remove set but not used variable ds.
21246         (calculate_privileged_insns): Remove set but not used variables
21247         cur_insn and min_spec_insn.
21248         (find_best_expr): Remove set but not used variable avail_n.
21249         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
21250         variable e.
21251         * cgraphunit.c (assemble_thunk): Remove set but not used variable
21252         false_label.
21253         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
21254         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
21255         new_scop_exit_edge.
21257 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
21259         PR bootstrap/42786
21260         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
21261         cpu types.  Add support for *-sse3 cpu types.
21262         (x86_64-*-*): Ditto.
21264 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
21266         PR middle-end/42803
21267         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
21268         argument, call initializer_constant_valid_p_1 instead of
21269         initializer_constant_valid_p, pass CACHE to it, return NULL
21270         immediately if first call returns NULL.
21271         (initializer_constant_valid_p_1): New function.
21272         (initializer_constant_valid_p): Use it.
21274 2010-01-20  Thomas Quinot  <quinot@adacore.com>
21276         * tree.def (PLACEHOLDER_EXPR): Fix comment.
21278 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
21280         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
21281         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
21282         (loc_list_from_tree): Don't handle unsigned division.  Handle
21283         signed modulo using DW_OP_{over,over,div,mul,minus}.
21284         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
21285         modulo instead of signed.
21287 2010-01-20  DJ Delorie  <dj@redhat.com>
21289         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
21290         (Fpa): Pass it
21291         (h8300_emit_stack_adjustment): Propogate it.
21292         (push): Pass it.
21293         (h8300_expand_prologue): Likewise.
21294         (h8300_expand_epilogue): Likewise.
21296 2010-01-19  Michael Matz  <matz@suse.de>
21298         PR tree-optimization/41783
21299         * tree-data-ref.c (toplevel): Include flags.h.
21300         (dump_data_dependence_relation):  Also dump the inputs if the
21301         result will be unknown.
21302         (split_constant_offset_1): Look through some conversions.
21303         * tree-predcom.c (determine_roots_comp): Restart a new chain if
21304         the offset from last element is too large.
21305         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
21306         (reassociate_to_the_same_stmt): Handle vector registers.
21307         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
21308         (e.g. conversions).
21309         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
21310         wide_prolog_niters argument, emit widening instructions.
21311         (vect_do_peeling_for_alignment): Adjust caller, use widened
21312         variant of the iteration cound.
21313         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
21315 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21317         PR target/38697
21318         * config/arm/neon-testgen.m (emit_automatics): New parameter
21319         features. Adjust for Fixed_return_reg feature.
21320         (test_intrinsic): Call emit_automatics with new feature.
21321         * config/arm/neon.ml: Update copyright years.
21322         (features): New Fixed_return_reg feature.
21323         (ops): Update feature for Vget_low.
21325 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
21327         PR tree-optimization/42719
21328         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
21329         stmt uses.
21331         PR debug/42728
21332         * fwprop.c (all_uses_available_at): Return false if def_set dest
21333         is a REG that is used in def_insn.
21335 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
21337         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
21339         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
21340         Add argument names.
21342         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
21344         * target.h (struct gcc_target) <secondary_reload>: Change type
21345         of last argument to secondary_reload_info *.
21347 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
21349         PR target/42774
21350         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
21351         memory references with unaligned offsets.  Remove CQImode handling.
21352         (unaligned_memory_operand): Return 1 for memory references with
21353         unaligned offsets.  Remove CQImode handling.
21355 2010-01-18  Richard Guenther  <rguenther@suse.de>
21357         PR middle-end/39954
21358         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
21359         builtin calls.
21361 2010-01-18  Richard Guenther  <rguenther@suse.de>
21363         PR tree-optimization/42781
21364         * tree-ssa-structalias.c (find_what_var_points_to): Skip
21365         restrict processing only if the original variable was artificial.
21367 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
21369         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
21370         find number of popped argument bytes.
21372         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
21373         Fix the text that describes the return value for invalid insns.
21375         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
21377         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
21378         Clarify what 'cost of the -dependence' is.  Fix quoting.
21380         * toplev.c (default_get_pch_validity): Rename argument to "sz".
21381         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
21383 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
21385         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
21386         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
21388 2010-01-17  Richard Guenther  <rguenther@suse.de>
21390         PR middle-end/42248
21391         * function.c (split_complex_args): Take a VEC to modify.
21392         (assign_parms_augmented_arg_list): Build a VEC instead of
21393         a chain of PARM_DECLs.
21394         (assign_parms_unsplit_complex): Take a VEC of arguments.
21395         Do not fixup unmodified parms.
21396         (assign_parms): Deal with the VEC.
21397         (gimplify_parameters): Likewise.
21399 2010-01-17  Richard Guenther  <rguenther@suse.de>
21401         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
21402         node existence check.
21403         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
21404         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
21405         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
21406         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
21407         (gimple_execute_on_growing_pred): Likewise.
21409 2010-01-17  Richard Guenther  <rguenther@suse.de>
21411         PR tree-optimization/42773
21412         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
21413         (compute_antic_aux): Likewise.
21414         (compute_partial_antic_aux): Likewise.
21416 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
21418         PR debug/42767
21419         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
21420         and US_TRUNCATE.
21422 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
21424         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
21425         appearance.
21427         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
21428         Fix markup for strict argument.
21430         (TARGET_SCHED_REORDER2): Fix argument types.
21432         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
21433         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
21435         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
21436         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
21438         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
21439         Add argument name.
21441         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
21442         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
21443         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
21444         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
21445         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
21447         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
21449         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
21451         (TARGET_ASM_RELOC_RW_MASK): Add return type.
21452         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
21454         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
21456         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
21457         Use prototype.
21459         (TARGET_ASM_NAMED_SECTION): Fix argument list.
21461         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
21462         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
21464         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
21466         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
21468         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
21469         referring to it.  Fix language.
21471         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
21473         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
21475         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
21477         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
21479         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
21480         '@var{stream}.  Remove stray 'and'.
21482         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
21484         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
21486         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
21488         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
21489         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
21491         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
21492         Fix description of return value.
21493         Rename argument "sz" to "len."
21495         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
21496         Clarify meaning of 'true' return value.
21498         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
21500         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
21501         rep_mode versus mode_rep.
21503         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
21505         (TARGET_BUILTIN_DECL): Fix name.
21507         (TARGET_COMMUTATIVE_P): Fix type of first argument.
21509         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
21511         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
21513         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
21515         (TARGET_RELAXED_ORDERING): Use @deftypevr.
21517         (TARGET_GET_DRAP_RTX): Note that this is a hook.
21518         Clarify language.
21520         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
21521         Rename argument tm_fn to md_fn.
21523         (TARGET_OPTION_PRINT): Fix argument list.
21525 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
21527         PR target/42664
21528         * config/i386/i386.c (ix86_fixup_binary_operands):
21529         Revert FMA4 fixup of operands.
21531 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21533         PR gcc/42525
21534         * Makefile.in (write_entries_to_file, install-plugin):
21535         Use \012 instead of \n with tr.
21537 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
21539         * configure.ac (HAVE_AS_REF): New C macro.
21540         * configure: Regenerate.
21541         * config.in: Likewise.
21542         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
21543         if HAVE_AS_REF.
21544         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
21545         if HAVE_AS_REF.
21547 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
21549         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
21551         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
21553         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
21555         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
21557         (TARGET_IN_SMALL_DATA_P): Fix argument type.
21559         (TARGET_BINDS_LOCAL_P): Fix argument type.
21561         (TARGET_ASM_FILE_END): Use prototype.
21563         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
21565         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
21567         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
21569         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
21571         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
21572         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
21574         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
21575         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
21577         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
21578         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
21579         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
21580         (TARGET_ADDR_SPACE_CONVERT): Likewise.
21582         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
21584         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
21586         (TARGET_INIT_BUILTINS): Use prototype.
21588         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
21589         Put 'const char *' in braces.  Fix parameter types.
21590         (TARGET_INVALID_CONVERSION): Fix parameter types.
21591         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
21592         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
21594         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
21595         Fix argument type.
21597         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
21599         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
21601 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
21603         * doc/tm.texi (TARGET_HELP): Fix return type.
21605         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
21606         in braces.  Fix argument types.
21608         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
21610         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
21612         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
21614         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
21615         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
21617         (TARGET_MANGLE_TYPE): Fix argument types.
21619         (TARGET_IRA_COVER_CLASSES): Use prototype.
21621         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
21623         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
21625         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
21627         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
21629         (TARGET_CALLEE_COPIES): Fix argument types.
21631         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
21633         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
21635         (TARGET_FUNCTION_VALUE): Fix argument types.
21637         (TARGET_RETURN_IN_MSB): Fix argument type.
21639         (TARGET_RETURN_IN_MEMORY): Fix argument types.
21641         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
21643         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
21645         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
21646         agree with return type.
21648         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
21650 2010-01-15  Jing Yu  <jingyu@google.com>
21652         PR rtl-optimization/42691
21653         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
21654         a pseudo to a constant and are merged, and adjust comments.
21656 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
21658         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
21660 2010-01-15  Richard Guenther  <rguenther@suse.de>
21662         PR middle-end/42739
21663         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
21664         labels of computed or non-local gotos to the destination.
21665         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
21666         landing pad label is the first label.
21668 2010-01-15  Richard Guenther  <rguenther@suse.de>
21670         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
21672 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
21674         PR target/42747
21675         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
21676         to allow generation of the xssqrtdp instruction on power7.
21677         (sqrtdf2_fpr): Ditto.
21679 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
21681         PR middle-end/42674
21682         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
21683         functions with noreturn attribute.
21685         PR c++/42608
21686         * varasm.c (declare_weak): Add weak attribute to decl if it
21687         doesn't have one already.
21688         (assemble_external): Only add decls to weak_decls if they also
21689         have weak attribute.
21691 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
21693         * var-tracking.c (var_reg_delete): Don't delete the association
21694         between REGs and values or one-part variables if the register
21695         isn't clobbered.
21697 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
21699         PR debug/42657
21700         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
21701         because its first operand is a non-localized variable.
21703 2010-01-14  Martin Jambor  <mjambor@suse.cz>
21705         PR tree-optimization/42706
21706         * tree-sra.c (encountered_recursive_call): New variable.
21707         (encountered_unchangable_recursive_call): Likewise.
21708         (sra_initialize): Initialize both new variables.
21709         (callsite_has_enough_arguments_p): New function.
21710         (scan_function): Call decl and flags check only for IPA-SRA, check
21711         whether there is a recursive call and whether it has enough arguments.
21712         (all_callers_have_enough_arguments_p): New function.
21713         (convert_callers): Look for recursive calls only when
21714         encountered_recursive_call is set.
21715         (ipa_early_sra): Bail out either if
21716         !all_callers_have_enough_arguments_p or
21717         encountered_unchangable_recursive_call.
21719 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21721         * sel-sched.c: Add 2010 to copyright years.
21722         * sel-sched-ir.c: Likewise.
21723         * sel-sched-ir.h: Likewise.
21725 2010-01-14  Martin Jambor  <mjambor@suse.cz>
21727         PR tree-optimization/42714
21728         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
21729         constructors specially.
21731 2010-01-14  Andi Kleen  <ak@linux.intel.com>
21733         * config/i386/drivers-i386.c (detect_caches_intel):
21734         Add l2sizekb parameter and fill in.
21735         (host_detect_local_cpu): Add l2sizekb, fill in.
21736         Add Atom small cache heuristic.
21738 2010-01-14  Andi Kleen  <ak@linux.intel.com>
21740         * config/i386/drivers-i386.c (detect_caches_cpuid4):
21741         Add level3 parameter and fill in.
21742         (detect_caches_intel): Handle level3 cache.
21744 2010-01-14  Andi Kleen  <ak@linux.intel.com>
21746         * config/i386/drivers-i386.c (host_detect_local_cpu):
21747         Fix core duo detection.
21749 2010-01-14  Andi Kleen  <ak@linux.intel.com>
21751         * config/i386/drivers-i386.c (host_detect_local_cpu):
21752         Fix Atom detection.
21754 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21756         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
21757         (rs6000_variable_issue_1): this.  Use...
21758         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
21760 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21762         * sel-sched-ir.c (sel_restore_other_notes): Rename to
21763         sel_restore_notes.  Update all callers.  Call reemit_notes
21764         for all insns.
21766 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
21768         PR rtl-optimization/42246
21769         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
21770         loops.
21772 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
21774         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
21775         all successors is the same as number of successors in current region.
21777 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21779         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
21780         to rename is not separable.  Otherwise check that its LHS is not NULL.
21782 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21784         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
21786 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21788         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
21789         available registers when failed to discover LHS register class.
21790         Fix indentation.  Update comment.
21792 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
21793             Alexander Monakov  <amonakov@ispras.ru>
21795         PR rtl-optimization/42389
21796         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
21797         to can_issue_more.
21798         (advance_state_on_fence): Likewise.
21799         (sel_target_adjust_priority): Print debug output only when
21800         sched_verbose >= 4, not 2.
21801         (get_expr_cost): Do not issue all unique insns on the next cycle.
21802         (fill_insns): Initialize can_issue_more from the value saved
21803         with the fence.
21804         * sel-sched-ir.c (flist_add): New parameter issue_more.
21805         Init FENCE_ISSUE_MORE with it.
21806         (merge_fences): Likewise.
21807         (init_fences): Update call to flist_add.
21808         (add_to_fences, add_clean_fence_to_fences)
21809         (add_dirty_fence_to_fences): Likewise.
21810         (move_fence_to_fences): Update call to merge_fences.
21811         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
21812         sched groups.
21813         * sel-sched-ir.h (struct _fence): New field issue_more.
21814         (FENCE_ISSUE_MORE): New accessor macro.
21816 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
21818         PR rtl-optimization/42388
21819         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
21820         that have no predecessors nor successors.  Do not call move_bb_info
21821         for empty blocks outside of current region.
21823 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21825         PR rtl-optimization/42294
21826         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
21827         * sel-sched.c (move_exprs_to_boundary): Transitively add all
21828         originators' originators.
21830 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
21832         PR rtl-optimization/39453
21833         PR rtl-optimization/42246
21834         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
21835         for pipelining_p.
21836         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
21838 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
21839             Alexander Monakov  <amonakov@ispras.ru>
21841         PR middle-end/42245
21842         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
21843         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
21844         argument.  Update all callers.
21845         (tidy_control_flow): ... and here.  Recompute topological order
21846         of basic blocks in region if necessary.
21847         (sel_redirect_edge_and_branch): Change return type.  Return true
21848         if topological order might have been invalidated.
21849         (purge_empty_blocks): Export and move from...
21850         * sel-sched.c (purge_empty_blocks): ... here.
21851         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
21852         (maybe_tidy_empty_bb): Delete prototype.
21853         (purge_empty_blocks): Declare.
21855 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
21857         PR rtl-optimization/42249
21858         * sel-sched.c (try_replace_dest_reg): When chosen register
21859         and original register is the same, do not bail out early, but
21860         still check all original insns for validity of replacing destination
21861         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
21862         in this case.
21864 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
21866         PR c/42721
21867         Port from no-undefined-overflow branch:
21868         2009-03-09  Richard Guenther  <rguenther@suse.de>
21870         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
21872 2010-01-14  Richard Guenther  <rguenther@suse.de>
21874         PR lto/42665
21875         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
21877 2010-01-14  Ira Rosen  <irar@il.ibm.com>
21879         PR tree-optimization/42709
21880         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
21881         as scalar type in creation of constant vector operand.
21883 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21885         PR testsuite/42414
21886         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
21887         (check-parallel-%): Match `testsuite' directory component only
21888         at the end.
21890 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
21892         PR translation/39521
21893         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
21894         strings with _().
21896 2010-01-13  Richard Guenther  <rguenther@suse.de>
21898         PR tree-optimization/42730
21899         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
21900         offset zero.
21902 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
21904         PR target/pr42542
21905         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
21906         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
21907         them signed.
21909 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
21911         * config/bfin/libgcc-bfin.ver: Regenerate based on current
21912         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
21913         ___umulsi3_highpart.
21915         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
21916         rather than schedule_insns if the pass is enabled.
21918 2010-01-13  Martin Jambor  <mjambor@suse.cz>
21920         PR tree-optimization/42704
21921         * tree-sra.c (sra_modify_assign): Do not delete assignments to
21922         SSA_NAMEs.
21924 2010-01-13  Martin Jambor  <mjambor@suse.cz>
21926         PR tree-optimization/42703
21927         * tree-sra.c (analyze_access_subtree): Check that we can build a
21928         reference to the original data within the aggregate.
21930 2010-01-13  Richard Guenther  <rguenther@suse.de>
21932         PR tree-optimization/42705
21933         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
21935 2010-01-13  Richard Guenther  <rguenther@suse.de>
21937         PR middle-end/42716
21938         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
21940 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
21942         PR debug/41371
21943         * var-tracking.c (values_to_unmark): New variable.
21944         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
21945         values_to_unmark vector.  Moved body to...
21946         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
21947         instead queue it into values_to_unmark vector.
21948         (vt_find_locations): Free values_to_unmark vector.
21950 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
21952         * config/s390/s390.c (override_options): Set
21953         default of max-pending-list-length to 256
21955 2010-01-13  Richard Guenther  <rguenther@suse.de>
21957         PR lto/42678
21958         * tree-pass.h (PROP_gimple_lcx): New.
21959         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
21960         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
21961         before the final cleanup_eh.
21962         (dump_properties): Dump PROP_gimple_lcx.
21963         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
21964         (tree_lower_complex_O0): Remove.
21965         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
21966         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
21967         tree_lower_complex, schedule TODO_update_ssa.
21968         * lto-streamer-out.c (output_function): Stream the functions
21969         properties.
21970         * lto-streamer-in.c (input_function): Likewise.
21971         (lto_read_body): Do not override them here.
21973 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
21975         PR c/42708
21976         * c-typeck.c (build_c_cast): Fold value cast to union type before
21977         wrapping it in a CONSTRUCTOR.
21979 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
21981         PR rtl-optimization/42699
21982         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
21983         involved.
21985 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21987         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
21988         SUBTARGET_WARN_UNUSED_SPEC): Move ...
21989         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
21990         SUBTARGET_WARN_UNUSED_SPEC): ... here
21991         * config/mips/iris5.h (LIBGCC_SPEC): Define.
21993 2010-01-12  Julian Brown  <julian@codesourcery.com>
21995         * config/arm/neon-schedgen.ml (Utils): Don't try to
21996         open missing module.
21997         (find_with_result): New.
21999 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
22001         PR debug/42662
22002         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
22003         sharing when canonicalizing ({lt,ge}u (plus a b) b).
22005         PR tree-optimization/42645
22006         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
22007         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
22008         decl_map, set processing_debug_stmt to -1 and return name without
22009         any remapping.
22011 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
22013         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
22014         binutils version, and reword target configuration description.
22016 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
22018         * config/avr/avr.h (LINKER_NAME): Remove.
22020 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
22022         PR target/42416
22023         * config/rs6000/rs6000.c (rs6000_override_options): On targets
22024         that support VSX, warn for -mno-altivec if vsx is not disabled,
22025         and disable vsx.
22027 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
22028             Shujing Zhao  <pearly.zhao@oracle.com>
22030         PR translation/42469
22031         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
22032         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
22033         character between option name and help text.
22034         * c.opt (imultilib): Likewise.
22036 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
22038         * lto-streamer-out.c (output_unreferenced_globals): Output static
22039         variables.
22041 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
22043         PR rtl-optimization/42621
22044         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
22045         optimizing for size.
22046         (duplicate_computed_gotos): Remove now-redundant check.
22048 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
22050         PR target/37454
22051         * configure.ac: Save and restore LDFLAGS and LIBS
22052         * configure: Regenerate.
22054 2010-01-10  Richard Guenther  <rguenther@suse.de>
22056         PR middle-end/42667
22057         * builtins.c (fold_builtin_strlen): Add type argument and
22058         convert the resulting length to it.
22059         (fold_builtin_1): Adjust.
22061 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
22063         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
22064         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
22065         1 insn.
22066         (num_insns_constant_wide): Adjust for that change.
22068 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
22070         PR debug/42631
22071         * web.c (union_defs): Add used argument, to combine uses of
22072         uninitialized regs.
22073         (entry_register): Adjust type and tests of used argument.
22074         (web_main): Widen used for new use.  Pass it to union_defs.
22075         * df.h (union_defs): Adjust prototype.
22077 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
22079         PR debug/42630
22080         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
22081         uses in new incoming argument.  Free body.
22082         (reset_debug_uses_in_loop): New.
22083         (analyze_insn_to_expand_var): Call the latter if the former found
22084         anything.  Fix whitespace.  Reject invalid dest overlaps before
22085         going through all insns in the loop.
22087 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
22089         PR debug/42629
22090         * haifa-sched.c (dying_use_p): Debug insns don't count.
22092 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
22094         PR middle-end/42363
22095         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
22096         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
22097         (verify_gimple_call): Reject LHS in noreturn calls.
22099 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
22101         PR debug/42604
22102         PR debug/42395
22103         * tree-vect-loop-manip.c (adjust_info): New type.
22104         (adjust_vec): New pointer to vector.
22105         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
22106         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
22107         (slpeel_update_phis_for_duplicate_loop): Use them.
22108         (slpeel_update_phi_nodes_for_guard1): Likewise.
22109         (slpeel_update_phi_nodes_for_guard2): Likewise.
22110         (slpeel_tree_peel_loop_to_edge): Likewise.
22111         (vect_update_ivs_after_vectorizer): Likewise.
22113 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
22115         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
22116         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
22118 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
22120         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
22121         bogus uninitialized warning.
22123 2010-01-09  Richard Guenther  <rguenther@suse.de>
22125         PR middle-end/42512
22126         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
22127         the evolution is compatible with the initial condition.
22129 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
22131         * gcc.c (process_command): Update copyright notice dates.
22132         * gcov.c (print_version): Likewise.
22133         * gcov-dump.c (print_version): Likewise.
22134         * mips-tfile.c (main): Likewise.
22135         * mips-tdump.c (main): Likewise.
22137 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
22139         PR target/41885
22140         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
22141         (rotlhi3): Delete.
22142         (rotlhi3_8): Delete.
22143         (rotlsi3): Delete.
22144         (rotlsi3_8): Delete.
22145         (rotlsi3_16): Delete.
22146         (rotlsi3_24): Delete.
22147         (rotl<mode>3): New.
22148         (*rotw<mode>3): New.
22149         (*rotb<mode>3): New.
22150         * config/avr/avr.c (avr_rotate_bytes): New function.
22151         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
22153 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
22155         PR target/37454
22156         * configure.ac: Modify -rdynamic check.
22157         * configure: Regenerate.
22159 2010-01-08  DJ Delorie  <dj@redhat.com>
22161         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
22162         register popping order.
22164 2010-01-08  Richard Guenther  <rguenther@suse.de>
22166         PR lto/42528
22167         * c.opt (fsigned-char): Also let LTO handle this option.
22168         (funsigned-char): Likewise.
22170 2010-01-07  Richard Guenther  <rguenther@suse.de>
22172         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
22173         (gimple_op): Likewise.
22174         (gimple_op_ptr): Likewise.
22175         (gimple_assign_set_lhs): Remove gcc_assert.
22176         (gimple_assign_set_rhs1): Likewise.
22177         (gimple_assign_set_rhs2): Likewise.
22178         (gimple_call_set_lhs): Likewise.
22179         (gimple_call_set_fn): Likewise.
22180         (gimple_call_set_fndecl): Likewise.
22181         (gimple_call_fndecl): Likewise.
22182         (gimple_call_return_type): Likewise.
22183         (gimple_call_set_chain): Likewise.
22184         (gimple_call_num_args): Likewise.
22185         (gimple_call_set_arg): Likewise.
22186         (gimple_cond_set_code): Likewise.
22187         (gimple_cond_set_lhs): Likewise.
22188         (gimple_cond_set_rhs): Likewise.
22189         (gimple_cond_set_true_label): Likewise.
22190         (gimple_cond_set_false_label): Likewise.
22191         (gimple_label_set_label): Likewise.
22192         (gimple_goto_set_dest): Likewise.
22193         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
22194         (gimple_debug_bind_get_value): Likewise.
22195         (gimple_debug_bind_get_value_ptr): Likewise.
22196         (gimple_debug_bind_set_var): Likewise.
22197         (gimple_debug_bind_set_value): Likewise.
22198         (gimple_debug_bind_reset_value): Likewise.
22199         (gimple_debug_bind_has_value_p): Likewise.
22200         (gimple_return_retval_ptr): Remove gcc_assert.
22201         (gimple_return_retval): Likewise.
22202         (gimple_return_set_retval): Likewise.
22203         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
22204         (safe_referenced_var_iterator): Remove.
22205         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
22206         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
22207         (fill_referenced_var_vec): Remove.
22208         (first_readonly_imm_use): Remove redundant gcc_assert.
22209         (phi_arg_index_from_use): Combine gcc_asserts.
22210         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
22211         (first_imm_use_stmt): Remove redundant gcc_assert.
22212         * tree-cfg.c (verify_gimple_call): Verify function and chain
22213         operands.  Verify arguments.
22214         (verify_types_in_gimple_stmt): Verify condition code and labels.
22216 2010-01-07  Richard Guenther  <rguenther@suse.de>
22218         PR tree-optimization/42641
22219         * sese.c (rename_map_elt_info): Use the SSA name version, do
22220         not hash pointers.
22222 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
22224         PR tree-optimization/42625
22225         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
22226         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
22228 2010-01-07  Duncan Sands  <baldrick@free.fr>
22230         * Makefile.in (PLUGIN_HEADERS): Add version.h.
22232 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
22234         PR target/42511
22235         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
22236         note itself is not function_invariant_p.
22238 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
22240         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
22241         Do not add the DF_NOTE problem.
22242         * store-motion.c (execute_rtl_store_motion): Likewise.
22244 2010-01-07  Martin Jambor  <mjambor@suse.cz>
22246         PR tree-optimization/42157
22247         * tree-sra.c (compare_access_positions): Stabilize sort if both
22248         accesses have integer types, return zero immediately if they are the
22249         same.
22251 2010-01-06  Richard Henderson  <rth@redhat.com>
22253         PR middle-end/41883
22254         * haifa-sched.c (add_to_note_list): Merge into ...
22255         (concat_note_lists): ... here, and ...
22256         (unlink_other_notes, rm_other_notes): Merge into...
22257         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
22258         NOTE_INSN_EPILOGUE_BEG.
22260 2010-01-06  Richard Guenther  <rguenther@suse.de>
22262         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
22263         not inline regular functions into always-inline functions.
22265 2010-01-06  Nick Clifton  <nickc@redhat.com>
22267         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
22268         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
22269         used together.
22270         (OVERRIDE_OPTIONS): Delete.
22271         (OPTIMIZATION_OPTIONS): Define.
22272         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
22273         * config/rx/rx.c (rx_handle_option): Issue an error message if
22274         -mcpu=rx200 and -fpu are used together.
22275         (rx_set_optimization_options): New function.  Issue an error
22276         message if an optimization attribute attempts to reset the FPU/
22277         math optimization pairing.
22278         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
22279         * config/rx/rx.opt: Set the default to 32-bit doubles.
22280         * config/rx/t-rx: Add multilibs for -nofpu option.
22281         * doc/invoke.texi: Update documentation of RX options.
22283 2010-01-06  Richard Guenther  <rguenther@suse.de>
22285         * tree-ssa-pre.c (name_to_id): New global.
22286         (alloc_expression_id): Simplify SSA name handling.
22287         (lookup_expression_id): Likewise.
22288         (init_pre): Zero name_to_id.
22289         (fini_pre): Free it.
22291 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
22293         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
22295 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
22297         PR target/42542
22298         * config/i386/sse.md (smaxv2di3): New.
22299         (umaxv2di3): Likewise.
22300         (sminv2di3): Likewise.
22301         (uminv2di3): Likewise.
22303 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
22305         PR target/42564
22306         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
22307         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
22308         (legitimize_tls_address): Likewise.
22309         (sparc_tls_referenced_p): Likewise.
22310         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
22311         and adjust calls to legitimize_pic_address.
22312         (legitimate_constant_p) Use sparc_tls_referenced_p.
22313         (legitimate_pic_operand_p): Likewise.
22314         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
22315         (sparc_tls_symbol_ref_1): Delete.
22316         (sparc_tls_referenced_p): Make static, recognize specific patterns.
22317         (legitimize_tls_address): Make static, handle CONST patterns.
22318         (legitimize_pic_address): Make static, remove unused parameter and
22319         adjust recursive calls.
22320         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
22321         and adjust call to legitimize_pic_address.
22322         (sparc_output_mi_thunk): Likewise.
22324 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
22325             H.J. Lu  <hongjiu.lu@intel.com>
22327         PR target/42542
22328         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
22329         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
22330         operands to make them signed.
22332         Revert:
22333         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
22335         PR target/42542
22336         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
22337         GTU to GT for V4SI and V2DI.
22339         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
22340         (umin<mode>3): Removed.
22341         (uminv8hi3): New.
22342         (uminv4si3): Likewise.
22344 2010-01-05  Martin Jambor  <mjambor@suse.cz>
22346         PR tree-optimization/42462
22347         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
22348         current_function_decl to helper functions and macros.
22350 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22352         PR bootstrap/41771
22353         * flags.h: Don't include real.h.
22354         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
22355         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
22356         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
22357         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
22358         * dominance.c: Update copyright.
22359         * gimple.c (walk_gimple_op): Remove inline.
22360         * tree-ssa-reassoc.c: Include real.h.
22361         * Makefile.in (FLAGS_H): Remove $(REAL_H).
22362         (tree-ssa-reassoc.o): Depend on $(REAL_H).
22364 2010-01-05  Nick Clifton  <nickc@redhat.com>
22366         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
22367         register to push into the stack frame when the accumulator has to
22368         be saved during interrupts.
22370 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
22372         * doc/invoke.texi: Remove the documentation about option
22373         -Wunreachable-code.
22374         * common.opt (Wunreachable-code):  Preserved for backward
22375         compatibility.
22376         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
22377         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
22378         the backward compatibility flag section.
22380 2010-01-05  Richard Guenther  <rguenther@suse.de>
22382         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
22384 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
22386         PR other/42611
22387         * cfgexpand.c (expand_one_var): Diagnose too large variables.
22389         PR tree-optimization/42508
22390         * tree-sra.c (convert_callers): Check for recursive call
22391         by comparing cgraph nodes instead of decls.
22392         (modify_function): Call ipa_modify_formal_parameters also
22393         on all same_body aliases.
22395         * cgraphunit.c (cgraph_materialize_all_clones): Compare
22396         cgraph nodes when checking for same_body aliases.
22398 2010-01-05  Richard Guenther  <rguenther@suse.de>
22400         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
22401         allocation and lookup.
22402         (get_or_alloc_expr_for_constant): Likewise.
22403         (phi_translate): Sink allocation.
22405 2010-01-04  Richard Guenther  <rguenther@suse.de>
22407         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
22408         a new entry only if needed.
22409         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
22410         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
22411         hashtable lookup.
22412         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
22413         the result array.
22414         (phi_translate): Handle CONSTANTs early.
22416 2010-01-04  Martin Jambor  <mjambor@suse.cz>
22418         PR tree-optimization/42398
22419         * tree-sra.c (struct access): Removed flag grp_different_types.
22420         (dump_access): Do not dump the removed flag.
22421         (sort_and_splice_var_accesses): Do not set the removed flag.
22422         (sra_modify_expr): Check for type compatibility directly.
22424 2010-01-04  Martin Jambor  <mjambor@suse.cz>
22426         PR tree-optimization/42366
22427         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
22428         edges with variable number of parameters.
22429         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
22430         flag instead of asserting it.
22431         (ipa_read_node_info): Read uses_analysis_done flag.
22433 2010-01-04  Richard Guenther  <rguenther@suse.de>
22435         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
22436         iterative_hash_* as intended.
22437         (vn_reference_compute_hash): Likewise.  Simplify hashing
22438         SSA names.
22439         (vn_reference_lookup_2): Likewise.
22440         (vn_nary_op_compute_hash): Likewise.
22441         (vn_phi_compute_hash): Likewise.
22442         (expressions_equal_p): Remove strange code.
22443         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
22444         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
22445         (bitmap_insert_into_set_1): Take value-id as parameter.
22446         (add_to_value): Pass it.
22447         (bitmap_insert_into_set): Likewise.
22448         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
22450 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
22452         PR driver/42442
22453         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
22454         (do_self_spec): For switches with SWITCH_IGNORE set set also
22455         SWITCH_IGNORE_PERMANENTLY.
22456         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
22457         of SWITCH_IGNORE.
22459 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
22461         * lto-streamer-out.c (output_unreferenced_globals): Output the full
22462         tree of an unreferenced global var.
22464 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
22466         PR target/42542
22467         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
22468         GTU to GT for V4SI and V2DI.
22470         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
22471         (umin<mode>3): Removed.
22472         (uminv8hi3): New.
22473         (uminv4si3): Likewise.
22475 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
22477         PR lto/42581
22478         * collect2.c (main): Turn on trace in collect2 if -v is passed
22479         to gcc with LTO.
22481 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
22483         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
22484         description of expression operand.
22486 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
22488         * configure.ac: Add install-html to target_list for Make-hooks.
22489         * configure: Regenerate.
22490         * fortran/Make-lang.in (F95_HTMLFILES): New.
22491         (fortran.html): Use it.
22492         (fortran.install-html): New.
22493         * Makefile.in (install-html): Add lang.install-html.
22494         * java/Make-lang.in (JAVA_HTMLFILES): New.
22495         (java.html): Use it.
22496         (java.install-html): New.
22497         * objc/Make-lang.in (objc.install-html): New.
22498         * objcp/Make-lang.in (obj-c++.install-html): New.
22499         * cp/Make-lang.in (c++.install-html): New.
22500         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
22501         * lto/Make-lang.in (lto.install-html): New.
22503 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
22505         PR lto/42520
22506         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
22508 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
22510         PR rtl-optimization/41862
22511         * store-motion.c (store_killed_in_insn, compute_store_table,
22512         remove_reachable_equiv_notes, replace_store_insn,
22513         build_store_vectors): Ignore all DEBUG_INSNs.
22515 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
22517         PR lto/41564
22518         * common.opt: Add dumpdir.
22520         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
22521         isn't specified.
22522         (option_map): Add --dumpdir.
22524         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
22526         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
22528         * opts.c (decode_options): Try dump_dir_name first if
22529         dump_base_name isn't an absolute path.
22530         (common_handle_option): Handle OPT_dumpdir.
22532         * toplev.c (dump_dir_name): New.
22533         (print_switch_values): Also ignore -dumpdir.
22535         * toplev.h (dump_dir_name): New.
22537 2010-01-03  Richard Guenther  <rguenther@suse.de>
22539         PR tree-optimization/42589
22540         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
22541         double-word expansion of bswap32.
22543 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
22545         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
22546         with BLOCK_FOR_INSN.
22547         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
22548         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
22549         noce_process_if_block): Likewise.
22550         * gcse.c (compute_local_properties, insert_expr_in_table,
22551         insert_set_in_table, canon_list_insert, find_avail_set,
22552         pre_insert_copy_insn): Likewise.
22554         * basic-block.h (BLOCK_NUM): Move from here...
22555         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
22557 2010-01-03  Richard Guenther  <rguenther@suse.de>
22559         PR tree-optimization/42438
22560         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
22561         contains_may_not_return_call flag.
22562         (BB_MAY_NOTRETURN): New.
22563         (valid_in_sets): Trapping nary operations are not valid
22564         in blocks that may not return.
22565         (insert_into_preds_of_block): Remove check for trapping expressions.
22566         (compute_avail): Compute also BB_MAY_NOTRETURN.
22568 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
22570         * doc/invoke.texi: Add 2010 to copyright years.
22572 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
22574         * config/sparc/sparc.c: Fix formatting nits.
22576 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
22577             Alexander Monakov  <amonakov@ispras.ru>
22579         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
22581 2010-01-02  Richard Guenther  <rguenther@suse.de>
22583         PR middle-end/42577
22584         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
22585         (simplify_switch_using_ranges): Mark to be removed edges
22586         as non-executable.
22588 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22590         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
22592         * collect2.c (scan_libraries): Add missing argument in call to
22593         scan_prog_file.
22595 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
22597         PR target/42448
22598         * config/alpha/predicates.md (aligned_memory_operand): Return false
22599         for CQImode.
22600         (unaligned_memory_operand): Return true for CQImode.
22601         * config/alpha/alpha.c (get_aligned_mem): Assert that location
22602         doesn not cross aligned SImode word boundary.
22604 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
22606         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
22607         Remove.
22608         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
22609         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
22611 2010-01-02  Richard Guenther  <rguenther@suse.de>
22613         PR lto/41597
22614         * toplev.c (compile_file): Emit LTO marker properly.  Change
22615         it to __gnu_lto_v1.
22616         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
22618 2010-01-01  Richard Guenther  <rguenther@suse.de>
22620         PR debug/42455
22621         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
22623 2010-01-01  Richard Guenther  <rguenther@suse.de>
22625         PR c/42570
22626         * c-decl.c (grokdeclarator): For zero-size arrays force
22627         structural equality checks as layout_type does.
22629 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
22631         * builtins.c: Update copyright to 2010.
22633 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
22635         PR lto/42531
22636         * lto-streamer-out.c (produce_asm): Revert the last change.
22637         (copy_function): Likewise.
22639         * lto-streamer.c (lto_get_section_name): Skip any leading
22640         asterisk in name.
22642 2010-01-01  Richard Guenther  <rguenther@suse.de>
22644         PR middle-end/42559
22645         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
22646         for LABEL_DECLs.
22649 Copyright (C) 2010 Free Software Foundation, Inc.
22651 Copying and distribution of this file, with or without modification,
22652 are permitted in any medium without royalty provided the copyright
22653 notice and this notice are preserved.