2008-08-25 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / ChangeLog
blob8aaf72fe5e3e4d79222418455fd3128c2e2ad712
1 2008-08-25  Vladimir Makarov  <vmakarov@redhat.com>
3         * opts.c (decode_options): Set up flag_ira.
5         * doc/invoke.texi (fira): Document it.
6         
7         * caller-save.c (save_call_clobbered_regs): Define and use
8         do_placement_opt_p.
9         
10 2008-08-24  Jeff Law  <law@redhat.com>
11             Vladimir Makarov  <vmakarov@redhat.com>
13         * ira.c (setup_reg_class_intersect_union): Prefer smallest class
14         when ignoring unavailable registers.
16 2008-08-24  Jeff Law  <law@redhat.com>
17             Vladimir Makarov  <vmakarov@redhat.com>
19         * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
20         FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
22         * ira.c (setup_eliminable_regset): Check stack_realign_needed.
24 2008-08-1  Vladimir Makarov  <vmakarov@redhat.com>
26         * ira-conflicts.c (process_regs_for_copy): Don't add copy for
27         conflicting allocnos.
28         (propagate_allocno_copy_info, propagate_copy_info): Remove.
29         (propagate_copies): New.
30         (collected_conflict_allocnos): New.
31         (remove_conflict_allocno_copies): Remove.
32         (build_allocno_conflicts): Add parameter.  Build conflicts only
33         for one allocno. Check cap too.  Don't free conflict table row.
34         (build_conflicts): New.
35         (ira_build_conflicts): Build conflicts before adding copies.  Free
36         conflict bit table rows.
38         * ira-color.c (color_pass): Check cap.  Process caps only once.
39         Remove propagation code.
40         (move_spill_restore): Check caps and border allocnos.
42         * ira-lives.c (propagate_new_allocno_info, propagate_new_info):
43         Remove.
44         (ira_create_allocno_live_ranges): Don't propagate info of new
45         allocnos.
47         * ira-emit.c (not_modified_p, update_costs): Check caps.
49         * ira-build.c (allocnos_bitmap): Remove.
50         (create_cap_allocno): Set up all cap attributes.
51         (propagate_info_to_cap): Remove.
52         (create_loop_allocnos): Create allocnos in parent for border
53         allocnos if there is no one.
54         (propagate_allocno_info): New.
55         (create_allocnos): Don't propagate allocno info.
56         (remove_unnecessary_allocnos): Accumulate all allocno info.
57         (setup_min_max_allocno_live_range_point): Set up min/max for caps
58         too.
59         (create_loop_tree_node_caps): Remove.
60         (create_caps): New.
61         (propagate_info_to_loop_tree_node_caps): Remove.
62         (ira_flattening): Check cap.  Stop decrease call info after
63         reaching allocno which is destination of removed store.  Check
64         allocno nrefs and freq.
65         (calculate_high_pressure_loops): Remove.
66         (check_allocno_creation): New.
67         (ira_build): Call propagate_allocno_info, call_caps, and
68         check_allocno_creation.  Move
69         ira_tune_allocno_costs_and_cover_classes before
70         setup_min_max_allocno_live_range_point.
72         * ira.c: Update comments about IRA.
73         (ira_print_disposition): Add comment.
75         * ira-costs.c (total_costs): Rename to allocno_costs.
76         (total_costs): New.
77         (print_costs): Print accumulated costs too.
78         (find_allocno_class_costs): Check border allocnos for propagation
79         costs.  Setup non-accumulated costs for allocnos.
80         (process_bb_node_for_hard_reg_moves): Don't propagate costs.
81         (ira_costs): Add allocation/freeing allocno_costs.
83         * common.opt (fira-propagate-cost): Remove.
85         * doc/invoke.texi (-fira-propagate-cost): Remove.
86         
87 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
89         PR middle-end/36450
90         * caller-save.c (insert_restore): Replace
91         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
92         (insert_save): Likewise.
94 2008-08-22  Anatoly Sokolov  <aesok@post.ru>
96         PR target/11259
97         * config/avr/avr.md (UNSPEC_SWAP): New constants.
98         (*swap): New insn pattern.
99         (*ashlqi3): Rename from ashlqi3 insn pattern.
100         (ashlqi3): New expanders.
101         (*lshrqi3): Rename from lshrqi3 insn pattern.
102         (lshrqi3): New expanders.       
103         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
104         lshrqi3_const5, lshrqi3_const6): New splitters.
105         (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
106         lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
107         peephole2 patterns.
109 2008-08-22  Richard Guenther  <rguenther@suse.de>
111         PR tree-optimization/37078
112         * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
113         [+INF, +INF] ranges.
115 2008-08-22  Richard Guenther  <rguenther@suse.de>
117         PR tree-optimization/37143
118         * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
119         a conversion statement instead of a copy.
121 2008-08-22  Uros Bizjak  <ubizjak@gmail.com>
123         PR target/37184
124         * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
125         CCCmode, CCOmode and CCSmode destination modes.
127         PR target/37191
128         * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
129         from different units in a single alternative.
130         (*vec_extractv2sf_1): Ditto.
131         (*vec_extractv2si_0): Ditto.
132         (*vec_extractv2si_1): Ditto.
133         * config/i386/sse.md (sse2_storehpd): Ditto.
134         (sse2_storelpd): Ditto.
135         (sse2_loadhpd): Ditto.
136         (sse2_loadlpd): Ditto.
138         PR target/37197
139         * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
140         (popcountsi2): Ditto.
141         (clzdi2_abm): Ditto.
142         (popcountdi2): Ditto.
143         (clzhi2_abm): Ditto.
144         (popcounthi2): Ditto.
146 2008-08-22  Richard Guenther  <rguenther@suse.de>
148         PR middle-end/36548
149         PR middle-end/37125
150         * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
151         if the multiplication does not overflow.
153 2008-08-21  Nathan Sidwell  <nathan@codesourcery.com>
155         * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
157 2008-08-21  Richard Henderson  <rth@redhat.com>
159         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
160         spurrious comma from test.
161         * configure: Rebuild.
163 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
165         PR 30457
166         * builtins.c (fold_builtin_next_arg): Add warning about undefined
167         behaviour.
168         
169 2008-08-21  Aldy Hernandez  <aldyh@redhat.com>
171         * c-tree.h (grokfield): New argument.
172         * c-decl.c (grokfield): Handle new location argument.
173         * c-parser.c (c_parser_struct_declaration): Pass location to
174         grokfield.
176 2008-08-21  Richard Guenther  <rguenther@suse.de>
178         * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
180 2008-08-21  Jan Hubicka  <jh@suse.cz>
182         * cgraph.c (first_cgraph_function_insertion_hook): New variable.
183         (cgraph_add_function_insertion_hook,
184         cgraph_remove_function_insertion_hook,
185         cgraph_call_function_insertion_hooks): New functions.
186         * cgraph.h (cgraph_add_function_insertion_hook,
187         cgraph_remove_function_insertion_hook,
188         cgraph_call_function_insertion_hooks): Declare.
189         * ipa-reference.c (function_insertion_hook_holder): New variable.
190         (check_operand, look_for_address_of): When checking late, do not care
191         about module bitmaps.
192         (add_new_function): New function.
193         (generate_summary): Register hooks; zero module bitmaps.
194         (propagate): Unregister hooks.
195         * ipa-pure-const.c (function_insertion_hook_holder): New variable.
196         (add_new_function): New function.
197         (generate_summary): Register hook.
198         (propagate): Remove hook.
200         * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
202         * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
203         * ipa-cp.c (ipcp_update_cloned_node): New function.
204         (build_const_val): Handle functions correctly; bring type logic
205         into sync with tree-inline.c
206         (ipcp_init_stage):  Take care of computing stuff needed by
207         indirect inlining; update clones.
208         (ipcp_generate_summary): Break out of ipcp_driver.
209         (ipcp_driver): Do only execution and transformation.
210         (pass_ipa_cp): Make IPA_PASS.
211         * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
212         offset to address.
213         * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
214         ipcp, some info is already available.
215         * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
216         * tree-inline.c (remap_ssa_name): Unshare expression.
218 2008-08-21  Richard Guenther  <rguenther@suse.de>
220         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
221         a PHI ask VN if it is already available.
222         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
223         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
225 2008-08-21  Richard Guenther  <rguenther@suse.de>
227         PR middle-end/36817
228         * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
229         makes sure to produce a result of the correct type.
231 2008-08-21  Jan Hubicka  <jh@suse.cz>
232         Backport from LTO branch:
234         2008-05-05  Kenneth Zadeck <zadeck@naturalbridge.com>
235                     Jan Hubicka  <jh@suse.cz>
236         
237         * ipa-pure-const.c
238         (init_state, finish_state, set_function_state, generate_summary):
239         New functions.
240         (scan_stmt): Renamed from scan_function.  Changed to keep state in
241         local static vars rather than cgraph aux field.
242         (propagate): Renamed from static_execute. Changed to keep state in
243         local static vars rather than cgraph aux field.
244         (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
245         * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
247         2008-07-15  Kenneth Zadeck <zadeck@naturalbridge.com>
249         * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
250         * ipa-reference.c (init_function_info, generate_summary, 
251         propagate): New functions.
252         (analyze_function):  Call init_function_info.
253         (static_execute): Stripped into generate_summary and propagate.
254         (pass_ipa_reference): Made into ipa_opt_pass.
256 2008-08-21  Richard Guenther  <rguenther@suse.de>
258         PR tree-optimization/37181
259         * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
260         folding result.
261         (extract_range_from_unary_expr): Likewise.
263 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
265         * diagnostic.c (pedwarn_at): Rename as pedwarn.
266         (pedwarn): Delete.
267         * toplev.h (pedwarn_at): Likewise.
268         * builtins.c: Update all calls to pedwarn.
269         * c-lex.c: Likewise.
270         * toplev.c: Likewise.
271         * c-tree.h: Likewise.
272         * c-decl.c: Likewise.
273         * c-errors.c: Likewise.
274         * c-typeck.c: Likewise.
275         * c-common.c: Likewise.
276         * c-parser.c: Likewise.
278 2008-08-20  Joseph Myers  <joseph@codesourcery.com>
280         PR target/31070
281         * config/sparc/sparc.c (function_arg_slotno): Handle structure
282         with MODE_VECTOR_INT mode.
284 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
286         PR middle-end/179
287         * tree-ssa.c (warn_uninit): Do not warn for variables that can be
288         initialized outside the current module.
289         (warn_uninitialized_var): Ignore left-hand side when walking the
290         trees. Ignore address expressions. Examine VUSE operands in gimple
291         statements with a variable declaration on the right-hand side.
293 2008-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
295         PR bootstrap/37155
296         * rtlanal.c (subreg_offset_representable_p): Revert last change.
298 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
300         PR 35701
301         * c-common.c (conversion_warning): Do not warn if applying bit-and
302         operator to unsigned constant that fits in the target type.
304 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
306         PR c++/35602
307         * c-common.c (conversion_warning): Do not warn for artificial
308         expressions.
310 2008-08-20  Richard Guenther  <rguenther@suse.de>
312         * tree-vrp.c (op_with_constant_singleton_value_range): New function.
313         (extract_range_from_binary_expr): Fall back to constant propagation.
314         (extract_range_from_unary_expr): Likewise.
316 2008-08-20  Richard Guenther  <rguenther@suse.de>
318         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
319         with TREE_THIS_VOLATILE on shared nodes.
320         (fold_stmt_r): Likewise.
322 2008-08-20  Jakub Jelinek  <jakub@redhat.com>
324         PR c/37171
325         * c-parser.c (c_parser_attributes): For keywords use canonical
326         spelling for attr_name.
328 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
330         * value-prof.c (check_counter): Revert wrong call to error.
331         
332 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
334         * profile.c: Update calls to inform.
335         * value-prof.c: Update calls to inform.
336         
337 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
339         * diagnostic.c (inform): Add an explicit location_t parameter.
340         * toplev.h (inform): Update declaration.
341         * builtins.c: Update all calls to inform.
342         * c-common.c: Likewise.
343         * c-decl.c: Likewise.
344         * c-opts.c: Likewise.
345         * c-pch.c: Likewise.
346         * c-pragma.c: Likewise.
347         * c-typeck.c: Likewise.
348         * coverage.c: Likewise.
349         * opts.c: Likewise.
350         * toplev.c: Likewise.
351         * tree-cfg.c: Likewise.
352         * tree-ssa.c: Likewise.
354 2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>
356         PR target/37169
357         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
358         V2DI mode, for SSE4.1, use movq instead of vector set if the
359         second element is zero and inter-unit moves are OK.
361 2008-08-20  Richard Guenther  <rguenther@suse.de>
363         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
364         properly handle conversion/copy chains after tuplification.
366 2008-08-20  Richard Guenther  <rguenther@suse.de>
368         * passes.c (init_optimization_passes): Move the second
369         forwprop pass before alias computation.  Remove the second
370         DCE pass.  Remove the first dominator and phi copy/const
371         prop passes.
373 2008-08-20  Nick Clifton  <nickc@redhat.com>
375         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
376         support of this feature.  Do not assume that a sufficiently new
377         assembler will support the feature regardless of the target type.
378         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
379         * configure: Regenerate.
381 2008-08-20  Richard Guenther  <rguenther@suse.de>
383         * tree-vrp.c (found_in_subgraph): Remove.
384         (live): New global static.
385         (live_on_edge): New function.
386         (blocks_visited): Remove.
387         (register_edge_assert_for_2): Use live_on_edge.
388         (find_conditional_asserts): Remove code dealing with
389         found_in_subgraph.  Do not walk the CFG.
390         (find_switch_asserts): Likewise.
391         (find_assert_locations_1): Renamed from find_assert_locations.
392         Move finding assert locations for conditional and switch
393         statements first.  Update live bitmap.  Do not walk the CFG.
394         (find_assert_locations): New function.
395         (insert_range_assertions): Remove entry of CFG walk.
396         Adjust call to find_assert_locations.
397         * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
398         that only can appear because of fake exit edges but assert we
399         never try to insert on those.
400         (fini_pre): Do not remove fake exit edges here...
401         (execute_pre): ...but here, before committing edge inserts.
403 2008-08-19  Richard Guenther  <rguenther@suse.de>
405         * passes.c (init_optimization_passes): Exchange store-ccp
406         with a ccp pass.
408 2008-08-19  Rafael Espindola  <espindola@google.com>
410         * varasm.c (weak_decls): Move earlier in the file.
411         (assemble_external): Add weak decls to the weak_decls list.
412         (declare_weak): Don't add decls to the weak_decls list.
414 2008-08-19  H.J. Lu  <hongjiu.lu@intel.com>
416         PR target/37157
417         * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
418         before (sse2_shufpd_<mode>).
420 2008-08-19  Jakub Jelinek  <jakub@redhat.com>
422         PR debug/37156
423         * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
424         * tree.c (block_nonartificial_location): Likewise.
426 2008-08-19  Richard Guenther  <rguenther@suse.de>
428         PR tree-optimization/35972
429         PR tree-optimization/23094
430         * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
431         parameter.
432         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
433         handle MISALIGNED_INDIRECT_REF.
434         (get_ref_from_reference_ops): New helper.
435         (vn_reference_lookup_pieces): Walk the use-def chain using the
436         alias-oracle if requested.
437         * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
438         walking the use-def chain.
439         (compute_avail): But not here.
440         (create_component_ref_by_pieces_1): Properly handle
441         MISALIGNED_INDIRECT_REF.
442         (do_regular_insertion): Handle fully redundant
443         expressions after PHI-translation also for SSA_NAME values, not
444         only constants.  Correctly use edoubleprime for that.
446 2008-08-19  Ira Rosen  <irar@il.ibm.com>
448         * tree-vectorizer.c (supportable_widening_operation): Support
449         multi-step conversion, return the number of steps in such conversion
450         and the required intermediate types.
451         (supportable_narrowing_operation): Likewise.
452         * tree-vectorizer.h (vect_pow2): New function.
453         (supportable_widening_operation): Change argument types.
454         (supportable_narrowing_operation): Likewise.
455         (vectorizable_type_promotion): Add an argument.
456         (vectorizable_type_demotion): Likewise.
457         * tree-vect-analyze.c (vect_analyze_operations): Call 
458         vectorizable_type_promotion and vectorizable_type_demotion with
459         additional argument.
460         (vect_get_and_check_slp_defs): Detect patterns.
461         (vect_build_slp_tree): Add an argument, don't fail in case of multiple
462         types. 
463         (vect_analyze_slp_instance): Don't fail in case of multiple types. Call
464         vect_build_slp_tree with correct arguments. Calculate unrolling factor
465         according to the smallest type in the loop.
466         (vect_detect_hybrid_slp_stmts): Include statements from patterns.
467         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call 
468         supportable_widening_operation with correct arguments. 
469         * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector 
470         operands lists according to the number of vector statements in left
471         or right node, if exists.
472         (vect_gen_widened_results_half): Remove unused argument.
473         (vectorizable_conversion): Call supportable_widening_operation, 
474         supportable_narrowing_operation, and vect_gen_widened_results_half
475         with correct arguments. 
476         (vectorizable_assignment): Change documentation, support multiple
477         types in SLP. 
478         (vectorizable_operation): Likewise.
479         (vect_get_loop_based_defs): New function.
480         (vect_create_vectorized_demotion_stmts): Likewise.
481         (vectorizable_type_demotion): Support loop-aware SLP and general
482         multi-step conversion. Call vect_get_loop_based_defs and
483         vect_create_vectorized_demotion_stmts for transformation.
484         (vect_create_vectorized_promotion_stmts): New function.
485         (vectorizable_type_promotion): Support loop-aware SLP and general
486         multi-step conversion. Call vect_create_vectorized_promotion_stmts
487         for transformation.     
488         (vectorizable_store): Change documentation, support multiple
489         types in SLP. 
490         (vectorizable_load): Likewise.
491         (vect_transform_stmt): Pass SLP_NODE to 
492         vectorizable_type_promotion and vectorizable_type_demotion.
493         (vect_schedule_slp_instance): Move here the calculation of number
494         of vectorized statements for each node from...
495         (vect_schedule_slp): ... here.
496         (vect_transform_loop): Call vect_schedule_slp without the last
497         argument.
499 2008-08-19  Dorit Nuzman  <dorit@il.ibm.com>
501         PR bootstrap/37152
502         * tree-vect-transform.c (vect_create_epilog_for_reduction): Change = 
503         to == in assert statement.
504         (vectorizable_reduction): Fix typo.
506 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
508         PR bootstrap/37153
509         * value-prof.c (check_counter): Dereference pointer to overall
510         count when printing it.
512 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
514         * profile.h: Really add it.
516 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
518         * mcf.c: Really add it.
520 2008-08-18  Paul Yuan  <yingbo.com@gmail.com>
521             Vinodha Ramasamy  <vinodha@google.com>
523         * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
524         count_scale.
525         * value-prof.c (check_counter): Fix the counter if
526         flag_profile_correction is true.
527         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
528         tree_mod_subtract_transform):
529         Follow check_counter parameter change.
530         * common.opt (fprofile-correction): New option.
531         * mcf.c: New file.
532         * profile.h: Likewise.
533         * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
534         (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
535         is_inconsistent, set_bb_counts, read_profile_edge_counts): New
536         functions.
537         (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
538         flag_profile_correction is set.
540 2008-08-18  Richard Sandiford  <rdsandiford@googlemail.com>
542         * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
544 2008-08-18  Tomas Bily  <tbily@suse.cz>
546         * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
547         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
548         CONVERT_EXPR_P.
549         * tree-data-ref.c (split_constant_offset_1): Likewise.
550         * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
551         * tree-sra.c (sra_walk_expr): Likewise.
552         * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
553         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
554         * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
555         * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
556         Likewise.
557         * gimple.c (gimple_assign_unary_nop_p): Likewise.
558         * tree-vect-transform.c (vectorizable_type_demotion)
559         (vectorizable_type_promotion): Likewise.
560         * tree-inline.c (expand_call_inline): 
561         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
562         (forward_propagate_addr_expr_1, forward_propagate_comparison)
563         (tree_ssa_forward_propagate_single_use_vars): Likewise.
564         * expr.c (expand_expr_real_1): Likewise.
565         * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
566         (gimple_assign_unary_useless_conversion_p): Likewise.
567         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
568         * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
569         * fold-const.c (fold_unary): Likewise.
570         * tree.h (CONVERT_EXPR_P): Likewise.
571         * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
572         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
573         * tree-vrp.c: 
574         (register_edge_assert_for_2, extract_range_from_unary_expr)
575         (register_edge_assert_for_1): Likewise.
576         
577 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
579         * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
580         dconst_third_ptr, dconst_sqrt2_ptr): Declare.
581         (enum real_value_const): Delete.
582         (get_real_const): Delete.
583         * real.c (get_real_const): Delete.
584         (dconst_e_ptr): Define.
585         (dconst_third_ptr): Define.
586         (dconst_sqrt2_ptr): Define.
587         * builtins.c: Update all callers.
589 2008-08-18  Richard Guenther  <rguenther@suse.de>
591         * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
592         statement iterator after statement removal.
594 2008-08-18  Andreas Tobler  <a.tobler@schweiz.org>
596         * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
597         (detect_processor_freebsd): Likewise.
598         (host_detect_local_cpu): Call newly added functions for FreeBSD.
600 2008-08-18  Richard Guenther  <rguenther@suse.de>
602         * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
603         and loads have the correct types.
605 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
607         PR cpp/7263
608         * c-opts.c (cpp_opts): Remove static.
609         * c-parser.c (cpp_opts): Declare it extern.
610         (disable_extension_diagnostics): Handle cpp options.
611         (enable_extension_diagnostics): Likewise.
613 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
615         * diagnostics.c (permerror_at): Rename as permerror.
616         (permerror): Delete.
617         * toplev.h: Likewise.
619 2008-08-18  Richard Guenther  <rguenther@suse.de>
621         * passes.c (init_optimization_passes): Remove cleanup_cfg1,
622         sdse1 and addressables2 passes.  Replace dce1 with cddce1.
623         Move call_cdce before build_alias.  Move copyrename2,
624         cunrolli and ccp2 beafore build_alias.  Re-add addressable2
625         right after final inlining.
626         * tree-cfg.c (build_gimple_cfg): Do not dump function here.
627         (pass_build_cfg): But instead via TODO_dump_func.
629 2008-08-18  Richard Guenther  <rguenther@suse.de>
631         * tree-sra.c (generate_element_init_1): Deal with NULL constructor
632         element index.
633         (scalarize_init): If we failed to generate some initializers
634         do not generate zeros for not instantiated members.  Instead
635         rely on the copy out.
636         * tree-ssa-operands.c (get_addr_dereference_operands): Warn
637         about missing flow-sensitive alias info only if we have
638         aliases computed.
640 2008-08-17  Nick Clifton  <nickc@redhat.com>
642         * doc/extend.texi (Function Attributes): Fix typo in description
643         if hot function attribute.
645 2008-08-17  Daniel Jacobowitz  <dan@codesourcery.com>
646             Richard Sandiford  <rdsandiford@googlemail.com>
648         * doc/install.texi (--with-mips-plt): Document.
649         * doc/invoke.texi (-mplt, -mno-plt): Document.
650         * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
651         and handle ${with_mips_plt}.
652         * config/mips/mips.opt (mplt): New option.
653         * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
654         (TARGET_ABICALLS_PIC2): Likewise.
655         (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
656         (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
657         (ASM_SPEC): Use !mabi=* instead of !mabi*.
658         (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
659         to decide whether to output ".option picX" directives.
660         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
661         Pass -call_nonpic rather than -KPIC for -mplt.
662         (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
663         on the command line.  Also remove it when -mabi=64 is used without
664         -msym32.
665         * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
666         * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
667         TARGET_ABICALLS_PIC0.
668         (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
669         TARGET_ABICALLS.
670         (mips16_build_function_stub): Only output ".option pic" directives
671         and PIC stubs if TARGET_ABICALLS_PIC2.  Call through $25 instead of $1.
672         (mips16_build_call_stub): Fix comment and remove redundant
673         ".set at"/"set .noat" directives.
674         (mips_function_rodata_section): Use the default behaviour for
675         TARGET_ABSOLUTE_ABICALLS.
676         (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
677         (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
678         (mips_restore_gp): Do nothing if the current function doesn't use
679         a global pointer.
680         (mips_expand_prologue): Only save $gp if the current function uses it.
681         Use a normal move for TARGET_ABICALLS_PIC0.
682         (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
684 2008-08-17  Richard Sandiford  <rdsandiford@googlemail.com>
686         * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
687         of function when handling GLOBAL_POINTER_REGNUM.
689 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
691         PR ada/20548
692         * common.opt (-fstack-check): Do not declare the variable here.
693         (-fstack-check=): New option variant.
694         * doc/invoke.texi (Code Gen Options): Document it.
695         * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
696         (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
697         (STACK_CHECK_STATIC_BUILTIN): New macro.
698         * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
699         * opts.c: Include expr.h.
700         (common_handle_option) <OPT_fold_stack_check_>: New case.
701         <OPT_fstack_check>: Likewise.
702         * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
703         consistently in the test for variable-sized types.  Adjust for
704         new behaviour of flag_stack_check.
705         * explow.c: Include except.h.
706         (allocate_dynamic_stack_space): Do not take into account
707         STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
708         * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
709         for variable-sized parameters.  Treat all parameters whose size is
710         greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
711         stack checking is enabled.
712         * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
713         size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
714         if generic stack checking is enabled.
715         (expand_function_end): Adjust for new behaviour of flag_stack_check.
716         * reload1.c (reload): Likewise.
717         * stmt.c (expand_decl): Assert that all automatic variables have
718         fixed size at this point and remove dead code.
719         * flags.h (stack_check_type): New enumeration type.
720         (flag_stack_check): Declare.
721         * toplev.c (flag_stack_check): New global variable.
722         * Makefile.in (opts.o): Add dependency on EXPR_H.
723         (explow.o): Add dependency on except.h.
725 2008-08-16  Andy Hutchinson  <hutchinsonandy@aim.com>
727         * config/avr/avr.c (avr_override_options): Reduce value of 
728         PARAM_INLINE_CALL_COST.
730 2008-08-15  Eric Botcazou  <ebotcazou@adacore.com>
732         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
733         to BLKmode, try to fetch an inner memory reference.  Use 'mode' in
734         lieu of TYPE_MODE (type) throughout.
736 2008-08-15  Joseph Myers  <joseph@codesourcery.com>
738         * config/arm/arm.c (add_minipool_backward_ref): Check for
739         8-byte-aligned entries in second case of forcing insertion after a
740         particular entry.  Change third case to avoid inserting
741         non-8-byte-aligned entries before 8-byte-aligned ones.
743 2008-08-15  Richard Guenther  <rguenther@suse.de>
745         * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
746         strip components for unknown size accesses.
748 2008-08-15  Wolfgang Gellerich  <gellerich@de.ibm.com>
750         * config/s390/2097.md New file.
751         * config/s390/s390.md ("z10prop" attribute): Define none,
752         z10_super, z10_super_E1, z10_super_A1, z10_super_c,
753         z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
754         z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
755         possible values and apply them to insns as appropriate.
756         ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
757         ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
758         fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
759         fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible
760         values.
761         ("bfp" mode attribute): Removed.  Every occurence replaced
762         with <mode>.
763         * config/s390/s390.c (struct "z10_cost"): Updated entries.
764         * config/s390/2084.md (insn_reservation "x_itof"): Updated
765           type attribute.
767 2008-08-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
769         PR c/28152
770         * c-parser.c (c_lex_one_token): Do not store the canonical spelling
771         for keywords.
772         
773 2008-08-14  Dorit Nuzman  <dorit@il.ibm.com>
775         * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
776         additional argument. Support reduction when duplication is needed due
777         to data-types of different sizes in the loop.
778         (get_initial_def_for_induction): Fix printout.
779         (vect_get_vec_def_for_stmt_copy): Support case where the
780         vec_stmt_for_operand is a phi node.
781         (vectorizable_reduction): Support reduction when duplication is needed 
782         due to data-types of different sizes in the loop.
783         (vectorizable_call): Remove restriction to not vectorize in case we 
784         have data-types of different sizes in the loop.
785         (vectorizable_conversion): Likewise.
786         (vectorizable_operation): Likewise.
787         (vectorizable_type_demotion): Likewise.
788         (vectorizable_type_promotion): Likewise.
789         (vectorizable_induction): Add restriction to not vectorize in case 
790         we have data-types of different sizes in the loop.
792 2008-08-14  Christophe Saout  <christophe@saout.de>
793             Uros Bizjak  <ubizjak@gmail.com>
795         PR target/37101
796         * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
797         (*vec_concatv2di_rex64_sse4_1): Ditto.
798         (*vec_concatv2di_rex64_sse): Ditto.
800 2008-08-14  Jakub Jelinek  <jakub@redhat.com>
802         PR middle-end/37103
803         * fold-const.c (fold_widened_comparison): Do not allow
804         sign changes that change the result even if shorter type
805         is wider than arg1_unw's type.
807 2008-08-13  Kazu Hirata  <kazu@codesourcery.com>
809         * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
810         Skip if the multilib testing specifies -march that does not
811         agree with the one specified in the testcase.
813 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
815         * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
816         zero extend SImode values being converted to TFmode before passing
817         to libcalls.
819 2008-08-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
821         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
822         __PPU__ when targeting the Cell/B.E. PPU processor.
824 2008-08-13  Eric Botcazou  <ebotcazou@adacore.com>
826         * gimple.h (gimple_call_set_chain): Accept SSA variables.
827         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
828         Rematerialize the static chain, if any.
829         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
830         static chain.
832 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
834         * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
835         (new_loc_descr): Likewise.
836         (add_loc_descr): Likewise.
837         (size_of_loc_descr): Likewise.
838         (size_of_locs): Likewise.
839         (output_loc_operands): Likewise.
840         (output_loc_sequence): Likewise.
841         (new_reg_loc_descr): New.
842         (build_cfa_loc): Use it.
843         (build_cfa_aligned_loc): Likewise.
844         (one_reg_loc_descriptor): Likewise.
845         (based_loc_descr): Likewise.
847 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
849         PR 30551
850         * doc/invoke.texi (Wmain): Update.
851         * c-decl.c (start_decl): warn_main is only 0 or 1.
852         (start_function): Likewise. Fix formatting.
853         (finish_function): Delete redundant warning.
854         * c.opt (Wmain): Add Var(warn_main) and Init(-1).
855         * c-opts (c_common_handle_option): -Wall only has effect if
856         warn_main is uninitialized. OPT_Wmain is automatically
857         handled. -pedantic also enables Wmain.
858         (c_common_post_options): Handle all logic for Wmain here.
859         * c-common.c (warn_main): Delete.
860         (check_main_parameter_types): Make pedwarns conditional on
861         OPT_Wmain.
862         * c-common.h (warn_main): Delete.
864 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
866         PR middle-end/36701
867         * expr.c (emit_group_store): Allocate stack temp with the
868         largest alignment when copying from register to stack.
870 2008-08-13  Richard Guenther  <rguenther@suse.de>
872         * tree.h (maybe_fold_offset_to_address): Declare.
873         * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
874         (ccp_fold): Handle pointer conversions the same as fold_stmt.
875         Likewise for POINTER_PLUS_EXPR.
876         (maybe_fold_offset_to_reference): Enable disabled code.
877         (maybe_fold_offset_to_address): New function.
878         (fold_stmt_r): Use it.
879         (fold_gimple_assign): Likewise.
880         * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
881         (gimplify_expr): Likewise.
883 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
885         * toplev.h (pedwarn_at): Fix declaration.
886         
887 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
889         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
890         LINK_SPEC): Use %R in -Y P argument.
892 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
894         PR c/15236
895         * diagnostic.c (pedwarn_at): New.
896         * toplev.h (pedwarn_at): Declare.
897         * c-tree.h (build_enumerator): Update declaration.
898         * c-decl.c (finish_enum): Update comment.
899         (build_enumerator): Take a location parameter. Give a pedwarn but do
900         not perform any conversion.
901         * c-parser.c (c_parser_enum_specifier): Set correct location for
902         enumerator.
904 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
906         PR 35635
907         * c-common.c (conversion_warning): Use a switch. Ignore boolean
908         expressions except for conversions to signed:1 bitfields. Handle
909         COND_EXPR with constant operands.
910         
911 2008-08-13  Richard Guenther  <rguenther@suse.de>
913         PR tree-optimization/15255
914         * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
915         (struct oecount_s): New struct and VEC types.
916         (cvec): New global.
917         (oecount_hash): New function.
918         (oecount_eq): Likewise.
919         (oecount_cmp): Likewise.
920         (zero_one_operation): New function.
921         (build_and_add_sum): Likewise.
922         (undistribute_ops_list): Perform un-distribution of multiplication
923         and division on the chain of summands.
924         (should_break_up_subtract): Also break up subtracts for factors.
925         (reassociate_bb): Delete dead visited statements.
926         Call undistribute_ops_list.  Re-sort and optimize if it did something.
927         * passes.c (init_optimization_passes): Move DSE before
928         reassociation.
929         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
930         PHI nodes.
932 2008-08-12  Janis Johnson  <janis187@us.ibm.com>
934         * doc/invoke.texi (-fipa-pta): Say the option is experimental.
936         * doc/invoke.texi: Revert unintended checkin.
938 2008-08-12  Nathan Froyd  <froydnj@codesourcery.com>
940         PR libgomp/26165
941         * gcc.c (include_spec_function): Tweak call to find_a_file.
943 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
945         PR middle-end/37014
946         * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
947         and TRUTH_ORIF_EXPR.
948         * dojump.c (do_jump): Likewise.
950         PR tree-optimization/37084
951         * tree-inline.c (copy_bb): Call gimple_regimplify_operands
952         if id->regimplify, don't assume stmt is a cast assignment.
954 2008-08-12  Anatoly Sokolov  <aesok@post.ru>
956         * final.c (final_scan_insn): Use app_enable/app_disable functions.
958 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
960         PR bootstrap/37097
961         * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
962         by last change.
964 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
966         * defaults.h (TARGET_FLOAT_FORMAT): Remove.
967         (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
969         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
970         * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
971         * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
972         * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
973         * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
975         * doc/tm.texi (Storage Layout): Remove documentation for
976         TARGET_FLOAT_FORMAT.
978         * simplify-rtx.c (simplify_binary_operation_1): Replace
979         TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
981 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
983         * real.h (struct real_format): New member has_sign_dependent_rounding.
984         * real.c (ieee_single_format, mips_single_format, motorola_single_format,
985         spu_single_format, ieee_double_format, mips_double_format,
986         motorola_double_format, ieee_extended_motorola_format,
987         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
988         ieee_extended_intel_96_round_53_format, ibm_extended_format,
989         mips_extended_format, ieee_quad_format, mips_quad_format,
990         vax_f_format, vax_d_format, vax_g_format): Initialize it.
991         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
993         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
994         MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
995         * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
996         MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
997         (ROUND_TOWARDS_ZERO): Likewise.
999         * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
1000         (FLOAT_MODE_FORMAT): New macro.
1001         (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
1002         (MODE_COMPOSITE_P): ... this new macro.
1003         (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
1004         MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
1005         * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
1007         * flags.h: Include "real.h".
1009         * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
1010         REAL_MODE_FORMAT_COMPOSITE_P.
1011         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
1013         * doc/tm.texi (Storage Layout): Remove documentation of
1014         MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
1015         MODE_HAS_SIGN_DEPENDENT_ROUNDING.  Update documentation of
1016         ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
1017         they only apply to libgcc2.a.
1019 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1021         * config/spu/float_disf.c: New file.
1022         * config/spu/float_unsdisf.c: New file.
1023         * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
1024         (LIB2FUNCS_EXCLUDE): Define.
1026 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1027             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
1029         * real.h (struct real_format): New member round_towards_zero.
1030         * real.c (round_for_format): Respect fmt->round_towards_zero.
1031         (ieee_single_format, mips_single_format, motorola_single_format,
1032         spu_single_format, ieee_double_format, mips_double_format,
1033         motorola_double_format, ieee_extended_motorola_format,
1034         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
1035         ieee_extended_intel_96_round_53_format, ibm_extended_format,
1036         mips_extended_format, ieee_quad_format, mips_quad_format,
1037         vax_f_format, vax_d_format, vax_g_format): Initialize it.
1038         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
1040         * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
1041         real_format to choose rounding mode when calling MPFR functions.
1042         (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
1043         (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
1045         * real.h (real_to_decimal_for_mode): Add prototype.
1046         * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
1047         Respect target rounding mode when generating decimal representation.
1048         (real_to_decimal): New stub for backwards compatibility.
1049         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
1050         real_to_decimal_for_mode instead of real_to_decimal.
1052         * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
1054 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1055             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
1057         * real.c (spu_single_format): New variable.
1058         * real.h (spu_single_format): Declare.
1060         * config/spu/spu.c (spu_override_options): Install SFmode format.
1061         (spu_split_immediate): Use integer mode to operate on pieces of
1062         floating-point values in all cases.
1064         * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
1065         ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
1066         ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
1068 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1070         * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
1072 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1074         * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
1076 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
1078         PR c++/36688
1079         * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
1080         on the VAR_DECL instead of TYPE_READONLY on its type.
1082 2008-08-12  Ira Rosen  <irar@il.ibm.com>
1084         * tree-vectorizer.c: Depend on langhooks.h.
1085         (supportable_widening_operation): Add two arguments. Support double
1086         type conversions.
1087         (supportable_narrowing_operation): Likewise.
1088         * tree-vectorizer.h (supportable_widening_operation): Add two 
1089         arguments.
1090         (supportable_narrowing_operation): Likewise.
1091         * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
1092         supportable_widening_operation with correct arguments.
1093         * tree-vect-transform.c (vectorizable_conversion): Likewise.
1094         (vectorizable_type_demotion): Support double type conversions.
1095         (vectorizable_type_promotion): Likewise.
1096         * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
1098 2008-08-11  Michael Matz  <matz@suse.de>
1100         * i386/i386.c (override_options): Move initialisation from
1101         flag_schedule_insns_after_reload to here from ...
1102         (optimization_options): ... here.
1104 2008-08-11  Jakub Jelinek  <jakub@redhat.com>
1106         PR rtl-optimization/36998
1107         * dwarf2out.c (compute_barrier_args_size_1,
1108         compute_barrier_args_size): Temporarily remove assertions.
1110 2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1112         PR middle-end/20644
1113         * tree-ssa.c (struct walk_data): Add new flag
1114         warn_possibly_uninitialized.
1115         (warn_uninitialized_var): Use it.
1116         (warn_uninitialized_vars): New.
1117         (execute_early_warn_uninitialized): Call it.
1118         (execute_late_warn_uninitialized): Likewise.
1120 2008-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1122         PR middle-end/36238
1123         * reload1.c (gen_reload): Guard calls to get_secondary_mem
1124         for memory subregs.
1126 2008-08-09  Jan Hubicka  <jh@suse.cz>
1128         PR target/37055
1129         * optabs.c (maybe_emit_unop_insn): Remove produced code if
1130         expansion failed.
1131         (expand_fix): Be prepared for expansion to fail.
1132         (expand_sfix_optab): Remove instructions if expansion failed.
1134 2008-08-09  Anatoly Sokolov  <aesok@post.ru>
1136         * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
1137         avr31 architecture.
1138         * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
1139         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1141 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
1143         * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
1144         mips/t-libgcc-mips16 to tmake_file.
1145         * config/mips/mips-protos.h (mips_call_type): New enum.
1146         (mips_pic_base_register, mips_got_load): Declare.
1147         (mips_restore_gp): Take an rtx argument.
1148         (mips_use_pic_fn_addr_reg_p): Declare.
1149         (mips_expand_call): Replace the sibcall_p argument with
1150         a mips_call_type argument.  Add a lazy_p parameter.
1151         (mips_split_call): Declare.
1152         * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
1153         (MIPS16_PIC_TEMP): Likewise.
1154         (reg_class): Delete M16_NA_REGS.
1155         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
1156         (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
1157         (mips_split_hi_p): Declare.
1158         * config/mips/mips.c (mips_split_hi_p): New array.
1159         (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
1160         (mips_got_symbol_type_p): New function.
1161         (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
1162         (mips16_stub_function_p): New function.
1163         (mips16_local_function_p): Likewise.
1164         (mips_use_pic_fn_addr_reg_p): Likewise.
1165         (mips_cannot_force_const_mem): Return false for HIGHs.
1166         Extend CONST_INT and symbolic handling to MIPS16, using
1167         mips_symbol_insns to check that the base symbol type is a
1168         legitimate constant.  Reject GOT-based constants if
1169         TARGET_MIPS16_PCREL_LOADS.
1170         (mips_const_insns): Check targetm.cannot_force_const_mem when
1171         decomposing a symbolic base and a large offset.
1172         (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
1173         When calling a function that needs $25 from MIPS16 code,
1174         move the target address into $25 separately and add a USE
1175         to the call insn.
1176         (mips16_gp_pseudo_reg): Insert the initializer immediately
1177         before the first real insn.
1178         (mips_pic_base_register, mips_got_load): New functions.
1179         (mips_split_symbol): Generalize the name of the LO_SUM_OUT
1180         parameter to LOW_OUT.  Say that it can be any valid SET_SRC
1181         when splitting a load-address operation.  Split SYMBOL_GOT_DISP
1182         constants and highs of SYMBOL_GOT_PAGE_OFST constants.
1183         (mips_call_tls_get_addr): Update the call to mips_expand_call,
1184         also passing NULL_RTX rather than const0_rtx as the aux argument.
1185         (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
1186         instead of TARGET_EXPLICIT_RELOCS.
1187         (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
1188         (mips_load_call_address): Replace the sibcall_p argument with
1189         a mips_call_type argument.  Use mips_got_load.
1190         (mips16_local_alias): New structure.
1191         (mips16_local_aliases): New variable.
1192         (mips16_local_aliases_hash): New function.
1193         (mips16_local_aliases_eq): Likewise.
1194         (mips16_local_alias): Likewise.
1195         (mips16_stub_function): Likewise.
1196         (mips16_build_function_stub): Create a local alias for the target
1197         function.  Handle TARGET_ABICALLS.  For PIC abicalls, emit a
1198         .cpload directive and an R_MIPS_NONE relocation for the target
1199         function, then load the alias rather than the function itself.
1200         Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
1201         (mips16_copy_fpr_return_value): Use mips16_stub_function and
1202         mips_expand_call.  Set SYMBOL_REF_BIND_NOW on the symbol.
1203         (mips16_build_call_stub): Replace the FN parameter with an
1204         FN_PTR parameter.  Force the address into a register if it
1205         isn't a call_insn_operand; don't rely on the caller to do this.
1206         If a call to a locally-defined and locally-binding MIPS16
1207         function must be made indirectly, redirect the call to the
1208         function's local alias.  Use mips16_stub_function_p,
1209         mips16_stub_function, mips_expand_call and use_reg.
1210         Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
1211         Use explicit %hi and %lo accesses where possible.
1212         Use MIPS_CALL to generate the correct code form of a
1213         jal instruction.  Add clobbers of $18 instead of uses.
1214         Update the call to mips_emit_call_insn.
1215         (mips_expand_call): Replace the SIBCALL_P argument with a
1216         mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
1217         Take a LAZY_P parameter.  Call mips16_build_call_stub first,
1218         allowing it to modify the call address.  Update the calls to
1219         mips_load_call_address and mips_emit_call_insn.
1220         (mips_split_call): New function.
1221         (mips_init_relocs): Clear mips_split_hi_p.  Only use %gp_rel if
1222         !TARGET_MIPS16.  Split SYMBOL_GOT_DISP, and the high parts of
1223         SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
1224         (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
1225         (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
1226         if TARGET_MIPS16.
1227         (mips_cprestore_slot): New function.
1228         (mips_restore_gp): Take a TEMP parameter.  Handle TARGET_MIPS16
1229         and use mips_cprestore_slot.
1230         (mips_output_function_prologue): Handle TARGET_MIPS16 for
1231         LOADGP_OLDABI.
1232         (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
1233         then use a copygp_mips16 instruction to set up $28.
1234         (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
1235         (mips16_lay_out_constants): Call split_all_insns_noflow.
1236         (mips_reorg_process_insns): Explicitly set all_noreorder_p to
1237         false if TARGET_MIPS16.
1238         (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
1239         (mips_output_mi_thunk): Use mips_got_symbol_type_p.  Use the
1240         mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
1241         (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
1242         MIPS16 code.  Allow MIPS16 o32 PIC.
1243         (mips_override_options): Allow MIPS16 o32 PIC.
1244         * config/mips/mips.md: Lower CONST_GP_P moves into register moves
1245         after reload if TARGET_USE_GOT.
1246         (UNSPEC_COPYGP): New constant.
1247         (length): Use a default length of 8 for MIPS16 GOT loads.
1248         (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
1249         (*got_page<mode>): Check mips_split_hi_p.
1250         (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
1251         (unspec_got<mode>, unspec_call<mode>): New expanders.
1252         (load_got<mode>, load_call<mode>): Remove the length attributes.
1253         Use a got attribute instead of a type attribute.
1254         (copygp_mips16): New insn.
1255         (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
1256         (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
1257         (sibcall, sibcall_value, call, call_value): Update the calls
1258         to mips_expand_call.
1259         (call_internal, call_value_internal): Use mips_split_call.
1260         (call_value_multiple_internal): Likewise.
1261         (call_split): Move after call_internal (the insn it is split from).
1262         (call_internal_direct, call_value_internal_direct): Turn into
1263         define_insn_and_splits.  Split if TARGET_SPLIT_CALLS.
1264         (call_direct_split, call_value_direct_split): New patterns.
1265         * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
1266         and use M16_REGS instead of M16_NA_REGS.
1267         * config/mips/predicates.md (const_call_insn_operand): Replace
1268         the TARGET_ABSOLUTE_ABICALLS-based check with a more general
1269         mips_use_pic_fn_addr_reg_p check.
1270         (move_operand): Reject HIGHs if mips_split_hi_p.
1271         * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
1272         (__mips16_floatunsisf): Inline __mips16_floatsisf.
1273         (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
1274         * config/mips/libgcc-mips16.ver: New file.
1275         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
1276         $(srcdir)/config/mips/libgcc-mips16.ver.
1278 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
1280         * config/mips/mips.c (mips_unspec_address_offset): Move earlier in file.
1281         (mips_unspec_address, mips_unspec_offset_high): Likewise.
1282         (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
1283         (mips16_cfun_returns_in_fpr_p): Likewise.
1285 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
1287         * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
1288         * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
1289         rather than 4 to PC.
1291 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
1293         * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
1294         (FUNCTION_PROFILER): Save the static chain pointer into $2
1295         beforehand and restore it aftewards.
1296         (TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
1297         address directly into $25 and call the function through $25;
1298         do not clobber $3.  Pad the DImode version to cover the space
1299         left by the deleted $25 <- $3 move.
1300         (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
1301         the removal of the $25 <- $3 move.
1302         (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
1303         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
1305 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
1306             Daniel Jacobowitz  <dan@codesourcery.com>
1308         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
1309         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
1310         (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
1311         * config/mips/mips.c (mips_start_function_definition): New function.
1312         (mips_end_function_definition): Likewise.
1313         (mips_output_function_prologue): Use mips_start_function_definition.
1314         (mips_output_function_epilogue): Use mips_end_function_definition.
1315         (build_mips16_function_stub): Use mips_start_function_definition
1316         and mips_end_function_definition.
1317         (build_mips16_call_stub): Likewise.
1319 2008-08-09  Richard Guenther  <rguenther@suse.de>
1321         * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
1322         * gimple.h (gimple_call_fn): Adjust comment.
1323         (gimple_call_set_fndecl): New function.
1324         (gimple_call_fndecl): Adjust for GIMPLE_CALL no
1325         longer having bare FUNCTION_DECL operand.
1326         (gimple_call_return_type): Likewise.
1327         * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
1329         * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
1330         (gimple_mod_pow2): Likewise.
1331         (gimple_mod_subtract): Likewise.
1332         (gimple_ic): Likewise.
1333         (gimple_stringop_fixed_value): Likewise.
1334         (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
1335         longer having bare FUNCTION_DECL operand.
1336         * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
1337         * omp-low.c (optimize_omp_library_calls): Likewise.
1338         * cgraphunit.c (update_call_expr): Likewise.
1339         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
1340         (execute_convert_to_rsqrt): Likewise.
1341         * cfgexpand.c (gimple_to_tree): Simplify.
1342         (release_stmt_tree): Fix for GIMPLE_CALL no longer having
1343         bare FUNCTION_DECL operand.
1344         * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
1345         (convert_gimple_call): Use gimple_call_fndecl.
1346         * c-common.c (c_warn_unused_result): Likewise.
1348 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1350         PR c/17880
1351         * c-typeck.c (digest_init): Call verify_sequence_points from here.
1352         (c_finish_return): Likewise.
1353         (c_start_case): Likewise.
1354         * c-common.c (warn_for_collisions_1): Use explicit location in
1355         warning.
1356         * c-parser.c (c_parser_condition): New. Call
1357         verify_sequence_points.
1358         (c_parser_paren_condition): Call c_parser_condition.
1359         (c_parser_for_statement): Call c_parser_condition.
1361 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1363         PR 36901
1364         * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.  
1365         * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
1366         Moved from diagnostic.h
1367         (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
1368         DK_PERMERROR.
1369         (emit_diagnostic): New.
1370         (warning0, pedwarn0): Delete.
1371         (warning, warning_at, pedwarn, permerror): Return bool.  
1372         * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
1373         Moved to diagnostic.c.
1374         (struct diagnostic_context): Use correct type for
1375         classify_diagnostic.
1376         (diagnostic_report_diagnostic): Update declaration.
1377         (emit_diagnostic): Declare.
1378         * errors.c (warning): Return bool.  
1379         * errors.h (warning): Update declaration.
1380         * toplev.h (warning0, pedwarn0): Delete.
1381         (warning, warning_at, pedwarn, permerror): Return bool.
1382         * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
1383         * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
1384         inform. Update all calls.
1385         (diagnose_mismatched_decls): Check return value of warning/pedwarn
1386         before giving informative note.
1387         (implicit_decl_warning): Likewise.  
1388         * c-typeck.c (build_function_call): Likewise.  
1389         * tree-sssa.c (warn_uninit): Likewise.  
1390         * builtins.c (gimplify_va_arg_expr): Likewise.
1392 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1394         PR 7651
1395         * doc/invoke.texi (-Wextra): Move warning from here...
1396         (-Wuninitialized): ... to here.
1397         
1398 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1400         PR 28875
1401         * flags.h (set_Wunused): Delete
1402         * toplev.c (process_options): Handle Wunused flags here.
1403         * opts.c (maybe_warn_unused_parameter): Delete.
1404         (common_handle_option): Replace set_Wunused by warn_unused.
1405         (set_Wextra): Do not handle Wunused-parameter here.
1406         (set_Wunused): Delete.
1407         * c-opts.c (c_common_handle_option): Replace set_Wunused by
1408         warn_unused.
1409         * common.opt (Wunused): Add Var and Init.
1410         (Wunused-function): Likewise.
1411         (Wunused-label): Likewise.
1412         (Wunused-parameter): Likewise.
1413         (Wunused-value): Likewise.
1414         (Wunused-variable): Likewise.
1415         
1416 2008-08-08  Peter Bergner  <bergner@vnet.ibm.com>
1418         * doc/invoke.texi: Add cpu_type power7.
1419         * config.in (HAVE_AS_VSX): New.
1420         * config.gcc: Add cpu_type power7.
1421         * configure.ac (HAVE_AS_VSX): Check for assembler support of the
1422         VSX instructions.
1423         * configure: Regenerate.
1424         * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
1425         power5.
1426         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
1427         (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
1428         (EXTRA_SPECS): Add asm_cpu_power7 spec string.
1430 2008-08-08  Dorit Nuzman  <dorit@il.ibm.com>
1432         * tree-vect-transform.c (vectorizable_conversion): Pass the integral
1433         type to vectorize.builtin_conversion.
1434         (vectorizable_conversion): Likewise.
1435         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
1436         integral type as input.
1437         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
1438         FIX_TRUNC_EXPR.
1439         (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
1440         and ALTIVEC_BUILTIN_VCTSXS.
1441         (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
1442         formatting. 
1444 2008-08-08  Richard Guenther  <rguenther@suse.de>
1446         * tree-ssa-ccp.c (likely_value): Calls are not all varying.
1447         (surely_varying_stmt_p): Calls are varying only if they are
1448         non-builtin and not indirect or have no result.
1449         (ccp_fold): Re-instantiate code before the tuples merge.
1451 2008-08-08  Richard Guenther  <rguenther@suse.de>
1453         PR tree-optimization/37056
1454         * gimple.h (gimple_assign_rhs_class): New helper function.
1455         * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
1456         unary operations properly.
1458 2008-08-07  Jan Hubicka  <jh@suse.cz>
1460         * i386.h (ix86_size_cost): Declare.
1461         (ix86_cur_cost): New function macro.
1462         * i386.md (peepholes expanding size and splitters): Predicate by
1463         optimize_insn_for_speed_p.
1464         (peepholes reduce size and splitters): Predicate by
1465         optimize_insn_for_size_p.
1466         * i386.c (ix86_size_cost): Rename from ...
1467         (size_cost): This one.
1468         (override_options): Update.
1469         (decide_alg): Likewise.
1470         (ix86_expand_clear): Use RTL profile.
1471         (ix86_pad_returns): Use RTL profile.
1473 2008-08-07  Jan Hubicka  <jh@suse.cz>
1475         * recog.c (split_all_insns): Set RTL profile
1476         (peephole2_optimize): Likewise.
1477         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1478         * combine.c (combine_instructions): Likewise.
1480 2008-08-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1482         * c-common.c (c_common_reswords): Also warn about keyword "bool".
1484 2008-08-07  Bob Wilson  <bob.wilson@acm.org>
1485         
1486         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
1487         value in a6 after the set_frame_ptr insn.
1488         
1489 2008-08-07  Richard Henderson  <rth@redhat.com>
1491         PR debug/37033
1492         * gcc.c (cpp_options): Pass along -g*.
1494 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
1496         * config/arm/arm.c (output_move_neon): Update comment describing
1497         big-endian vector layout.
1498         (arm_assemble_integer): Do not handle big-endian NEON vectors
1499         specially.
1500         * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
1501         neon_vget_lane<mode>_sext_internal,
1502         neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
1503         element indices for big-endian.
1505 2008-08-07  Richard Henderson  <rth@redhat.com>
1507         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
1508         * configure, config.in: Rebuild.
1509         * debug.h (dwarf2out_do_cfi_asm): Declare.
1510         * c-cppbuiltin.c (c_cpp_builtins): Use it.
1511         * dwarf2out.c (dwarf2out_do_cfi_asm): New.
1512         (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
1513         dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
1515 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
1517         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
1518         movv2si_internal): Combine into mov<mode>_internal.
1519         (movv2si_internal_2): Remove.
1521 2008-08-07  Jan Hubicka  <jh@suse.cz>
1523         PR target/37048
1524         * i386.md (single stringop patterns): Enable unconditionally. 
1526 2008-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1528         PR target/36992
1529         * config/i386/emmintrin.h (_mm_move_epi64): Use
1530         __builtin_ia32_movq128.
1532         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
1533         (bdesc_args): Add IX86_BUILTIN_MOVQ128.
1535         * config/i386/sse.md (sse2_movq128): New.
1537         * doc/extend.texi: Document __builtin_ia32_movq128.
1539 2008-08-07  Richard Guenther  <rguenther@suse.de>
1541         PR middle-end/37042
1542         * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
1543         pointers can access anything.
1545 2008-08-06  Jan Hubicka  <jh@suse.cz>
1547         * optabs.c (emit_unop_insn): Break out to ...
1548         (maybe_emit_unop_insn): ... this one.
1549         (expand_sfix_optab): Use maybe variant.
1550         * optabs.h (maybe_emit_unop_insn): Declare.
1552         * i386.md (mov0 patterns): Enable by default.
1553         (FP conversion expanders): Disable expansion of code expanding
1554         sequences when instruction should be optimized for size.
1555         (single strinop patterns): Enable when optimizing for size.
1556         (string expanders): Disable expanding of code expanding sequences
1557         when optimizning instruction for size.
1558         * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
1559         per BB basis.
1560         (ix86_fp_comparison_sahf_cost): Likewise.
1561         (ix86_expand_branch): Likewise.
1562         (ix86_expand_ashl_const): Likewise.
1563         (ix86_split_ashl): Likewise.
1564         (ix86_expand_strlen): Likewise.
1565         (ix86_emit_fp_unordered_jump): Likewie.
1567 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1569         * c-common.c: Fix typo.
1570         (c_common_reswords): Activate more C++ keyword warnings.
1572         * matrix-reorg.c (compute_offset): Avoid C++ keywords.
1574 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1576         PR 26785
1577         * diagnostic.c (permerror_at): New.
1578         * toplev.h (permerror_at): Declare.
1579         
1580 2008-08-06  Victor Kaplansky  <victork@il.ibm.com>
1581             Ira Rosen  <irar@il.ibm.com>
1583         * tree-vect-transform.c (vect_model_simple_cost): Return
1584         immediately if stmt is pure SLP.
1585         (vect_model_store_cost): Ditto.
1586         (vect_model_load_cost): Ditto.
1587         (vectorizable_store): Remove PURE_SLP check before call
1588         to vect_model_store_cost.
1589         (vect_model_store_cost): When checking whether stmt describe
1590         strided access, add a check that it is not slp_node.
1592 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1594         PR 8715
1595         * c-common.c (warn_for_sign_compare): New. Handle separately the
1596         case that 'constant' is zero.
1597         * c-typeck.c (build_binary_op): Move code to c-common.c
1598         
1599 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1601         * config/alpha/alpha.c (alpha_preferred_reload_class,
1602         alpha_secondary_reload, alpha_emit_set_const_1, function_value,
1603         alpha_output_mi_thunk_osf): Avoid C++ keywords.
1604         * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
1605         * config/arm/arm.md: Likewise.
1606         * config/avr/avr-protos.h (preferred_reload_class,
1607         test_hard_reg_class, avr_simplify_comparison_p,
1608         out_shift_with_cnt, class_max_nregs): Likewise.
1609         * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
1610         output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
1611         preferred_reload_class, test_hard_reg_class): Likewise.
1612         * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
1613         bfin_memory_move_cost, bfin_secondary_reload,
1614         bfin_output_mi_thunk): Likewise.
1615         * config/crx/crx.c (crx_secondary_reload_class,
1616         crx_memory_move_cost): Likewise.
1617         * config/frv/frv-protos.h (frv_secondary_reload_class,
1618         frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
1619         * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
1620         frv_secondary_reload_class, frv_class_likely_spilled_p,
1621         frv_class_max_nregs): Likewise.
1622         * config/h8300/h8300.c (h8300_classify_operand,
1623         h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
1624         Likewise.
1625         * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
1626         * config/ia64/ia64.c (ia64_preferred_reload_class,
1627         ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
1628         * config/iq2000/iq2000.c (gen_int_relational): Likewise.
1629         * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
1630         Likewise.
1631         * config/m68hc11/m68hc11.c (preferred_reload_class,
1632         m68hc11_memory_move_cost): Likewise.
1633         * config/mcore/mcore.c (mcore_secondary_reload_class,
1634         mcore_reload_class): Likewise.
1635         * config/mips/mips.c (mips_hard_regno_mode_ok_p,
1636         mips_class_max_nregs, mips_cannot_change_mode_class,
1637         mips_preferred_reload_class, mips_secondary_reload_class,
1638         mips_output_mi_thunk): Likewise.
1639         * config/mmix/mmix.c (mmix_preferred_reload_class,
1640         mmix_preferred_output_reload_class, mmix_secondary_reload_class):
1641         Likewise.
1642         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
1643         Likewise.
1644         * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
1645         pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
1646         * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
1647         * config/rs6000/rs6000.c (paired_expand_vector_init,
1648         rs6000_secondary_reload_class, rs6000_output_mi_thunk,
1649         compare_section_name, rs6000_memory_move_cost): Likewise.
1650         * config/s390/s390.c (s390_emit_compare_and_swap,
1651         s390_preferred_reload_class, s390_secondary_reload,
1652         legitimize_pic_address, legitimize_tls_address,
1653         legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
1654         s390_class_max_nregs): Likewise.
1655         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
1656         * config/s390/s390.md: Likewise.
1657         * config/score/score-protos.h (score_secondary_reload_class,
1658         score_preferred_reload_class): Likewise.
1659         * config/score/score.c (score_preferred_reload_class,
1660         score_secondary_reload_class): Likewise.
1661         * config/score/score3.c (score3_output_mi_thunk,
1662         score3_preferred_reload_class, score3_secondary_reload_class,
1663         score3_hard_regno_mode_ok): Likewise.
1664         * config/score/score3.h (score3_preferred_reload_class,
1665         score3_secondary_reload_class): Likewise.
1666         * config/score/score7.c (score7_output_mi_thunk,
1667         score7_preferred_reload_class, score7_secondary_reload_class,
1668         score7_hard_regno_mode_ok): Likewise.
1669         * config/score/score7.h (score7_preferred_reload_class,
1670         score7_secondary_reload_class): Likewise.
1671         * config/sh/sh.c (prepare_move_operands, output_far_jump,
1672         output_branchy_insn, add_constant, gen_block_redirect,
1673         sh_insn_length_adjustment, sh_cannot_change_mode_class,
1674         sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload):
1675         Likewise.
1676         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1677         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
1678         xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
1679         xstormy16_preferred_reload_class): Likewise.
1680         * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
1681         xtensa_expand_atomic, override_options,
1682         xtensa_preferred_reload_class, xtensa_secondary_reload_class):
1683         Likewise.
1684         * reorg.c (try_merge_delay_insns): Likewise.
1685         * tree.c (merge_dllimport_decl_attributes): Likewise.
1687         * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
1689 2008-08-06  Michael Matz  <matz@suse.de>
1691         * Makefile.in (write_entries_to_file): Quote words.
1692         * gengtype.c: (read_input_line): Skip over leading white-space.
1694 2008-08-06  Marc Gauthier  <marc@tensilica.com>
1696         * config.gcc: Match more processor names for Xtensa.
1697         * configure.ac: Likewise.
1698         * doc/install.texi (Specific): Likewise.
1699         * configure: Regenerate.
1701 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1703         * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
1704         * calls.c (avoid_likely_spilled_reg): Likewise.
1705         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
1706         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
1707         * config/i386/i386.c (ix86_expand_special_args_builtin,
1708         ix86_secondary_reload): Likewise.
1709         * except.c (struct eh_region, gen_eh_region_catch,
1710         remove_unreachable_regions, duplicate_eh_regions,
1711         assign_filter_values, build_post_landing_pads,
1712         sjlj_find_directly_reachable_regions, remove_eh_handler,
1713         reachable_next_level, foreach_reachable_handler,
1714         can_throw_internal_1, can_throw_external_1,
1715         collect_one_action_chain): Likewise.
1716         * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
1717         * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
1718         * function.c (update_temp_slot_address, instantiate_new_reg,
1719         instantiate_virtual_regs_in_rtx,
1720         instantiate_virtual_regs_in_insn): Likewise.
1721         * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
1722         * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
1723         gimplify_cleanup_point_expr): Likewise.
1724         * ipa-cp.c (ipcp_lattice_changed): Likewise.
1725         * passes.c (next_pass_1): Likewise.
1726         * print-tree.c (print_node_brief, print_node): Likewise.
1727         * profile.c (branch_prob): Likewise.
1728         * tree-dump.c (dump_register): Likewise.
1729         * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
1730         Likewise.
1731         * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
1732         copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
1733         copy_edges_for_bb, copy_cfg_body, copy_tree_r,
1734         copy_arguments_for_versioning, copy_static_chain): Likewise.
1735         * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
1736         add_new_name_mapping, register_new_name_mapping): Likewise.
1737         * tree-mudflap.c (mf_xform_derefs): Likewise.
1738         * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
1739         get_init_expr, combine_chains): Likewise.
1740         * tree-pretty-print.c (dump_generic_node): Likewise.
1741         * tree-ssa-structalias.c (create_variable_info_for): Likewise.
1742         * tree-vrp.c (simplify_cond_using_ranges): Likewise.
1743         * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
1744         * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
1746 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1748         PR middle-end/37010
1749         * calls.c (expand_call): Use the biggest preferred stack
1750         boundary.
1752 2008-08-06  Michael Matz  <matz@suse.de>
1754         PR target/36613
1755         * reload.c (push_reload): Merge in,out,in_reg,out_reg members
1756         for reused reload, instead of overwriting them.
1758 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1760         PR middle-end/37009
1761         * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
1762         for incoming stack boundary.
1764         * function.c (assign_parm_find_entry_rtl): Update
1765         parm_stack_boundary.
1767         * function.h (rtl_data): Add parm_stack_boundary.
1769         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
1770         parm_stack_boundary for incoming stack boundary.
1772 2008-08-06  Joseph Myers  <joseph@codesourcery.com>
1774         * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
1775         for unrepresentable subregs or treat them as equal to other regs
1776         or subregs with the same register number.
1778 2008-08-06  Aldy Hernandez  <aldyh@redhat.com>
1780         PR middle-end/35432
1781         * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
1782         if want_value.
1784 2008-08-06  Jan Hubicka  <jh@suse.cz>
1786         * predict.c (maybe_hot_frequency_p): When profile is absent, all
1787         frequencies might be hot.
1789 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
1791         * reload.c (find_reloads): Force constants into literal pool
1792         also if they are wrapped in a SUBREG.
1794 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
1796         PR target/35659
1797         * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
1798         * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
1799         Don't allow predicated instructions for data speculation.
1800         * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
1801         declaration.
1803 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
1805         * haifa-sched.c (extend_global): Split to extend_global_data and
1806         extend_region_data.  Update all uses.
1807         (extend_all): Rename to extend_block_data.
1809 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
1811         * sched-rgn.c (new_ready): Check if instruction can be
1812         speculatively scheduled before attempting speculation.
1813         (debug_rgn_dependencies): Remove wrongful assert.
1815 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
1817         * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
1818         
1819 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
1820         
1821         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
1822         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
1823         va_size, and type_size.
1824         
1825 2008-08-04  Jason Merrill  <jason@redhat.com>
1827         PR c++/37016
1828         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
1829         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
1831 2008-08-05  Richard Henderson  <rth@redhat.com>
1833         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
1834         * configure: Rebuild.
1836 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1838         PR tree-opt/37024
1839         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
1840         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
1841         is a conversion.
1843 2008-08-05  Richard Henderson  <rth@redhat.com>
1845         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
1846         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
1847         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
1848         * common.opt (fdwarf2-cfi-asm): New.
1849         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
1850         * config.in, configure: Rebuild.
1851         * dwarf2asm.c (dw2_asm_output_data_raw): New.
1852         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
1853         (dw2_force_const_mem): Externalize.
1854         * dwarf2asm.h: Update.
1855         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
1856         generate a real label.
1857         (output_cfi_directive): New.
1858         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
1859         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
1860         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
1861         and .cfi_lsda.
1862         (dwarf2out_end_epilogue): Emit .cfi_endproc.
1863         (output_loc_operands_raw, output_loc_sequence_raw): New.
1864         (output_cfa_loc_raw): New.
1865         
1866 2008-08-05  Paul Brook  <paul@codesourcery.com>
1868         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
1869         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
1870         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
1871         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
1872         * config/arm/arm.h (TARGET_VFPD32): Define.
1873         (TARGET_VFP3): Use TARGET_VFPD32.
1874         (fputype): Add FPUTYPE_VFP3D16.
1875         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
1876         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
1877         * config/arm/arm-cores.def: Add cortex-r4f.
1878         * config/arm/arm-tune.md: Regenerate.
1880 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1882         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
1883         Reword some comments throughout the file.
1885         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
1886         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
1887         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
1888         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
1890         (MFC_START_ENABLE): Remove PPU-only define.
1891         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
1892         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
1894         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
1895         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
1896         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
1897         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
1898         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
1899         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
1900         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
1902         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
1903         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
1904         (mfc_sdcrt, mfc_sdcrtst): Likewise.
1905         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
1907         (spu_read_machine_status): Fix typo.
1909 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1911         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
1912         SUBREG of multi-word hard register.
1913         * config/spu/spu.c (valid_subreg): Likewise.
1914         (adjust_operand): Handle SUBREGs of multi-word hard registers.
1916 2008-08-04  Richard Guenther  <rguenther@suse.de>
1918         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
1919         the candidate with the stripped base if that base is different
1920         from the original base even for offset zero.
1922 2008-08-04  Richard Guenther  <rguenther@suse.de>
1924         PR middle-end/36691
1925         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
1926         check for no_overflow.
1928 2008-08-04  Richard Guenther  <rguenther@suse.de>
1930         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
1932 2008-08-04  Paul Brook  <paul@codesourcery.com>
1934         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
1935         (arm_order_regs_for_local_alloc): New function.
1936         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
1937         prototype.
1938         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
1940 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
1942         PR target/37012
1943         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
1944         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
1945         (ix86_expand_epilogue): Likewise.
1947 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
1949         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
1950         in comments.
1952 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
1954         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
1955         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
1956         (*movv2sf_internal_rex64): Ditto.
1958 2008-08-03  Jan Hubicka  <jh@suse.cz>
1960         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
1961         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
1962         * expmed.c (expand_smod_pow2): Likewise.
1964 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
1966         PR target/36992
1967         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
1968         alternative 0 of operand 1.
1969         (*vec_concatv2di_rex64_sse): Ditto.
1970         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
1971         of operand 1.
1972         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
1973         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
1974         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
1975         (*movv2sf_internal_rex64): Ditto.
1977 2008-08-02  Richard Guenther  <rguenther@suse.de>
1979         PR target/35252
1980         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
1981         (ssedoublesizemode): New mode attribute.
1982         (sse_shufps): Call gen_sse_shufps_v4sf.
1983         (sse_shufps_1): Macroize.
1984         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
1985         (sse2_shufpd_1): Macroize.
1986         (vec_extract_odd, vec_extract_even): New expanders.
1987         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
1988         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
1989         * i386.c (ix86_expand_vector_init_one_nonzero): Call
1990         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
1991         (ix86_expand_vector_set): Likewise.
1992         (ix86_expand_reduc_v4sf): Likewise.
1994 2008-08-01  Doug Kwan  <dougkwan@google.com>
1996         * matrix-reorg.c: Re-enable all code.
1997         (struct malloc_call_data): Change CALL_STMT to gimple type.
1998         (collect_data_for_malloc_call): Tuplify.
1999         (struct access_site_info): Change STMT to gimple type.
2000         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
2001         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
2002         (struct free_info): Change STMT to gimple type.
2003         (struct matrix_access_phi_node):  Change PHI to gimple type.
2004         (get_inner_of_cast_expr): Remove.
2005         (may_flatten_matrices_1): Tuplify.
2006         (may_flatten_matrices): Ditto.
2007         (mark_min_matrix_escape_level): Ditto.
2008         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
2009         (ssa_accessed_in_call_rhs): New
2010         (ssa_accessed_in_assign_rhs): New
2011         (record_access_alloc_site_info): Tuplify.
2012         (add_allocation_site): Ditto.
2013         (analyze_matrix_allocation_site): Ditto.
2014         (analyze_transpose): Ditto.
2015         (get_index_from_offset): Ditto.
2016         (update_type_size): Ditto.
2017         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
2018         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
2019         (analyze_accesses_for_phi_node): Tuplify.
2020         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
2021         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
2022         (analyze_matrix_accesses): Tuplify.
2023         (check_var_data): New call-back type for check_var_notmodified_p.
2024         (check_var_notmodified_p): Tuplify and use call-back struct to
2025         return statement found.
2026         (can_calculate_expr_before_stmt): Factor out statement related code
2027         into ...
2028         (can_calculate_stmt_before_stmt): New.
2029         (check_allocation_function): Tuplify.
2030         (find_sites_in_func): Ditto.
2031         (record_all_accesses_in_func): Ditto.
2032         (transform_access_sites): Ditto.
2033         (transform_allocation_sites): Ditto.
2034         (matrix_reorg): Re-enable.
2035         (gate_matrix_reorg): Re-enable.
2037 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
2039         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
2040         for labels for which it hasn't been set yet.  If it has been set,
2041         stop walking insns and continue with next worklist item.
2042         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
2043         if the only BARRIER is at the very end of a function.
2045 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2047         * cfgexpand.c (expand_stack_alignment): Assert that
2048         stack_realign_drap and drap_rtx must match.
2050         * function.c (instantiate_new_reg): If DRAP is used to realign
2051         stack, replace virtual_incoming_args_rtx with internal arg
2052         pointer.
2054 2008-08-01  Richard Guenther  <rguenther@suse.de>
2056         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
2057         loop information only if we initialized it.
2058         (execute_pre): Call fini_pre with in_fre.
2059         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
2060         if we do not unroll because we hit max-completely-peeled-insns.
2061         Use our estimation for consistency, do allow shrinking.
2063 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2065         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
2066         with MIN_STACK_BOUNDARY.
2067         (ix86_update_stack_boundary): Likewise.
2068         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
2069         STACK_BOUNDARY.
2071         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
2072         (MIN_STACK_BOUNDARY): This.
2074 2008-08-01  Richard Guenther  <rguenther@suse.de>
2076         PR middle-end/36997
2077         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
2079 2008-08-01  Richard Guenther  <rguenther@suse.de>
2081         PR tree-optimization/36988
2082         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
2083         do not matter if that doesn't change volatile qualification.
2085 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
2087         * configure.ac: Do not generate libada-mk.  Do not subst
2088         host_cc_for_libada.
2089         * libada-mk.in: Remove.
2090         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
2091         * configure: Regenerate.
2093 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
2095         * tree-pass.h: Added comment about not dumping passes with name
2096         starting with star in struct opt_pass.
2097         * passes.c (register_dump_files_1): Don't do dump for a pass with
2098         name starting with star.
2099         * doc/passes.texi (Pass manager): Mention pass names and special
2100         meaning of star prefix to avoid dump.
2102 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
2104         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
2105         to MIPS64r2.
2106         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
2107         (ISA_MIPS64R2): New macro.
2108         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
2109         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
2110         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
2111         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
2112         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
2113         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
2114         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
2115         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
2116         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
2117         Move up to keep list alphabetically sorted.
2118         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
2119         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
2120         processor.
2121         * doc/invoke.texi (MIPS Options): Add -mips64r2.
2122         (-march=@var{arch}): Add mips64r2.
2124 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2126         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
2128 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
2130         * expr.c (expand_assignment): Check for complete type.
2132 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2134         PR debug/36977
2135         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
2137         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
2138         for stack alignment.
2140         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
2142 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
2144         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
2145         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
2147 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
2149         PR rtl-optimization/36419
2150         * dwarf2out.c (barrier_args_size): New variable.
2151         (compute_barrier_args_size, compute_barrier_args_size_1): New
2152         functions.
2153         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
2154         if not called yet in the current function, use barrier_args_size
2155         array to find the new args_size value.
2156         (dwarf2out_frame_debug): Free and clear barrier_args_size.
2158 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2160         PR debug/36980
2161         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
2162         rule 19.
2164 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2166         PR debug/36976
2167         * dwarf2out.c (dwarf2out_args_size_adjust): New.
2168         (dwarf2out_stack_adjust): Use it.
2169         (dwarf2out_frame_debug_expr): Likewise.
2171 2008-07-31  Richard Guenther  <rguenther@suse.de>
2173         PR tree-optimization/36978
2174         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
2175         the generated condition.
2177 2008-07-31  Richard Guenther  <rguenther@suse.de>
2179         * passes.c (init_optimization_passes): Always call
2180         pass_early_warn_uninitialized.
2181         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
2182         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
2183         * doc/passes.texi (Warn for uninitialized variables): Adjust.
2185 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
2187         PR c/36970
2188         * builtins.c (maybe_emit_free_warning): New function.
2189         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
2190         maybe_emit_free_warning for BUILT_IN_FREE.
2192         PR debug/36278
2193         * dwarf2out.c (get_context_die): New function.
2194         (force_decl_die, force_type_die): Use it.
2195         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
2196         returns NULL, force generation of DW_TAG_typedef and put that into
2197         DW_AT_import.
2199         PR preprocessor/36649
2200         * c-pch.c (c_common_read_pch): Save and restore
2201         line_table->trace_includes across PCH restore.
2203 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
2205         PR ada/36554
2206         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
2208 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
2210         PR 36974
2211         * final.c (call_from_call_insn): Handle COND_EXEC.
2213 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
2215         * builtins.c (std_gimplify_va_arg_expr): Replace
2216         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
2217         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
2219 2008-07-30  Joey Ye  <joey.ye@intel.com>
2220             H.J. Lu  <hongjiu.lu@intel.com>
2222         * builtins.c (expand_builtin_setjmp_receiver): Replace
2223         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
2224         (expand_builtin_apply_args_1): Likewise.
2225         (expand_builtin_longjmp): Need DRAP for stack alignment.
2226         (expand_builtin_apply): Likewise.
2228         * caller-save.c (setup_save_areas): Call assign_stack_local_1
2229         instead of assign_stack_local to allow alignment reduction.
2231         * calls.c (emit_call_1): Need DRAP for stack alignment if
2232         return pops.
2233         (expand_call): Replace virtual_incoming_args_rtx with
2234         crtl->args.internal_arg_pointer.
2235         * stmt.c (expand_nl_goto_receiver): Likewise.
2237         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
2238         alignment and store to stack_alignment_estimated and
2239         max_used_stack_slot_alignment.
2240         (expand_one_var): Likewise.
2241         (expand_stack_alignment): New function.
2242         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
2243         and stack_alignment_estimated fields in rtl_data.  Call
2244         expand_stack_alignment at end.
2246         * defaults.h (INCOMING_STACK_BOUNDARY): New.
2247         (MAX_STACK_ALIGNMENT): Likewise.
2248         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
2249         (SUPPORTS_STACK_ALIGNMENT): Likewise.
2251         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
2252         stack alignment when generating virtual registers.
2254         * function.c (assign_stack_local): Renamed to ...
2255         (assign_stack_local_1): This.  Add a parameter to indicate
2256         if it is OK to reduce alignment.
2257         (assign_stack_local): Use it.
2258         (instantiate_new_reg): Instantiate virtual incoming args rtx
2259         to vDRAP if stack realignment and DRAP is needed.
2260         (assign_parms): Collect parameter/return type alignment and
2261         contribute to stack_alignment_estimated.
2262         (locate_and_pad_parm): Likewise.
2263         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
2264         with crtl->args.internal_arg_pointer.
2266         * function.h (rtl_data): Add new field drap_reg,
2267         max_used_stack_slot_alignment, stack_alignment_estimated,
2268         stack_realign_needed, need_drap, stack_realign_processed and
2269         stack_realign_finalized.
2270         (stack_realign_fp): New macro.
2271         (stack_realign_drap): Likewise.
2273         * global.c (compute_regsets): Frame pointer is needed when
2274         stack is realigned.  Can eliminate frame pointer when stack is
2275         realigned and dynamic realigned argument pointer isn't used.
2277         * reload1.c (update_eliminables):  Frame pointer is needed
2278         when stack is realigned.
2279         (init_elim_table): Can eliminate frame pointer when stack is
2280         realigned and dynamic realigned argument pointer isn't used.
2282         * rtl.h (assign_stack_local_1): Declare new funtion.
2284         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
2285         (TARGET_GET_DRAP_RTX): Likewise.
2286         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
2287         TARGET_GET_DRAP_RTX.
2289         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
2291         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
2292         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
2294 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
2295             H.J. Lu  <hongjiu.lu@intel.com>
2297         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
2298         vdrap_reg, stack_realign and drap_reg_saved.
2299         (add_cfi): Don't allow redefining CFA when DRAP is used.
2300         (reg_save): Handle stack alignment.
2301         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
2302         alignment.  Don't generate DWARF information for (set fp sp)
2303         when DRAP is used.
2304         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
2305         to INVALID_REGNUM.
2306         (int_loc_descriptor): Move prototype forward.  Also define if
2307         DWARF2_UNWIND_INFO is true.
2308         (output_cfa_loc): Handle DW_CFA_expression.
2309         (build_cfa_aligned_loc): New.
2310         (based_loc_descr): Update assert for stack realign.  For local
2311         variables, use sp+offset when stack is aligned without drap and
2312         fp+offset when stack is aligned with drap.  For arguments, use
2313         cfa+offset when drap is used to align stack.
2315 2008-07-30  Joey Ye  <joey.ye@intel.com>
2316             H.J. Lu  <hongjiu.lu@intel.com>
2318         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
2319         Break long line.
2320         (ix86_gen_andsp): New.
2321         (ix86_user_incoming_stack_boundary): Likewise.
2322         (ix86_default_incoming_stack_boundary): Likewise.
2323         (ix86_incoming_stack_boundary): Likewise.
2324         (ix86_can_eliminate): Likewise.
2325         (find_drap_reg): Likewise.
2326         (ix86_update_stack_boundary): Likewise.
2327         (ix86_get_drap_rtx): Likewise.
2328         (ix86_finalize_stack_realign_flags): Likewise.
2329         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
2330         (TARGET_GET_DRAP_RTX): Likewise.
2331         (override_options): Overide option value for new options.
2332         (ix86_function_ok_for_sibcall): Remove check for
2333         force_align_arg_pointer.
2334         (ix86_handle_cconv_attribute): Likewise.
2335         (ix86_function_regparm): Likewise.
2336         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
2337         (ix86_va_start): Replace virtual_incoming_args_rtx with
2338         crtl->args.internal_arg_pointer.
2339         (ix86_select_alt_pic_regnum): Check DRAP register.
2340         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
2341         (ix86_compute_frame_layout): Compute frame layout wrt stack
2342         realignment.
2343         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
2344         (ix86_expand_prologue): Decide if stack realignment is needed
2345         and generate prologue code accordingly.
2346         (ix86_expand_epilogue): Generate epilogue code wrt stack
2347         realignment is really needed or not.
2348         
2349         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
2350         (ABI_STACK_BOUNDARY): Likewise.
2351         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
2352         (STACK_REALIGN_DEFAULT): Likewise.
2353         (INCOMING_STACK_BOUNDARY): Likewise.
2354         (MAX_STACK_ALIGNMENT): Likewise.
2355         (ix86_incoming_stack_boundary): Likewise.
2356         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
2357         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
2358         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
2359         (machine_function): Remove force_align_arg_pointer.
2361         * config/i386/i386.md (BX_REG): New.
2362         (R13_REG): Likewise.
2364         * config/i386/i386.opt (mforce_drap): New.
2365         (mincoming-stack-boundary): Likewise.
2366         (mstackrealign): Add Init(-1).
2368         * config/i386/i386-protos.h (ix86_can_eliminate): New
2370 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
2372         * doc/extend.texi: Update force_align_arg_pointer.
2374         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
2375         -mstackrealign.
2377         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
2378         (INCOMING_STACK_BOUNDARY): Likewise.
2379         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
2380         (TARGET_GET_DRAP_RTX): Likewise.
2382 2008-07-30  Andreas Schwab  <schwab@suse.de>
2384         PR rtl-optimization/36929
2385         * dse.c (replace_inc_dec): Use emit_insn_before instead of
2386         add_insn_before and fix argument order.
2387         (replace_inc_dec_mem): Handle NULL rtx.
2389 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
2391         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
2392         function.
2393         (arm_compute_initial_elimination_offset): Use it.
2394         (arm_compute_save_reg_mask): Include static chain save slot when
2395         calculating alignment.
2396         (arm_get_frame_offsets): Ditto.
2397         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
2398         that we can use to decrement the stack when the stack decrement
2399         could be too big for an immediate value in a single insn.
2400         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
2402 2008-07-30  Richard Guenther  <rguenther@suse.de>
2404         PR tree-optimization/36967
2405         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
2406         Release defs of statements we remove.
2408 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
2410         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
2411         instead of NULL_RTVEC.
2413 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
2415         PR target/35866
2417         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
2418         vector modes.
2420 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
2422         * final.c (call_from_call_insn): New.
2423         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
2425 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
2427         * configure.ac: Substitute ADA_CFLAGS.
2428         * configure: Regenerate.
2429         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
2430         * Makefile.in: Remove mention of X_* variables.
2431         * config/pa/x-ada-hpux10: Remove.
2432         * config/pa/x-ada: Remove.
2434         * doc/fragments.texi: Update.
2436 2008-07-30  Olivier Hainque  <hainque@adacore.com>
2438         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
2439         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
2440         __dso_handle explicitly here.
2442 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2444         PR 34389
2445         * c-typeck.c (build_binary_op): Encapsulate code into...
2446         * c-common.c (shorten_binary_op): ...this new function.
2447         (conversion_warning): Use the new function. Handle non-negative
2448         constant in bitwise-and.
2449         * c-common.h (shorten_binary_op): Declare.
2451 2008-07-30  Olivier Hainque  <hainque@adacore.com>
2453         * scan.c (make_sstring_space): Add explicit conversions of
2454         allocator's return value.
2455         * fix-header.c (recognized_function): Likewise.
2457 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2459         * doc/cpp.texi: Update to GFDL 1.2.
2460         * doc/gcc.texi: Do not list GPL as Invariant Section.
2461         * doc/gccint.texi: Likewise.  Update copyright years.
2462         * doc/install.texi: Update copyright years.
2464 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
2466         PR target/36955
2467         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
2468         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
2470 2008-07-29  Jan Hubicka  <jh@suse.cz>
2472         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
2473         (grokdeclarator): Likewise.
2474         * langhooks.c (lhd_warn_unused_global_decl): Use
2475         DECL_DECLARED_INLINE_P.
2476         * print-tree.c (print_node): Remove DECL_INLINE check.
2478 2008-07-29  Richard Guenther  <rguenther@suse.de>
2480         PR tree-optimization/36945
2481         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
2482         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
2483         Record invariant addresses un-decomposed.
2484         (copy_reference_ops_from_call): Record reference call
2485         arguments properly.  Simplify.
2486         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
2487         helper split out from ...
2488         (create_component_ref_by_pieces): ... here.  Simplify.
2489         Prepare for recursive invocation for call arguments.
2490         (create_expression_by_pieces): Adjust call to
2491         create_component_ref_by_pieces.
2492         (compute_avail): Process operand 2 of reference ops.
2494 2008-07-29  Richard Guenther  <rguenther@suse.de>
2496         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
2498 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
2500         * c-format.c (check_format_types): Revert unwanted checkin.
2502 2008-07-29  Jan Hubicka  <jh@suse.cz>
2504         * flags.h (flag_really_no_inline): Remove.
2505         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
2506         * toplev.c (flag_really_no_inline): Remove.
2507         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
2508         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
2509         (cgraph_decide_inlining_incrementally): Likewise.
2510         (compute_inline_parameters): Likewise.
2511         * opts.c (decode_options): Simplify.
2512         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
2513         * common.opt (finline): Initialize to 1.
2514         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
2516 2008-07-29  Jan Hubicka  <jh@suse.cz>
2518         * predict.c (always_optimize_for_size_p): New function.
2519         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
2520         optimize_edge_for_size_p, optimize_edge_for_speed_p,
2521         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
2522         functions.
2523         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
2524         * function.c (prepare_function_start): Set default profile.
2525         * function.h (rtl_data): Add maybe_hot_insn_p.
2526         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
2527         (construct_exit_block): Likewise.
2528         (tree_expand_cfg): Likewise.
2529         * basic-block.h
2530         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
2531         optimize_edge_for_size_p, optimize_edge_for_speed_p,
2532         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
2533         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
2534         Declare.
2536 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2538         PR 34985
2539         * c-decl.c (merge_decls): Merge USED flags.
2541 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
2543         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
2544         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
2545         next_stack, lab_false and lab_over trees.
2547 2008-07-28  Richard Guenther  <rguenther@suse.de>
2549         PR tree-optimization/36957
2550         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
2551         (useless_type_conversion_p): Remove.
2552         (types_compatible_p): Remove.
2553         * gimple.h (tree_ssa_useless_type_conversion): Declare.
2554         (useless_type_conversion_p): Declare.
2555         (types_compatible_p): Declare.
2556         (gimple_expr_type): Return the base type only if it is
2557         trivially convertible to the subtype.
2559 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
2561         * configure.ac: Use the m4_do macro to concatenate the warnings into
2562         one string in ACX_PROG_CC_WARNING_OPTS,
2563         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
2564         * configure: Regenerate.
2566 2008-07-28  Richard Guenther  <rguenther@suse.de>
2568         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
2569         (insert_fake_stores): Remove.
2570         (realify_fake_stores): Likewise.
2571         (execute_pre): Remove dead code.
2572         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
2573         (find_func_aliases): Deal with it here instead.
2574         Re-enable gcc_unreachable call.
2576 2008-07-28  Richard Guenther  <rguenther@suse.de>
2578         Merge from gimple-tuples-branch.
2580         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
2581         * gimple.def: New file.
2582         * gsstruct.def: Likewise.
2583         * gimple-iterator.c: Likewise.
2584         * gimple-pretty-print.c: Likewise.
2585         * tree-gimple.c: Removed.  Merged into ...
2586         * gimple.c: ... here.  New file.
2587         * tree-gimple.h: Removed.  Merged into ...
2588         * gimple.h: ... here.  New file.
2590         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
2591         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
2592         --enable-checking=gimple flag.
2593         * config.in: Likewise.
2594         * configure: Regenerated.
2596         * tree-ssa-operands.h: Tuplified.
2597         * tree-vrp.c: Likewise.
2598         * tree-loop-linear.c: Likewise.
2599         * tree-into-ssa.c: Likewise.
2600         * tree-ssa-loop-im.c: Likewise.
2601         * tree-dump.c: Likewise.
2602         * tree-complex.c: Likewise.
2603         * cgraphbuild.c: Likewise.
2604         * tree-ssa-threadupdate.c: Likewise.
2605         * tree-ssa-loop-niter.c: Likewise.
2606         * tree-pretty-print.c: Likewise.
2607         * tracer.c: Likewise.
2608         * gengtype.c: Likewise.
2609         * tree-loop-distribution.c: Likewise.
2610         * tree-ssa-loop-unswitch.c: Likewise.
2611         * cgraph.c: Likewise.
2612         * cgraph.h: Likewise.
2613         * tree-ssa-loop-manip.c: Likewise.
2614         * value-prof.c: Likewise.
2615         * tree-ssa-loop-ch.c: Likewise.
2616         * tree-tailcall.c: Likewise.
2617         * value-prof.h: Likewise.
2618         * tree.c: Likewise.
2619         * tree.h: Likewise.
2620         * tree-pass.h: Likewise.
2621         * ipa-cp.c: Likewise.
2622         * tree-scalar-evolution.c: Likewise.
2623         * tree-scalar-evolution.h: Likewise.
2624         * target.h: Likewise.
2625         * lambda-mat.c: Likewise.
2626         * tree-phinodes.c: Likewise.
2627         * diagnostic.h: Likewise.
2628         * builtins.c: Likewise.
2629         * tree-ssa-alias-warnings.c: Likewise.
2630         * cfghooks.c: Likewise.
2631         * fold-const.c: Likewise.
2632         * cfghooks.h: Likewise.
2633         * omp-low.c: Likewise.
2634         * tree-ssa-dse.c: Likewise.
2635         * ipa-reference.c: Likewise.
2636         * tree-ssa-uncprop.c: Likewise.
2637         * toplev.c: Likewise.
2638         * tree-gimple.c: Likewise.
2639         * tree-gimple.h: Likewise.
2640         * tree-chrec.c: Likewise.
2641         * tree-chrec.h: Likewise.
2642         * tree-ssa-sccvn.c: Likewise.
2643         * tree-ssa-sccvn.h: Likewise.
2644         * cgraphunit.c: Likewise.
2645         * tree-ssa-copyrename.c: Likewise.
2646         * tree-ssa-ccp.c: Likewise.
2647         * tree-ssa-loop-ivopts.c: Likewise.
2648         * tree-nomudflap.c: Likewise.
2649         * tree-call-cdce.c: Likewise.
2650         * ipa-pure-const.c: Likewise.
2651         * c-format.c: Likewise.
2652         * tree-stdarg.c: Likewise.
2653         * tree-ssa-math-opts.c: Likewise.
2654         * tree-ssa-dom.c: Likewise.
2655         * tree-nrv.c: Likewise.
2656         * tree-ssa-propagate.c: Likewise.
2657         * ipa-utils.c: Likewise.
2658         * tree-ssa-propagate.h: Likewise.
2659         * tree-ssa-alias.c: Likewise.
2660         * gimple-low.c: Likewise.
2661         * tree-ssa-sink.c: Likewise.
2662         * ipa-inline.c: Likewise.
2663         * c-semantics.c: Likewise.
2664         * dwarf2out.c: Likewise.
2665         * expr.c: Likewise.
2666         * tree-ssa-loop-ivcanon.c: Likewise.
2667         * predict.c: Likewise.
2668         * tree-ssa-loop.c: Likewise.
2669         * tree-parloops.c: Likewise.
2670         * tree-ssa-address.c: Likewise.
2671         * tree-ssa-ifcombine.c: Likewise.
2672         * matrix-reorg.c: Likewise.
2673         * c-decl.c: Likewise.
2674         * tree-eh.c: Likewise.
2675         * c-pretty-print.c: Likewise.
2676         * lambda-trans.c: Likewise.
2677         * function.c: Likewise.
2678         * langhooks.c: Likewise.
2679         * ebitmap.h: Likewise.
2680         * tree-vectorizer.c: Likewise.
2681         * function.h: Likewise.
2682         * langhooks.h: Likewise.
2683         * tree-vectorizer.h: Likewise.
2684         * ipa-type-escape.c: Likewise.
2685         * ipa-type-escape.h: Likewise.
2686         * domwalk.c: Likewise.
2687         * tree-if-conv.c: Likewise.
2688         * profile.c: Likewise.
2689         * domwalk.h: Likewise.
2690         * tree-data-ref.c: Likewise.
2691         * tree-data-ref.h: Likewise.
2692         * tree-flow-inline.h: Likewise.
2693         * tree-affine.c: Likewise.
2694         * tree-vect-analyze.c: Likewise.
2695         * c-typeck.c: Likewise.
2696         * gimplify.c: Likewise.
2697         * coretypes.h: Likewise.
2698         * tree-ssa-phiopt.c: Likewise.
2699         * calls.c: Likewise.
2700         * tree-ssa-coalesce.c: Likewise.
2701         * tree.def: Likewise.
2702         * tree-dfa.c: Likewise.
2703         * except.c: Likewise.
2704         * except.h: Likewise.
2705         * cfgexpand.c: Likewise.
2706         * tree-cfgcleanup.c: Likewise.
2707         * tree-ssa-pre.c: Likewise.
2708         * tree-ssa-live.c: Likewise.
2709         * tree-sra.c: Likewise.
2710         * tree-ssa-live.h: Likewise.
2711         * tree-predcom.c: Likewise.
2712         * lambda.h: Likewise.
2713         * tree-mudflap.c: Likewise.
2714         * ipa-prop.c: Likewise.
2715         * print-tree.c: Likewise.
2716         * tree-ssa-copy.c: Likewise.
2717         * ipa-prop.h: Likewise.
2718         * tree-ssa-forwprop.c: Likewise.
2719         * ggc-page.c: Likewise.
2720         * c-omp.c: Likewise.
2721         * tree-ssa-dce.c: Likewise.
2722         * tree-vect-patterns.c: Likewise.
2723         * tree-ssa-ter.c: Likewise.
2724         * tree-nested.c: Likewise.
2725         * tree-ssa.c: Likewise.
2726         * lambda-code.c: Likewise.
2727         * tree-ssa-loop-prefetch.c: Likewise.
2728         * tree-inline.c: Likewise.
2729         * tree-inline.h: Likewise.
2730         * tree-iterator.c: Likewise.
2731         * tree-optimize.c: Likewise.
2732         * tree-ssa-phiprop.c: Likewise.
2733         * tree-vect-transform.c: Likewise.
2734         * tree-object-size.c: Likewise.
2735         * tree-outof-ssa.c: Likewise.
2736         * cfgloop.c: Likewise.
2737         * system.h: Likewise.
2738         * tree-profile.c: Likewise.
2739         * cfgloop.h: Likewise.
2740         * c-gimplify.c: Likewise.
2741         * c-common.c: Likewise.
2742         * tree-vect-generic.c: Likewise.
2743         * tree-flow.h: Likewise.
2744         * c-common.h: Likewise.
2745         * basic-block.h: Likewise.
2746         * tree-ssa-structalias.c: Likewise.
2747         * tree-switch-conversion.c: Likewise.
2748         * tree-ssa-structalias.h: Likewise.
2749         * tree-cfg.c: Likewise.
2750         * passes.c: Likewise.
2751         * ipa-struct-reorg.c: Likewise.
2752         * ipa-struct-reorg.h: Likewise.
2753         * tree-ssa-reassoc.c: Likewise.
2754         * cfgrtl.c: Likewise.
2755         * varpool.c: Likewise.
2756         * stmt.c: Likewise.
2757         * tree-ssanames.c: Likewise.
2758         * tree-ssa-threadedge.c: Likewise.
2759         * langhooks-def.h: Likewise.
2760         * tree-ssa-operands.c: Likewise.
2761         * config/alpha/alpha.c: Likewise.
2762         * config/frv/frv.c: Likewise.
2763         * config/s390/s390.c: Likewise.
2764         * config/m32c/m32c.c: Likewise.
2765         * config/m32c/m32c-protos.h: Likewise.
2766         * config/spu/spu.c: Likewise.
2767         * config/sparc/sparc.c: Likewise.
2768         * config/i386/i386.c: Likewise.
2769         * config/sh/sh.c: Likewise.
2770         * config/xtensa/xtensa.c: Likewise.
2771         * config/stormy16/stormy16.c: Likewise.
2772         * config/ia64/ia64.c: Likewise.
2773         * config/rs6000/rs6000.c: Likewise.
2774         * config/pa/pa.c: Likewise.
2775         * config/mips/mips.c: Likewise.
2777 2008-07-28  Simon Baldwin  <simonb@google.com>
2779         * c-pragma.c (handle_pragma_message): New function.
2780         (init_pragma): Register handle_pragma_message.
2781         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
2782         documentation.
2784 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
2786         PR tree-optimization/35252
2787         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
2788         REALPART_EXPR to be considered as same load operation.
2790 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
2792         PR tree-optimization/36830
2793         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
2794         (expressions_equal_p): Return false if only one operand is null.
2796 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
2798         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
2799         version requirements.
2801 2008-07-26  Olivier Hainque  <hainque@adacore.com>
2803         * collect2.c (symkind): New enum.  Symbol kinds we care about.
2804         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
2805         code and head comment accordingly.
2806         (scan_prog_file): Use symkind names instead of bare integers.
2808 2008-07-25  Jan Hubicka  <jh@suse.cz>
2810         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
2811         DECL_INLINE.
2812         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
2813         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
2814         * dojump.c (clear_pending_stack_adjust): Likewise.
2815         * print-tree.c (print_node): Ignore DECL_INLINE.
2816         * tree-inline.c (inlinable_function_p): Likewise.
2818 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
2820         * doc/extend.texi (hot attribute): Document that the hot attribute
2821         turns on -O3 for some ports.
2822         (cold attribute): Document that the cold attribute turns on -Os
2823         for some ports
2825         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
2826         reflect function specific option support.
2828         * target.h (struct target_option_hooks): Add fields to say whether
2829         the cold attribute implies -Os and the hot attribute implies -O3.
2831         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
2832         By default, do not turn on -Os for cold functions.
2833         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
2834         not turn on -O3 for hot functions.
2836         * c-common.c (handle_hot_attribute): Use target hook to determine
2837         if hot functions should enable -O3.
2838         (handle_cold_attribute): Use target hook to determine if cold
2839         functions should enable -Os.
2841         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
2842         (override_options): Move disable scheduling to
2843         optimization_options.
2844         (optimization_options): Disable scheduling here, not
2845         override_options.
2846         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
2847         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
2849         * config/ia64/ia64.c (ia64_override_options): Move setting
2850         scheduling flags to ia64_optimization_options.
2851         (ia64_optimization_options): Disable scheduling options here, and
2852         not in ia64_override_options.
2853         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
2854         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
2856 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
2858         PR target/36936
2859         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
2861 2008-07-25  Martin Jambor  <mjambor@suse.cz>
2863         PR tree-optimization/36926
2864         * ipa-prop.c (ipa_analyze_call_uses): Call
2865         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
2867 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
2869         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
2870         movv2si_internal): Add mem = reg alternative.
2872 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
2874         PR bootstrap/36918
2875         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
2876         DEFAULT_PCC_STRUCT_RETURN to 127.
2878 2008-07-24  Jan Hubicka  <jh@suse.cz>
2880         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
2881         (build_cgraph_edges): Likewise.
2882         * cgraph.c (cgraph_node): Do not update assembler hash.
2883         (cgraph_remove_node): Drop non-unit-at-a-time code.
2884         * tree-pass.h (pass_O0_always_inline): Remove.
2885         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
2886         * toplev.c (process_options): Flag unit-at-a-time does not imply
2887         no section anchors.
2888         * cgraphunit.c: Update comments.
2889         (decide_is_function_needed): Drop non-unit-at-a-time mode.
2890         (cgraph_assemble_pending_functions): Remove.
2891         (cgraph_reset_node): Drop non-unit-at-a-time code.
2892         (cgraph_finalize_function): Likewise.
2893         (cgraph_analyze_function): Likewise.
2894         (cgraph_finalize_compilation_unit): Likewise.
2895         (cgraph_expand_function): Likewise.
2896         (cgraph_optimize): Likesise.
2897         (save_inline_function_body): Likewise.
2898         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
2899         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
2900         * ipa-inline.c: Update comments.
2901         (enum inlining_mode): remove INLINE_SPEED.
2902         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
2903         (cgraph_mark_inline_edge): Likewise.
2904         (try_inline): Likewise.
2905         (cgraph_decide_inlining_incrementally): Likewise.
2906         (cgraph_gate_inlining): Remove.
2907         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
2908         (cgraph_gate_early_inlining): Likewise.
2909         (gate_inline_passes): Remove.
2910         (pass_inline_parameters, pass_ipa_inline): Remove gates.
2911         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
2912         pass_O0_always_inline): Remove.
2913         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
2914         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
2915         * opts.c (no_unit_at_a_time_default): Remove.
2916         (decode_options): Remove flag_unit_at_a_time reset and warning.
2917         * opts.h (no_unit_at_a_time_default): Remove.
2918         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
2919         early in GNU dialect.
2920         (merge_decls): Update comment; drop unit-at-a-time check.
2921         (finish_decl): Likewise.
2922         (grok_declaration): Remove flag_inline_trees code.
2923         (finish_functions): Return on function returning non-void on all
2924         statics.
2925         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
2926         * cfgexpand.c (expand_one_static_var): Remove.
2927         (expand_one_var): Remove expand_one_static_var call.
2928         (expand_used_vars_for_block): Remove flag_unit_a_time check.
2929         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
2930         and flag_unit_at_a-time compatibility checks.
2931         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
2932         * tree-inline.c (flag_inline_trees): Remove.
2933         (inlinable_function_p): Don't check it.
2934         (expand_call_inline): Remove non-unit-at-a-time code.
2935         * tree-inline.h (flag_inline_trees): Remove.
2936         * tree-optimize.c (execute_early_local_optimizations): Remove
2937         unit-at-a-time checks.
2938         (tree_rest_of_compilation): Likewise.
2939         * combine.c (setup_incoming_promotions): Likewise.
2940         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
2941         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
2942         * passes.c (pass_inline_parameters): Update comments; remove
2943         O0_alwaysinline pass.
2944         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
2945         (execute_one_pass): Likewise.
2946         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
2947         (ix86_function_sseregparm): Likewise.
2948         * arm.c (arm_function_in_section_p): Likewise.
2949         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
2950         * varpool.c: Update comments.
2951         (decide_is_variable_needed): Remove unit-at-a-time checks.
2952         (varpool_finalize_decl): Likewise.
2954 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
2956         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
2957         to 2 instead of -1.
2958         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
2960 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
2962         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
2963         imp symbol extension.
2965         2008-07-23  Ian Lance Taylor  <iant@google.com>
2967         * tree-vrp.c (infer_value_range): Ignore asm statements when
2968         looking for memory accesses for -fdelete-null-pointer-checks.
2970 2008-07-24  Ben Elliston  <bje@au.ibm.com>
2972         * config/spu/spu-c.c (__vector_keyword): New variable.
2973         (vector_keyword): Likewise.
2974         (spu_categorize_keyword): New function.
2975         (spu_macro_to_expand): Likewise.
2976         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
2977         compiling an ISO C dialect.
2979 2008-07-24  Ben Elliston  <bje@au.ibm.com>
2981         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
2982         conventional usage.
2984 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2986         * configure: Regenerate.
2987         * configure.ac: Require texinfo 4.7.
2988         * doc/install.texi: Document texinfo 4.7 requirement.
2990 2008-07-23  Martin Jambor  <mjambor@suse.cz>
2992         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
2993         rather than for DECL_SAVED_TREE.
2994         * ipa-prop.c: Include diagnostic.h.
2995         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
2996         thoroughly.
2997         (ipa_detect_param_modifications): Function rewritten from scratch.
2998         (ipa_compute_jump_functions): Changed accesses to modification flags.
2999         (ipa_free_node_params_substructures): Update flags destruction.
3000         (ipa_node_duplication_hook): Update flags duplication.
3001         (ipa_print_all_params_modified): Updated flag access.
3002         * ipa-prop.h (struct ipa_param_flags): New structure.
3003         (struct ipa_node_params): New field modification_analysis_done,
3004         modified_flags changed into param_flags.
3005         (ipa_is_ith_param_modified): Changed to use new flags.
3006         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
3008         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
3009         ipa-cp.c and split into two functions.
3010         (ipa_print_node_jump_functions): New function.
3011         (compute_scalar_jump_functions): New function.
3012         (type_like_member_ptr_p): New function.
3013         (compute_pass_through_member_ptrs): New function.
3014         (fill_member_ptr_cst_jump_function): New function.
3015         (determine_cst_member_ptr): New function.
3016         (compute_cst_member_ptr_arguments): New function.
3017         (ipa_compute_jump_functions): Complete rewrite.
3018         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
3019         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
3020         (struct ipa_member_ptr_cst): New structure.
3021         (union jump_func_value): New field member_cst.
3022         * ipa-cp.c (ipcp_lat_is_insertable): New function.
3023         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
3024         jump function types.
3025         (ipcp_print_all_lattices): Slight fprintf rearrangement.
3026         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
3027         instead of ipcp_print_all_jump_functions.
3028         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
3029         only for replacable scalars.
3031         * doc/invoke.texi (Optimize options): Add description of
3032         -findirect-inlining.
3033         * common.opt (flag_indirect_inlining): New flag.
3034         * opts.c (decode_options): Set flag_indirect_inlining when
3035         optimize >= 3.
3037         * ipa-inline.c: Include ipa-prop.h.
3038         (inline_indirect_intraprocedural_analysis): New function.
3039         (inline_generate_summary): Allocate parameter and argument info
3040         structures, call inline_indirect_intraprocedural_analysis on each
3041         node when doing indirect inlining and deallocate indirect inlining
3042         data structures in the end.
3043         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
3044         (free_all_ipa_structures_after_iinln): New function.
3045         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
3046         done.
3047         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
3049         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
3050         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
3051         of computing the frequency separately.
3052         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
3053         of computing the frequency separately.
3054         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
3055         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
3056         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
3057         (ipa_get_stmt_member_ptr_load_param): New function.
3058         (ipa_is_ssa_with_stmt_def): New function.
3059         (ipa_note_param_call): New function.
3060         (ipa_analyze_call_uses): New function.
3061         (ipa_analyze_stmt_uses): New function.
3062         (ipa_analyze_params_uses): New function.
3063         (ipa_free_node_params_substructures): Also free the param_calls linked
3064         list.
3065         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
3066         (ipa_print_node_param_flags): New function.
3067         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
3068         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
3069         * ipa-prop.h (struct ipa_param_flags): New field called.
3070         (struct ipa_param_call_note): New structure.
3071         (struct ipa_node_params): New fields param_calls and
3072         uses_analysis_done.
3073         (ipa_is_ith_param_called): New function.
3074         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
3075         ipa_analyze_params_uses and dump parameter flags.
3077         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
3078         ipa_propagate_indirect_call_infos if performing indirect inlining,
3079         pass a new parameter new_edges to it.
3080         (add_new_edges_to_heap): New fucntion.
3081         (cgraph_decide_inlining_of_small_functions): New vector
3082         new_indirect_edges for newly found indirect edges , call
3083         ipa_propagate_indirect_call_infos after inlining.
3084         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
3085         inlining if performing indirect inlining.  Call
3086         free_all_ipa_structures_after_iinln when doing so too.
3087         (inline_generate_summary): Do not call
3088         free_all_ipa_structures_after_iinln here.
3089         * ipa-prop.c (update_jump_functions_after_inlining): New function.
3090         (print_edge_addition_message): New function.
3091         (update_call_notes_after_inlining): New function.
3092         (propagate_info_to_inlined_callees): New function.
3093         (ipa_propagate_indirect_call_infos): New function.
3094         * ipa-prop.h: Include cgraph.h
3095         (struct ipa_param_call_note): Fields reordered, new field processed.
3096         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
3097         flag indirect_call.
3098         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
3099         rediscovered call statements.
3100         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
3101         (dump_cgraph_node): Dump also the indirect_call flag.
3102         (cgraph_clone_edge): Copy also the indirect_call flag.
3103         * tree-inline.c (copy_bb): Do not check for fndecls from call
3104         expressions, check for edge availability when moving clones.
3105         (get_indirect_callee_fndecl): New function.
3106         (expand_call_inline): If callee declaration is not apprent from
3107         the statement, try calling get_indirect_callee_fndecl.  Do not
3108         issue warnings or call sorry when not inlinings an indirect edge.
3109         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
3111         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
3112         bit more frandly to matching.
3113         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
3114         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
3115         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
3117 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
3119         PR 36907
3120         * opth-gen.awk: Suppress function specific features when building
3121         target libraries.
3122         * optc-gen.awk: Ditto.
3124 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3126         PR 35058
3127         * diagnostic.c (pedwarn): Add opt parameter.
3128         (pedwarn0): New.
3129         * c-tree.h (pedwarn_init): Add opt parameter.
3130         (pedwarn_c90): Likewise.
3131         (pedwarn_c99): Likewise.
3132         * c-errors.c (pedwarn_c99): Likewise.
3133         (pedwarn_c90): Likewise.
3134         * toplev.h (pedwarn): Update declaration.
3135         (pedwarn0): Declare.
3136         * c-lex.c: All calls to pedwarn changed.
3137         * builtins.c: All calls to pedwarn changed.
3138         * toplev.c: All calls to pedwarn changed.
3139         * c-decl.c: All calls to pedwarn changed.
3140         * c-typeck.c: All calls to pedwarn changed.
3141         * c-common.c: All calls to pedwarn changed.
3142         * c-parser.c: All calls to pedwarn changed.
3144 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
3145             Karthik Kumar  <karthikkumar@gmail.com>
3147         * attribs.c (file scope): Include c-common.h.
3148         (decl_attributes): Add support for #pragma GCC optimize and
3149         #pragma GCC option.
3151         * targhooks.c (default_can_inline_p): New function that is the
3152         default for the TARGET_CAN_INLINE_P target hook.
3154         * targhooks.h (default_can_inline_p): Add declaration.
3156         * tree.c (cl_optimization_node): New static tree for building
3157         OPTIMIZATION_NODE tree.
3158         (cl_target_option_node): New static tree for building
3159         TARGET_OPTION_NODE tree.
3160         (cl_option_hash_table): New hash table for hashing
3161         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
3162         (cl_option_hash_hash): New function to provide the hash value for
3163         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
3164         (cl_option_hash_eq): New function to provide an equality test for
3165         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
3166         (tree_code_size): Add support for OPTIMIZATION_NODE and
3167         TARGET_OPTION_NODE trees.
3168         (tree_code_structure): Add support for OPTIMIZATION_NODE and
3169         TARGET_OPTION_NODE trees.
3170         (build_optimization_node): Build a tree that has all of the
3171         current optimization options.
3172         (build_target_option_node): Build a tree that has the target
3173         options that might be changed on a per function basis.
3175         * tree.h (file scope): Include options.h.
3176         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
3177         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
3178         (TREE_OPTIMIZATION): Ditto.
3179         (TREE_TARGET_SPECIFIC): Ditto.
3180         (struct tree_function_decl): Add fields for remembering the
3181         current optimization options and target specific options.
3182         (struct tree_optimization_option): New tree variant that remembers
3183         the optimization options.
3184         (struct tree_target_option): New tree variant that remembers the
3185         target specific flags that might change for compiling a particular
3186         function.
3187         (union tree_node): Include tree_optimization_option and
3188         tree_target_option fields.
3189         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
3190         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
3191         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
3192         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
3193         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
3194         optimization and target options.
3195         (optimization_default_node): New macro to refer to global_trees
3196         field.
3197         (optimization_current_node): Ditto.
3198         (optimization_cold_node): Ditto.
3199         (optimization_hot_node): Ditto.
3200         (target_option_default_node): Ditto.
3201         (target_option_current_node): Ditto.
3202         (current_option_pragma): Ditto.
3203         (current_optimize_pragma): Ditto.
3205         * target.h (struct gcc_target): Add valid_option_attribute_p,
3206         target_option_save, target_option_restore, target_option_print,
3207         target_option_pragma_parse, and can_inline_p hooks.
3209         * toplev.h (parse_optimize_options): Add declaration.
3210         (fast_math_flags_struct_set_p): Ditto.
3212         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
3213         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
3214         optimize is used.
3216         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
3217         tree_can_inline_p hook to see if one function can inline another.
3218         (cgraph_decide_inlining): Ditto.
3219         (cgraph_decide_inlining_incrementally): Ditto.
3221         * opts.c (decode_options): Add support for running multiple times
3222         to allow functions with different target or optimization options
3223         than was specified on the command line.
3224         (fast_math_flags_struct_set_p): New function that is similar to
3225         fast_math_flags_set_p, except it uses the values in the
3226         cl_optimization structure instead of global variables.
3228         * optc-gen.awk: Add support for TargetSave to allow a back end to
3229         declare new fields that need to be saved when using function
3230         specific options.  Include flags.h and target.h in the options.c
3231         source.  Add support for Save to indicate which options can be set
3232         for individual functions.  Generate cl_optimize_save,
3233         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
3234         cl_target_option_restore, cl_target_option_print functions to
3235         allow functions to use different optimization or target options.
3237         * opt-functions.awk (var_type_struct): Return the type used for
3238         storing the field in a structure.
3240         * opth-gen.awk: Add support for TargetSave to allow a back end to
3241         declare new fields that need to be saved when using function
3242         specific options.  Add support for Save to indicate which options
3243         can be set for individual functions.  Only generate one extern for
3244         Mask fields.  Generate cl_optimization and cl_target_option
3245         structures to remember optimization and target options.
3247         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
3248         collecting new tree nodes.
3249         (TS_TARGET_OPTION): Ditto.
3251         * c-decl.c (merge_decls): Merge function specific target and
3252         optimization options.
3254         * function.c (invoke_set_current_function_hook): If the function
3255         uses different optimization options, change the global variables
3256         to reflect this.
3258         * coretypes.h (struct cl_optimization): Add forward reference.
3259         (struct cl_target_option): Ditto.
3261         * c-pragma.c (option_stack): New static vector to remember the
3262         current #pragma GCC option stack.
3263         (handle_pragma_option): New function to support #pragma GCC option
3264         to change target options.
3265         (optimize_stack): New static vector to remember the current
3266         #pragma GCC optimize stack.
3267         (handle_pragma_optimize): New function to support #pragma GCC
3268         optimize to change optimization options.
3269         (init_pragma): Add support for #pragma GCC optimize and #pragma
3270         GCC option.
3272         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
3273         optimization options.
3274         (TARGET_OPTION_NODE): New tree code for remembering certain target
3275         options.
3277         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
3278         TARGET_OPTION_NODE trees.
3280         * common.opt (-O): Add Optimization flag.
3281         (-Os): Ditto.
3282         (-fmath-errno): Ditto.
3283         (-falign-functions): Add UInteger flag to make sure flag gets full
3284         int in cl_optimization structure.
3285         (-falign-jumps): Ditto.
3286         (-falign-labels): Ditto.
3287         (-falign-loops): Ditto.
3288         (-fsched-stalled-insns): Ditto.
3289         (-fsched-stalled-insns-dep): Ditto.
3291         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
3292         definition.
3293         (TARGET_OPTION_SAVE): Ditto.
3294         (TARGET_OPTION_RESTORE): Ditto.
3295         (TARGET_OPTION_PRINT): Ditto.
3296         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
3297         (TARGET_CAN_INLINE_P): Ditto.
3298         (TARGET_INITIALIZER): Add new hooks.
3300         * tree-inline.c (tree_can_inline_p): New function to determine
3301         whether one function can inline another.  Check if the functions
3302         use compatible optimization options, and also call the backend
3303         can_inline_p hook.
3305         * tree-inline.h (tree_can_inline_p): Add declaration.
3307         * c-common.c (c_common_attribute): Add support for option and
3308         optimize attributes.
3309         (handle_option_attribute): Add support for the option attribute to
3310         allow the user to specify different target options for compiling a
3311         specific function.
3312         (handle_optimize_attribute): Add support for the optimize
3313         attribute to allow the user to specify different optimization
3314         options for compiling a specific function.
3315         (handle_hot_attribute): Turn on -O3 optimization for this one
3316         function if it isn't the default optimization level.
3317         (handle_cold_attribute): Turn on -Os optimization for this one
3318         function if it insn't the default optimization.
3319         (const_char_p): New const char * typedef.
3320         (optimize_args): New static vector to remember the optimization
3321         arguments.
3322         (parse_optimize_options): New function to set up the optimization
3323         arguments from either the optimize attribute or #pragma GCC optimize.
3325         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
3326         (builtin_define_std): Ditto.
3328         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
3329         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
3330         (x86_64-*-*): Ditto.
3332         * Makefile.in (TREE_H): Add options.h.
3333         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
3335         * doc/extend.texi (option attribute): Document new attribute.
3336         (optimize attribute): Ditto.
3337         (hot attribute): Document hot attribute sets -O3.
3338         (cold attribute): Document cold attribute sets -Os.
3339         (#pragma GCC option): Document new pragma.
3340         (#pragma GCC optimize): Ditto.
3342         * doc/options.texi (TargetSave): Document TargetSave syntax.
3343         (UInteger): Document UInteger must be used for certain flags.
3344         (Save): Document Save option to create target specific options
3345         that can be saved/restored on a function specific context.
3347         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
3348         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
3350         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
3351         (TARGET_OPTION_SAVE): Ditto.
3352         (TARGET_OPTION_RESTORE): Ditto.
3353         (TARGET_OPTION_PRINT): Ditto.
3354         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
3355         (TARGET_CAN_INLINE_P): Ditto.
3357         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
3358         -mfpmath=sse,387.
3359         (-mfpmath=both): Ditto.
3361 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
3362             Karthik Kumar  <karthikkumar@gmail.com>
3364         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
3365         (TARGET_POPCNT): Ditto.
3366         (TARGET_SAHF): Ditto.
3367         (TARGET_AES): Ditto.
3368         (TARGET_PCLMUL): Ditto.
3369         (TARGET_CMPXCHG16B): Ditto.
3370         (TARGET_RECIP): Move switch into target_flags.
3371         (TARGET_FUSED_MADD): Ditto.
3372         (ix86_arch_features): Make an unsigned char type.
3373         (ix86_tune_features): Ditto.
3374         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
3375         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
3376         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
3378         * config/i386/i386.opt (arch): New TargetSave field to define
3379         fields that need to be saved for function specific option support.
3380         (tune): Ditto.
3381         (fpmath): Ditto.
3382         (branch_cost): Ditto.
3383         (ix86_isa_flags_explicit): Ditto.
3384         (tune_defaulted): Ditto.
3385         (arch_specified): Ditto.
3386         (-m128-long-double): Add Save flag to save option for target
3387         specific option support.
3388         (-m80387): Ditto.
3389         (-maccumulate-outgoing-args): Ditto.
3390         (-malign-double): Ditto.
3391         (-malign-stringops): Ditto.
3392         (-mfancy-math-387): Ditto.
3393         (-mhard-float): Ditto.
3394         (-mieee-fp): Ditto.
3395         (-minline-all-stringops): Ditto.
3396         (-minline-stringops-dynamically): Ditto.
3397         (-mms-bitfields): Ditto.
3398         (-mno-align-stringops): Ditto.
3399         (-mno-fancy-math-387): Ditto.
3400         (-mno-push-args): Ditto.
3401         (-mno-red-zone): Ditto.
3402         (-mpush-args): Ditto.
3403         (-mred-zone): Ditto.
3404         (-mrtd): Ditto.
3405         (-msseregparm): Ditto.
3406         (-mstack-arg-probe): Ditto.
3407         (-m32): Ditto.
3408         (-m64): Ditto.
3409         (-mmmx): Ditto.
3410         (-m3dnow): Ditto.
3411         (-m3dnowa): Ditto.
3412         (-msse): Ditto.
3413         (-msse2): Ditto.
3414         (-msse3): Ditto.
3415         (-msse4.1): Ditto.
3416         (-msse4.2): Ditto.
3417         (-msse4): Ditto.
3418         (-mno-sse4): Ditto.
3419         (-msse4a): Ditto.
3420         (-msse5): Ditto.
3421         (-mrecip): Move flag into target_flags.
3422         (-mcld): Ditto.
3423         (-mno-fused-madd): Ditto.
3424         (-mfused-madd): Ditto.
3425         (-mabm): Move flag into ix86_isa_flags.
3426         (-mcx16): Ditto.
3427         (-mpopcnt): Ditto.
3428         (-msahf): Ditto.
3429         (-maes): Ditto.
3430         (-mpclmul): Ditto.
3432         * config/i386/i386-c.c: New file for #pragma support.
3433         (ix86_target_macros_internal): New function to #define or #undef
3434         target macros based when the user uses the #pragma GCC option to
3435         change target options.
3436         (ix86_pragma_option_parse): New function to add #pragma GCC option
3437         support.
3438         (ix86_target_macros): Move defining the target macros here from
3439         TARGET_CPU_CPP_BUILTINS in i386.h.
3440         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
3441         defined, initialize any subtarget #pragmas.
3443         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
3444         REGISTER_TARGET_PRAGMAS.
3446         * config/i386/t-i386: New file for x86 dependencies.
3447         (i386.o): Make dependencies mirror the include files used.
3448         (i386-c.o): New file, add dependencies.
3450         * config/i386/i386-protos.h (override_options): Add bool argument.
3451         (ix86_valid_option_attribute_tree): Add declaration.
3452         (ix86_target_macros): Ditto.
3453         (ix86_register_macros): Ditto.
3455         * config/i386/i386.c (ix86_tune_features): Move initialization of
3456         the target masks to initial_ix86_tune_features to allow functions
3457         to have different target options.  Make type unsigned char,
3458         instead of unsigned int.
3459         (initial_ix86_tune_features): New static vector to hold processor
3460         masks for the tune variables.
3461         (ix86_arch_features): Move initialization of the target masks to
3462         initial_ix86_arch_features to allow functions to have different
3463         target options.  Make type unsigned char, instead of unsigned int.
3464         (initial_ix86_arch_features): New static vector to hold processor
3465         masks for the arch variables.
3466         (enum ix86_function_specific_strings): New enum to describe the
3467         string options used for attribute((option(...))).
3468         (ix86_target_string): New function to return a string that
3469         describes the target options.
3470         (ix86_debug_options): New function to print the current options in
3471         the debugger.
3472         (ix86_function_specific_save): New function hook to save the
3473         function specific global variables in the cl_target_option structure.
3474         (ix86_function_specific_restore): New function hook to restore the
3475         function specific variables from the cl_target_option structure to
3476         the global variables.
3477         (ix86_function_specific_print): New function hook to print the
3478         target specific options in the cl_target_option structure.
3479         (ix86_valid_option_attribute_p): New function hook to validate
3480         attribute((option(...))) arguments.
3481         (ix86_valid_option_attribute_tree): New function that is common
3482         code between attribute((option(...))) and #pragma GCC option
3483         support that parses the options and returns a tree holding the options.
3484         (ix86_valid_option_attribute_inner_p): New helper function for
3485         ix86_valid_option_attribute_tree.
3486         (ix86_can_inline_p): New function hook to decide if one function
3487         can inline another on a target specific basis.
3488         (ix86_set_current_function); New function hook to switch target
3489         options if the user used attribute((option(...))) or #pragma GCC
3490         option.
3491         (ix86_tune_defaulted): Move to static file scope from
3492         override_options.
3493         (ix86_arch_specified): Ditto.
3494         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
3495         ix86_isa_flags.
3496         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
3497         (OPTION_MASK_ISA_ABM_SET): Ditto.
3498         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
3499         (OPTION_MASK_ISA_CX16_SET): Ditto.
3500         (OPTION_MASK_ISA_SAHF_SET): Ditto.
3501         (OPTION_MASK_ISA_AES_UNSET): Ditto.
3502         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
3503         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
3504         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
3505         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
3506         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
3507         (struct ptt): Move to static file scope from override_options.
3508         (processor_target_table): Ditto.
3509         (cpu_names): Ditto.
3510         (ix86_handle_option): Add support for options that are now isa options.
3511         (override_options): Add support for declaring functions that
3512         support different target options than were specified on the
3513         command line.  Move struct ptt, processor_target_table, cpu_names,
3514         ix86_tune_defaulted, ix86_arch_specified to static file scope.
3515         Add bool argument.  Fix up error messages so the appropriate error
3516         is given for either command line or attribute.
3517         (ix86_previous_fndecl): New static to remember previous function
3518         declaration to see if we need to change target options.
3519         (ix86_builtins_isa): New array to record the ISA of each builtin
3520         function.
3521         (def_builtin): Always create the builtin function, even if the
3522         current ISA doesn't support it.
3523         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
3524         tests for those builtins.
3525         (ix86_init_builtins): Remove TARGET_MMX test for calling
3526         ix86_init_mmx_sse_builtins.
3527         (ix86_expand_builtin): If the current ISA doesn't support a given
3528         builtin, signal an error.
3529         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
3530         (TARGET_SET_CURRENT_FUNCTION): Ditto.
3531         (TARGET_OPTION_SAVE): Ditto.
3532         (TARGET_OPTION_RESTORE): Ditto.
3533         (TARGET_OPTION_PRINT): Ditto.
3534         (TARGET_CAN_INLINE_P): Ditto.
3536 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
3538         * c-typeck.c (build_external_ref): Don't call assemble_external.
3539         * final.c (output_operand): Call assemble_external.
3541 2008-07-21  DJ Delorie  <dj@redhat.com>
3543         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
3544         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
3546 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3548         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
3549         original insn and splitter contents into ...
3550         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
3551         flag_unsafe_math_optimizations.  Add dummy scratch register.
3552         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
3553         !flag_unsafe_math_optimizations.  Returns number with next
3554         highest magnitude if this is still less or equal to the true
3555         quotient in magnitude.
3557 2008-07-21  Rafael Avila de Espindola  <espindola@google.com>
3559         * Makefile.in: Replace toplev.h with TOPLEV_H.
3560         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
3561         * c-lex.c (fe_file_change): Don't set in_system_header.
3562         * c-parser.c (c_token): Remove in_system_header.
3563         (c_lex_one_token): Don't set in_system_header.
3564         (c_parser_set_source_position_from_token): Don't set in_system_header.
3565         * diagnostic.c (diagnostic_report_diagnostic): Use location from
3566         diagnostic_info.
3567         (warning_at): New.
3568         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
3569         * flags.h (in_system_header): Remove.
3570         * function.c (saved_in_system_header): Remove.
3571         (push_cfun): Don't set in_system_header.
3572         (pop_cfun): Don't set in_system_header.
3573         (push_struct_function): Don't set in_system_header.
3574         * input.h (expanded_location): Add sysp.
3575         (in_system_header_at): New.
3576         (in_system_header): New.
3577         * toplev.c (in_system_header): Remove.
3578         * toplev.h: Include input.h
3579         (warning_at): New.
3580         * tree-cfg.c (execute_warn_function_return): Call warning_at.
3581         * tree-ssa.c (warn_uninit): Call warning_at.
3582         (warn_uninitialized_var): Update calls to warn_uninit.
3583         (warn_uninitialized_phi): Update calls to warn_uninit.
3584         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
3585         (expand_location): Initialize xloc.sysp.
3586         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
3587         (tree_decl_with_vis): Remove in_system_header_flag.
3589 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
3591         PR target/36822
3592         * recog.c (asm_operand_ok): Change the order of the extra
3593         memory constraint checks.
3595 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3597         PR tree-opt/36879
3598         * tree-switch-conversion.c (build_one_array): Call
3599         varpool_mark_needed_node and varpool_finalize_decl
3600         instead of assemble_variable.
3602 2008-07-19  Jan Hubicka  <jh@suse.cz>
3604         * cgraph.c (cgraph_add_new_function): Do early local passes.
3605         * tree-nrv.c (gate_pass_return_slot): New gate.
3606         (pass_nrv): Add the gate.
3607         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
3608         functions.
3609         (coalesce_ssa_name): Coalesce SSA names.
3610         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
3611         not optimizing so unused user vars remains visible.
3612         * common.opt (flag_tree_ter): Always enable by default.
3613         * tree-ssa-ter.c: Include flags.h
3614         (is_replaceable_p): Check that locations match; when aliasing is missing
3615         be conservative about loads.
3616         * tree-optimize.c (gate_init_datastructures): Remove.
3617         (pass_init_datastructures): New.
3618         * passes.c: Reorder passes so we always go into SSA.
3620 2008-07-19  Jan Hubicka  <jh@suse.cz>
3622         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
3623         * doc/invoke.texi (--combine): Likewise.
3624         (-finline-functions-called-once): Update levels when enabled.
3625         (-funit-at-a-time): Document new behaviour.
3626         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
3627         -fno-section-anchors when disabled explicitly.
3628         (inline params): They are not ignored now.
3629         (precompiled headers): Remove unit-at-a-time as being incompatible.
3630         * opts.c (decode_options): Handle unit-at-a-time as alias;
3631         imply -fno-section-anchors when toplevel reorder is disabled
3632         explicitly.
3633         * common.opt (ftoplevel-reorder): Set default value to 2.
3634         (funit-at-a-time): Set default value to 1.
3635         * config/rs6000/rs6000.c (optimization_options): Set section anchors
3636         to 2.
3638 2008-07-19  Jan Hubicka  <jh@suse.cz>
3640         * builtins.c (expand_builtin_int_roundingfn,
3641         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
3642         it is not useful.
3644 2008-07-19  Richard Guenther  <rguenther@suse.de>
3646         PR bootstrap/36864
3647         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
3648         * tree-ssa-sccvn.c (get_constant_value_id): New function.
3649         * tree-ssa-pre.c (get_expr_value_id): For newly created
3650         constant value-ids make sure to add the expression to its
3651         expression-set.
3653 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
3655         PR middle-end/36877
3656         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
3657         return value of the builtin is ignored.
3659 2008-07-19  Olivier Hainque  <hainque@adacore.com>
3661         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
3662         bits, a C conformant malloc implementation has to provide.
3663         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
3665 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
3667         PR target/36780
3668         PR target/36827
3669         * reload.c (find_reloads_subreg_address): Only reload address if
3670         reloaded == 0, not for reloaded != 1.
3672         Revert:
3673         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
3674         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
3675         (m32c_legitimate_address_p): Handle "++rii" addresses created by
3676         m32c_legitimize_reload_address.
3678         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3679         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
3680         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
3682 2008-07-19  Olivier Hainque  <hainque@adacore.com>
3684         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
3685         argument, saying whether nested array are to be collapsed
3686         into a single array type DIE with multiple subscripts.
3687         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
3688         issues, centralize the nested array types collapsing control and
3689         disable the transformation for Ada.
3691 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
3693         PR target/36786
3694         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
3695         x86_64_shift_adj.
3696         (x86_64_shift_adj_2): New expander.
3697         (x86_64_shift_adj_3): Ditto.
3698         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
3699         to split TImode operands.
3700         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
3701         (ix86_split_lshr): Ditto.
3703 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
3705         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
3706         and __CHAR32_TYPE__.
3707         * c-typeck.c (digest_init): Support char16_t and char32_t.
3708         (set_nonincremental_init_from_string): Idem.
3710 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
3712         PR middle-end/36859
3713         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
3714         PREFERRED_STACK_BOUNDARY.
3715         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
3717 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
3719         PR middle-end/36858
3720         * function.c (locate_and_pad_parm): Cap boundary earlier.
3722 2008-07-17  Julian Brown  <julian@codesourcery.com>
3724         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
3725         no-op for targets which don't use DLLs.
3727 2008-07-17  Martin Jambor  <mjambor@suse.cz>
3729         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
3730         that nodes are relevant by examining the node->analyzed flag.
3731         (ipcp_init_stage): Check which nodes are relevant, assert that the
3732         relevant ones are also required.
3733         (ipcp_propagate_stage): Check on the side arrays are properly
3734         allocated.
3735         (ipcp_print_all_jump_functions): Make sure not to touch any node
3736         that is not analyzed or an edge that does not have a corresponding
3737         entry in the on-the-side vectors.
3738         (ipcp_function_scale_print): Likewise.
3739         (ipcp_update_callgraph): Check that the node is relevant.
3740         (ipcp_insert_stage): Check that the node is relevant.  Check there is
3741         an info for every node and edge.
3742         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
3743         (ipa_print_all_tree_maps): Likewise and a new variable info.
3744         (ipa_print_all_params_modified): Likewise.
3745         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
3747 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
3749         PR target/25343
3750         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
3752 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
3754         PR rtl-optimization/36753
3755         * fwprop.c (use_killed_between): Don't shortcut
3756         single-definition global registers.
3758 2008-07-16  Jan Hubicka  <jh@suse.cz>
3760         * cgraph.h (varpool_empty_needed_queue): Declare.
3761         * cgraphunit.c (output_in_order): Mark all variables as needed;
3762         empty the queue.
3763         * varpool.c (varpool_assemble_node): Update debug queue.
3764         (varpool_assemble_pending_decls): Don't do it here.
3765         (varpool_empty_needed_queue):  New function.
3767 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3769         * recog.c (peephole2_optimize): Fix formatting.
3771 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3773         * c-pch.c (get_ident): Avoid C++ keywords.
3774         * combine-stack-adj.c (single_set_for_csa): Likewise.
3775         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
3776         output_asm_insn): Likewise.
3777         * reload.c (push_secondary_reload, find_reusable_reload,
3778         push_reload, combine_reloads, find_reloads,
3779         debug_reload_to_stream): Likewise.
3780         * reload.h (struct reload): Likewise.
3781         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
3782         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
3783         emit_output_reload_insns): Likewise.
3784         * targhooks.c (default_secondary_reload): Likewise.
3785         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
3787 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3789         * recog.c (validate_change_1, validate_change,
3790         validate_unshare_change, validate_replace_rtx_1, struct
3791         funny_match, constrain_operands, peephole2_optimize): Avoid C++
3792         keywords.
3793         * reload.c (push_secondary_reload, secondary_reload_class,
3794         scratch_reload_class, find_valid_class, find_reusable_reload,
3795         push_reload, find_dummy_reload, find_reloads_address_1,
3796         find_reloads_address_part, find_equiv_reg): Likewise.
3797         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
3798         choose_reload_regs): Likewise.
3799         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
3800         Likewise.
3801         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
3802         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
3803         * sched-rgn.c (concat_INSN_LIST): Likewise.
3804         * stor-layout.c (mode_for_size, mode_for_size_tree,
3805         smallest_mode_for_size): Likewise.
3807 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3809         * cfg.c (dump_reg_info): Avoid C++ keywords.
3810         * dwarf2asm.c (dw2_force_const_mem,
3811         dw2_asm_output_encoded_addr_rtx): Likewise.
3812         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
3813         * expmed.c (expand_shift): Likewise.
3814         * global.c (find_reg): Likewise.
3815         * graph.c (draw_edge): Likewise.
3816         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
3817         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
3818         widen_clz, widen_bswap, expand_parity, expand_unop,
3819         emit_cmp_and_jump_insn_1): Likewise.
3820         * postreload.c (reload_cse_simplify_operands): Likewise.
3821         * ra.h (add_neighbor): Likewise.
3822         * reg-stack.c (remove_regno_note, change_stack): Likewise.
3823         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
3824         record_reg_classes, copy_cost, record_address_regs,
3825         invalid_mode_change_p): Likewise.
3826         * regrename.c (regrename_optimize, scan_rtx_reg,
3827         dump_def_use_chain, find_oldest_value_reg,
3828         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
3830 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
3832         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
3833         MASK_POWERPC64 for power4 in previous commit.
3835 2008-07-16  Olivier Hainque  <hainque@adacore.com>
3837         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
3838         instead of bare conversion to cast const-ness away.
3840 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
3842         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
3843         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
3844         * config/xtensa/xtensa.c (xtensa_function_value): New function.
3845         (TARGET_FUNCTION_VALUE): Define.
3847 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
3849         * config/rs6000/rs6000.c (processor_target_table): Add
3850         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
3852 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
3854         PR target/36827
3855         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
3856         (m32c_legitimate_address_p): Handle "++rii" addresses created by
3857         m32c_legitimize_reload_address.
3859 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
3861         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
3862         DECL_IN_SYSTEM_HEADER in sync.
3864 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
3866         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
3867         * tree-ssa-pre.c (pre_expr_eq): Ditto
3868         (get_constant_for_value_id): Take a type as an argument.
3869         (fully_constant_expression): Pass in type.
3870         (find_or_generate_expression): Short circuit constant case.
3871         (create_expression_by_pieces): Remove special casing of
3872         pointer_plus.
3873         (do_regular_insertion): Short circuit constant case.
3874         (do_partial_partial_insertion): Ditto.
3876 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3878         PR target/36782
3879         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
3881 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
3883         * config/xtensa/libgcc-xtensa.ver: New file.
3884         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
3886 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3888         * df-problems.c (df_set_note): Avoid C++ keywords.
3889         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
3890         * dse.c (record_store, remove_useless_values): Likewise.
3891         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
3892         gen_reg_rtx_offset, operand_subword, change_address_1,
3893         change_address, adjust_address_1, offset_address,
3894         widen_memory_access, emit_copy_of_insn_after): Likewise.
3895         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
3896         * fwprop.c (should_replace_address, propagate_rtx_1,
3897         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
3898         Likewise.
3899         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
3900         gcse_emit_move_after, update_ld_motion_stores): Likewise.
3901         * lcm.c (compute_insert_delete, pre_edge_lcm,
3902         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
3903         * lower-subreg.c (resolve_reg_notes): Likewise.
3904         * mode-switching.c (optimize_mode_switching): Likewise.
3906 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3908         * bt-load.c (add_btr_def, migrate_btr_def,
3909         branch_target_load_optimize): Avoid C++ keywords.
3910         * caller-save.c (insert_restore, insert_save, insert_one_insn):
3911         Likewise.
3912         * combine.c (subst, simplify_set, make_extraction,
3913         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
3914         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
3915         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
3917 2008-07-15  Richard Guenther  <rguenther@suse.de>
3919         PR middle-end/36369
3920         * c-common.c (strict_aliasing_warning): Do not warn for
3921         TYPE_REF_CAN_ALIAS_ALL pointers.
3922         (c_common_get_alias_set): may_alias types are not special.
3923         * tree.c (build_pointer_type_for_mode): Look up the may_alias
3924         attribute and set can_ref_all accordingly.
3925         (build_reference_type_for_mode): Likewise.
3926         * doc/extend.texi (may_alias): Clarify.
3928 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3930         PR target/36780
3931         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
3932         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
3934 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3936         PR target/31568
3937         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
3938         gcc_assert, instead call output_operand_lossage.
3940 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
3942         * builtins.c (std_canonical_va_list): Treat structure based
3943         va_list types.
3945 2008-07-15  Ben Elliston  <bje@au.ibm.com>
3947         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
3949 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
3951         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
3952         is set.
3954 2008-07-14  Jan Hubicka  <jh@suse.cz>
3956         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
3957         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
3958         fix predicates and constraints.
3959         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
3960         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
3962 2008-07-14  Doug Kwan  <dougkwan@google.com>
3964         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
3965         additional option file arm/eabi.opt.
3966         * config/arm/eabi.h (File): New configuration file for EABI targets.
3967         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
3968         SUBSUBTARGET_EXTRA_SPECS.
3969         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
3970         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
3971         from STARTFILE_SPEC so that it can be referenced in an override.
3972         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
3973         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
3974         can be referenced in an override.
3975         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
3976         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
3977         so that it can be referenced in an override.
3978         (LINK_SPEC): Use BPABI_LINK_SPEC.
3979         * config/arm/eabi.opt (File): New.
3981 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3983         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
3984         (FIXED_VALUE_H): New variable.
3985         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
3986         input.h, fixed-value.h.
3987         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
3988         (BASIC_BLOCK_H): Use $(BITMAP_H).
3989         (FUNCTION_H): Add varray.h.
3990         (IPA_REFERENCE_H): Use $(BITMAP_H).
3991         (CGRAPH_H): Add $(BASIC_BLOCK_H).
3992         (DF_H): Use $(BITMAP_H).
3993         (GGC_H): Add statistics.h.
3994         (INSN_ADDR_H): New.
3995         (INSN_ATTR_H): Use it.
3996         (SYSTEM_H): Add safe-ctype.h, filenames.h.
3997         (INPUT_H): New.
3998         (SYMTAB_H): Add $(OBSTACK_H).
3999         (CPP_INTERNAL_H): New.
4000         (TREE_DUMP_H): Add tree-pass.h.
4001         (TREE_FLOW_H): Use $(BITMAP_H)
4002         (PRETTY_PRINT_H): Use $(INPUT_H).
4003         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
4004         (GSTAB_H): New.
4005         (BITMAP_H): New.
4006         (many object files): Fix lots of header dependencies throughout.
4008 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4010         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
4011         New macros.
4012         (s-gtyp-input): Use them to write tmp-gi.list.
4013         (echo_to_gi.list): Remove.
4015 2008-07-14  Richard Guenther  <rguenther@suse.de>
4017         * tree-ssa-sccvn.c (pre_info): Remove.
4018         (switch_to_PRE_table): Likewise.
4019         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
4020         (set_hashtable_value_ids): Do not create value-ids for the
4021         optimistic tables.
4022         (run_scc_vn): Remove double test.  Remove bogus special-case
4023         in value-number printing.
4024         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
4025         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
4026         SSA_NAME_VALUE.
4027         * tree-flow-inline.h (get_value_handle): Remove.
4028         * tree-flow.h (get_value_handle): Remove.
4030 2008-07-14  Martin Jambor  <mjambor@suse.cz>
4032         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
4033         in which we generate arithmetics is not a subrange.
4035 2008-07-14  Martin Jambor  <mjambor@suse.cz>
4037         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
4039 2008-07-14  Richard Guenther  <rguenther@suse.de>
4041         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
4043 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
4045         PR target/36745
4046         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
4047         reload for symbol refs moved to r0 with -fPIC.
4048         (legitimize_pic_address): Use the target register as temporary
4049         reg if possible.
4050         (emit_symbolic_move): Adjust comment.
4051         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
4052         New expanders.
4054 2008-07-14  Ben Elliston  <bje@au.ibm.com>
4056         * c-common.h (C_CPP_HASHNODE): New macro.
4057         * coretypes.h (struct cpp_token): Forward declare.
4058         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4059         the context-sensitive keyword method.
4060         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
4061         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
4062         expand_bool_pixel): New.
4063         (altivec_categorize_keyword): New function.
4064         (init_vector_keywords): New function.
4065         (rs6000_macro_to_expand): Likewise.
4066         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
4067         compiling an ISO C dialect.
4069 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
4071         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
4072         (create_expression_by_pieces): Fix typo.
4073         (do_regular_insertion): Use debug counter here too.
4075 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
4077         PR target/35492.
4078         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
4079         CONST_OK_FOR_LETTER_P.  All port-local users changed.
4080         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
4081         implement Kp matching power-of-two.
4082         (CONSTRAINT_LEN): Define to match.
4083         * config/cris/cris.md: Replace all use of constraint K with Kc.
4084         ("*btst*): Use Kp for operand 0 of last alternative.
4086 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4088         PR testsuite/36440
4089         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
4090         and quad formats.
4092 2008-07-13  Jan Hubicka  <jh@suse.cz>
4094         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
4095         to be mangled too.
4097 2008-07-13  Richard Guenther  <rguenther@suse.de>
4099         PR middle-end/36811
4100         * langhooks.c (lhd_print_error_function): Deal with recursive
4101         BLOCK trees.
4103 2008-07-12  Jan Hubicka  <jh@suse.cz>
4105         * cgraph.c (assembler_name_hash): New static var.
4106         (hash_node_by_assembler_name, eq_assembler_name): New.
4107         (cgraph_node_for_asm): Use hashtable.
4108         (cgraph_remove_node): Maintain hashtable.
4109         (change_decl_assembler_name): Sanity check that names are not changing
4110         after aliasing was processed.
4111         * cgraph.h (varpoon_node): Add next GGC marker.
4112         * tree.c (decl_assembler_name_equal): Constify.
4113         (decl_assembler_name_hash): New.
4114         * tree.h (decl_assembler_name_equal): Constify.
4115         (decl_assembler_name_hash): Update.
4117 2008-07-12  David Daney  <ddaney@avtrex.com>
4119         * config/mips/driver-native.c (host_detect_local_cpu): Handle
4120         sb1 and r5000 cpus.
4122 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4124         * doc/md.texi: Document the MIPS "v" constraint.
4125         * config/mips/mips.h (reg_class): Revert last change.
4126         (REG_CLASS_NAMES): Likewise.
4127         (REG_CLASS_CONTENTS): Likewise.
4128         * config/mips/mips.c (mips_regno_to_class): Likewise.
4129         * config/mips/constraints.md (v): Likewise, but add documentation.
4130         Add a comment to say that this constraint should not be used in
4131         gcc code.
4133 2008-07-11  DJ Delorie  <dj@redhat.com>
4135         * config/h8300/h8300.md (length): Fix branch offset limit.
4137 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
4139         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
4140         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
4141         (avr_hard_regno_scratch_ok): New function.
4142         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
4143         * config/avr/avr.md (all peepholes that request a scratch register):
4144         Remove avr_peep2_scratch_safe use.
4146 2008-07-11  Tom Tromey  <tromey@redhat.com>
4147             Ian Lance Taylor  <iant@google.com>
4149         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
4150         (struct c_common_resword): Define.
4151         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
4152         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
4153         (c_common_reswords, num_c_common_reswords): Declare.
4154         * c-common.c (c_common_reswords): New global const array.
4155         (num_c_common_reswords): New const int.
4156         * c-parser.c (struct resword, reswords): Don't define.
4157         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
4158         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
4159         than reswords.  If warning about C++ keywords, give them a special
4160         RID code.
4161         (c_lex_one_token): Warn about C++ keywords.  Call
4162         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
4163         (c_parser_external_declaration): Look for RID_xxx rather than
4164         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
4165         (c_parser_statement_after_labels): Likewise.
4166         (c_parser_objc_class_instance_variables): Likewise.
4167         (c_parser_objc_class_declaration): Likewise.
4168         (c_parser_objc_try_catch_statement): Likewise.
4169         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
4170         (declspecs_add_type): Likewise.
4172 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
4174         * ggc-page.c (alloc_page):
4175         Substituting xmalloc, xcalloc with
4176         XNEWVEC and XCNEWVAR macros which add the
4177         needed casts.
4179 2008-07-11  Richard Guenther  <rguenther@suse.de>
4181         PR tree-optimization/36765
4182         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
4183         aliases from HEAP vars to SMTs.
4185 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4187         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
4188         * configure.ac (loose_warn): Move -Wc++-compat from here...
4189         (strict_warn): ...to here.
4190         * configure: Regenerate.
4192 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
4194         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
4195         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
4196         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
4197         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
4198         excluding more specific h8300-*-* and sh-*-* targets.
4200 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
4202         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
4203         (eliminate): Ditto.
4204         (execute_pre): Call loop_optimizer_finalize in early exit.
4206 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
4208         PR middle-end/36790
4209         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
4210         uids in the bitmap, not just VAR_DECL uids.
4212         PR rtl-optimization/36419
4213         * combine-stack-adj.c (adjust_frame_related_expr): New function.
4214         (combine_stack_adjustments_for_block): Call it if needed.  Delete
4215         correct insn.
4216         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
4217         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
4218         prologue sp adjustment.
4220 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
4222         PR other/28322
4223         * opts.c (print_ignored_options): Report postponed diagnostics for
4224         unknown -Wno-* options as warnings, not errors.
4225         (postpone_unknown_option_error): Renamed to...
4226         (postpone_unknown_option_warning): ... this.
4228 2008-07-09  Doug Kwan  <dougkwan@google.com>
4230         Revert:
4231         2008-07-08  Doug Kwan  <dougkwan@google.com>
4233         * config/arm/arm.opt (mandroid): New option.
4234         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
4235         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
4236         (CC1_SPEC): Same.
4237         (CC1PLUS_SPEC): Same.
4238         (LIB_SPEC): Same.
4239         (STARTFILE_SPEC): Same.
4240         (ENDFILE_SPEC): Same.
4241         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
4242         used.
4244 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
4246         PR target/35802
4247         * config/mips/mips.h (reg_class): Remove V1_REG.
4248         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
4249         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
4250         instead of V1_REGS.
4251         (mips_get_tp): New function.
4252         (mips_legitimize_tls_address): Use it.
4253         * config/mips/constraints.md (v): Delete.
4254         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
4255         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
4256         After reload, split into a move and ...
4257         (*tls_get_tp_<mode>_split): ...this new instruction.
4259 2008-07-09  David Daney  <ddaney@avtrex.com>
4261         * config/mips/driver-native.c: Include coretypes.h and tm.h.
4263 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
4265         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
4266         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
4267         Add c argument.
4268         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
4269         htab_delete should be called.  Don't free c.
4270         (lookup_tmp_var): Create temp_htab lazily.
4271         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
4272         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
4273         callers.
4274         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
4275         lower_omp_ordered, lower_omp_critical, lower_omp_for,
4276         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
4277         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
4278         * tree-sra.c (generate_element_init): Likewise.
4279         * tree-mudflap.c (execute_mudflap_function_ops,
4280         execute_mudflap_function_decls): Likewise.
4281         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
4282         * tree-gimple.h (struct gimplify_ctx): New type.
4283         (push_gimplify_context): Adjust prototype.
4285 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
4287         * tree-ssa-pre.c (phi_translate_1): Update placement of
4288         add_to_value calls.
4290 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
4292         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
4293         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
4294         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
4295         * targhooks.c (default_hard_regno_scratch_ok): New function.
4296         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
4297         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
4298         * recog.c:  Include "target.h".
4299         (peep2_find_free_register): Add check for global regs. Add target
4300         specific check.
4301         * Makefile.in (recog.o): Depend on target.h.
4303 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
4305         * config/sh/sh.c (sh_canonical_va_list_type): New.
4306         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
4308 2008-07-09  Raksit Ashok <raksit@google.com>
4310         * doc/invoke.texi (Option Summary): Mention new option
4311         -Wdisallowed-function-list=...
4312         (Warning Options): Document -Wdisallowed-function-list=...
4313         * common.opt (Wdisallowed-function-list=): New flag.
4314         * flags.h (warn_disallowed_functions): External definition of new
4315         boolean warning flag.
4316         (warn_if_disallowed_function_p): Declare new function.
4317         * opts.c (warning_disallowed_functions): New static variable.
4318         (warn_disallowed_functions): New boolean warning flag.
4319         (warn_if_disallowed_function_p): New function.
4320         (add_comma_separated_to_vector): Rename
4321         add_instrument_functions_exclude_list to this.
4322         (common_handle_option): Handle new option. Rename calls to
4323         add_instrument_functions_exclude_list into calls to
4324         add_comma_separated_to_vector.
4325         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
4326         based on flag warn_disallowed_functions.
4328 2008-07-09  Christian Bruel  <christian.bruel@st.com>
4330         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
4331          instead of get_attr_length.
4333 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4335         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
4336         keywords.
4337         * genemit.c (gen_insn): Likewise.
4338         * gengtype.c (note_def_vec): Likewise.
4339         * gengtype.h (note_def_vec): Likewise.
4340         * genoutput.c (struct data, output_insn_data, process_template,
4341         gen_expand, gen_split, note_constraint): Likewise.
4342         * genrecog.c (new_decision, add_to_sequence, factor_tests,
4343         make_insn_sequence): Likewise.
4344         * gensupport.c (record_insn_name): Likewise.
4346 2008-07-08  Doug Kwan  <dougkwan@google.com>
4348         * config/arm/arm.opt (mandroid): New option.
4349         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
4350         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
4351         (CC1_SPEC): Same.
4352         (CC1PLUS_SPEC): Same.
4353         (LIB_SPEC): Same.
4354         (STARTFILE_SPEC): Same.
4355         (ENDFILE_SPEC): Same.
4356         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
4357         used.
4359 2008-07-08  Raksit Ashok  <raksit@google.com>
4361         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
4362         (set_storage_via_setmem): Fix expected_align parameter.
4363         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
4364         missing from the list.
4365         * doc/md.texi (movmem): Explicitly state that expected alignment is
4366         to be expressed in bytes.
4367         (setmem): Explicitly state that expected alignment is to be expressed
4368         in bytes.
4370 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
4372         * reload.c (find_reloads_subreg_address): Do not require validity
4373         of address in original mode before reloading address.
4375 2008-07-07  Tianwei Sheng  <tianweis@google.com>
4377         * df-core.c (df_remove_problem): Adjust the access to avoid out of
4378         bounds array access.
4380 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
4382         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
4384 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
4386         Fix PR tree-optimization/23455
4387         Fix PR tree-optimization/35286
4388         Fix PR tree-optimization/35287
4389         * Makefile.in (OBJS-common): Remove tree-vn.o.
4390         (tree-vn.o): Remove.
4391         * dbgcnt.def: Add treepre_insert debug counter.
4392         * gcc/tree-flow.h (add_to_value): Updated for other changes.
4393         (debug_value_expressions): Ditto.
4394         (print_value_expressions): Ditto.
4395         * tree-pretty-print.c (dump_generic_node): Updated for
4396         VALUE_HANDLE removal.
4397         * tree-ssa-dom.c (record_equality): Ditto.
4398         (cprop_operand): Ditto.
4399         (lookup_avail_expr): Ditto.
4400         * tree-ssa-threadedge.c
4401         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
4402         (simplify_control_stmt_condition): Ditto.
4403         * tree.c (tree_code_size): Ditto.
4404         (tree_node_structure): Ditto.
4405         (iterative_hash_expr): Ditto.
4406         * tree.def: Ditto.
4407         * tree.h (VALUE_HANDLE_ID): Ditto.
4408         (VALUE_HANDLE_EXPR_SET): Ditto.
4409         (struct tree_value_handle): Ditto.
4410         (union tree_node): Ditto.
4411         * treestruct.def: Ditto.
4412         * tree-vn.c: Removed.
4413         * tree-ssa-pre.c: Rewritten entirely.
4414         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
4415         (constant_value_ids): Ditto.
4416         (vn_nary_op_t): Moved to header.
4417         (vn_phi_t): Ditto.
4418         (vn_reference_op_t): Ditto
4419         (vn_reference_t): Ditto.
4420         (next_value_id): New variable.
4421         (VN_INFO): Add an assert.
4422         (vn_constant_eq): New function.
4423         (vn_constant_hash): Ditto.
4424         (get_or_alloc_constant_value_id): Ditto.
4425         (value_id_constant_p): Ditto.
4426         (vn_reference_compute_hash): De-staticify.
4427         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
4428         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
4429         (valueize_refs): Update opcode if it changes from ssa name to constant.
4430         (vn_reference_lookup_1): Add new argument.
4431         (vn_reference_lookup):  Ditto.
4432         (vn_reference_lookup_pieces): New function.
4433         (vn_reference_insert): Add return type. Modify to deal with value ids.
4434         (vn_reference_insert_pieces):  New function.
4435         (vn_nary_op_compute_hash): De-staticify.
4436         (vn_nary_op_eq): Ditto.
4437         (vn_nary_op_lookup_pieces): New function.
4438         (vn_nary_op_lookup): Add new argument.
4439         (vn_nary_op_insert_pieces): New function.
4440         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
4441         (vn_phi_insert): Ditto.
4442         (visit_unary_op): Update for callee changes.
4443         (visit_binary_op): Ditto.
4444         (visit_reference_op_load): Ditto.
4445         (visit_reference_op_store): Ditto.
4446         (init_scc_vn): Init next_value_id, constant_to_value_id and
4447         constant_value_ids.
4448         (free_scc_vn): Free them.
4449         (set_hashtable_value_ids): New function.
4450         (run_scc_vn): Use it.
4451         (get_max_value_id): New function.
4452         (get_next_value_id): Ditto.
4453         (expressions_equal_p): Moved from tree-vn.c
4454         (sort_vuses): Ditto.
4455         (sort_vuses_heap): Ditto.
4456         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
4457         above).
4458         * tree.c (iterative_hash_hashval_t): Made non-static
4459         * tree.h (iterative_hash_hashval_t): Declare it.
4461 2008-07-08  Martin Jambor  <mjambor@suse.cz>
4463         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
4464         instead of ipa_create_node_params.
4465         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
4466         ipa_check_create_edge_args, free them with
4467         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
4469         * ipa-prop.c: Include flags.h and tree-inline.h.
4470         (ipa_node_params_vector): New variable.
4471         (ipa_edge_args_vector): New variable.
4472         (edge_removal_hook_holder): New variable.
4473         (node_removal_hook_holder): New variable.
4474         (edge_duplication_hook_holder): New variable.
4475         (node_duplication_hook_holder): New variable.
4476         (ipa_detect_param_modifications): Check for presence of modified flags.
4477         (ipa_compute_jump_functions): Check for presence of jump functions.
4478         (ipa_free_edge_args_substructures): New function.
4479         (ipa_create_node_params): Removed.
4480         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
4481         (ipa_free_node_params_substructures): New function.
4482         (ipa_free_all_node_params): Changed to deallocate the on-the-side
4483         vector.
4484         (ipa_edge_removal_hook): New function.
4485         (ipa_node_removal_hook): New function.
4486         (duplicate_array): New function.
4487         (ipa_edge_duplication_hook): New function.
4488         (ipa_node_duplication_hook): New function.
4489         (ipa_register_cgraph_hooks): New function.
4490         (ipa_unregister_cgraph_hooks): New function.
4491         (free_all_ipa_structures_after_ipa_cp): New function.
4493         * ipa-prop.h: Include vec.h.
4494         (ipa_node_params_t): New typedef with vector types for it.
4495         (ipa_edge_args_t):  New typedef with vector types for it.
4496         (IPA_NODE_REF): Changed to access an on-the-side vector.
4497         (IPA_EDGE_REF): Changed to access an on-the-side vector.
4498         (ipa_check_create_node_params): New function.
4499         (ipa_check_create_edge_args): New function.
4501         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
4502         all users.
4504 2008-07-07  Tom Tromey  <tromey@redhat.com>
4506         * configure, config.in: Rebuilt.
4507         * configure.ac: Don't check for scandir or alphasort.
4509 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
4511         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
4512         types immediately after creating them.
4514 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
4516         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
4518 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
4520         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
4521         dump_constraint_graph.
4522         (dump_constraint_edge): New function.
4523         (dump_constraint_graph): New function.
4524         (debug_constraint_graph): New function.
4525         (dump_constraint): Removed useless comparison.
4526         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
4527         (dump_constraint_graph): Declare.
4528         (debug_constraint_graph): Declare.
4529         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
4531 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
4533         * config/i386/i386.c (is_va_list_char_pointer): New.
4534         (ix86_va_start): Replace compare with ms_va_list_type_node
4535         by is_va_list_char_pointer.
4536         (ix86_gimplify_va_arg): Likewise.
4538 2008-07-07  Martin Jambor  <mjambor@suse.cz>
4540         * cgraph.c (cgraph_edge_max_uid): New variable.
4541         (struct cgraph_edge_hook_list): New type.
4542         (struct cgraph_node_hook_list): New type.
4543         (struct cgraph_2edge_hook_list): New type.
4544         (struct cgraph_2node_hook_list): New type.
4545         (first_cgraph_edge_removal_hook): New variable.
4546         (first_cgraph_node_removal_hook): New variable.
4547         (first_cgraph_edge_duplicated_hook): New variable.
4548         (first_cgraph_node_duplicated_hook): New variable.
4549         (cgraph_add_edge_removal_hook): New function.
4550         (cgraph_remove_edge_removal_hook): New function.
4551         (cgraph_call_edge_removal_hooks):  New function.
4552         (cgraph_add_node_removal_hook):  New function.
4553         (cgraph_remove_node_removal_hook):  New function.
4554         (cgraph_call_node_removal_hooks):  New function.
4555         (cgraph_add_edge_duplication_hook):  New function.
4556         (cgraph_remove_edge_duplication_hook):  New function.
4557         (cgraph_call_edge_duplication_hooks):  New function.
4558         (cgraph_add_node_duplication_hook):  New function.
4559         (cgraph_remove_node_duplication_hook):  New function.
4560         (cgraph_call_node_duplication_hooks):  New function.
4561         (cgraph_create_edge): Assign to edge uid.
4562         (cgraph_remove_edge): Call edge removal hooks.
4563         (cgraph_node_remove_callees): Call edge removal hooks.
4564         (cgraph_node_remove_callers): Call edge removal hooks.
4565         (cgraph_remove_node): Call node removal hooks.
4566         (cgraph_clone_edge): Call edge duplication hooks.
4567         (cgraph_clone_node): Call node duplication hooks.
4569         * cgraph.h (cgraph_edge): New field uid.
4570         (cgraph_edge_hook): New type.
4571         (cgraph_node_hook): New type.
4572         (cgraph_2edge_hook): New type.
4573         (cgraph_2node_hook): New type.
4575 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
4577         * config.in: Regenerate.
4579 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
4581         * gcc.c (print_sysroot): New.
4582         (option_map, display_help, process_command): Handle the
4583         -print-sysroot option.
4584         (main): Print the sysroot if requested.
4585         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
4587 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4589         PR target/34780
4590         * unwind-pe.h (size_of_encoded_value): add attribute unused.
4592 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
4594         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
4595         (assign_parm_setup_block_p): Also check mode of entry_parm.
4597 2008-07-07  Richard Guenther  <rguenther@suse.de>
4599         * tree-ssa-structalias.h (set_used_smts): Remove.
4600         * tree-ssa-structalias.c (used_smts): Likewise.
4601         (set_used_smts): Likewise.
4602         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
4603         call to set_used_smts.
4605 2008-07-07  Richard Guenther  <rguenther@suse.de>
4607         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
4608         (new_var_info): Set it to false.
4609         (solution_set_add): Correctly handle pointers outside a var and
4610         inside a field.
4611         (type_safe): Treat variables with is_full_var properly.
4612         (do_sd_constraint): Likewise.
4613         (do_ds_constraint): Likewise.
4614         (process_constraint): Remove zeroing offset for !use_field_sensitive.
4615         (get_constraint_for_ptr_offset): New function.
4616         (get_constraint_for_component_ref): For addresses at least include
4617         the last field of the variable.  Handle is_full_vars properly.
4618         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
4619         (handle_ptr_arith): Remove.
4620         (find_func_aliases): Simplify assignment handling.
4621         (create_function_info_for): For parameter and result varinfos set
4622         is_full_var flag.
4623         (create_variable_info_for): Set is_full_var flag whenever we
4624         just created a single varinfo for a decl.
4625         (init_alias_vars): Initialize use_field_sensitive from
4626         max-fields-for-field-sensitive parameter.
4628 2008-07-07  Richard Guenther  <rguenther@suse.de>
4630         PR tree-optimization/36713
4631         * tree-flow-inline.h (is_call_used): New function.
4632         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
4633         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
4634         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
4636 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
4638         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
4640 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
4642         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
4644 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
4645             Nathan Sidwell  <nathan@codesourcery.com>
4647         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
4648         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
4649         tmake_file.
4650         * config/m68k/t-linux: New.
4651         * doc/install.texi: Document m68k-*-linux is now multilibbed by
4652         default.
4654 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
4656         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
4657         * config/m68k/m68k-devices.def: Remove multilibs that only differ
4658         by MAC/EMAC.
4660 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4662         * gcc.c (execute): Fix -Wc++-compat warning.
4664 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
4666         PR target/36720
4667         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
4668         constant for little endian.
4670 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
4672         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
4673         mips_base_mips16 instead of TARGET_MIPS16.
4674         (mips_base_mips16): Declare.
4675         * config/mips/mips.c (mips_base_mips16): Make global.
4676         (was_mips16_p): Remove GTY marker.
4677         (was_mips16_pch_p): New variable.
4678         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
4679         (mips_override_options): Force to non-MIPS16 mode initially.
4680         Do not complain about MIPS16 PIC incompatibilities here.
4681         Only allow -mgpopt if -mexplicit-relocs is in force for
4682         non-MIPS16 code.
4684 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
4686         * configure.ac: Check for caddr_t, define to char * if not defined.
4687         * configure: Regenerate.
4688         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
4689         (mmap_gt_pch_use_address): Likewise.
4690         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
4692 2008-07-06  Richard Guenther  <rguenther@suse.de>
4694         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
4695         (new_var_info): Deal with it.
4696         (solution_set_add): Likewise.
4697         (bitpos_of_field): Make signed, fix.
4698         (struct fieldoff): Remove type and decl fields.  Make size field
4699         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
4700         flags.
4701         (fieldoff_compare): Deal with it.
4702         (push_fields_onto_fieldstack): Remove has_union argument, glob
4703         adjacent non-pointer fields together.
4704         (create_function_info_for): Do not set has_union.
4705         (create_variable_info_for): Simplify.
4707 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
4709         * config.gcc (extra_headers): Add cross-stdarg.h for target
4710         x86_64-*-* and i?86-*-*.
4711         * config/i386/cross-stdarg.h: New.
4712         * builtins.c (std_fn_abi_va_list): New.
4713         (std_canonical_va_list_type): New.
4714         (stabilize_va_list): Replace va_list_type_node use by
4715         mtarget.canonical_va_list_type.
4716         (gimplify_va_arg_expr): Likewise.
4717         (expand_builtin_va_copy): Replace va_list_type_node use by
4718         mtarget.fn_abi_va_list.
4719         * tree-sra.c (is_va_list_type): New helper.
4720         (decl_can_be_decomposed_p): Replace
4721         va_list_type_node use by is_va_list_type.
4722         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
4723         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4724         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
4725         * config/i386/i386-protos.h (ix86_get_valist_type): New.
4726         (ix86_enum_va_list): New.
4727         * config/i386/i386.c (sysv_va_list_type_node): New.
4728         (ms_va_list_type_node): New.
4729         (ix86_function_type_abi): Remove sorry.
4730         (ix86_build_builtin_va_list_abi): New.
4731         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
4732         for 64-bit targets.
4733         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
4734         (ix86_init_builtins_va_builtins_abi): New.
4735         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
4736         for 64-bit targets.
4737         (ix86_handle_abi_attribute): New.
4738         (attribute_spec): Add sysv_abi and ms_abi.
4739         (ix86_fn_abi_va_list): New.
4740         (ix86_canonical_va_list_type): New.
4741         (ix86_enum_va_list): New.
4742         (TARGET_FN_ABI_VA_LIST): New.
4743         (TARGET_CANONICAL_VA_LIST_TYPE): New.
4744         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
4745         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
4746         (TARGET_CANONICAL_VA_LIST_TYPE): New.
4747         (TARGET_ENUM_VA_LIST): New.
4748         * expr.h (std_fn_abi_va_list): New.
4749         (std_canonical_va_list_type): New.
4750         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
4751         (TARGET_CANONICAL_VA_LIST_TYPE): New.
4752         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
4753         TARGET_CANONICAL_VA_LIST_TYPE.
4754         * target.h (struct gcc_target): Add fn_abi_va_list hook
4755         and canonical_va_list_type hook.
4757 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4759         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
4760         integral and pointer types.
4762 2008-07-04  Roger Sayle  <roger@eyesopen.com>
4764         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
4765         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
4767 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
4769         PR target/36684
4770         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
4772 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
4774         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
4775         build_gimple_modify_stmt.
4776         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
4777         gimple operand.  Use fold_build* instead of build*.
4779 2008-07-04  Richard Guenther  <rguenther@suse.de>
4781         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
4782         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
4783         properly to compute the reachability set if we do field-sensitive PTA.
4784         * invoke.texi (max-fields-for-field-sensitive): Document default.
4785         * opts.c (decode_options): Set max-fields-for-field-sensitive to
4786         100 for optimize >= 2.
4788 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4790         * ggc-zone.c (lookup_page_table_if_allocated,
4791         set_page_table_entry, zone_find_object_size, alloc_small_page,
4792         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
4793         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
4794         -Wc++-compat and/or -Wcast-qual warnings.
4796 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
4798         PR target/36634
4799         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
4800         pic_offset_table_rtx to be marked as used here.
4801         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
4802         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
4803         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
4804         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
4805         !TARGET_SECURE_PLT.
4807 2008-07-15  Vladimir Makarov  <vmakarov@redhat.com>
4809         * caller-save.c (calculate_local_save_info): Clear save_in,
4810         restore_out, free_in.
4812 2008-07-14  Vladimir Makarov  <vmakarov@redhat.com>
4814         * reload.h (struct insn): Add comment for live_throughout.
4816         * global.c (pseudo_for_reload_consideration_p): New function.
4817         (build_insn_chain): Use it.
4819 2008-07-14  Vladimir Makarov  <vmakarov@redhat.com>
4821         * ira-conflicts.c (propagate_modified_regnos): Move to
4822         ira-build.c.
4823         (ira_build_conflicts): Don't call propagate_modified_regnos.
4825         * ira-int.h (ira_allocno): Remove calls_crossed_start.
4826         (ALLOCNO_CALLS_CROSSED_START, ira_regno_calls,
4827         ira_add_regno_call): Remove.
4828         (ira_allocate_and_accumulate_costs): New function.
4830         * ira-lives.c (process_bb_node_lives): Don't call
4831         ira_add_regno_call.  Do't use ALLOCNO_CALLS_CROSSED_START.
4833         * ira-build.c (more_one_region_p): New function.
4834         (ira_regno_calls, regno_calls_num, initiate_calls, expand_calls,
4835         compress_calls, ira_add_regno_call, finish_calls): Remove.
4836         (ira_create_allocno, propagate_info_to_cap): Don't set up
4837         ALLOCNO_CALLS_CROSSED_START.
4838         (propagate_modified_regnos): Move from ira-conflicts.c.
4839         (create_allocnos): Call propagate_modified_regnos.
4840         (merge_ranges, change_allocno_in_range_list): Move before
4841         low_pressure_loop_node_p.
4842         (low_pressure_loop_node_p, loop_node_to_be_removed_p,
4843         removed_loop_vec, children_vec,
4844         remove_uneccesary_loop_nodes_from_loop_tree,
4845         remove_unnecessary_allocnos, remove_unnecessary_regions): New.
4846         (ira_flattening): Don't process allocno calls.
4847         (ira_build): Don't call initiate_calls and finish_calls.  Call
4848         remove_unnecessary_regions.  Use more_one_region_p.
4850         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Split
4851         SPEC_OR_GEN_REGS onto GENERAL_REGS and SPECIAL_REGS.
4852         
4853 2008-07-08  Vladimir Makarov  <vmakarov@redhat.com>
4855         * ira-build.c (ira_flattening): Rename
4856         new_allocnos_p to new_pseudos_p.  Remove renamed_p.  Use
4857         new_pseudos_p instead of renamed_p.
4859         * ira-lives.c (max_point): Fix a typo in the comment.
4861         * ira-int.h (max_point): Ditto.
4863 2008-07-07  Vladimir Makarov  <vmakarov@redhat.com>
4865         * ira-color.c, ira-conflics.c, ira-lives.c, ira-emit.c,
4866         ira-build.c (IRA_ALLOCNO_TOTAL_CONFLICT_HARD_REGS,
4867         IRA_ALLOCNO_TOTAL_NO_STACK_REG_P): Rename to
4868         IRA_ALLOCNO_TOTAL_CONFLICT_HARD_REGS,
4869         IRA_ALLOCNO_TOTAL_NO_STACK_REG_P.
4871         * ira-int.h: Ditto.  Fix comment for max_point.
4873         * reload1.c (reload): Add comment for ira_sort_insn_chain.
4874         
4875 2008-07-07  Vladimir Makarov  <vmakarov@redhat.com>
4876         PR target/36663
4878         * caller-saves.c (free_con_fun_n): Use liveness info.
4880 2008-07-07  Vladimir Makarov  <vmakarov@redhat.com>
4881         PR target/36673
4883         * caller-saves.c (restore_con_fun_n, save_con_fun_n): Clear the
4884         result if mode or pseudo is different.
4886 2008-07-07  Vladimir Makarov  <vmakarov@redhat.com>
4887         PR target/36672
4888         
4889         * ira.c (chain_insn_order): New variable.
4890         (chain_freq_compare, chain_bb_compare): Use it.
4891         (ira_sort_insn_chain): Set it up.
4893 2008-07-03  Vladimir Makarov  <vmakarov@redhat.com>
4895         * doc/invoke.texi (-fira-ipra): Remove.
4896         
4897         * regrename.c (copyprop_hardreg_forward_1): Remove
4898         get_call_invalidated_used_regs.
4900         * postreload-gcse.c (record_opr_changes): Ditto.
4902         * postreload.c (reload_combine, reload_cse_move2add): Ditto.
4904         * rtlanal.c (reg_set_between_p): Ditto.
4906         * gcse.c (compute_hash_table_work, compute_store_table): Ditto.
4908         * cselib.c (cselib_process_insn): Ditto.
4910         * loop-iv.c (simplify_using_assignment): Ditto.
4911         
4912         * sched-deps.c (sched_analyze): Ditto.
4913         
4914         * combine.c (record_dead_and_set_regs): Ditto.
4916         * resource.c (mark_set_resources, mark_target_live_regs): Ditto.
4918         * var-tracking.c (compute_bb_dataflow, emit_notes_in_bb): Ditto.
4920         * reload1.c (reload): Ditto.
4921         
4922         * caller-save.c (setup_save_areas, calculate_local_save_info,
4923         save_call_clobbered_regs): Ditto.
4925         * cse.c (invalidate_for_call): Remove parameter.  Remove
4926         get_call_invalidated_used_regs.
4927         (cse_insn): Don't pass insn to invalidate_for_call.
4929         * ira-lives.c (process_bb_node_lives): Remove updating
4930         call_used_regs.
4931         
4932         * function.c (cgraph.h): Remove #include.
4933         (get_call, get_call_invalidated_used_regs): Remove.
4934         
4935         * final.c (update_regs_ever_live): Remove.
4936         (rest_of_handle_final): Remove updating call_used_regs.
4938         * toplev.h (flag_ira_ipra): Remove.
4939         
4940         * common.opt (fira-ipra): Remove.
4942         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Remove
4943         coder for IPRA.
4944         
4945         * ira-color.c (ira_collect_pseudo_call_clobbered_regs): Remove.
4947         * ira.h (ira_collect_pseudo_call_clobbered_regs): Ditto.
4948         
4949         * function.h (hard-reg-set.h): Remove.
4950         (struct emit_status): Remove call_used_regs.
4951         (get_call_invalidated_used_regs): Remove.
4952         
4953         * Makefile.in (FUNCTION_H): Remove hard-reg-set.h.
4955         * gengtype.c (main): Remove HARD_REG_SET.
4957         * cgraph.c (cgraph_create_node): Remove setting
4958         function_used_regs.
4960         * cgraph.h (struct cgraph_node): Remove function_used_regs.
4962         * ira-build.c (ira_build): Remove resetting call_used_regs.
4963         
4964 2008-07-03  Vladimir Makarov  <vmakarov@redhat.com>
4966         * ira.h, ira-int.h, ira-conflicts.c, ira-color.c, ira-lives.c,
4967         ira-emit.c, ira-build.c, ira.c, ira-costs.c: Add prefix ira_ to
4968         external variables, functions, common types, and macros.
4970         * toplev.c (init_ira_once, init_ira, finish_ira_once): Rename to
4971         ira_init_once, ira_init, ira_finish_once.
4973         * caller-save.c: Add prefix ira_ to
4974         collect_pseudo_call_clobbered_regs.
4976         * reload1.c: Add prefix ira_ to sort_insn_chain,
4977         mark_memory_move_deletion, better_spill_reload_regno_p,
4978         reuse_stack_slot, mark_new_stack_slot, mark_allocation_change,
4979         reassign_pseudos, mark_allocation_change.
4981 2008-07-03  Vladimir Makarov  <vmakarov@redhat.com>
4983         * ira-color.c (reassign_conflict_allocnos): Check nrefs first.
4985         * ira.c (ira.c): Exclude unprofitable allocno from reassigning.
4987         * reload1.c (find_reg): Move dump file check from
4988         EXECUTE_IF_SET_IN_REG_SET.
4990 2008-06-26  Vladimir Makarov  <vmakarov@redhat.com>
4992         * caller-save.c (make_global_save_analysis): Add entry and exit
4993         blocks to all_blocks.
4994         (save_call_clobbered_regs): Initialize bb_info for entry/exit
4995         blocks.
4996         
4997 2008-06-26  Kenneth Zadeck <zadeck@naturalbridge.com>
4999         * ira-conflicts.c ira-color.c ira-lives.c ira-emit.c ira-build.c
5000         ira.c ira-costs.c : Fix comments.
5002 2008-06-11  Vladimir Makarov  <vmakarov@redhat.com>
5004         * caller-save.c (restore_con_fun_n, save_con_fun_n): Use loop
5005         mentioned_regs instead of clearing all result.
5007 2008-06-11  Vladimir Makarov  <vmakarov@redhat.com>
5009         * doc/tm.texi (IRA_HARD_REGNO_ADD_COST_MULTIPLIER,
5010         IRA_COVER_CLASSES): Fix macro descriptions.
5011         
5012         * doc/invoke.texi (fira): Fix the description.
5013         
5014         * flags.h (ira_algorithm): Fix formatting.
5015         
5016         * ira-conflicts.c: Remove all forward prototypes of static
5017         functions.  Use type bool and true and false for boolean values.
5018         Change father to parent.
5019         (get_dup_num): Remove equiv_const.  More comments.
5020         (process_regs_for_copy, process_reg_shuffles): New functions.
5021         (add_insn_allocno_copies): Use them.
5023         * ira-int.h: Use type bool and true and false for boolean values.
5024         Change father to parent.
5026         * ira-color.c: Remove all forward prototypes of static
5027         functions.  Use type bool and true and false for boolean values.
5028         Change father to parent.
5030         * ira-lives.c: Remove all forward prototypes of static
5031         functions.  Use type bool and true and false for boolean values.
5032         Change father to parent.
5034         * ira-emit.c: Ditto.
5036         * ira.c: Ditto.
5038         * ira-costs.c: Remove all forward prototypes of static
5039         functions.  Use type bool and true and false for boolean values.
5040         Change father to parent.
5043         * ira-build.c: Remove all forward prototypes of static functions
5044         except for find_allocno_copy.  Use type bool and true and false
5045         for boolean values.  Change father to parent.
5047         * ira.h: Use type bool for boolean values.
5049         * reload1.c (reload): Pass false instead of FALSE.
5050         
5051 2008-06-10  Vladimir Makarov  <vmakarov@redhat.com>
5052         PR target/36450
5053         * caller-save.c (insert_restore, insert_save):  Don't require
5054         alignment more than PREFERRED_STACK_BOUNDARY in asserts.
5056 2008-06-10  Vladimir Makarov  <vmakarov@redhat.com>
5058         * ira-int.h (allocno_copy):  Change comments.
5059         
5060         * ira-conflicts.c (build_conflict_bit_table): Use cast in printf
5061         for %ld.
5063 2008-06-10  Vladimir Makarov  <vmakarov@redhat.com>
5065         * common.opt (fira-move-spills): Remove.
5067         * caller-save.c: Add more comments.
5068         (save_call_clobbered_regs): Remove flag_ira_move_spills.
5070         * doc/invoke.texi (-fno-ira-move-spills): Remove.
5072 2008-06-06  Vladimir Makarov  <vmakarov@redhat.com>
5074         * ira-build.c (ira_flattening): Check first info propagation.
5076         * config/alpha/alpha.h (IRA_COVER_CLASSES): New.
5078 2008-06-03  Vladimir Makarov  <vmakarov@redhat.com>
5080         * caller-saves.c (mark_referenced_regs): Add new parameter.
5081         Process increments/decrements.
5082         (set_regs): Rename to modified_regs.
5083         (calculate_local_save_info, save_call_clobbered_regs): Pass the
5084         new parameter value to mark_referenced_regs.
5086         * ira-costs.c (find_allocno_class_costs): Always use important
5087         classes.
5089         * reload1.c (reload): Clear changed_allocation_pseudos at the end
5090         of reload.
5091         
5092 2008-06-03  Steve Chamberlain <steve.chamberlain@gmail.com>
5094         * ira-build.c (allocno_range_compare_func): Stabilize sort.
5096 2008-05-30  Vladimir Makarov  <vmakarov@redhat.com>
5097         Merge 132243:136204 from trunk
5098         * ira.c (setup_eliminable_regset): Use cfun.
5099         (ira): Set up DF_VERIFY_SCHEDULED.
5100         
5101         * ira-lives.c (process_bb_node_lives): Use cfun.
5102         
5103         * ira_build (ira_build): Use crtl.
5104         
5105         * local-alloc.c (update_equiv_regs): Rescan equivalent insn.
5107         * final (rest_of_handle_final): Use crtl.
5108         
5109         * caller-save.c (save_call_clobbered_regs): Initialize save.
5111 2008-05-29  Andy Hutchinson   <hutchinsonandy@aim.com>
5113         * config/avr/avr.h (IRA_COVER_CLASSES): New macro
5115         * reload1.c (find_reg): Process registers in register allocation
5116         order.
5118 2008-05-29  Vladimir Makarov  <vmakarov@redhat.com>
5120         * Makefile.in (caller-save.o): Add CFGLOOP_H.
5122         * ira.c (ira): Call flow_loops_find after the allocation before
5123         the reload.
5125         * global.c (print_insn_chain): Print bitmap saved.
5127         * reload.h (insn_chain): Add members saved and saved_pseudo_regno.
5129         * reload1.c (changed_allocation_pseudos): New bitmap.
5130         (init_reload): Initiate the bitmap.
5131         (new_insn_chain): Initiate bitmap saved.
5132         (order_regs_for_reload): Check bitmap saved.
5133         (find_reg): Check bitmap saved to find register.
5134         (delete_caller_save_insns): Print about removing caller-save insn.
5135         Invalidate reload register taken from saved registers.
5136         Recalculate used_spill_regs.
5137         (finish_spills): Check bitmap saved.  Set up
5138         changed_allocation_pseudos.  Remove sanity check.
5140         * caller-save.c (cfgloop.h): Add the header.
5141         (set_regs): New variable.
5142         (bb_info): Remove members empty_save_in_p, kill, gen.  Add members
5143         empty_save_out_p, empty_restore_in_p, save_kill, save_gen,
5144         restore_kill, restore_gen, free_gen, restore_in, restore_out,
5145         free_in, free_out, live_at_end, restore_here, restore_in_mode,
5146         restore_out_mode, save_in_pseudo, save_out_pseudo,
5147         restore_in_pseudo, restore_out_pseudo.
5148         (loop_info): New structure.
5149         (LOOP_INFO): New macro.
5150         (calculate_local_save_info): Add calculation of new bb_info
5151         members for local info.
5152         (restore_trans_fun, restore_con_fun_0, restore_con_fun_n,
5153         calculate_restore_in_out, calculate_restore_here, free_trans_fun,
5154         free_con_fun_0, free_con_fun_n, calculate_free_in_out): New
5155         functions.
5156         (make_global_save_analysis): Add calculation of new bb_info
5157         members for global info.
5158         (print_hard_reg_set_and_mode): Rename to
5159         print_annotated_hard_reg_set.  Print pseudo regnos too.
5160         (print_save_data): Add printing new bb_info members.
5161         (set_hard_reg_saved): New parameters from_saved_pseudo,
5162         save_pseudo.  Set them up.
5163         (save_call_clobbered_regs): Rewrite.
5164         (mark_referenced_regs): Set up set_regs.
5165         (insert_restore, insert_save): New parameter save_pseudo.  Use it
5166         for setting save_pseudo_regno and for debugging output.
5168         * ira-conflicts.c (build_conflict_bit_table): Check min/max.
5170         * ira-build.c (conflict_vector_profitable_p): Ditto.
5171         (clear_allocno_conflicts): Check that conflict allocno array size.
5172         
5173 2008-05-21  Vladimir Makarov  <vmakarov@redhat.com>
5175         * ira.c (setup_preferred_alternate_classes): Remove.
5176         (setup_preferred_alternate_classes_for_new_pseudos): New.
5177         (setup_preferred_alternate_classes): Set memory cost for NO_REGS
5178         to minimal one.
5179         (ira): Remove setup_preferred_alternate_classes.  Call
5180         setup_preferred_alternate_classes_for_new_pseudos.
5182         * ira-costs.c (record_reg_classes): Don't decrease frequency for
5183         allows_mem.
5184         (record_operand_costs): Use memcpy instead of memmove.
5185         (print_costs): Use regno instead of allocno number in
5186         invalid_mode_change_p.
5187         (find_allocno_class_costs): Set up preferred and alternative
5188         classes.
5189         
5190 2008-05-18  Vladimir Makarov  <vmakarov@redhat.com>
5191         PR tree-optimization/26854
5193         * timevar.def (TV_RELOAD): New timer.
5195         * ira.c (ira): Use TV_IRA and TV_RELOAD.
5196         (pass_ira): Remove TV_IRA.
5198         * Makefile.in (ira-color.o): Add SPLAY_TREE_H.
5200         * ira-conflicts.c (DEF_VEC_P, DEF_ALLOCC_P): Move to ira-int.h.
5202         * ira-int.h (DEF_VEC_P, DEF_ALLOCC_P): Move from ira-conflicts.c and
5203         ira-color.c.
5204         (struct allocno): New bitfield splay_removed_p.
5205         (ALLOCNO_MAY_BE_SPILLED_P): New macro.
5207         * ira-color.c (splay-tree.h): Add the header.
5208         (allocno_spill_priority_compare, splay_tree_allocate,
5209         splay_tree_free): New functions.
5210         (DEF_VEC_P, DEF_ALLOCC_P): Move to ira-int.h.
5211         (sorted_allocnos_for_spilling): Rename to allocnos_for_spilling.
5212         (splay_tree_node_pool, removed_splay_allocno_vec,
5213         uncolorable_allocnos_num, uncolorable_allocnos_splay_tree): New
5214         global variables.
5215         (add_allocno_to_bucket, add_allocno_to_ordered_bucket,
5216         delete_allocno_from_bucket): Update uncolorable_allocnos_num.
5217         (USE_SPLAY_P): New macro.
5218         (push_allocno_to_stack): Remove allocno from the splay tree.
5219         (push_allocnos_to_stack): Use the splay trees.
5220         (do_coloring): Create and finish splay_tree_node_pool.
5221         Move allocation/deallocation of allocnos_for_spilling to here...
5222         (initiate_ira_assign, finish_ira_assign): Move
5223         allocnos_for_spilling from here...
5224         (ira_color): Allocate/deallocate removed_splay_allocno_vec.
5226         * ira-build.c (DEF_VEC_P, DEF_ALLOCC_P): Move to ira-int.h.
5227         (create_allocno): Initiate ALLOCNO_SPLAY_REMOVED_P.
5228         
5229 2008-05-12  Vladimir Makarov  <vmakarov@redhat.com>
5231         * Makefile.in (ira-build.o): Add sparseset.h.
5232         
5233         * ira-build.c (sparseset.h): Add.
5234         (remove_wrong_conflicts, change_allocno_conflicts,
5235         check_and_add_conflicts, add_conflict_with_underlying_allocnos):
5236         Remove.
5237         (finish_loop_tree_node, clear_allocno_conflicts,
5238         change_allocno_in_range_list): New functions.
5239         (allocnos_bitmap): New variable.
5240         (finish_loop_tree_nodes): Use finish_loop_tree_node.
5241         (initiate_allocnos): Initiate allocno conflict id by its allocno
5242         number.
5243         (conflict_vector_profitable_p): Use allocno min/max attributes.
5244         (temp_change_bit_vec): Remove.
5245         (finish_allocno): Nullify the corresponding element in allocnos
5246         and conflict_id_allocno_map.
5247         (local_allocnos_bitmap): Remove.
5248         (create_loop_tree_node_caps): Use local_allocnos_bitmap instead of
5249         local_allocnos_bitmap.
5250         (regno_top_level_allocno_map): Move to ira_flattening.
5251         (ira_flattening): Rewriting conflict rebuilding.
5252         (ira_build): Allocate/free allocnos_bitmap.  Move
5253         create_allocno_live_ranges before creation of allocno caps.
5255         * ira-lives.c (propagate_new_allocno_info, propagate_new_info):
5256         New functions.
5257         (create_allocno_live_ranges): Call propagate_new_info.
5259         * ira-color.c (ira_fast_allocation): Collect allocnos for sorting.
5261         * ira-conflicts.c (propagate_allocno_info): Rename to
5262         propagate_allocno_copy_info.  Propagate only copies.
5263         (propagate_info): Rename to propagate_copy_info.
5265 2008-05-10  Richard Sandiford  <rsandifo@nildram.co.uk>
5267         * toplev.c (backend_init_target): Move init_ira call from here...
5268         (lang_dependent_init_target): ...to here.
5270 2008-05-10  Richard Sandiford  <rsandifo@nildram.co.uk>
5272         * ira.c (setup_class_subset_and_memory_move_costs): Don't calculate
5273         memory move costs for NO_REGS.
5275 2008-05-08  Vladimir Makarov  <vmakarov@redhat.com>
5277         * ira-int.h (loop_tree_node): New members subloops and
5278         subloop_next.
5279         
5280         * ira-conflicts.c (propagate_modified_regnos): Check that it is a
5281         loop node.
5282         (ira_build_conflicts): Use TRUE for traverse_loop_tree.
5283         
5284         * ira-color.c (color_pass): Check that it is a
5285         loop node.  Use subloops and subloop_next for traversing.
5286         (move_spill_restore): Ditto.
5287         (coalesced_pseudo_reg_freq_compare,
5288         coalesced_pseudo_reg_slot_compare, pseudo_reg_compare): Don't
5289         discard const.
5290         
5291         * ira-lives.c (create_allocno_live_ranges): Use TRUE for
5292         traverse_loop_tree.
5293         
5294         * ira-emit.c (ira_emit): Ditto.
5296         * ira-build.c (add_loop_to_tree): Set up subloops and
5297         subloop_next.
5298         (setup_loop_tree_level): Use subloops and subloop_next for
5299         traversing.
5300         (form_loop_tree): Initialize subloops and subloop_next.
5301         (traverse_loop_tree): Change 1st parameter semantics.  Rewrite the
5302         function.
5303         (create_loop_tree_node_caps): Check that it is a loop node.
5304         (check_and_add_conflicts): Check allocno loop nodes.
5305         (add_conflict_with_underlying_allocnos): Use subloops and
5306         subloop_next for traversing.
5307         
5308         * ira.c (chain_freq_compare, chain_bb_compare): Don't discard
5309         const.
5310         (ira): Call regstat functions second time only if new pseudos are
5311         created.
5313         * ira-costs.c (find_allocno_class_costs): Use TRUE for
5314         traverse_loop_tree.
5315         (setup_allocno_cover_class_and_costs): Ditto.
5317 2008-05-06  Vladimir Makarov  <vmakarov@redhat.com>
5319         PR rtl-optimization/36028
5320         * caller-save.c (setup_save_areas): Adjust reused stack slot.
5322 2008-05-05  Kaz Kojima  <kkojima@gcc.gnu.org>
5324         * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
5325         STACK_REGS is defined.
5327 2008-05-05  Vladimir Makarov  <vmakarov@redhat.com>
5329         * ira-color.c (allocno_assign_compare_func): Remove.
5330         (ira_fast_allocation): Rewrite.
5332 2008-05-02  Vladimir Makarov  <vmakarov@redhat.com>
5334         * ira-conflicts.c (print_conflicts): Exclude non-allocatable hard
5335         regs and hard regs from different cover classes.
5336         (ira_build_conflicts): Build conflicts only for optimization mode.
5338         * cfgloopanal.c (estimate_reg_pressure_cost): Decrease cost only
5339         for optimization mode.
5341         * caller-save.c (caller-save.c, calculate_local_save_info,
5342         save_call_clobbered_regs): Do save/restore placement optimization
5343         and sharing stack slots only for optimization mode.
5345         * ira-int.h (set_allocno_cover_class, ira_fast_allocation): New
5346         prototypes.
5348         * ira-color.c (assign_hard_reg): Clear conflicting_regs.
5349         (allocno_assign_compare_func, allocno_assign_compare_func): New
5350         functions.
5352         * global.c (build_insn_chain): Add spilled pseudos only in
5353         optimization mode.
5355         * ira-emit.c (modify_move_list): Use set_allocno_cover_class.
5357         * alias.c (nonoverlapping_memrefs_p): Check addresses only in
5358         optimization mode.
5360         * ira-build.c (create_allocno): Initialize
5361         ALLOCNO_CONFLICT_HARD_REGS and ALLOCNO_TOTAL_CONFLICT_HARD_REGS by
5362         non-allocatable hard reg set.
5363         (set_allocno_cover_class): New function.
5364         (create_cap_allocno): Use set_allocno_cover_class.
5365         (ira_build): Call create_loop_tree_node_caps,
5366         propagate_info_to_loop_tree_node_caps, and
5367         propagate_info_to_loop_tree_node_caps only in optimization mode.
5368         * ira.c (setup_reg_renumber): Add optimize to ira_assert.
5369         (ira): Call find_reg_equiv_invariant_const, ira_color,
5370         sort_insn_chain, and fix_reg_equiv_init only in optimization mode.
5371         Call ira_fast_allocation for -O0.  Use right argument for reload.
5373         * ira-costs.c (find_allocno_class_costs): Use important_classes
5374         only for optimization mode.
5375         (setup_allocno_cover_class_and_costs): Use
5376         set_allocno_cover_class.  Initialize cost vectors only in
5377         optimization mode.  Call process_bb_node_for_hard_reg_moves only
5378         in optimization mode.
5380         * reload1.c (compute_use_by_pseudos): Add optimize to ira_assert.
5381         (reload): Sort pseudo-registers only optimization mode.  Restore
5382         original order for insn chain only in optimization mode.
5383         (calculate_needs_all_insns): Call mark_memory_move_deletion only
5384         in optimization mode.
5385         (count_pseudo, count_spilled_pseudo): Check spilled pseudos only
5386         in optimization mode.
5387         (alter_reg): Share stack slots only in optimization mode.
5388         (finish_spills): Check spilled pseudos only in optimization mode.
5389         (emit_input_reload_insns, delete_output_reload): Call
5390         mark_allocation_change only in optimization mode.
5391         
5392 2008-05-01  Vladimir Makarov  <vmakarov@redhat.com>
5394         * ira-int.h (IRA_BB_NODE_BY_INDEX, IRA_LOOP_NODE_BY_INDEX): Use
5395         gcc_unreachable instead of exit.
5396         (struct allocno): New members min, max, and conflict_id.
5397         (ALLOCNO_MIN, ALLOCNO_MAX, ALLOCNO_CONFLICT_ID): New macros.
5398         (conflict_id_allocno_map):
5399         (SET_ALLOCNO_SET_BIT, CLEAR_ALLOCNO_SET_BIT,
5400         TEST_ALLOCNO_SET_BIT): Add two new parameters.  Add versions for
5401         checking.
5402         (allocno_set_iterator): Add new member start_val.
5403         (allocno_set_iter_init): Add two new parameters.  Set up
5404         start_val.
5405         (allocno_set_iter_cond): Use start_val.
5406         (FOR_EACH_ALLOCNO_IN_SET): Add two new parameters.
5407         (allocno_set_words): Remove.
5408         (allocno_conflict_iterator): Add new member base_conflict_id.
5409         (allocno_conflict_iter_init): Set up base_conflict_id.  Use
5410         ALLOCNO_MIN and ALLOCNO_MAX.
5411         (allocno_conflict_iter_cond): Use conflict_id_allocno_map and
5412         base_conflict_id.
5414         * ira-lives.c: Include sparseset.h.
5415         (allocno_set_words, SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE,
5416         TEST_ALLOCNO_LIVE, allocnos_live_bitmap): Remove.
5417         (allocnos_live): Define as sparseset.
5418         (make_regno_born, clear_allocno_live, mark_reg_store,
5419         mark_reg_death, process_single_reg_class_operands,
5420         process_bb_node_lives, create_allocno_live_ranges): Don't use
5421         allocnos_live_bitmap.  Use allocnos_live as sparseset.
5423         * Makefile.in (ira-conflicts.o, ira-lives.o): Add sparseset.h
5425         * ira-conflicts.c: Add sparseset.h header.
5426         (mirror_conflicts): Remove.
5427         (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE, TEST_ALLOCNO_LIVE): Remove.
5428         (allocnos_live): Remove.
5429         (CONFLICT_P): Remove
5430         (CONFLICT_ALLOCNO_P): New.
5431         (build_conflict_bit_table): Use sparseset.  Use FOR_EACH_ALLOCNO.
5432         Allocate bits for [min..max] range.  Report conflict bit table
5433         sizes.  Setup conflicts for both allocnos.
5434         (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for copy vectors.
5435         (remove_conflict_allocno_copies): Use CONFLICT_ALLOCNO_P.  Rename
5436         conflict_allocno_copy_varray to conflict_allocno_copy_vec and make
5437         it VEC.
5438         (build_allocno_conflicts): Use two new arguments for
5439         FOR_EACH_ALLOCNO_IN_SET.  Use conflict_id_allocno_map.  Modify
5440         calculation of ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE.  Use two new
5441         arguments for SET_ALLOCNO_SET_BIT.
5442         (ira_build_conflicts): Don't call mirror_conflicts.
5444         * ira-color.c (varray.h): Remove.
5445         (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for
5446         allocno vectors.
5447         (allocno_stack_varray): Rename to allocno_stack_vec.  Make it a
5448         VEC.
5449         (assign_hard_reg, push_allocno_to_stack, pop_allocnos_from_stack,
5450         ira_color): Use allocno_stack_vec as VEC.
5451         
5452         * ira-build.c (setup_min_max_allocno_live_range_point,
5453         allocno_range_compare_func, sort_conflict_id_allocno_map,
5454         setup_min_max_conflict_allocno_ids): New function.
5455         (conflict_id_allocno_map, conflict_id_allocno_map_vec): New global
5456         variable.
5457         (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for allocno vectors.
5458         (allocno_varray): Rename to allocno_vec and make it a VEC.
5459         (initiate_allocnos): Initiate conflict_id_allocno_map_vec.  Use
5460         allocno_vec as a VEC.
5461         (create_allocno): Initiate min, max, and conflict_id_allocno.
5462         Update conflict_id_allocno_map.  Use allocno_vec as a VEC.
5463         (allocate_allocno_conflict_bit_vec): Use ALLOCNO_MIN and
5464         ALLOCNO_MAX.
5465         (add_to_allocno_conflicts): Ditto.
5466         (remove_wrong_conflicts): Ditto.  Use conflict_id_allocno_map.
5467         (change_allocno_conflicts): Ditto.  Use add_to_allocno_conflicts
5468         instead of SET_ALLOCNO_SET_BIT.
5469         (finish_allocnos): Free conflict_id_allocno_map_vec.  Use
5470         allocno_vec as a VEC.
5471         (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for copy vectors.
5472         (copy_varray): Rename to copy_vec and make it a VEC.
5473         (initiate_copies, create_copy, finish_copies): Use copy_vec as
5474         a VEC.
5475         (ira_build): Call setup_min_max_allocno_live_range_point,
5476         sort_conflict_id_allocno_map, and
5477         setup_min_max_conflict_allocno_ids.
5478         
5479         * ira-emit.c (move_t): New typedef.
5480         (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for move vectors.
5481         (move_varray): Rename it to move_vec and make it a VEC.
5482         (emit_move_list, add_range_and_copies_from_move_list): Use move_t.
5483         (traverse_moves, ira_emit): Ditto.  Use move_vec as a VEC.
5484         (modify_move_list): Ditto.  Set up conflict_id, min, and max for
5485         the new allocno.
5486         
5487 2008-04-10  Vladimir Makarov  <vmakarov@redhat.com>
5489         * reload1.c (substitute, gen_reload_chain_without_interm_reg_p):
5490         New functions.
5491         (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
5493 2008-04-09  Vladimir Makarov  <vmakarov@redhat.com>
5495         * ira.c (ira): Move allocate_initial_values after initializing reg
5496         info.
5498 2008-04-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5500         * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
5502 2008-04-08  Vladimir Makarov  <vmakarov@redhat.com>
5504         * ira-color.c (assign_hard_reg): Add debug printing.
5505         
5506         * ira-lives.c (mark_reg_store, mark_reg_death,
5507         process_bb_node_lives): Ignore hard regno of class NO_REGS.
5509         * ira.c: Fix typos in comments.
5511 2008-04-07  Vladimir Makarov  <vmakarov@redhat.com>
5513         * cfgloopanal.c (estimate_reg_pressure_cost): Decrease register
5514         pressure cost for IRA regional allocation.
5516         * ira.c:  Add IRA overview.
5518 2008-04-06  Vladimir Makarov  <vmakarov@redhat.com>
5520         * ira-int.h (reg_class_intersect, reg_class_union): Add comments.
5521         
5522         * hard-reg-set.h (reg_class_subclasses): New external definition.
5524         * ira.c (setup_reg_class_intersect_union): Define for classes
5525         containing no hard registers available for allocation.
5527         * regclass.c (reg_class_subclasses): Make it external.
5529         * config/sh/sh.h (IRA_COVER_CLASSES): Add TARGET_REGS.
5530         
5531 2008-04-05  Vladimir Makarov  <vmakarov@redhat.com>
5533         * toplev.c (backend_init_target): Move init_ira after
5534         init_fake_stack_mems.
5536         * config/sh/sh.c (sh_secondary_reload): Remove check of x on null.
5538 2008-04-04  Bernd Schmidt  <bernd.schmidt@analog.com>
5540         * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
5542 2008-04-04  Kaz Kojima  <kkojima@gcc.gnu.org>
5544         * config/sh/sh.h (IRA_COVER_CLASSES): Define.
5545         * config/sh/sh.c (sh_secondary_reload): Return NO_REGS for
5546         null rtl.
5547         * config/sh/sh.md (movsicc_true+3): Check if emit returns
5548         a barrier.
5549         * final.c (update_regs_ever_live): Check null rtl.
5550         
5551 2008-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5553         * reload1.c: Remove spaces before [.
5554         
5555         * ira-conflicts.c, ira-int.h, ira-color.c, ira-lives.c,
5556         ira-emit.c, ira-build.c, ira.c, ira.h, ira-costs.c: Ditto.  Use
5557         GPL3.
5558         
5559         * caller-save.c: Ditto.
5560         (set_up_bb_rts_numbers, rpost_cmp): Remove.
5561         (save_trans_fun, save_con_fun_0, save_con_fun_n): New functions.
5562         (struct bb_info): Remove member rts_number.
5563         (calculate_local_save_info): Setup empty_save_in_p for abnormal
5564         edges.
5565         (all_blocks): New variable.
5566         (calculate_save_in_out): Use df_simple_dataflow.
5567         (make_global_save_analysis): Allocate/setup/free all_blocks.
5568                 
5569 2008-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5571         * ira-costs.c: Use GPL3 in the header.
5572         (find_allocno_class_costs): Use all important
5573         classes on the 1st iteration.
5575 2008-04-03  Vladimir Makarov  <vmakarov@redhat.com>
5577         PR rtl-optimization/35817
5578         * ira-costs.c (ira-costs.c): Check have_regs_of_mode.
5580 2008-04-02  Vladimir Makarov  <vmakarov@redhat.com>
5582         * ira-color.c (start_allocno_priorities): Permit zero allocno
5583         nref.
5585 2008-03-31  Vladimir Makarov  <vmakarov@redhat.com>
5587         * ira-color.c (push_allocnos_to_stack): Don't use double.  Use
5588         const as the secondary heuristic.
5590         * ira-emit.c (set_allocno_reg): Change cap reg too.  Process all
5591         loop parents.
5592         
5593         * doc/invoke.texi (-fira-coalescing): Change to -fira-coalesce.
5595         * toplev.h (flag_lower_subreg): Remove.
5597         * global.c (build_insn_chain): Remove the prototype.
5599         * alias.c (value_addr_p): Change comment.
5601         * emit-rtl.c (gen_lowpart_common): Remove CONCATN.
5603         * simplify-rtx.c (simplify_subreg): Ditto.
5605         * common.opt (flower-subreg): Remove.
5607         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Fix last
5608         merge.
5610 2008-03-29  Vladimir Makarov  <vmakarov@redhat.com>
5612         * ira-lives (process_single_reg_class_operands): Fix typo in
5613         setting up cover_class.
5615 2008-03-28  Vladimir Makarov  <vmakarov@redhat.com>
5617         * ira-conflicts.c, global.c, regmove.c, function.c,
5618         ira-emit.c, alias.c, reload1.c: Add comments, fix comments.
5620         * reload.h: Add 2008 to the Copyright.
5621         
5622         * caller-save.c: Add comments.
5623         (reg_save_code, reg_restore_code, initiate_saved_hard_regs,
5624         new_saved_hard_reg, finish_saved_hard_regs,
5625         saved_hard_reg_compare_func, calculate_local_save_info,
5626         set_up_bb_rts_numbers, rpost_cmp, calculate_save_in_out,
5627         calculate_save_here, make_global_save_analysis,
5628         print_hard_reg_set_and_mode, print_hard_reg_set, print_save_data,
5629         set_hard_reg_saved, add_stored_regs): Add prototypes.
5630         
5631         * df-scan.c (df_get_call_refs): Use
5632         get_call_invalidated_used_regs.
5634         * ira-int.h: Add comments.
5635         (loop_tree_node): Rename inner to children.
5636         (ira_allocate_regset, ira_free_regset): Remove.
5637         (reassign_conflict_allocnos): Remove one parameter.
5639         * ira-color.c: Add comments.
5640         (setup_curr_costs): Rename to update_curr_costs.
5641         (allocno_cost_compare_func, print_coalesced_allocno,
5642         allocno_reload_assign): Add prototypes.
5643         (reassign_conflict_allocnos): Remove one parameter.
5645         * ira-lives.c: Add comments.
5646         (make_regno_dead, make_regno_born_and_dead,
5647         create_start_finish_chains, print_allocno_live_ranges,
5648         print_live_ranges): Add protoypes.
5650         * ira-build.c: Add comments.
5651         (copy_allocno_live_range_list): Make it static.
5653         * ira.c: Add comments.
5654         (setup_cover_classes): Rename to
5655         setup_cover_and_important_classes.
5656         (free_register_move_costs, chain_freq_compare, chain_bb_compare,
5657         ira): New prototypes.
5658         (mode_inner_mode, setup_inner_mode, ira_allocate_regset,
5659         ira_free_regset): Remove.
5661         * ira.h: Add comments.
5662         (SECONDARY_INPUT_RELOAD_CLASS,
5663         SECONDARY_OUTPUT_RELOAD_CLASS, HAVE_SECONDARY_RELOADS,
5664         MEMORY_MOVE_COST, reg_equiv_memory_loc_varray, reg_equiv_constant,
5665         reg_equiv_memory_loc, reg_equiv_address, reg_equiv_mem, ira):
5666         Remove.
5667         
5668         * ira-costs.c: Add comments.
5669         (find_allocno_class_costs): Make common class a cover class.
5670         
5671 2008-03-20  Vladimir Makarov  <vmakarov@redhat.com>
5673         * ira-int.h (allocno): Rename conflict_allocno_vec and
5674         conflict_allocno_vec_size into conflict_allocno_array and
5675         conflict_allocno_array_size.  Remove conflict_allocnos_num.
5676         Rename total_conflict_allocnos_num into conflict_allocnos_num New
5677         members child_renamed_p and conflict_vec_p.
5678         (ALLOCNO_CONFLICT_ALLOCNO_VEC): Rename to
5679         ALLOCNO_CONFLICT_ALLOCNO_ARRAY.
5680         (ALLOCNO_CONFLICT_ALLOCNO_VEC_SIZE): Rename to
5681         ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE.
5682         (ALLOCNO_CHILD_RENAMED_P, ALLOCNO_CONFLICT_VEC_P): New macros.
5683         (EXECUTE_IF_SET_IN_ALLOCNO_SET): Change to
5684         FOR_EACH_ALLOCNO_IN_SET.
5685         (allocno_set_iterator): New typedef.
5686         (allocno_set_iter_init, allocno_set_iter_cond,
5687         allocno_set_iter_next): New functions.
5688         (conflict_vector_profitable_p, allocate_allocno_conflict_vec): New
5689         prototypes.
5690         (allocno_iterator): New typedef.
5691         (allocno_iter_init, allocno_iter_cond): New functions.
5692         (FOR_EACH_ALLOCNO): New macro.
5693         (copy_iterator): New typedef.
5694         (copy_iter_init, copy_iter_cond): New functions.
5695         (FOR_EACH_COPY): New macro.
5696         (allocno_conflict_iterator): New typedef.
5697         (allocno_conflict_iter_init, allocno_conflict_iter_cond,
5698         allocno_conflict_iter_next): New functions.
5699         (conflict_vector_profitable_p, allocate_allocno_conflict_vec): New
5700         prototypes.
5701         (FOR_EACH_ALLOCNO_CONFLICT): New macro.
5703         * ira-conflicts.c (conflicts): Change type.
5704         (CONFLICT_P): Use one more index for conflicts.
5705         (build_conflict_bit_table): Change allocation and initialization
5706         of conflicts.
5707         (mirror_conflicts): Rewrite.
5708         (remove_conflict_allocno_copies): Use FOR_EACH_ALLOCNO.
5709         (build_allocno_conflict_vects): Rename to build_allocno_conflicts.
5710         Rewrite it.
5711         (print_conflicts): Use FOR_EACH_ALLOCNO, don't print star.
5712         (ira_build_conflicts): Use FOR_EACH_ALLOCNO.
5714         * ira-color.c (assign_hard_reg): Use FOR_EACH_ALLOCNO_CONFLICT.
5715         Use min_full_cost for finding register profitability.
5716         (push_allocno_to_stack): Use FOR_EACH_ALLOCNO_CONFLICT.
5717         (setup_allocno_left_conflicts_num, coalesced_allocno_conflict_p):
5718         Ditto.
5719         (move_spill_restore): Use FOR_EACH_ALLOCNO.
5720         (reassign_conflict_allocnos): Ditto.  Use
5721         FOR_EACH_ALLOCNO_CONFLICT.
5722         (sort_regnos_for_alter_reg): Use FOR_EACH_ALLOCNO.
5723         (reassign_pseudos): Use FOR_EACH_ALLOCNO_CONFLICT.
5725         * ira-lives.c (make_regno_born, clear_allocno_live,
5726         mark_reg_death, process_single_reg_class_operands,
5727         process_bb_node_lives): Use FOR_EACH_ALLOCNO_IN_SET.
5728         (create_start_finish_chains, print_live_ranges): Use
5729         FOR_EACH_ALLOCNO.
5731         * ira-emit.c (set_allocno_reg): Set up ALLOCNO_CHILD_RENAMED_P.
5732         (set_allocno_somewhere_renamed_p): Use
5733         ALLOCNO_CONFLICT_ALLOCNO_ARRAY.
5734         (ira_emit): Use FOR_EACH_ALLOCNO.
5736         * ira.c (setup_reg_renumber, setup_allocno_assignment_flags,
5737         calculate_allocation_cost, check_allocation,
5738         print_redundant_copies, setup_preferred_alternate_classes): Use
5739         FOR_EACH_ALLOCNO.
5741         * ira-costs.c (print_costs, setup_allocno_cover_class_and_costs,
5742         ira_costs, tune_allocno_costs_and_cover_classes): Use
5743         FOR_EACH_ALLOCNO.
5745         * ira-build.c (check_allocno_conflict_vec): Remove.
5746         (add_to_allocno_conflict_vec): Rename to
5747         allocate_allocno_conflicts.  Rewrite.
5748         (allocate_allocno_conflict_bit_vec, allocate_allocno_conflicts,
5749         remove_wrong_conflicts, change_allocno_conflicts): New functions.
5750         (rebuild_regno_allocno_maps): Use FOR_EACH_ALLOCNO.
5751         (create_allocno): Initialize ALLOCNO_CHILD_RENAMED_P and
5752         ALLOCNO_CONFLICT_VEC_P.
5753         (conflict_vector_profitable_p): New function.
5754         (compress_allocno_conflict_vec): Use
5755         ALLOCNO_CONFLICT_ALLOCNO_ARRAY and don't use
5756         ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM.
5757         (compress_conflict_vecs): Use FOR_EACH_ALLOCNO.  Check
5758         ALLOCNO_CONFLICT_VEC_P.
5759         (propagate_info_to_cap): Use FOR_EACH_ALLOCNO_CONFLICT.
5760         (finish_allocnos): Use FOR_EACH_ALLOCNO.
5761         (finish_copies): Use FOR_EACH_COPY.
5762         (check_and_add_conflicts): Change second parameter.  Use
5763         add_to_allocno_conflicts instead of add_to_allocno_conflict_vec.
5764         (temp_change_bit_vec): New variable.
5765         (ira_flattening): Use FOR_EACH_ALLOCNO and FOR_EACH_COPY.  Use
5766         remove_wrong_conflicts, change_allocno_conflicts.  Allocate and
5767         free temp_change_bit_vec.  Nullify `allocnos' elements for removed
5768         allocnos.  Check ALLOCNO_CHILD_RENAMED_P for removing obsolete
5769         conflicts.  Don't compress and enumerate allocnos and copies.
5770         Nullify `copies' elements for removed copies.  Use
5771         add_to_allocno_conflicts instead of add_to_allocno_conflict_vec.
5772         (ira_build): Use FOR_EACH_ALLOCNO.
5773         
5774 2008-03-18  Vladimir Makarov  <vmakarov@redhat.com>
5776         * common.opt (fira-algorithm): Fix description
5778         * ira-int.h (allocno): Remove best_class.
5779         (ALLOCNO_BEST_CLASS): Remove.
5780         (strict_class_subset_p): Remove.
5781         
5782         * ira-color.c (get_coalesced_allocnos_best_class_and_freq): Rename
5783         to get_coalesced_allocnos_attributes.  Change prototype.
5784         Calculate available regs.
5785         (bucket_allocno_compare_func, sort_bucket): New functions.
5786         (sorted_allocnos_for_spilling): New variable.
5787         (assign_hard_reg): Don't add prohibited_class_mode_regs to
5788         conflicting_regs.  Use it in loop for finding the best hard
5789         register.
5790         (add_allocno_to_ordered_bucket): Use bucket_allocno_compare_func.
5791         (push_only_colorable): Call sort_bucket.
5792         (push_allocnos_to_stack): Use sorted_allocnos_for_spilling instead
5793         of sorted_allocnos.
5794         (put_allocno_into_bucket): Use add_allocno_to_bucket instead of
5795         add_allocno_to_ordered_bucket.
5796         (initiate_ira_assign): Allocate sorted_allocnos_for_spilling.
5797         (finish_ira_assign): Free sorted_allocnos_for_spilling.
5799         * ira-emit.c (modify_move_list): Remove setting ALLOCNO_BEST_CLASS
5800         up.
5801         
5802         * ira-build.c (create_allocno, create_cap_allocno): Ditto.
5803         
5804         * ira.c (strict_class_subset_p): Remove.
5805         (setup_class_subset_and_memory_move_costs): Remove setting
5806         strict_class_subset_p up.
5807         
5808         * ira-costs.c (setup_allocno_cover_class_and_costs): Remove
5809         setting ALLOCNO_BEST_CLASS up.
5810         
5811 2008-03-12  Vladimir Makarov  <vmakarov@redhat.com>
5813         * ira-int.h (allocno_pool, copy_pool, allocno_live_range_pool):
5814         Remove external definitions.
5815         (free_allocno_updated_costs, allocate_cost_vector,
5816         free_cost_vector): New prototypes.
5817         (allocate_and_set_costs, allocate_and_copy_costs,
5818         allocate_and_set_or_copy_costs): Change prototypes.  Use
5819         allocate_cost_vector instead of ira_allocate.
5821         * ira-conflicts.c (add_insn_allocno_copies): Pass register class
5822         to allocate_and_set_costs.
5824         * ira-color.c (update_copy_costs_1): Pass register class to
5825         allocate_and_set_or_copy_costs.
5826         (assign_hard_reg): Pass register class to allocate_and_copy_costs.
5827         Free updated costs.
5828         (pop_allocnos_from_stack, color_allocnos): Check updated costs.
5829         (color_pass): Pass register class to allocate_and_set_costs.  Free
5830         updated costs.
5831         (move_spill_restore): Check reg equivalences.
5832         (setup_curr_costs): Pass register class to
5833         allocate_and_set_or_copy_costs.
5834         (reassign_conflict_allocnos, allocno_reload_assign): Check updated
5835         costs.
5836         (calculate_spill_cost): Use REG_N_REFS after checking regno.
5838         * ira-lives.c (process_single_reg_class_operands): Pass register
5839         class to allocate_and_set_costs.
5841         * ira-build.c (allocno_pool, allocno_live_range_pool): New
5842         variables.
5843         (initiate_allocnos): Initiate the pools.
5844         (free_allocno_updated_costs): New function.
5845         (finish_allocno): Use free_cost_vector.  Free the pools.
5846         (copy_pool): New variable.
5847         (initiate_copies): Initiate the pool.
5848         (cost_vector_pool): New variable.
5849         (initiate_cost_vectors, allocate_cost_vector, free_cost_vector,
5850         finish_cost_vectors): New functions.
5851         (ira_flattening): Call free_allocno_updated_costs.  Check updated
5852         costs.
5853         (ira_build): Call initiate_cost_vectors.
5854         (ira_destroy): Call finish_cost_vectors.
5856         * ira.c (find_reg_equiv_invariant_const): Check read only memory.
5857         (setup_reg_renumber, setup_allocno_assignment_flags): Call
5858         free_allocno_updated_costs.
5859         (ira): Remove initializations and freeing allocno_pool, copy_pool,
5860         and allocno_live_range_pool.  Call generate_setjmp_warnings.
5862         * ira-costs.c (process_bb_node_for_hard_reg_moves,
5863         tune_allocno_costs_and_cover_classes): Pass register class to
5864         allocate_and_set_costs.
5866         * caller-save.c (save_slots_num, save_slots): New variables.
5867         (init_save_areas): Initiate save_slots_num.
5868         (setup_save_areas): Use stack slots from the previous reload
5869         iteration independetly what slot was used on the previous pass.
5870         
5871 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
5873         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
5874         Remove commutativity hint.
5876 2008-03-06  Vladimir Makarov  <vmakarov@redhat.com>
5878         * ira.h (sort_regnos_for_alter_reg): Add parameter.
5879         
5880         * reload1.c (reload): Pass additional argument to
5881         sort_regnos_for_alter_reg.
5883         * ira-int.h (reg_equiv_len): New global variable.
5885         * ira-emit.c (change_loop): Add assertion.
5887         * ira.c (reg_equiv_len): New global variable.
5888         (setup_reg_renumber): Use reg_equiv_len in assertion.
5889         (ira): Initialize reg_equiv_len and spilled_reg_stack_slots.
5891         * ira-color.c (coalesced_pseudo_reg_compare): Rename to
5892         coalesced_pseudo_reg_freq_compare.
5893         (coalesced_pseudo_reg_slot_compare,
5894         setup_coalesced_allocno_costs_and_nums,
5895         collect_spilled_coalesced_allocnos, coalesce_spill_slots): New
5896         functions.
5897         (coalesced_allocno_conflict_p): Add new parameter.  Use live
5898         ranges to find conflicts for the reload.
5899         (coalesce_allocnos): Don't coalesce allocnos with equivalences.
5900         (color_pass): Check reg_quiv_len.
5901         (regno_max_ref_width): New variable.
5902         (sort_regnos_for_alter_reg): Add secondary coalescing spilled
5903         allocnos.  Assign stack slot numbers.  Use costs instead of
5904         frequencies.
5905         (mark_allocation_change): Set up allocno hard regno.
5906         (allocno_reload_assign): Ditto.
5907         (reuse_stack_slot): Use stack slot numbers.
5908         (mark_new_stack_slot): Set up allocno slot number.
5910         * doc/passes.texi: Add more info about IRA.
5911         
5912 2008-03-03  Vladimir Makarov  <vmakarov@redhat.com>
5914         * ira-conflicts.c (allocno_conflict_p): Rename to
5915         allocno_live_ranges_intersect_p.
5916         (allocno_reg_conflict_p): Rename to
5917         pseudo_live_ranges_intersect_p.
5919         * ira-lives.c (high_pressure_start_point): New variable.
5920         (update_allocno_pressure_excess_length): New function.
5921         (make_regno_dead): Call it.
5922         (set_allocno_live): Udpate high_pressure_start_point.
5923         (clear_allocno_live, mark_reg_store, mark_reg_death): Ditto.
5924         (process_bb_node_lives): Initialize high_pressure_start_point.
5925         Consider only allocatable hard regs for liveness.
5926         
5927         * ira-costs.c (record_reg_classes): Multiply cost by frequency.
5928         Use half frequency when memory is allowed.  Remove check for
5929         prefferred small register classes of pseudo-registers.
5930         (scan_one_insn): Continue processing operands for moves of
5931         pseudo-registers with equivalence.  Don't multiply cost by
5932         frequency.
5933         (init_ira_costs): Use bigger initial cost value.
5934         
5935         * ira-int.h: Ditto.
5936         (allocno): New members somewhere_renamed_p and
5937         excess_pressure_points_num.
5938         (ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_EXCESS_PRESSURE_POINTS_NUM):
5939         New macros.
5940         (allocno_reg_conflict_p): Rename to
5941         pseudo_live_ranges_intersect_p.
5942         (allocno_conflict_p): Rename to allocno_live_ranges_intersect_p.
5944         * ira.h (sort_regnos_for_alter_reg, better_spill_reload_regno_p):
5945         New function prototypes.
5946         
5947         * ira-color.c (merge_allocnos): Remove mode check.
5948         (coalesce_allocnos): Add parameter and modify to use it for
5949         coalescing spilled allocnos.
5950         (color_allocnos): Pass parameter to coalesce_allocnos.
5951         (regno_coalesced_allocno_freq, regno_coalesced_allocno_num): New
5952         variables.
5953         (coalesced_pseudo_reg_compare, calculate_spill_cost,
5954         sort_regnos_for_alter_reg, better_spill_reload_regno_p): New
5955         functions.
5956         (mark_allocation_change, allocno_reload_assign, reassign_pseudos
5957         ): Use ALLOCNO_MEMORY_COST instead of ALLOCNO_UPDATED_MEMORY_COST.
5958         (reuse_stack_slot): Use pseudo_live_ranges_intersect_p instead of
5959         allocno_reg_conflict_p.
5960         
5961         * ira-emit.c (set_allocno_somewhere_renamed_p): New function.
5962         (renamed_regno_bitmap): New static variable.
5963         (change_loop): Check register pressure for creating new pseudo.
5964         Set up ALLOCNO_SOMEWHERE_RENAMED_P and renamed_regno_bitmap.
5965         (ira_emit): Allocate/deallocate renamed_regno_bitmap.
5966         Call set_allocno_somewhere_renamed_p.
5968         * ira-build.c (ira_loops): Move to ira.c.
5969         (create_allocno): Initialize ALLOCNO_SOMEWHERE_RENAMED_P and
5970         ALLOCNO_MEMORY_COST.
5971         (create_cap_allocno): Set up ALLOCNO_MEMORY_COST.
5972         (check_and_add_conflicts): Use allocno_live_ranges_intersect_p
5973         instead of allocno_conflict_p.
5974         (ira_flattening): Check conflicts of allocno renamed somewhere
5975         locally.  Update ALLOCNO_EXCESS_PRESSURE_POINTS_NUM.
5976         (ira_build): Move code for finding loops to ira.c.
5977         (ira_destroy): Move code for freeing loops to ira.c.
5979         * ira.c (setup_reg_class_intersect_union): Fix calculation of
5980         reg_class_union.
5981         (calculate_allocation_cost): Use ALLOCNO_MEMORY_COST instead of
5982         ALLOCNO_UPDATED_MEMORY_COST.
5983         (ira_loops): Move from ira-build.c.
5984         (ira): Move code for finding and freeing loops from ira-build.c.
5985         Don't use regional RA when there are too many loops.
5987         * reload1.c (pseudo_reg_compare): Remove.
5988         (reload): Use sort_regnos_for_alter_reg.
5989         (hard_regno_to_pseudo_regno): New variable.
5990         (count_pseudo): Set up hard_regno_to_pseudo_regno.
5991         (order_regs_for_reload): Initialize hard_regno_to_pseudo_regno.
5992         (count_spilled_pseudo): Update hard_regno_to_pseudo_regno.
5993         (find_reg): Use better_spill_reload_regno_p.  Check
5994         hard_regno_to_pseudo_regno.
5996         * cfgloopanal.c: Include params.h.
5997         (estimate_reg_pressure_cost): Check number of loops.
5999         * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
6001         * params.h (IRA_MAX_LOOPS_NUM): New macro.
6003         * Makefile.in (cfgloopanal.o): Add PARAMS_H.
6004         
6005         * doc/invoke.texi (ira-max-loops-num): Describe.
6006         
6007 2008-02-20  Vladimir Makarov  <vmakarov@redhat.com>
6009         * ira.h, ira-emit.c: Add year 2008 to the copyright.
6010         
6011         * ira-int.h: Ditto.
6012         (struct copy): Rename move_insn to insn.
6013         (initiate_ira_assign, finish_ira_assign, debug_allocno_copies):
6014         New function prototypes.
6015         
6016         * ira-build.c: Add year 2008 to the copyright.  Rename member
6017         move_insn of the copies to insn.
6018         (find_allocno_copy): New function.
6019         (propagate_info_to_cap, add_allocno_copy): Use it.
6020         (print_allocno_copies, debug_allocno_copies): New functions.
6021         
6022         * ira-conflicts.c: Add year 2008 to the copyright.  Rename member
6023         move_insn of the copies to insn.
6025         * ira.c: Ditto.
6026         (setup_reg_class_intersect_union): Fix reg_class_union for cover
6027         classes.
6028         (ira): Call initiate_ira_assign and finish_ira_assign.  Remove
6029         setting reload_completed up.
6030         
6031         * ira-costs.c: Add year 2008 to the copyright.
6032         (ira_costs): Check modes of registers.
6034         * ira-lives.c: Add year 2008 to the copyright.
6035         (mark_reg_store, mark_reg_death, process_bb_node_lives): Don't use
6036         REG_N_REFS.
6037         (process_single_reg_class_operands): Check that the hard reg
6038         belongs to the cover class.
6040         * ira-color.c: Add year 2008 to the copyright.  Rename member
6041         move_insn of the copies to insn.
6042         (initiate_cost_update, finish_cost_update, update_copy_costs_1):
6043         New functions.
6044         (allocno_update_cost_check, update_cost_check): New static
6045         variables.
6046         (update_copy_costs): Increment update_cost_check.  Call
6047         update_copy_costs_1.
6048         (coalesce_allocnos): Don't coalesce already assigned allocnos or
6049         copies with null insn.
6050         (color_pass): Check loop tree node of the subloop allocno.
6051         (finish_allocno_priorities): Remove.
6052         (do_coloring): Move allocation/deallocation of
6053         consideration_allocno_bitmap into initiate_cost_update and
6054         finish_cost_update.
6055         (reassign_conflict_allocnos): Remove allocation/deallocation of
6056         sorted_allocnos.  Remove call of finish_allocno_priorities.
6057         (reassign_pseudos): Remove allocation/deallocation of
6058         consideration_allocno_bitmap and sorted_allocnos.  Remove call of
6059         finish_allocno_priorities.
6060         (initiate_ira_assign, finish_ira_assign): New fucntions.
6061         (ira_color): Remove allocation/deallocation of sorted_allocnos.
6062         Call initiate_ira_assign and finish_ira_assign.
6063         
6064         * postreload.c (gate_handle_postreload): Don't do post reload
6065         optimizations unless the reload is completed.
6066         
6067         * cfgloopanal.c (estimate_reg_pressure_cost): Return zero if we
6068         use regional RA.
6070         * recog.c (peep2_free_reg_search_ofs): New static variable.
6071         (peep2_find_free_register): Remove search_ofs.  Use
6072         peep2_free_reg_search_ofs instead of it.
6073         (peephole2_optimize): Reset peep2_free_reg_search_ofs.
6074         
6075 2008-01-10  Vladimir Makarov  <vmakarov@redhat.com>
6077         * reload1.c (compute_use_by_pseudos): Permits spilled registers in
6078         FROM.
6079         (temp_pseudo_reg_arr): New variable.
6080         (reload): Use instead temp_pseudo_reg_arr of pseudo_regs.  Move
6081         freeing to the function end.  Don't clear spilled_pseudos for IRA.
6082         Restore original insn chain for IRA.
6083         (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
6084         (count_pseudo, count_spilled_pseudo): Check spilled pseudos.
6085         (alter_reg): Set up spilled_pseudos.
6086         (finish_spills): Set up pseudo_previous_regs only for spilled
6087         pseudos.  Call reassign_pseudos once for all spilled pseudos,
6088         pass more arguments.  Don't clear live_throughout and dead_or_set
6089         for spilled pseudos.
6091 2008-01-10  Vladimir Makarov  <vmakarov@redhat.com>
6093         * reload1.c (compute_use_by_pseudos): Permits spilled registers in
6094         FROM.
6095         (temp_pseudo_reg_arr): New variable.
6096         (reload): Use instead temp_pseudo_reg_arr of pseudo_regs.  Move
6097         freeing to the function end.  Don't clear spilled_pseudos for IRA.
6098         Restore original insn chain for IRA.
6099         (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
6100         (count_pseudo, count_spilled_pseudo): Check spilled pseudos.
6101         (alter_reg): Set up spilled_pseudos.
6102         (finish_spills): Set up pseudo_previous_regs only for spilled
6103         pseudos.  Call reassign_pseudos once for all spilled pseudos,
6104         pass more arguments.  Don't clear live_throughout and dead_or_set
6105         for spilled pseudos.
6107         * global.c (reg_becomes_live, build_insn_chain): Don't ignore
6108         spilled pseudos for IRA.
6109         
6110         * caller-save.c (calculate_local_save_info,
6111         save_call_clobbered_regs): Ignore spilled pseudos for IRA.
6112         
6113         * toplev.c (backend_init_target): Call init_ira.
6114         (backend_init): Move call of init_ira_once before
6115         backend_init_target.
6116         
6117         * ira.h (init_ira, sort_insn_chain, mark_memory_move_deletion):
6118         New function prototypes.
6119         (retry_ira_color): Rename to reassign_pseudos.  Change
6120         signature.
6122         * ira-int.h (allocno): New member dont_reassign_p.
6123         (ALLOCNO_DONT_REASSIGN_P): New macro.
6124         (memory_move_cost): Change element type.
6125         (register_move_cost): Change type.
6126         (register_may_move_in_cost, register_may_move_out_cost,
6127         reg_class_intersect): New arrays.
6128         (important_class_nums): Fix element type.
6129         (hard_reg_not_in_set_p): Make it static inline.
6130         (init_register_move_cost, init_ira_costs): New function
6131         prototypes.
6132         (allocno_conflict_index): Remove.
6133         (allocate_and_set_costs, allocate_and_copy_costs,
6134         allocate_and_set_or_copy_costs): New static inline functions.
6135         
6136         * ira-build.c (compress_allocno_conflict_vec,
6137         compress_conflict_vecs): New functions.
6138         (allocno_conflict_index): Remove.
6139         (allocno_conflict_check, curr_allocno_conflict_check_tick): New
6140         variables.
6141         (propagate_info_to_cap): Use allocate_and_copy_costs.
6142         (check_and_add_conflicts): Don't call allocno_conflict_index.
6143         (ira_flattening): Add some assertions.  Check that cost vectors
6144         have been allocated.  Don't call allocno_conflict_index.  Call
6145         compress_conflict_vecs.
6147         * ira.c (memory_move_cost, register_move_cost): Change types.
6148         (register_may_move_in_cost, register_may_move_out_cost,
6149         strict_class_subset_p): New variables.
6150         (setup_class_subset_and_move_costs): Rename to
6151         setup_class_subset_and_memory_move_costs.  Remove
6152         register_move_cost setup.  Don't consider no_unit_alloc_regs.  Add
6153         strict_class_subset_p setup.
6154         (setup_reg_class_intersect): Rename to
6155         setup_reg_class_intersect_union.  Don't consider
6156         no_unit_alloc_regs.  Add reg_class_union setup.
6157         (hard_reg_not_in_set_p): Move to ira-int.h.
6158         (setup_reg_subclasses): Use no_unit_alloc_regs instead of
6159         fixed_reg_set.  Don't consider no_unit_alloc_regs.
6160         (important_class_nums): Fix element type.
6161         (setup_cover_classes): Use no_unit_alloc_regs instead of
6162         fixed_reg_set.  Don't consider no_unit_alloc_regs.
6163         (setup_class_translate): Ditto.
6164         (reg_class_union): New variable.
6165         (init_register_move_cost, free_register_move_costs): New
6166         functions.
6167         (init_ira_once): Initialize register_move_cost,
6168         register_may_move_in_cost, register_may_move_out_cost.  Move some
6169         code to init_ira.
6170         (init_ira): New function.  Move some code from init_ira_once.
6171         Call free_register_move_costs and init_ira_costs.
6172         (calculate_allocation_cost): Check allocation of allocno hard reg
6173         cost vector.
6174         (basic_block_order_nums): New variable.
6175         (chain_freq_compare, chain_bb_compare, sort_insn_chain): New
6176         functions.
6177         (ira): Call sort_insn_chain.
6179         * ira-color.c (allocno_coalesced_p): New variable.
6180         (update_copy_costs): Use allocate_and_set_or_copy_costs.
6181         (assign_hard_reg): Clear and use
6182         processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
6183         Use allocate_and_copy_costs.  Use allocno cover class cost if the
6184         hard register cost vector is not allocated.
6185         (get_coalesced_allocnos_best_class_and_freq): Use
6186         reg_class_intersect instead of reg_class_subintersect.
6187         (add_allocno_to_ordered_bucket): Use strict_class_subset_p.
6188         (push_allocno_to_stack): Clear and use
6189         processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
6190         (setup_allocno_left_conflicts_num): Don't setup
6191         ALLOCNO_UPDATED_HARD_REG_COSTS and
6192         ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.  Clear and use
6193         processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
6194         (put_allocno_into_bucket): Don't setup
6195         ALLOCNO_UPDATED_HARD_REG_COSTS and
6196         ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.
6197         (coalesced_allocno_conflict_p): Clear and use
6198         processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
6199         (coalesce_allocnos): Setup allocno_coalesced_p.
6200         (color_allocnos): Add processing reg class NO_REGS.
6201         (color_pass): Propagate assignment of spilled allocno not
6202         mentioned in the subregion for the mixed algorithm.  Use
6203         allocate_and_set_costs.
6204         (move_spill_restore, mark_allocation_change): Check unallocated
6205         hard reg cost vectors.
6206         (setup_curr_costs): Don't setup ALLOCNO_UPDATED_HARD_REG_COSTS and
6207         ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.  Use
6208         allocate_and_set_or_copy_costs.
6209         (mark_memory_move_deletion, allocno_reload_assign,
6210         pseudo_reg_compare, reassign_pseudos): New functions.
6211         (retry_ira_color): Remove.
6212         
6213         * ira-conflicts.c (add_insn_allocno_copies): Use
6214         allocate_and_set_costs.
6215         (allocno_conflict_p): Simplify the code.
6216         
6217         * ira-costs.c: Rename reg_class_subunion to reg_class_union
6218         everywhere.
6219         (cost_classes, cost_classes_num, cost_class_nums,
6220         max_struct_costs_size): New variables.
6221         (copy_cost): Use init_register_move_cost instead of
6222         init_move_cost.
6223         (record_reg_classes): Ditto.  Use cost_classes and
6224         cost_classes_num instead of important_classes and
6225         important_classes_num.  Use register_may_move_{in,out}_cost
6226         instead of may_move_{in,out}_cost.  Check reg class intersection
6227         for alt_cost.
6228         (record_address_regs): Use init_register_move_cost instead of
6229         init_move_cost.  Use cost_classes and cost_classes_num instead of
6230         important_classes and important_classes_num.  Use
6231         register_may_move_in_cost instead of may_move_in_cost.
6232         (scan_one_insn): Use cost_classes_num instead of
6233         important_classes_num.
6234         (print_costs): Use cost_classes and cost_classes_num instead of
6235         important_classes and important_classes_num.
6236         (find_allocno_class_costs): Initialize cost_classes and
6237         cost_class_nums.  Use cost_classes and cost_classes_num instead of
6238         important_classes and important_classes_num.
6239         (process_bb_node_for_hard_reg_moves): Use allocate_and_set_costs.
6240         (setup_allocno_cover_class_and_costs): Use cost_classes and
6241         cost_classes_num instead of important_classes and
6242         important_classes_num.
6243         (init_ira_costs_once): Move some code to init_ira_costs.  Initiate
6244         cost_classes.
6245         (free_ira_costs: New function.  Move some code from
6246         finish_ira_costs_once.
6247         (init_ira_costs): New function.  Move some code from
6248         init_ira_costs_once.  Use max_struct_costs_size instead of
6249         struct_costs_size.  Call free_ira_costs.  Allocate cost_classes.
6250         (finish_ira_costs_once): Move some code to finish_ira_costs.  Call
6251         free_ira_costs.
6252         (ira_costs): Use max_struct_costs_size instead of
6253         struct_costs_size.  Use allocate_and_set_costs.
6255         * ira-emit.c (modify_move_list): Remove allocation of hard reg
6256         cost vectors.
6258         * ira-lives.c (process_single_reg_class_operands): Add new
6259         parameter freq.  Calculate costs basing on the frequency.
6260         (process_bb_node_lives): Pass the frequency to
6261         process_single_reg_class_operands.
6262         
6263 2007-12-17  Vladimir Makarov  <vmakarov@redhat.com>
6265         * doc/invoke.texi (fira-algoirthm): Remove prioirity coloring.
6266         Make mixed the default.
6268         * flags.h (ira_algorithm): Remove IRA_ALGORITHM_PRIORITY.
6270         * ira-color.c (priority_coloring):  Remove.
6271         (do_coloring): Don't call priority_coloring.
6273         * opts.c (common_handle_option): Remove priority coloring option.
6275         * toplev.c (flag_ira_algorithm): Assign IRA_ALGORITHM_MIXED.
6276         
6277         * ira-build.c (check_and_add_conflicts, ira_flattening): Increase
6278         threshold for internal_flag_ira_verbose.
6279         
6280 2007-12-17  Vladimir Makarov  <vmakarov@redhat.com>
6282         * common.opt (fira-assign-after-call-split, fira-biased-coloring,
6283         fira-split-around-calls): Remove.
6284         (fdump-simple-rtl, fira-verbose): New options.
6285         (fira, fira-coalesce): Initiate by 0.
6287         * opts.c (common_handle_option):  Process flag_ira_verbose.
6289         * flags.h (flag_ira_verbose): New external definition.
6291         * toplev.h (flag_ira_assign_after_call_split,
6292         flag_ira_biased_coloring, flag_ira_split_around_calls):  Remove.
6294         * toplev.c (flag_ira_verbose): New external declaration.
6295         (finalize): Call finish_ira_once.
6297         * print-rtl.c (flag_simple):  Rename to flag_dump_simple_rtl.
6299         * doc/invoke.texi (-fno-ira-assign-after-call-split,
6300         -fira-biased-coloring, -fno-ira-split-around-calls):  Remove.
6301         (-fdump-simple-rtl, -fira-verbose): New options.
6303         * caller-save.c (insert_restore, insert_save): Use
6304         adjust_address_nv instead of adjust_address.  Check the mode by
6305         reg_save_code.
6307         * ira-call.c: Remove file.
6309         * ira-lives.c: New file.
6311         * Makefile.in (ira-live.o): Add
6312         (ira-call.o): Remove.
6313         (IRA_INT_H): Add alloc-pool.h.
6315         * ira.h (finish_ira_once): New external definition.
6317         * ira-int.h (internal_flag_ira_verbose, alloc_pool allocno_pool,
6318         copy_pool, allocno_live_range_pool, ira_loop_tree_height,
6319         max_point, start_point_ranges, finish_point_ranges,
6320         prohibited_mode_move_regs, important_class_nums,
6321         ira_curr_regno_allocno_map, allocno_set_words): New external
6322         definitions.
6323         (loop_tree_node_t, allocno_live_range_t): New typedefs.  Use them
6324         everywhere.
6325         (ira_loop_tree_node): Rename to loop_tree_node.
6326         (loop_tree_node): New member level.
6327         (allocno_live_range): New structure.
6328         (allocno): New members nrefs, live_ranges,
6329         total_conflict_hard_regs, conflict_allocnos_num,
6330         total_conflict_allocnos_num, mem_optimized_dest,
6331         mem_optimized_dest_p, total_no_stack_reg_p.  Remove members
6332         conflict_allocno_vec_active_size and original_memory_cost.  Rename
6333         member curr_hard_reg_costs to updated_hard_reg_costs.
6334         (ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM,
6335         ALLOCNO_TOTAL_CONFLICT_HARD_REGS, ALLOCNO_CONFLICT_ALLOCNOS_NUM,
6336         ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM, ALLOCNO_NREFS,
6337         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6338         ALLOCNO_TOTAL_NO_STACK_REG_P, ALLOCNO_LIVE_RANGES): New access
6339         macros.
6340         (ALLOCNO_CONFLICT_ALLOCNO_VEC_ACTIVE_SIZE,
6341         ALLOCNO_ORIGINAL_MEMORY_COST): Remove.
6342         (ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS): Rename to
6343         ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.
6344         (allocno_copy): New member loop_tree_node.
6345         (INT_BITS, INT_TYPE, EXECUTE_IF_SET_IN_ALLOCNO_SET): Move from
6346         ira-conflicts.c.
6347         (SET_ALLOCNO_SET_BIT, CLEAR_ALLOCNO_SET_BIT,
6348         TEST_ALLOCNO_SET_BIT): New macros.
6349         (ira_reallocate, allocno_conflict_index, add_allocno_conflict,
6350         create_allocno_live_range, finish_allocno_live_range,
6351         add_allocno_copy_to_list, swap_allocno_copy_ends_if_necessary,
6352         remove_allocno_copy_from_list, add_allocno_copy, ira_flattening,
6353         finish_ira_costs_once, rebuild_start_finish_chains,
6354         print_live_range_list, debug_live_range_list,
6355         debug_allocno_live_ranges, debug_live_ranges,
6356         create_allocno_live_ranges, finish_allocno_live_ranges,
6357         allocno_conflict_p, loop_edge_freq): New external function
6358         definitions.
6359         (hard_reg_in_set_p, original_regno_call_crossed_p,
6360         ira_max_regno_before, ira_max_regno_call_before): Remove.
6361         (traverse_loop_tree): Add new parameter type.
6362         (create_copy): Ditto.
6363         (debug_conflicts, ira_emit, add_allocno_copy): Add parameter.
6364         (debug_ira_call_data, split_around_calls, get_around_calls_regno):
6365         Remove.
6366         
6367         * ira.c (setup_prohibited_mode_move_regs): New function.
6368         (internal_flag_ira_verbose, allocno_pool, copy_pool,
6369         allocno_live_range_pool, important_class_nums): New external
6370         variables.
6371         (IRA_NO_OBSTACK): Uncomment it.
6372         (ira_reallocate): New function.
6373         (setup_cover_classes): Set up important_class_nums.
6374         (finish_ira_once): New function.
6375         (prohibited_mode_move_regs,
6376         prohibited_mode_move_regs_initialized_p): New global variables.
6377         (setup_prohibited_mode_move_regs): New function.
6378         (setup_reg_renumber): Remove parameters.
6379         (setup_allocno_assignment_from_reg_renumber): Rename to
6380         setup_allocno_assignment_flags.  Set up ALLOCNO_ASSIGNED_P.
6381         (calculate_allocation_cost): Use ALLOCNO_UPDATED_MEMORY_COST.
6382         (ira_max_regno_before, ira_max_regno_call_before): Remove.
6383         (ira): Set up internal_flag_ira_verbose.  Call
6384         setup_prohibited_mode_move_regs.  Create and destroy allocno,
6385         copy, and live range pools.  Remove original_regno_call_crossed_p.
6386         Report major passes.  Use argument for ira_emit.  Call
6387         ira_flattening and df_analyze.  Remove live range splitting around
6388         calls.
6389         
6390         * ira-build.c (setup_loop_tree_level, rebuild_regno_allocno_maps,
6391         expand_calls, compress_calls, allocno_conflict_index,
6392         add_to_allocno_conflict_vec, propagate_info_to_cap,
6393         copy_allocno_live_range, copy_allocno_live_range_list,
6394         finish_allocno, finish_copy,
6395         propagate_info_to_loop_tree_node_caps, merge_ranges,
6396         common_loop_tree_node_dominator, check_and_add_conflicts,
6397         add_conflict_with_underlying_allocnos, ira_flattening): New
6398         functions.
6399         (check_coalesced_allocnos): Remove.
6400         (ira_loop_tree_height): New external variable.
6401         (form_loop_tree): Call setup_loop_tree_level.
6402         (initiate_calls): Allocate a bit more.  (create_allocno): Use
6403         pool_alloc.  Set up ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM,
6404         ALLOCNO_TOTAL_CONFLICT_HARD_REGS, ALLOCNO_NREFS,
6405         ALLOCNO_TOTAL_NO_STACK_REG_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6406         ALLOCNO_MEM_OPTIMIZED_DEST_P, ALLOCNO_UPDATED_MEMORY_COST, and
6407         ALLOCNO_LIVE_RANGES.  Rename
6408         ALLOCNO_CONFLICT_ALLOCNO_VEC_ACTIVE_SIZE,
6409         ALLOCNO_CURR_HARD_REG_COSTS, and
6410         ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS to
6411         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_UPDATED_HARD_REG_COSTS, and
6412         ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.
6413         (add_allocno_conflict): Make it external.  Use
6414         add_to_allocno_conflict_vec.
6415         (create_cap_allocno): Move part of code to propagate_info_to_cap.
6416         (finish_allocnos): Use finish_allocno.
6417         (add_allocno_copy_to_list, remove_allocno_copy_from_list,
6418         swap_allocno_copy_ends_if_necessary, add_allocno_copy): Move from
6419         ira-conflicts.c.  Make them external.
6420         (create_copy): Use pool_alloc.  Add parameter loop_tree_node.
6421         (finish_copies): Use finish_copy.
6422         (ira_curr_regno_allocno_map): New external variable.
6423         (traverse_loop_tree): Add parameter bb_first_p.
6424         (create_insn_allocnos): Update ALLOCNO_NREFS.
6425         (create_loop_tree_node_allocnos): Traverse loop tree nodes with
6426         BBs first.  Update ALLOCNO_NREFS.
6427         (create_loop_tree_node_caps): Move part of code to
6428         propagate_info_to_loop_tree_node_cap.
6429         (regno_top_level_allocno_map): New global variable.
6430         (ira_build): Create caps before build conflicts.  Call
6431         create_allocno_live_ranges.  Propagate info to caps.  Report
6432         statistics.
6433         (ira_destroy): Call finish_allocno_live_ranges.
6435         * ira-conflicts.c (set_allocno_live, clear_allocno_live,
6436         record_regno_conflict, mark_reg_store, mark_reg_clobber,
6437         mark_reg_conflicts, mark_reg_death): Remove.
6438         (add_insn_allocno_copies, add_copies): New functions.
6439         (add_allocno_copy_to_list, remove_allocno_copy_from_list,
6440         swap_allocno_copy_ends_if_necessary, add_allocno_copy): Remove.
6441         (add_allocno_copies): Rename to add_insn_allocno_copies.  Use
6442         ira_curr_regno_allocno_map and add_insn_allocno_copies.
6443         (single_reg_class, single_reg_operand_class,
6444         process_single_reg_class_operands, process_bb_node_for_conflicts):
6445         Remove.
6446         (INT_BITS, INT_TYPE, EXECUTE_IF_SET_IN_ALLOCNO_SET): Move to
6447         ira-int.h.
6448         (allocnos_live_bitmap, SET_ALLOCNO_CONFLICT_ROW,
6449         CLEAR_ALLOCNO_CONFLICT_ROW, TEST_ALLOCNO_CONFLICT_ROW): Remove.
6450         (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE, TEST_ALLOCNO_LIVE):
6451         Use {SET, CLEAR, TEST}_ALLOCNO_SET_BIT.
6452         (allocno_row_words, hard_regs_live, curr_bb_node,
6453         curr_regno_allocno_map, curr_reg_pressure): Remove.
6454         (CONFLICTP): Rename to CONFLICT_P.
6455         (regs_set): Remove.
6456         (propagate_allocno_info): Use ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
6457         Set up ALLOCNO_CALLS_CROSSED_START.
6458         (allocno_conflict_p): New function.
6459         (allocno_reg_conflict_p): Use allocno_conflict_p.
6460         (build_allocno_conflict_vects): Divide original and propagated
6461         conflicts.
6462         (print_hard_reg_set): New function.
6463         (print_conflicts): Use print_hard_reg_set.  Set up mark for the
6464         start of propagated conflicts.
6465         (debug_conflicts): Add parameter.
6466         (ira_build_conflicts): Call add_copies.  Set up
6467         ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
6469         * ira-costs.c (struct costs): Make cost allocated dynamically.
6470         (struct_costs_size, temp_cots, op_costs, this_op_costs): New
6471         variables.
6472         (costs): Rename to total_costs.
6473         (COSTS_OF_ALLOCNO): New macro.
6474         (curr_regno_allocno_map): Remove.  Use ira_curr_regno_allocno_map
6475         instead.
6476         (record_reg_classes): Check NO_REGS in allocno_pref.
6477         (record_address_regs): Use COSTS_OF_ALLOCNO.
6478         (scan_one_insn): Ditto.
6479         (print_costs): Ditto.
6480         (find_allocno_class_costs): Ditto.  Pass additional argument to
6481         traverse_loop_tree.  Set up NO_REGS if memory is cheaper.
6482         (setup_allocno_cover_class_and_costs): Use
6483         ALLOCNO_UPDATED_MEMORY_COST instead of
6484         ALLOCNO_ORIGINAL_MEMORY_COST, ALLOCNO_UPDATED_HARD_REG_COSTS
6485         instead of ALLOCNO_CURR_HARD_REG_COSTS, and
6486         ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS instead of
6487         ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS.  Pass additional argument to
6488         traverse_loop_tree.
6489         (init_ira_costs_once): Allocate init_cost, op_costs,
6490         this_op_costs, temp_costs.
6491         (finish_ira_costs_once): New function.
6492         
6493         * ira-color.c: Use ALLOCNO_UPDATED_MEMORY_COST instead of
6494         ALLOCNO_ORIGINAL_MEMORY_COST, ALLOCNO_UPDATED_HARD_REG_COSTS
6495         instead of ALLOCNO_CURR_HARD_REG_COSTS, and
6496         ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS instead of
6497         ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS.  Use
6498         ALLOCNO_TOTAL_CONFLICT_HARD_REGS instead of
6499         ALLOCNO_CONFLICT_HARD_REGS.
6500         (processed_allocno_bitmap): Rename into
6501         processed_coalesced_allocno_bitmap.
6502         (allocno_cost_compare_func): Use ALLOCNO_UPDATED_MEMORY_COST
6503         instead of ALLOCNO_MEMORY_COST.
6504         (assign_hard_reg): Remove biased coloring.
6505         (add_allocno_to_ordered_bucket): Check cover class first.
6506         (loop_edge_freq): Make it external.
6507         (setup_allocno_left_conflicts_num): Check that conflicting
6508         allocnos of one class.
6509         (allocno_conflict_p): Rename to coalesced_allocno_conflict_p.
6510         (color_pass): Check pressure in the loop (not in subloops) for
6511         mixed algorithm.
6512         (allocno_priorities): New variable.
6513         (start_allocno_priorities, finish_allocno_priorities): New
6514         functions.
6515         (allocno_priority_compare_func): Use allocno_priorities.
6516         (priority_coloring): Call start_allocno_priorities and
6517         finish_allocno_priorities.
6518         (do_coloring): Pass additional argument to traverse_loop_tree.
6519         
6520         * ira-emit.c (struct move): Add member insn.
6521         (create_move): Initialize member insn.
6522         (generate_edge_moves): Set up ALLOCNO_MEM_OPTIMIZED_DEST and
6523         ALLOCNO_MEM_OPTIMIZED_DEST_P.
6524         (change_loop): Check prohibited_mode_move_regs.
6525         (curr_jump_map, can_move_through_p): Remove.
6526         (unify_moves): Don't move through jump.
6527         (modify_move_list): Set up attributes for new allocno used for
6528         breaking dependency loops.
6529         (emit_move_list): Set up insn codes.
6530         (update_costs, add_range_and_copies_from_move_list,
6531         add_ranges_and_copies): New functions.
6532         (ira_emit): Add a parameter.  Call add_ranges_and_copies.
6533         
6534 2007-10-09  Vladimir Makarov  <vmakarov@redhat.com>
6536         * toplev.h (flag_ira_coalesce): New external variable.
6538         * ira-int.h (allocno): New members first_coalesced_allocno,
6539         next_coalesced_allocno.
6540         (ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO):
6541         New macros.
6542         (reg_class_subintersect): New external variable.
6544         * ira-color.c (processed_allocno_bitmap): New variable.
6545         (allocno_cost_compare_func, print_coalesced_allocno): New
6546         functions.
6547         (assign_hard_reg): Process coalesced allocnos.
6548         (get_coalesced_allocnos_best_class_and_freq): New function.
6549         (add_allocno_to_ordered_bucket): Use the function.
6550         (push_allocno_to_stack, push_allocnos_to_stack): Process coalesced
6551         allocnos.
6552         (remove_allocno_from_bucket_and_push, pop_allocnos_from_stack):
6553         Use print_coalesced_allocno.
6554         (setup_allocno_available_regs_num,
6555         setup_allocno_left_conflicts_num): Process coalesced allocnos.
6556         (copy_freq_compare_func, allocno_conflict_p, coalesce_allocnos):
6557         New functions.
6558         (color_allocnos): Allocate/free processed_allocno_bitmap.  Call
6559         coalesce_allocnos.
6560         (priority_coloring): Allocate/free processed_allocno_bitmap.
6562         * ira-build.c (check_coalesced_allocnos): New function.
6563         (create_allocno): Initiate next_coalesced_allocno,
6564         first_coalesced_allocno.
6565         (create_cap_allocno): Check  next_coalesced_allocno,
6566         first_coalesced_allocno.
6568         * common.opt (fira-coalesce): New option.
6570         * ira.c (setup_reg_class_intersect): New function.
6571         (reg_class_subintersect): New global variable.
6572         (init_ira_once): Call setup_reg_class_intersect.
6574         * doc/invoke.texi (-fira-coalescing): New option.
6575         
6576 2007-09-20  Vladimir Makarov  <vmakarov@redhat.com>
6578         * ira-build.c (create_allocno): Initialize ALLOCNO_BEST_CLASS.
6580         * ira-color.c (add_allocno_to_ordered_bucket): Use
6581         ALLOCNO_BEST_CLASS.
6583         * ira-costs.c (setup_allocno_cover_class_and_costs): Initialize
6584         ALLOCNO_BEST_CLASS.
6586         * ira-int.h (allocno): New member best_class.
6587         (ALLOCNO_BEST_CLASS): New macro.
6588         
6589 2007-09-19  Vladimir Makarov  <vmakarov@redhat.com>
6591         * ira-int.h (allocno): Remove calls_crosed.  Add
6592         calls_crossed_start.
6593         (ALLOCNO_CALLS_CROSSED): Remove.
6594         (ALLOCNO_CALLS_CROSSED_START): Add.
6595         (build_df): Remove.
6596         (regno_calls, add_regno_call): New.
6597         
6598         * ira-build.c (initiate_calls, finish_calls, add_regno_call): New
6599         functions.
6600         (regno_calls, regno_calls_num): New globals.
6601         (build_df): Remove.
6602         (add_loop_to_tree): Use loop_outer.
6603         (form_loop_tree): Ditto.
6604         (initiate_allocnos, create_cap_allocno): Remove
6605         ALLOCNO_CALLS_CROSSED.  Add ALLOCNO_CALLS_CROSSED_START.
6606         (finish_allocnos): Remove ALLOCNO_CALLS_CROSSED.
6607         (create_bb_allocnos, create_loop_allocnos): Use DF_LR_{IN,OUT}
6608         instead of DF_UPWARD_LIVE_{IN,OUT}.
6609         (ira_build): Remove adding df problems and call of
6610         free_dominance_info.  Call initiate_calls.
6611         (ira_destroy): Add free_dominance_info and finish_calls.  Remove
6612         df_finish.
6614         * ira-emit.c (change_regs): Return the result.
6615         (generate_edge_moves): Use DF_LR_{IN,OUT} instead of
6616         DF_UPWARD_LIVE_{IN,OUT}.
6617         (change_loop): Call df_insn_rescan and df_note_rescan if there is
6618         a change.
6619         (can_move_through_p): Use hard_reg_set_equal_p instead of
6620         GO_IF_HARD_REG_EQUAL.
6622         * ira-costs.c (copy_cost, record_reg_classes,
6623         record_address_regs): Call init_move_cost if it is necessary.
6624         (tune_allocno_costs_and_cover_classes): Use regno_calls and
6625         ALLOCNO_CALLS_CROSSED_START instead of ALLOCNO_CALLS_CROSSED.
6627         * ira-conflicts.c (n_regs_set): Remove.
6628         (regs_set): Make it a vector.
6629         (mark_reg_store, mark_reg_clobber): Change 2nd parameter type.
6630         (process_bb_node_for_conflicts): Use DF_LR_IN instead of
6631         DF_UPWARD_LIVE_IN.  Call add_regno_call.  Initialize
6632         ALLOCNO_CALLS_CROSSED_START.  Remove ALLOCNO_CALLS_CROSSED.
6633         (build_conflict_bit_table): Initialize and finalize regs_set.
6634         (propagate_allocno_info): Remove ALLOCNO_CALLS_CROSSED.
6635         Initialzie ALLOCNO_CALLS_CROSSED_START.
6636         
6637         * ira-color.c (setup_allocno_available_regs_num,
6638         setup_allocno_left_conflicts_num): New functions.
6639         (update_allocno_avaialable_regs): Remove.
6640         (sorted_allocnos, allocno_stack_varray): Move upper.
6641         (assign_hard_reg): Use hard_reg_set_subset_p instead of
6642         GO_IF_HARD_REG_SUBSET.
6643         (loop_edge_freq): Use DF_LR_{IN,OUT} instead of
6644         DF_UPWARD_LIVE_{IN,OUT}.
6645         (put_allocno_into_bucket): Call setup_allocno_available_regs_num
6646         and setup_allocno_left_conflicts_num.
6647         (print_loop_title): Use loop_depth.
6648         (allocno_priority_compare_func): Remove REG_N_REFS and
6649         REG_LIVE_LENGTH.
6650         (retry_ira_color): Use SET_REGNO.  Use ALLOCNO_CALLS_CROSSED_NUM
6651         instead of ALLOCNO_CALLS_CROSSED.
6652         (collect_pseudo_call_clobbered_regs):  Use regno_calls and
6653         ALLOCNO_CALLS_CROSSED_START instead of ALLOCNO_CALLS_CROSSED.
6655         * ira-call.c (init_ira_call_data): Add argument to
6656         post_order_compute.
6657         (n_regs_set): Remove.
6658         (regs_set): Make it a vector.
6659         (mark_reg_store, mark_reg_clobber): Change 2nd parameter type.
6660         (mark_referenced_regs): Check null x.
6661         (put_save_restore_and_calculate_local_info): Initialize and
6662         finalize regs_set.  Use DF_LR_{IN,OUT} instead of
6663         DF_UPWARD_LIVE_{IN,OUT}.  Use loop_outer.
6664         (do_init_nothing): Remove.
6665         (save_trans_fun, save_con_fun_0, restore_trans_fun,
6666         restore_con_fun_0): Remove 1st parameter.
6667         (save_con_fun_n, restore_con_fun_n): Ditto.  Use
6668         df_simple_dataflow instead of df_analyze_problem.
6669         (put_save_restore): Use DF_LR_IN instead of DF_UPWARD_LIVE_IN.
6670         Call mark_all_referenced_regs for all insn.  Use bitmap progress.
6671         (get_move_insn): New function.
6672         (put_save_restore_and_calculate_local_info, put_save_restore): Use
6673         the function.
6675         * ira.c (insn_contains_asm_1, insn_contains_asm,
6676         compute_regs_asm_clobbered, expand_reg_info): New functions.
6677         (setup_class_subset_and_move_costs): Use hard_reg_set_subset_p
6678         instead of GO_IF_HARD_REG_SUBSET.
6679         (setup_reg_subclasses, setup_class_translate): Ditto. Use
6680         hard_reg_set_equal_p instead of GO_IF_HARD_REG_EQUAL.
6681         (setup_eliminable_regset): Call compute_regs_asm_clobbered.  Use
6682         df_set_regs_ever_live instead of regs_ever_live.
6683         (setup_reg_renumber): Check reg_equiv_const and
6684         reg_equiv_invariant_p.
6685         (ira): Remove no_new_pseudos. Add df-problems and analyze.  Call
6686         regstat_init_n_sets_and_refs and regstat_compute_ri.  Remove
6687         delete_unreachable_blocks.  Use expand_reg_info.  Move
6688         setup_preferred_alternate_classes upper.  Remove life_analysis.
6689         Prepare df-insfrastructure for reload.
6691         * regclass.c (setup_reg_classes): Don't use reg_pref_buffer.
6693         * function.[ch] (get_call_invalidated_used_regs): Change 1st
6694         parameter type.
6695         
6696         * gengtype.c (main): Add HARD_REG_SET.
6698         * alias.c (value_addr_p): New function.
6699         (nonoverlapping_memrefs_p): Use it.
6701         * caller-save.c (init_caller_save): Use DF_LR_TOP for IRA instead
6702         of global_live_at_start.
6703         
6704 2007-05-04  Vladimir Makarov  <vmakarov@redhat.com>
6706         * ira-conflicts.c: Change pseudo to allocno.
6707         * ira-color.c: Ditto.
6708         * ira-emit.c: Ditto.
6709         * ira-build.c: Ditto.
6710         * ira.c: Ditto.
6711         (important_classes_num, important_classes): New variables.
6712         (setup_cover_classes): Set up the variable values.
6713         * ira-costs.c: Ditto.
6714         (record_reg_classes, record_address_regs, scan_one_insn,
6715         find_pseudo_class_costs):  Process only important classes.
6716         * ira-call.c: Ditto.  Add comments about placement optimization.
6717         * ira-int.h: Ditto.
6718         (allocno) Use one bit field for boolean members.
6719         (important_classes_num, important_classes): New external
6720         definitions.
6722 2007-03-16  Vladimir Makarov  <vmakarov@redhat.com>
6724         * flags.h (ira_algorithm): Add IRA_ALGORITHM_MIXED.
6726         * opts.c (common_handle_option): Set up IRA_ALGORITHM_MIXED from
6727         the option argument.
6728         
6729         * common.opt (fira-assign-after-call-split, fira-propagate-cost,
6730         fira-split-around-calls): New options.
6731         (fira-ipra): Switch off by default.
6732         
6733         * doc/invoke.texi (-fira-algorithm): Add mixed algorithm.
6734         (-fno-ira-ipra): Rename to -fira-ipra.
6735         (-fno-ira-assign-after-call-split, -fira-propagate-cost,
6736         -fno-ira-split-around-calls): Add new options.
6737         
6738         * ira-conflicts.c (curr_reg_pressure): New variable.
6739         (set_pseudo_live, clear_pseudo_live, mark_reg_store,
6740         mark_reg_death): Update reg pressure.
6741         (add_pseudo_copies): Decrease cost for copy with dead pseudo.
6742         (process_bb_node_for_conflicts): Propagate reg pressure.
6743         (build_conflict_bit_table): Call process_bb_node_for_conflicts in
6744         preorder.
6745         (ira_build_conflicts): Add new coloring algorithm.
6746         (ira_build_conflicts): Add flag_ira_split_around_calls.
6748         * ira-emit.c (change_loop): Print allocation on the region
6749         borders.  Use pseudo_cap_member instead of regno.
6750         (modify_move_list): Add parameter to create pseudo.
6751         (ira_emit): Use pseudo_cap_member instead of regno.
6752         
6753         * ira-build.c (create_loop_tree_nodes): Set up initial reg
6754         pressure.
6755         (create_pseudo): Add parameter.  Use the parameter value instead
6756         of regno.
6757         (print_expanded_pseudo): Use pseudo_cap_member instead of regno.
6758         (create_cap_pseudo, create_insn_pseudos, create_bb_pseudos,
6759         create_loop_pseudos): Add argument to create_pseudo call.
6760         (create_pseudos, ira_build): Process IRA_ALGORITHM_MIXED.
6761         (create_loop_tree_node_caps):  Create cap pseudo for all pseudos
6762         not having father pseudo.
6763         
6764         * final.c (rest_of_handle_final): Process INCOMING_REGNO.
6766         * toplev.h (flag_ira_assign_after_call_split,
6767         flag_ira_propagate_cost, flag_ira_split_around_calls): New flags.
6769         * caller-save.c (save_call_clobbered_regs): Move declaration
6770         this_insn_sets to the function start.
6771         
6772         * ira-int.h (ira_loop_tree_node): Add reg_pressure.
6773         (pseudo): More comments for regno and cap_member
6774         (original_regno_call_crossed_p, ira_max_regno_before,
6775         ira_max_regno_call_before): New external variables.
6776         (create_pseudo): Add parameter.
6777         (reassign_conflict_pseudos, debug_ira_call_data,
6778         split_around_calls, get_around_calls_regno): New function
6779         prototypes.
6781         * ira-color.c (assign_hard_reg): Set best_hard_regno and
6782         conflict_regs earlier.  Check register availability earlier.
6783         Ignore conflict and copy cost for PSEUDO_MAY_BE_SPILLED_P.
6784         (calculate_pseudo_spill_cost): Use pseudo_cap instead of regno.
6785         Check father pseudo instead of subloop pseudos.
6786         (pop_pseudos_from_stack): Set up PSEUDO_ASSIGNED_P for NO_REGS
6787         pseudo.
6788         (print_loop_title): Print reg pressure.
6789         (color_pass): Use PSEUDO_CAP_MEMBER instead of regno.  Add mixed
6790         coloring algorithm.
6791         (move_spill_restore): Use PSEUDO_CAP_MEMBER instead of regno.  Use
6792         subloop pseudos instead of father pseudo for cost calculation.
6793         (setup_curr_costs, reassign_conflict_pseudos): New functions.
6794         (retry_ira_color): Don't allocate call used registers when
6795         flag_caller_saves or flag_ira_split_around_calls.  Call
6796         setup_curr_cost.  Print about spilling pseudo split around calls.
6797         (reuse_stack_slot): Choose the slot with minimal memory-memory
6798         costs.
6800         * ira.c (setup_reg_renumber): Add 2 parameters.  Use cap_number
6801         instead of regno.  Initialize caller_save_needed.  Make assertion
6802         stricter.
6803         (setup_pseudo_assignment_from_reg_renumber): New function.
6804         (calculate_allocation_cost): Add assertion.
6805         (print_redundant_copies): Use cap_number instead of regno.
6806         (original_regno_call_crossed_p, ira_max_regno_before,
6807         ira_max_regno_call_before): New global variables.
6808         (ira): Process IRA_ALGORITHM_MIXED.  Set up
6809         ira_max_regno_call_before and ira_max_regno_before.  New arguments
6810         for setup_reg_renumber.  Reassign if pseudo changed its class.
6811         Split pseudos around the call if necessary.  Reassign if a pseudo
6812         is split.
6814         * ira.h: New year for Copyright.
6816         * ira-costs.c (reg_pref): Rename to pseudo_pref.
6817         (reg_pref_buffer): rename to pseudo_pref_buffer.
6818         (find_pseudo_class_costs): Initialize best_cost and best_class.
6819         Process IRA_ALGORITHM_MIXED.  Find best cover class for regno.
6820         (process_bb_node_for_hard_reg_moves): Process IRA_ALGORITHM_MIXED.
6822         * Makefile.in (ira-call.o): Add new file.
6824         * reload1.c (calculate_needs_all_insns): Remove unnecessary
6825         memory-memory move.
6827         * ira-call.c: New file.
6828         
6829 2007-02-09  Vladimir Makarov  <vmakarov@redhat.com>
6831         * common.opt (fipra): Rename to fira-ipra.  Make it default.
6832         (fira-move-spills, fira-share-save-slots, fira-share-spill-slots):
6833         New.
6834         * toplev.h (flag_ipra): Rename to flag_ira_ipra.
6835         (flag_ira_move_spills, flag_ira_share_save_slots,
6836         flag_ira_share_spill_slots): New external definitions.
6837         * doc/invoke.texi (-fipra): Rename to -fno-ira-ipra. 
6838         (-fno-ira-move-spills, -fno-ira-share-save-slots,
6839         -fno-ira-share-spill-slots): New options.
6840         * function.c (get_call_invalidated_used_regs): Rename flag_ipra to
6841         flag_ira_ipra.
6842         * ira-costs.c (tune_pseudo_costs_and_cover_classes): Ditto.
6843         * caller-save.c (setup_save_areas): Use flag_ira_share_save_slots.
6844         Rename flag_ipra to flag_ira_ipra.
6845         (flag_ira_share_save_slots): Use flag_ira_move_spills.
6846         * ira-color.c (assign_hard_reg): Skip pseudos with different cover
6847         class.
6848         (reuse_stack_slot): Use flag_ira_share_spill_slots.
6849         * config/arm/arm.h (IRA_COVER_CLASSES): New macro.
6850         
6851 2007-02-31  Vladimir Makarov  <vmakarov@redhat.com>
6853         * reload.h (debug_save_data): New definition.
6854         
6855         * caller-save.c (struct bb_info): New.
6856         (BB_INFO, BB_INFO_BY_INDEX): New macros.
6857         (calculate_local_save_info, set_up_bb_rts_numbers, rpost_cmp,
6858         calculate_save_in_out, calculate_save_here,
6859         make_global_save_analysis, print_hard_reg_set_and_mode,
6860         print_hard_reg_set, print_save_data, debug_save_data,
6861         set_hard_reg_saved): New functions.
6862         (save_call_clobbered_regs): Make global save analysis and use it
6863         to put save/restore code.
6864         (insert_one_insn): Check CODE_LABEL.
6866 2007-01-19  Vladimir Makarov  <vmakarov@redhat.com>
6868         * toplev.h (flag_ipra): New external definition.
6870         * common.opt (fipra): New option.
6872         * doc/invoke.texi (-fipra); Document the option.
6874         * cgraph.h (cgraph_node): New member function_used_regs.
6876         * cgraph.c (cgraph_create_node): Initialize function_used_regs.
6878         * final.c (update_regs_ever_live): New function.
6879         (rest_of_handle_final): Set up function_used_regs and
6880         call_used_regs.
6882         * ira-build.c (ira_build): Clear function call_used_regs.
6884         * function.h: Add hard-reg-set.h header.
6885         (emit_status): New member call_used_regs.
6886         (get_call_invalidated_used_regs): New definition.
6888         * function.c (get_call, get_call_invalidated_used_regs): New
6889         functions.
6891         * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
6892         (caller-save.o): Add dependence on output.h and ira.h
6894         * regrename.c (copyprop_hardreg_forward_1): Use function
6895         get_call_invalidated_used_regs.
6897         * ira-conflicts.c (process_bb_node_for_conflicts): Ditto.
6899         * postreload-gcse.c (record_opr_changes,
6900         reg_set_between_after_reload_p, reg_used_between_after_reload_p):
6901         Ditto.
6903         * postreload.c (reload_combine, reload_cse_move2add): Ditto.
6905         * rtlanal.c (reg_set_between_p): Ditto.
6907         * flow.c (propagate_one_insn): Ditto.
6909         * df-scan.c (df_insn_refs_record): Ditto.
6911         * gcse.c (compute_hash_table_work, compute_store_table): Ditto.
6913         * cselib.c (cselib_process_insn): Ditto.
6915         * loop-iv.c (simplify_using_assignment): Ditto.
6917         * sched-deps.c (sched_analyze): Ditto.
6919         * combine.c (record_dead_and_set_regs): Ditto.
6921         * resource.c (mark_set_resources, mark_set_resources): Ditto.
6923         * var-tracking.c (var-tracking.c): Ditto.
6925         * reload1.c (reload): Ditto.
6927         * cse.c (invalidate_for_call): Ditto.  Add parameter.
6928         (cse_insn): Pass the parameter.
6930         * ira.h (try_to_migrate): Remove the definition.
6931         (collect_pseudo_call_clobbered_regs): New external definition.
6933         * ira-color.c (collect_pseudo_call_clobbered_regs): New function.
6935         * ira-costs.c (tune_pseudo_costs_and_cover_classes): Add cost
6936         calculation when IPRA is used.
6938         * caller-save.c: Include headers output.h and ira.h.
6939         (saved_hard_reg): New structure.
6940         (hard_reg_map, hard_reg_map, all_saved_regs): New variables.
6941         (all_saved_regs, new_saved_hard_reg, finish_saved_hard_regs,
6942         saved_hard_reg_compare_func): New functions.
6943         (setup_save_areas): Add code for sharing stack slots.
6944         (save_call_clobbered_regs): Use function
6945         get_call_invalidated_used_regs.
6946         
6947 2007-01-12  Vladimir Makarov  <vmakarov@redhat.com>
6949         * doc/tm.texi (IRA_HARD_REGNO_ADD_COST_MULTIPLIER): New macro.
6951         * ira-conflicts.c (add_pseudo_copies): Add copy between output and
6952         died operand pseudos.
6954         * ira.c (setup_cover_classes, setup_class_translate): Define and
6955         call only when IRA_COVER_CLASSES is defined.
6956         (no_alloc_regs): Rename to no_unit_alloc_regs.
6957         (setup_eliminable_regset): Set up no_alloc_regs.
6959         * ira-costs.c (tune_pseudo_costs_and_cover_classes): Modify cost
6960         if IRA_HARD_REGNO_ADD_COST_MULTIPLIER is defined.
6962         * config/s390/s390.h (IRA_COVER_CLASSES,
6963         IRA_HARD_REGNO_ADD_COST_MULTIPLIER(regno)): Define.
6964         
6965 2006-12-22  Vladimir Makarov  <vmakarov@redhat.com>
6967         * rtl.h (setup_reg_classes): New function prototype.
6968         
6969         * regclass.c (setup_reg_classes): New function.
6971         * global.c (global_alloc): Dump information about register
6972         assigning.
6974         * ira-int.h (ira_build): Change prototype signature.
6976         * ira-color.c (pseudo_compare_func): Rename to
6977         pseudo_priority_compare_func.
6978         (priority_coloring): Dump information about register
6979         assigning.
6981         * ira-build.c (ira_build): Return true if we have loops for the
6982         allocation.
6984         * ira.c (setup_preferred_alternate_classes): New function.
6985         (ira): Use it instead of regclass.  Rebuild only if we have loops.
6987 2006-12-15  Vladimir Makarov  <vmakarov@redhat.com>
6989         * ira.h, ira-int.h, ira.c, ira-build.c, ira-costs.c
6990         ira-conflicts.c, ira-color.c, ira-emit.c: New files.
6992         * flags.h (ira_algorithm): New enumeration.
6993         (flag_ira_algorithm): New external variable declaration.
6995         * tree-pass.h (pass_ira): New external variable declaration.
6997         * toplev.c (ira.h): New include.
6998         (flag_ira_algorithm): New global variable.
6999         (backend_init): Call init_ira_once.
7001         * toplev.h (flag_ira, flag_ira_biased_coloring): New external
7002         variable declarations.
7004         * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
7005         may_move_out_cost): New external variable declarations.
7006         
7007         * caller-save.c (no_caller_save_reg_set): New global variable.
7008         (init_caller_save): Set up no_caller_save_reg_set.
7009         
7010         * global.c (eliminable_regset): Make it external.
7011         (gate_handle_global_alloc): New function.
7012         (pass_global_alloc): Add the gate function.
7014         * opts.c (decode_options):  Print the warning for -fira.
7015         (common_handle_option): Process -fira-algorithm option.
7017         * timevar.def (TV_IRA): New pass.
7019         * hard-reg-set.h (no_caller_save_reg_set): New external variable
7020         declaration.
7022         * regmove.c (regmove_optimize): Don't do replacement of output
7023         operands by input operands.
7024         (rest_of_handle_regmove): Don't do CFG cleanup for IRA.
7026         * local-alloc.c (update_equiv_regs): Make it external.  Return
7027         true if jump label rebuilding should be done.
7028         (gate_handle_local_alloc): New function.
7029         (pass_local_alloc): Add the gate function.
7031         * alias.c (stack_addr_p): New function.
7032         (nonoverlapping_memrefs_p): Add code for IRA.
7034         * common.opt (fira, fira-algorithm, fira-biased-coloring): New
7035         options.
7037         * regclass.c (contains_reg_of_mode, move_cost, may_move_in_cost,
7038         may_move_out_cost): Make the variables external.
7039         
7040         * rtl.h (eliminable_regset): New external variable declaration.
7041         (update_equiv_regs): New external function definition.
7043         * Makefile.in (IRA_INT_H): New definition.
7044         (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
7045         ira-conflicts.o, ira-color.o, and ira-emit.o.
7046         (reload1.o, toplev.o): Add dependence on ira.h.
7047         (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
7048         ira-emit.o): New entries.
7050         * passes.c (pass_ira): New pass.
7052         * reload1.c (alter_reg): Add a new parameter.
7053         (pseudo_reg_compare): New function.
7054         (reload): Sort pseudos for IRA.  Call alter_reg with the
7055         additional parameter.
7056         (count_spilled_pseudo): New variable freq.  Use it.
7057         (alter_reg): Add code for IRA.
7058         (eliminate_regs_1, finish_spills, emit_input_reload_insns,
7059         delete_output_reload): Use additional parameter for alter_reg.
7060         (finish_spills, emit_input_reload_insns, delete_output_reload):
7061         Call mark_allocation_change.
7062         (finish_spills): Call retry_ira_color.
7063         
7064         * doc/invoke.texi: Describe new options -fira,
7065         -fira-biased-coloring, and -fira-algorithm.
7066         
7067         * doc/passes.texi: Decribe IRA.
7069         * doc/tm.texi:  Decribe macro IRA_COVER_CLASSES.
7070         
7071         * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
7073         * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
7075         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7077         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
7078         
7079         Richard Henderson  <rth@redhat.com>
7081         * tree-pass.h (pass_lower_subreg): New external definition.
7082         * toplev.h (flag_lower_subreg): New external definition.
7083         * rtl.def (CONCATN): New rtl expression.
7084         * dwarf2out.c (concatn_loc_descriptor): New function.
7085         (loc_descriptor): Process CONCATN.
7086         * timevar.def (TV_LOWER_SUBREG): New definition.
7087         * emit-rtl.c (gen_reg_rtx_offset): New function.
7088         (gen_lowpart_common): Process CONCATN.
7089         * simplify-rtx.c (simplify_subreg): Process CONCATN.
7090         * common.opt (flower-subreg): New options.
7091         * rtl.h (gen_reg_rtx_offset): New external definition.
7092         * Makefile.in (OBJS-common): Add lower-subreg.o.
7093         (lower-subreg.o): New entry.
7094         * passes.c (pass_lower_subreg): Add new pass.
7095         * lower-subreg.c: New file.
7096         
7097 2008-03-28  Rafael Espindola  <espindola@google.com>
7099         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
7100         (tree_binary_nonnegative_warnv_p): Make it public.
7101         (tree_single_nonnegative_warnv_p): Make it public.
7102         (tree_invalid_nonnegative_warnv_p): Make it public.
7103         (tree_unary_nonzero_warnv_p): Make it public.
7104         (tree_binary_nonzero_warnv_p): Make it public
7105         (tree_single_nonzero_warnv_p): Make it public.
7106         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
7107         (extract_range_from_binary_expr): Split the expr argument.
7108         (extract_range_from_unary_expr): Split the expr argument.
7109         (extract_range_from_comparison): Split the expr argument.
7110         (extract_range_from_expr): Use the new aux functions.
7111         (vrp_evaluate_conditional_warnv): Use
7112         vrp_evaluate_conditional_warnv_with_ops.
7113         * tree.h (tree_unary_nonzero_warnv_p): Declare.
7114         (tree_binary_nonzero_warnv_p): Declare.
7115         (tree_single_nonzero_warnv_p): Declare.
7116         (tree_expr_nonzero_warnv_p): Declare.
7117         (tree_unary_nonnegative_warnv_p): Declare.
7118         (tree_binary_nonnegative_warnv_p): Declare.
7119         (tree_single_nonnegative_warnv_p): Declare.
7120         (tree_invalid_nonnegative_warnv_p): Declare.
7122 2008-03-28  Richard Guenther  <rguenther@suse.de>
7124         PR tree-optimization/30317
7125         PR tree-optimization/30911
7126         PR tree-optimization/34793
7127         * tree-vrp.c (set_and_canonicalize_value_range): New function.
7128         (struct assert_locus_d): New member EXPR.
7129         (register_new_assert_for): Add EXPR parameter to support
7130         ASSERT_EXPR <name, expr OP limit>.
7131         (register_edge_assert_for_1): Adjust callers.
7132         (find_assert_locations): Likewise.
7133         (process_assert_insertions_for): Build condition from
7134         expression.
7135         (extract_range_from_assert): Handle ASSERT_EXPRs
7136         of the form ASSERT_EXPR <name, expr OP limit>.
7137         (register_edge_assert_for_2): New helper registering
7138         asserts for comparisons.  Recognize range tests of the form
7139         (unsigned)i - CST1 OP CST2.
7140         (register_edge_assert_for_1): Use it.
7141         (register_edge_assert_for): Likewise.
7142         (needs_overflow_infinity): Integer sub-types
7143         do not need overflow infinities.
7144         (vrp_val_is_max): The extreme values of integer sub-types
7145         are those of the base type.
7146         (vrp_val_is_min): Likewise.
7147         * tree.def (ASSERT_EXPR): Document extra allowed conditional
7148         expressions.
7150 2008-03-28  Nick Clifton  <nickc@redhat.com>
7152         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
7153         Return GENERAL_REGS for stack adjustment reloads.
7155 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7157         PR target/31334
7158         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
7159         const_vector when all the vectors are constant.
7161 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
7163         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
7164         comparisons.
7165         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
7166         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
7167         (scc_sf): New.
7168         (s<code>_sf): Use new scc_sf attribute for opcode names.
7170 2008-03-27  Tom Tromey  <tromey@redhat.com>
7172         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
7173         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
7174         config/spu/t-spu-elf, config/i386/t-interix,
7175         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
7176         config/i386/x-darwin, config/i386/x-mingw32,
7177         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
7178         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
7179         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
7180         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
7181         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
7182         config/rs6000/x-darwin, config/rs6000/t-rs6000,
7183         config/score/t-score-elf, config/arm/t-strongarm-pe,
7184         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
7185         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
7186         Revert automatic dependency patch.
7188 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7190         PR target/35657
7191         * config/i386/i386.c (ix86_function_arg_boundary): Align
7192         decimal floating point to its natural boundary.
7194 2008-03-27  Richard Guenther  <rguenther@suse.de>
7196         PR middle-end/35716
7197         * fold-const.c (fold_comparison): Restrict distinct decl
7198         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
7199         solely rely on operand_equal_p.
7201 2008-03-27  Richard Guenther  <rguenther@suse.de>
7203         PR c/32511
7204         * c-common.c (handle_weak_attribute): Reject combination of
7205         weak and inline.
7207 2008-03-27  Richard Guenther  <rguenther@suse.de>
7209         PR tree-optimization/32810
7210         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
7211         conversions from DECL_INITIAL.
7212         (fold_const_aggregate_ref): Likewise from constructor elements.
7214 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
7216         * tree-affine.h (aff_combination_expand): Declare.
7217         (get_inner_reference_aff): Likewise.
7218         * tree-affine.c (aff_combination_expand): Split out from
7219         tree_to_aff_combination_expand.
7220         (get_inner_reference_aff): New function.
7221         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
7222         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
7223         (struct lim_aux_data): sm_done field removed.
7224         (mem_ref_loc_p, mem_ref_locs_p): New types.
7225         (struct mem_ref): Added id, stored, accesses_in_loop,
7226         indep_loop, dep_loop, indep_ref, dep_ref fields.
7227         Removed is_stored, locs and next fields.
7228         (memory_accesses): New variable.
7229         (movement_possibility): Do not allow moving statements
7230         that store to memory.
7231         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
7232         New functions.
7233         (determine_max_movement): For statements with memory references,
7234         find the outermost loop in that the reference is independent.
7235         (move_computations_stmt): Mark the virtual operands for
7236         renaming.
7237         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
7238         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
7239         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
7240         add_vop_ref_mapping, create_vop_ref_mapping_loop,
7241         create_vop_ref_mapping, analyze_memory_references,
7242         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
7243         get_all_locs_in_loop, ref_always_accessed_p,
7244         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
7245         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
7246         store_motion_loop, store_motion): New functions.
7247         (struct vop_to_refs_elt): New type.
7248         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
7249         memref_hash, memref_eq, hoist_memory_references): Rewritten.
7250         (schedule_sm): Replaced by...
7251         (execute_sm): ... this.
7252         (determine_lsm_ref, hoist_memory_references,
7253         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
7254         find_more_ref_vops, free_mem_ref, free_mem_refs,
7255         determine_lsm_loop, determine_lsm): Removed.
7256         (tree_ssa_lim_finalize): Free data structures used by store
7257         motion.
7258         (tree_ssa_lim): Call analyze_memory_references.  Use
7259         store_motion instead of determine_lsm.
7261 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
7263         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
7264         rename tmake_file to m68hc11/t-m68hc11.
7265         (mcore): Set inhibit_libc to true.
7266         * config.host (alpha*-dec-*vms*): Set extra_programs.
7267         (interix3*): Don't use host_xmake_file.
7268         * configure.ac: Let config.gcc override inhibit_libc.
7269         * configure: Regenerate.
7271         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
7272         * config/t-openbsd-thread: Remove commented out lines.
7273         
7274         * config/x-interix: Remove.
7276         * config/m68hc11/t-m68hc11-gas: Rename to...
7277         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
7279         * config/mcore/t-mcore: Remove T_CFLAGS.
7280         * config/mcore/t-mcore-pe: Likewise.
7282 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
7284         * configure.ac: Replace custom __GNU_SOURCE test with
7285         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
7286         * aclocal.m4: Regenerate.
7287         * configure: Regenerate.
7288         * config.in: Regenerate.
7290 2008-03-27  Richard Guenther  <rguenther@suse.de>
7292         * fold-const.c (target.h): Include.
7293         (fold_comparison): Fold comparison of addresses of decls
7294         that bind locally or of constants.  Consolidate address folding code.
7295         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
7296         results from fold_binary_to_constant.
7297         (compare_values_warnv): Likewise.
7299 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
7301         PR middle-end/35429
7302         * fold-const.c (fold_truthop): Check for integeral types when folding
7303         a == 0 && b == 0 and a != 0 || b != 0 .
7305 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7307         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
7309 2008-03-26  Andreas Schwab  <schwab@suse.de>
7311         * doc/invoke.texi: Fix use of @item vs. @itemx.
7313 2008-03-26  Tom Tromey  <tromey@redhat.com>
7315         * Makefile.in (build/gensupport.o, build/print-rtl.o,
7316         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
7317         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
7318         build/gencodes.o, build/genconditions.o, build/genconfig.o,
7319         build/genconstants.o, build/genemit.o, build/genextract.o,
7320         build/genflags.o, build/genmddeps.o, build/genopinit.o,
7321         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
7322         options.h.
7324 2008-03-26  Richard Guenther  <rguenther@suse.de>
7326         Revert
7327         2008-03-26  Richard Guenther  <rguenther@suse.de>
7329         * fold-const.c (target.h): Include.
7330         (fold_comparison): Fold comparison of addresses of two decls
7331         that bind locally.  Consolidate address folding code.
7333 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7335         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
7336         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
7337         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
7338         dconstsqrt2, dconstthird, dconste and/or dconst10.
7339         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
7340         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
7341         dconstsqrt2, dconste): Delete.
7342         (init_emit_once): Likewise.  Simplify initializing dconstm1.
7343         Constify variable.
7344         * real.c (get_real_const): New.
7345         * real.h (dconst3, dconst10, dconstm2, dconstthird,
7346         dconstsqrt2, dconste): Delete.
7347         (real_value_const, get_real_const): New.
7349 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
7351         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
7353         * config/i386/i386.c (ix86_function_arg_boundary): Check
7354         BIGGEST_ALIGNMENT instead of 128.
7355         (setup_incoming_varargs_64): Likewise.
7357 2008-03-26  Tom Tromey  <tromey@redhat.com>
7359         * Makefile.in (DEPFILES): Add missing '/'.
7361 2008-03-26  Richard Guenther  <rguenther@suse.de>
7363         * fold-const.c (target.h): Include.
7364         (fold_comparison): Fold comparison of addresses of two decls
7365         that bind locally.  Consolidate address folding code.
7367 2008-03-26  Nick Clifton  <nickc@redhat.com>
7369         PR target/31232
7370         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
7371         not allow INT+INT as a legitimate addressing mode.
7373 2008-03-26  Richard Guenther  <rguenther@suse.de>
7375         * tree-flow.h (widen_bitfield): Remove declaration.
7376         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
7377         (widen_bitfield): Remove function.
7378         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
7379         code.
7381 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7383         PR target/31558
7384         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
7385         error_mark_node's.
7387 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
7389         PR rtl-optimization/35232
7390         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
7391         (forget_old_reloads_1, forget_marked_reloads): Don't clear
7392         reg_reloaded_call_part_clobbered here.
7393         (reload_regs_reach_end_p): New function.
7394         (reload_reg_rtx_for_input): New variable.
7395         (reload_reg_rtx_for_output): Likewise.
7396         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
7397         when reassigning a pseudo register.  Load reloadreg from 
7398         reload_reg_rtx_for_input, moving the mode and register
7399         calculation to...
7400         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
7401         instead of the original when deciding whether an input reload
7402         would be a no-op or whether an output reload can be deleted.
7403         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
7404         when setting up new_spill_reg_store.  Load it from
7405         reload_reg_rtx_for_output, moving the mode and register
7406         calculation to...
7407         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
7408         instead of the original when deciding whether an output reload
7409         would be a no-op.  Do the same when modifying insn notes.
7410         Use rtx_equal_p instead of == to compare the registers.
7411         (inherit_piecemeal_p): Take a mode and two register numbers
7412         as argument.
7413         (emit_reload_insns): Clear new_spill_reg_store for every hard
7414         register in the reload register.  Remove spill registers
7415         from reg_reloaded_valid before considering whether to record
7416         inheritance information for them.  Use reload_reg_rtx_for_output
7417         instead of reg_rtx when recording output reloads.  Use
7418         reload_reg_rtx_for_input instead of reg_rtx when recording
7419         input reloads.  Set or clear reg_reloaded_call_part_clobbered
7420         at the same time as setting reg_reloaded_valid.
7421         (delete_output_reload): Add a new_reload_reg parameter and use it
7422         instead of rld[j].reg_rtx.
7423         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
7424         calls accordingly.
7426 2008-03-25  Tom Tromey  <tromey@redhat.com>
7428         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
7429         (build/genattr.o): Likewise.
7430         (build/genattrtab.o): Likewise.
7431         (build/gencodes.o): Likewise.
7432         (build/genconfig.o): Likewise.
7433         (build/genconstants.o): Likewise.
7434         (build/genemit.o): Likewise.
7435         (build/genextract.o): Likewise.
7436         (build/genflags.o): Likewise.
7438 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
7439         
7440         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
7441         instead of size_int for integer types.
7442         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
7443         to match type of MINUS_EXPR.
7444         
7445 2008-03-25  Tom Tromey  <tromey@redhat.com>
7447         * configure: Rebuilt.
7448         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
7449         Makefile.
7451 2008-03-25  Tom Tromey  <tromey@redhat.com>
7453         * config/x-solaris (host-solaris.o): Update.
7454         * config/x-linux (host-linux.o): Update.
7455         * config/x-hpux (host-hpux.o): Update.
7456         * config/x-darwin (host-darwin.o): Update.
7457         * config/v850/t-v850e (v850-c.o): Update.
7458         * config/v850/t-v850 (v850-c.o): Update.
7459         * config/t-vxworks (vxworks.o): Update.
7460         * config/t-sol2 (sol2-c.o, sol2.o): Update.
7461         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
7462         * config/spu/t-spu-elf (spu-c.o): Update.
7463         (spu.o): Remove.
7464         * config/sh/t-symbian (sh-c.o): Update.
7465         (symbian.o): Update.
7466         * config/sh/t-sh (sh-c.o): Update.
7467         * config/score/t-score-elf (score7.o, score3.o): Update.
7468         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
7469         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
7470         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
7471         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
7472         (rs6000.o): Remove.
7473         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
7474         * config/m32c/t-m32c (m32c-pragma.o): Update.
7475         * config/ia64/t-ia64 (ia64-c.o): Update.
7476         * config/i386/x-mingw32 (host-mingw32.o): Update.
7477         * config/i386/x-i386 (driver-i386.o): Update.
7478         * config/i386/x-darwin (host-i386-darwin.o): Update.
7479         * config/i386/x-cygwin (host-cygwin.o): Update.
7480         * config/i386/t-nwld (nwld.o): Update.
7481         * config/i386/t-netware (netware.o): Update.
7482         * config/i386/t-interix (winnt.o): Update.
7483         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
7484         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
7485         msformat-c.o): Update.
7486         * config/bfin/t-bfin-linux (generated_files): Add
7487         linux-sysroot-suffix.h.
7488         * config/arm/t-wince-pe (pe.o): Update.
7489         * config/arm/t-strongarm-pe (pe.o): Update.
7490         * config/arm/t-pe (pe.o): Update.
7491         * config/arm/t-arm (arm-c.o): Update.
7492         * doc/install.texi (Prerequisites): Require make 3.80.
7493         * Makefile.in: Remove .o targets.
7494         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
7495         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
7496         (simple_generated_h, simple_generated_c): Move earlier.
7497         (generated_files): New variable.
7498         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
7499         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
7500         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
7501         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
7502         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
7503         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
7504         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
7505         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
7506         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
7507         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
7508         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
7509         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
7510         (.c.o): Remove.
7511         (COMPILE.base, COMPILE): New variables.
7512         (%.o): New pattern rule.
7513         (ALL_HOST_OBJS): New variable.
7514         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
7515         (dummy-checksum.o, cc1-checksum.o): Remove.
7516         (DRIVER_SHLIB): New variable.
7517         (DRIVER_DEFINES): Use it.
7518         (gencondmd.c): Move out of build/.
7519         (s-conditions): Update.
7520         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
7521         (ALL_BUILD_OBJS): Likewise.
7522         (build/%.o): Use BUILDCOMPILE.
7523         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
7524         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
7525         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
7526         build/gencheck.o, build/gencodes.o, build/genconditions.o,
7527         build/genconfig.o, build/genconstants.o, build/genemit.o,
7528         build/genextract.o, build/genflags.o, build/genmddeps.o,
7529         build/genopinit.o, build/genoutput.o, build/genpeep.o,
7530         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
7531         build/gen-protos.o, build/scan.o, build/fix-header.o,
7532         build/scan-decls.o): Simplify.
7533         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
7534         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
7535         prefix.o, toplev.o): Reduce to variable setting.
7536         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
7537         ($(out_object_file), gcc-options.o): New targets.
7538         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
7539         * configure: Rebuilt.
7540         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
7541         * doc/sourcebuild.texi (Front End Directory): Document new variable.
7543 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
7545         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
7546         complain when we hit an error, return ERROR_MARK_NODE.
7548 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
7550         * config/sh/constraints.md (Pso, Psz): New constraints.
7551         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
7552         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
7554 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
7556         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
7557         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
7559 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
7561         * config/sh/sh.md (prefetch): Add condition for SH2A target.
7562         (prefetch_sh2a): New.   
7564 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
7565             Naveen.H.S  <naveen.hs@kpitcummins.com>
7567         * config/sh/constraints.md (I28): New constraint.
7568         * config/sh/sh.c (broken_move): Add support for movi20s.
7569         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
7571 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
7572             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
7573             Naveen.H.S  <naveen.hs@kpitcummins.com>
7575         * config/sh/sh.c (SH_ATTRIBUTES): Define.
7576         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
7577         (print_operand): Handle resbank in %@ operand code.
7578         (sh_encode_section_info): New.
7579         (push_regs): Add conditions for resbank.
7580         (sh_expand_epilogue): Likewise.
7581         (sh_insert_attributes): Likewise.
7582         (sh_attribute_table): Likewise.
7583         (sh_handle_resbank_handler_attribute): New.
7584         (sh2a_handle_function_vector_handler_attribute): New.
7585         (sh2a_is_function_vector_call): New.
7586         (sh2a_get_function_vector_number): New.
7587         (sh2a_function_vector_p): New.
7588         (sh_cfun_resbank_handler_p): New.
7589         * config/sh/sh.md (calli): Emit jsr/n if possible.
7590         (calli_tbr_rel): New.
7591         (calli_pcrel): Emit jsr/n if possible.
7592         (return_i): Emit rts/n if possible.
7593         (call_valuei_tbr_rel): New.
7594         (call_valuei_pcrel): Add condition for SH2A target.
7595         (call_value): Likewise.
7596         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
7597         (sh2a_get_function_vector_number): Likewise.
7598         (sh2a_is_function_vector_call): Likewise.
7599         * doc/extend.texi: Document TBR relative addressing of SH2A.
7600         (resbank): Add description for SH2A.
7602 2008-03-24  Richard Guenther  <rguenther@suse.de>
7604         PR c/22371
7605         * gimplify.c (gimplify_modify_expr): For frontend type-correct
7606         pointer assignments change conversions according to middle-end rules.
7607         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
7608         * configure.ac: Include type checking in yes.
7609         * configure: Regenerate.
7611 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7613         * diagnostic.c (diagnostic_count_diagnostic): Delete.
7614         (diagnostic_report_diagnostic): Update. Handle ICEs here.
7615         
7616 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
7618         * gthr-vxworks.h (UNUSED): Define.
7620 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
7622         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and
7623         CX_REG.
7625 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
7627         * doc/extend.texi (Function Attributes): Add missing comma in the
7628         example of the "alloc_size" attribute.
7629         
7630 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
7632         Revert:
7633         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
7635         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
7636         32bit host.
7638         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
7640         PR target/35496
7641         * stor-layout.c (update_alignment_for_field): Set minimum alignment
7642         of the underlying type of a MS bitfield layout to the natural
7643         alignment of the type.
7645         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
7647         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
7648         to their natural alignment to avoid store forwarding stalls.
7650 2008-03-22  Richard Guenther  <rguenther@suse.de>
7652         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
7653         For PHI nodes verify the address is invariant.
7654         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
7655         (get_symbol_constant_value): Use is_gimple_min_invariant.
7656         (maybe_fold_stmt_indirect): Likewise.
7658 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
7660         PR rtl-optimization/33927
7661         * Makefile.in (dse.o): Depend on $(TM_P_H).
7662         * expr.h (extract_low_bits): Declare.
7663         * expmed.c (extract_low_bits): New function.
7664         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
7665         * dse.c: Include tm_p.h.
7666         (find_shift_sequence): Remove the read_reg argument and return the
7667         read value.  Emit the instructions instead of returning them.
7668         Iterate on new_mode rather than calculating it each time.
7669         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
7670         source to NEW_MODE and extract_low_bits to convert the shifted
7671         value to READ_MODE.
7672         (replace_read): Allow the load and store to have different mode
7673         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
7674         or extraction instructions before trying the replacement.  Update
7675         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
7677 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
7679         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
7680         to their natural alignment to avoid store forwarding stalls.
7682 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7684         PR target/27946
7685         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
7686         encouraging but not allowing gprs for input;
7687         change the input constraint to !f#r.
7688         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
7689         gprs for output;
7690         change the output constraint to !f#r.
7692 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
7694         PR target/13958
7695         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
7696         corresponding post-reload splitters.
7697         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
7698         when x87 FP math is selected.
7699         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
7700         New function prototype.
7701         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
7702         unreachable function to ease macroization of insn patterns.
7704 2008-03-21  Martin Jambor  <mjambor@suse.cz>
7706         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
7707         reference dumps if ddr is NULL or dependence is unknown.
7709 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
7711         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
7712         unsigned extension into account.
7713         (ATOMIC_COMPARE_AND_SWAP): Likewise.
7714         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
7715         Do computations on a scratch register.
7717 2008-03-21  Richard Guenther  <rguenther@suse.de>
7719         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
7720         Use is_gimple_min_invariant instead of TREE_INVARIANT.
7721         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
7722         * tree-ssa-dom.c (record_equality): Likewise.
7723         * tree-inline.c (copy_body_r): Likewise.
7724         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
7725         TREE_INVARIANT.
7727 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
7729         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
7730         as 'delete_unused' argument.
7732 2008-03-20  Richard Guenther  <rguenther@suse.de>
7734         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
7735         special casing of constant qualifiers.
7736         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
7737         care about them in general.
7738         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
7739         regardless of their type.
7740         (fold_stmt_r): Forcefully fold *& if we end up with that.
7742 2008-03-20  Paul Brook  <paul@codesourcery.com>
7744         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
7745         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
7746         linker flags.
7747         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
7748         definition.
7749         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
7750         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
7752 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
7754         * common.opt (Wmudflap): New option.
7755         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
7756         (mx_register_decls): Likewise.
7757         (mudflap_finish_file): Likewise.
7758         * doc/invoke.texi: Document -Wno-mudflap.
7760 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
7762         * c-format.c (replace_format_name_to_system_name): New.
7763         (cmp_attribs): New.
7764         (convert_format_name_to_system_name): New.
7765         (decode_format_attr): Add use of convert_format_name_to_system_name.
7766         (format_types_orig): Add gnu_ prefix to names.
7767         (check_format_info_main): Special treating of \0 escaped names for
7768         supporting multi-character format specifiers as I32, I64.
7769         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
7770         (gnu_target_overrides_format_attributes): New.
7771         * c-format.h: Add structure target_ovr_attr to hold
7772         system specific formatter names.
7773         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
7774         msformat-c.o file to c_target_objs and cxx_target_objs.
7775         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
7776         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
7777         (TARGET_N_FORMAT_TYPES): New.
7778         * config/i386/msformat-c.c: New.
7779         * config/i386/t-cygming: Add build rule for msformat-c.o.
7780         * doc/extend.texi: Add new format names gnu_* and ms_* and
7781         further details.
7782         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
7784 2008-03-20  Ira Rosen  <irar@il.ibm.com>
7786         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
7787         optimizations turned on under -O3.
7788         (ftree-vectorize): Add that the flag is turned on with -O3.
7790 2008-03-20  Ben Elliston  <bje@au.ibm.com>
7792         * regmove.c (try_auto_increment): Fix spelling error in comment.
7793         * final.c (final_scan_insn): Likewise.
7795 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
7797         PR target/14552
7798         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
7799         allocator preferences for "y" and "r" class registers.
7800         ("*mov<mode>_internal"): Ditto.
7801         ("*movv2sf_internal_rex64"): Ditto.
7802         ("*movv2sf_internal"): Ditto.
7804 2008-03-19  Michael Matz  <matz@suse.de>
7806         PR middle-end/35616
7807         * calls.c (expand_call): Check overlap of arguments with call
7808         address for sibcalls.
7810 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
7812         PR target/35496
7813         * stor-layout.c (update_alignment_for_field): Set minimum alignment
7814         of the underlying type of a MS bitfield layout to the natural
7815         alignment of the type.
7817 2008-03-19  Jan Hubicka  <jh@suse.cz>
7819         PR other/35094
7820         * toplev.c (decode_d_option): Handle all CPP flags.
7821         * tree-vrp.c: Update tree_pass descriptors.
7822         * regrename.c: Update tree_pass descriptors.
7823         * fwprop.c: Update tree_pass descriptors.
7824         * doc/invoke.texi: Remove documentation of dropped -d? flags.
7825         * tree-into-ssa.c: Update tree_pass descriptors.
7826         * tree-dump.c: Update tree_pass descriptors.
7827         * tree-complex.c: Update tree_pass descriptors.
7828         * tree-dump.h: Update tree_pass descriptors.
7829         * see.c: Update tree_pass descriptors.
7830         * cgraphbuild.c: Update tree_pass descriptors.
7831         * tracer.c: Update tree_pass descriptors.
7832         * tree-loop-distribution.c: Update tree_pass descriptors.
7833         * cgraph.c: Update tree_pass descriptors.
7834         * postreload-gcse.c: Update tree_pass descriptors.
7835         * postreload.c: Update tree_pass descriptors.
7836         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
7837         * tree-tailcall.c: Update tree_pass descriptors.
7838         * tree-pass.h (tree_opt_pass): Rename to ...
7839         (opt_pass) ... this one; add "type" field and remove letter field.
7840         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
7841         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
7842         all_lowering_passes): Update declaration.
7843         * ipa-cp.c: Update tree_pass descriptors.
7844         * final.c: Update tree_pass descriptors.
7845         * omp-low.c: Update tree_pass descriptors.
7846         * tree-ssa-dse.c: Update tree_pass descriptors.
7847         * ipa-reference.c: Update tree_pass descriptors.
7848         * tree-ssa-uncprop.c: Update tree_pass descriptors.
7849         * auto-inc-dec.c: Update tree_pass descriptors.
7850         * reorg.c: Update tree_pass descriptors.
7851         * cgraphunit.c: Update tree_pass descriptors.
7852         * tree-ssa-copyrename.c: Update tree_pass descriptors.
7853         * tree-ssa-ccp.c: Update tree_pass descriptors.
7854         * df-core.c: Update tree_pass descriptors.
7855         * mode-switching.c: Update tree_pass descriptors.
7856         * tree-nomudflap.c: Update tree_pass descriptors.
7857         * modulo-sched.c: Update tree_pass descriptors.
7858         * ipa-pure-const.c: Update tree_pass descriptors.
7859         * cse.c: Update tree_pass descriptors.
7860         * web.c: Update tree_pass descriptors.
7861         * tree-stdarg.c: Update tree_pass descriptors.
7862         * tree-ssa-math-opts.c: Update tree_pass descriptors.
7863         * tree-ssa-dom.c: Update tree_pass descriptors.
7864         * tree-nrv.c: Update tree_pass descriptors.
7865         * tree-ssa-alias.c: Update tree_pass descriptors.
7866         * loop-init.c: Update tree_pass descriptors.
7867         * gimple-low.c: Update tree_pass descriptors.
7868         * ipa-inline.c: Update tree_pass descriptors.
7869         * tree-ssa-sink.c: Update tree_pass descriptors.
7870         * global.c: Update tree_pass descriptors.
7871         * ifcvt.c: Update tree_pass descriptors.
7872         * jump.c: Update tree_pass descriptors.
7873         * predict.c: Update tree_pass descriptors.
7874         * tree-ssa-loop.c: Update tree_pass descriptors.
7875         * recog.c: Update tree_pass descriptors.
7876         * dse.c: Update tree_pass descriptors.
7877         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
7878         * tree-eh.c: Update tree_pass descriptors.
7879         * regmove.c: Update tree_pass descriptors.
7880         * local-alloc.c
7881         * function.c: Update tree_pass descriptors.
7882         * tree-vectorizer.c: Update tree_pass descriptors.
7883         * gcse.c: Update tree_pass descriptors.
7884         * ipa-type-escape.c: Update tree_pass descriptors.
7885         * tree-if-conv.c: Update tree_pass descriptors.
7886         * init-regs.c: Update tree_pass descriptors.
7887         * ipa.c: Update tree_pass descriptors.
7888         * tree-ssa-phiopt.c: Update tree_pass descriptors.
7889         * rtl-factoring.c: Update tree_pass descriptors.
7890         * lower-subreg.c: Update tree_pass descriptors.
7891         * bt-load.c: Update tree_pass descriptors.
7892         * tree-dfa.c: Update tree_pass descriptors.
7893         * except.c: Update tree_pass descriptors.
7894         * emit-rtl.c: Update tree_pass descriptors.
7895         * cfgexpand.c: Update tree_pass descriptors.
7896         * tree-cfgcleanup.c: Update tree_pass descriptors.
7897         * cfgcleanup.c: Update tree_pass descriptors.
7898         * tree-ssa-pre.c: Update tree_pass descriptors.
7899         * tree-sra.c: Update tree_pass descriptors.
7900         * tree-mudflap.c: Update tree_pass descriptors.
7901         * tree-ssa-copy.c: Update tree_pass descriptors.
7902         * cfglayout.c: Update tree_pass descriptors.
7903         * tree-ssa-forwprop.c: Update tree_pass descriptors.
7904         * tree-ssa-dce.c: Update tree_pass descriptors.
7905         * tree-ssa.c: Update tree_pass descriptors.
7906         * regclass.c: Update tree_pass descriptors.
7907         * integrate.c: Update tree_pass descriptors.
7908         * tree-optimize.c: Update tree_pass descriptors.
7909         * tree-ssa-phiprop.c: Update tree_pass descriptors.
7910         * tree-object-size.c: Update tree_pass descriptors.
7911         * combine.c: Update tree_pass descriptors.
7912         * tree-outof-ssa.c: Update tree_pass descriptors.
7913         * bb-reorder.c: Update tree_pass descriptors.
7914         * stack-ptr-mod.c: Update tree_pass descriptors.
7915         * var-tracking.c: Update tree_pass descriptors.
7916         * tree-profile.c: Update tree_pass descriptors.
7917         * tree-vect-generic.c: Update tree_pass descriptors.
7918         * reg-stack.c: Update tree_pass descriptors.
7919         * sched-rgn.c: Update tree_pass descriptors.
7920         * tree-ssa-structalias.c: Update tree_pass descriptors.
7921         * tree-cfg.c: Update tree_pass descriptors.
7922         * passes.c (current_pass): Update declaration.
7923         (finish_optimization_passes): Update.
7924         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
7925         (register_one_dump_file, register_dump_files_1, next_pass_1):
7926         Update arguments.
7927         (init_optimization_passes): Update handling of new types.
7928         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
7929         * ipa-struct-reorg.c: Update tree_pass descriptors.
7930         * tree-ssa-reassoc.c: Update tree_pass descriptors.
7931         * combine-stack-adj.c: Update tree_pass descriptors.
7932         * cfgrtl.c: Update tree_pass descriptors.
7933         * dce.c: Update tree_pass descriptors.
7934         * tree-ssanames.c: Update tree_pass descriptors.
7936 2008-03-19  Richard Guenther  <rguenther@suse.de>
7938         PR middle-end/35609
7939         * tree-ssa.c (walk_data): New structure.
7940         (warn_uninitialized_var): If not always_executed warn with "maybe"
7941         instead of "is".
7942         (execute_early_warn_uninitialized): Compute post-dominators.
7943         Initialize always_executed before processing each basic block.
7945 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
7947         PR target/35504
7948         * config/i386/i386.c (x86_this_parameter): Calculate correct location
7949         of "this" pointer when "regparm = N" or "fastcall" is in effect.
7951 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7953         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
7955 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
7957         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
7958         is true.
7959         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
7960         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
7961         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
7962         target after ignore has been set, and move there also the commputation
7963         of subtarget and original_target.
7964         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
7965         (LANG_HOOKS_INITIALIZER): Remove it.
7966         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
7968 2008-03-18  Richard Guenther  <rguenther@suse.de>
7970         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
7971         found an expression with constants, note that in the VN for the lhs.
7972         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
7973         fold them to constants if possible.  Run cleanup_cfg if done so.
7974         (execute_pre): Return todo.
7975         (do_pre): Likewise.
7976         (execute_fre): Likewise.
7977         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
7978         of constants.
7979         (get_prop_source_stmt): Look through pointer conversions.
7981 2008-03-18  Jan Hubicka  <jh@suse.cz>
7983         * tree-pretty-print.c: Include predict.h.
7984         (dump_generic_node): Dump predictor.
7985         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
7986         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
7987         * gimple-low.c (lower_stmt): Likewise.
7988         * expr.c (expand_expr_real): Likewise.
7989         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
7990         them.
7991         (build_predict_expr, build_predict_expr): New.
7992         * predict.h (predictor_name, build_predict_expr): Update.
7993         * c-typeck.c (c_finish_bc_stmt): Add prediction.
7994         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
7995         * predict.def (PRED_CONTINUE): Update hitrate.
7996         * tree.def (PREDICT_EXPR): Define.
7997         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
7998         do not handle BIND_EXPR.
7999         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
8000         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
8001         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
8002         operands.
8004 2008-03-18  Michael Matz  <matz@suse.de>
8006         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
8008 2008-03-18  Richard Guenther  <rguenther@suse.de>
8010         * tree-gimple.h (is_gimple_invariant_address): Declare.
8011         (is_gimple_constant): Likewise.
8012         * tree-gimple.c (is_gimple_constant): New function.
8013         (is_gimple_invariant_address): Likewise.
8014         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
8015         and is_gimple_invariant_address.
8016         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
8017         previous change.
8018         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
8019         an addressable base.
8021 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
8023         PR middle-end/35611
8024         * gimplify.c (gimplify_expr): Gimplify second operand of
8025         OMP_ATOMIC_LOAD.
8027 2008-03-17  Richard Guenther  <rguenther@suse.de>
8029         PR tree-optimization/19637
8030         * fold-const.c (fold_unary): Remove restrictions of removing
8031         intermediate pointer-conversions (P2)(P1)P0.
8032         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
8033         conversion to void pointer.
8034         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
8036 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
8038         PR debug/31510
8039         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
8040         emulated thread local variables.
8042 2008-03-16  Richard Guenther  <rguenther@suse.de>
8044         PR middle-end/35607
8045         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
8046         expand TREE_INVARIANT operations that are not gimple invariant.
8048 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
8050         * doc/extend.texi (Alignment): Say that the ABI controls
8051         the __alignof__ for non-strict-alignment targets rather
8052         than being a recommendation.
8054 2008-03-15  Paul Brook  <paul@codesourcery.com>
8056         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
8057         annotations.
8058         (arm_output_fn_unwind): Mark functions that can not be unwound.
8060 2008-03-15  Paul Brook  <paul@codesourcery.com>
8062         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
8063         extension instructions.
8065 2008-03-15  Richard Guenther  <rguenther@suse.de>
8067         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
8068         and fold constant aggregate refs.
8069         (fold_const_aggregate_ref): Handle string constants
8070         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
8071         (evaluate_stmt): Simplify now that ccp_fold folds constant
8072         aggregate refs.
8074 2008-03-15  Paul Brook  <paul@codesourcery.com>
8076         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
8077         (extzv): Use gen_extzv_t2.
8078         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
8080 2008-03-15  Richard Guenther  <rguenther@suse.de>
8082         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
8083         (fold_const_aggregate_ref): Likewise.
8084         (get_value): Return NULL if we don't have any values.
8085         (ccp_finalize): Set const_val to NULL after freeing it.
8086         * tree-flow.h (get_symbol_constant_value): Declare.
8087         (fold_const_aggregate_ref): Likewise.
8088         * tree-ssa-sccvn.c (try_to_simplify): Use them.
8090 2008-03-15  Richard Guenther  <rguenther@suse.de>
8092         PR middle-end/35593
8093         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
8094         to not produce negative array indices if not allowed.  Add
8095         parameter to indicate that.
8096         (maybe_fold_offset_to_component_ref): Allow negative array
8097         indices only for the first member of a structure.
8098         (maybe_fold_offset_to_reference): Allow negative array indices.
8099         (maybe_fold_stmt_addition): Likewise.
8101 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
8102             Anatoly Sokolov <aesok@post.ru>
8104         * gcc/gcc/config/avr/avr.c (avr_arch_types): Add avr6 entry.
8105         (avr_arch): Add ARCH_AVR6.
8106         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
8107         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
8108         instead of fixed value 2.
8109         (print_operand_address): Use gs() asm specifier instead of pm().
8110         (avr_assemble_integer): (Ditto.).
8111         (avr_output_addr_vec_elt): (Ditto.).
8112         (print_operand): Handle "!" code.
8113         * gcc/gcc/config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
8114         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
8115         (AVR_HAVE_EIJMP_EICALL): Define.
8116         (AVR_3_BYTE_PC): Redefine.
8117         (AVR_2_BYTE_PC): (Ditto.).
8118         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
8119         (LINK_SPEC): Add atmega2560 and atmega2561.
8120         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
8121         (crtm2561.o).
8122         * gcc/gcc/config/avr/avr.md (call_insn): Use eicall instead of icall 
8123         for 3 byte PC devices.
8124         (call_value_insn): (Ditto.).
8125         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
8126         (indirect_jump): Use only for for 2 byte PC devices.
8127         (*tablejump): (Ditto.).
8128         (*indirect_jump_avr6): Add insn.
8129         (*tablejump_rjmp): Don't use for 3 byte PC devices.
8130         * gcc/gcc/config/avr/libgcc.S (__prologue_saves__): Use eijmp 
8131         instead of ijmp for 3 byte PC devices.
8132         (__tablejump2__): (Ditto.).
8133         * gcc/gcc/config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
8134         (MULITLIB_DIRNAMES): (Ditto.). 
8135         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
8137 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
8139         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
8140         "sse2_umulsidi3".  Use V1DI mode for operand 0.
8141         ("mmx_psadbw"): Use V1DI mode for operand 0.
8142         * config/i386/i386-modes.def (V1SI): New vector mode.
8143         * config/i386/i386.c (struct builtin_description)
8144         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
8145         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
8146         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
8147         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
8148         v1di_ftype_v8qi_v8qi type.
8149         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
8151         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
8152         __builtin_ia32_pmuludq]: Fix the mode of return value.
8154 2008-03-15  Richard Guenther  <rguenther@suse.de>
8156         PR middle-end/35595
8157         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
8158         being a PHI_NODE.
8160 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
8161         
8162         * doc/invoke.texi (Option Summary, Xtensa Options): Document
8163         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
8164         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
8165         unless TARGET_SERIALIZE_VOLATILE is enabled.
8166         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
8167         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
8168         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
8170 2008-03-14  Richard Guenther  <rguenther@suse.de>
8172         PR tree-optimization/34172
8173         * tree-flow.h (refs_may_alias_p): Declare.
8174         (get_single_def_stmt): Likewise.
8175         (get_single_def_stmt_from_phi): Likewise.
8176         (get_single_def_stmt_with_phi): Likewise.
8177         * tree-dfa.c (refs_may_alias_p): New function.
8178         (get_single_def_stmt): Likewise.
8179         (get_single_def_stmt_from_phi): Likewise.
8180         (get_single_def_stmt_with_phi): Likewise.
8181         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
8182         (vn_reference_lookup_1): New helper function.
8183         (vn_reference_lookup): Walk the virtual use-def chain to
8184         continue searching for a match if the def does not alias the
8185         reference we are looking for.
8187 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
8189         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
8190         archive and Perzl.  Update The Written Word listing.
8192 2008-03-14  Richard Guenther  <rguenther@suse.de>
8194         PR tree-optimization/34043
8195         PR tree-optimization/33989
8196         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
8197         when doing FRE.
8198         (bitmap_find_leader): Use extra argument to verify dominance
8199         relationship inside a basic-block.
8200         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
8201         (find_leader_in_sets): Adjust.
8202         (create_component_ref_by_pieces): Take extra argument for
8203         dominance check, handle lookup failures.
8204         (find_or_generate_expression): Likewise.
8205         (create_expression_by_pieces): Likewise.
8206         (insert_into_preds_of_block): Adjust.
8207         (create_value_expr_from): If asked for, verify all operands
8208         are in the blocks AVAIL_OUT set.
8209         (make_values_for_stmt): Check for SSA_NAMEs that are life
8210         over an abnormal edge.
8211         (compute_avail): Remove such check.
8212         (do_SCCVN_insertion): New function.
8213         (eliminate): If we do not find a leader suitable for replacement
8214         insert a replacement expression from SCCVN if available.
8215         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
8216         (struct vn_ssa_aux): Add needs_insertion flag.
8217         * tree-ssa-sccvn.c (may_insert): New global flag.
8218         (copy_reference_ops_from_ref): Value-number union member access
8219         based on its size, not type and member if insertion is allowed.
8220         (visit_reference_op_load): For a weak match from union type
8221         punning lookup a view-converted value and insert a SSA_NAME
8222         for that value if that is not found.
8223         (visit_use): Make dumps shorter.  Do not disallow value numbering
8224         SSA_NAMEs that are life over an abnormal edge to constants.
8225         (free_scc_vn): Release inserted SSA_NAMEs.
8226         (run_scc_vn): New flag to specify whether insertion is allowed.
8227         Process SSA_NAMEs in forward order.
8228         * tree-ssa-loop-im.c (for_each_index): Handle invariant
8229         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
8230         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
8231         pointer type to/from integral types that do not change the
8232         precision to regular conversions.
8234 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
8236         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
8237         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
8238         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
8239         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
8240         input arguments and the mode of return value.  Built-in functions
8241         that operate on whole 64-bit MMX register now use V1DI mode.
8243 2008-03-13  Alon Dayan  <alond@il.ibm.com>
8244             Olga Golovanevsky  <olga@il.ibm.com>
8246         PR tree-optimization/35041
8247         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
8248         to locate the right position in a statement.
8250 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
8252         PR target/34000
8253         PR target/35553
8254         * config/i386/xmmintrin.h:  Change all static inline functions to
8255         extern inline and add __gnu_inline__ attribute.
8256         * config/i386/bmintrin.h: Ditto.
8257         * config/i386/smmintrin.h: Ditto.
8258         * config/i386/tmmintrin.h: Ditto.
8259         * config/i386/mmintrin-common.h: Ditto.
8260         * config/i386/ammintrin.h: Ditto.
8261         * config/i386/emmintrin.h: Ditto.
8262         * config/i386/pmmintrin.h: Ditto.
8263         * config/i386/mmintrin.h: Ditto.
8264         * config/i386/mm3dnow.h: Ditto.
8266 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
8268         PR middle-end/35185
8269         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
8270         (lower_omp_2): New function.
8271         (lower_omp_1, lower_omp): Rewritten.
8273 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
8275         PR 35054
8276         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
8277         with the phrase "Microsoft Windows compilers".
8278         (Push/Pop Macro Pragmas): New subsection. Document
8279         #pragma push_macro and pragma pop_macro.
8281 2008-03-12  Paul Brook  <paul@codesourcery.com>
8283         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
8285 2008-03-12  Paul Brook  <paul@codesourcery.com>
8287         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
8288         (thumb2_alusi3_short): Exclude PLUS and MINUS.
8289         (thumb2_addsi_shortim): Rename ...
8290         (thumb2_addsi_short): ... to this.  Allow register operands.
8291         (thumb2_subsi_short): New pattern.
8292         (thumb2_one_cmplsi2_short,
8293         thumb2_negsi2_short): New patterns and peepholes.
8295 2008-03-12  Paul Brook  <paul@codesourcery.com>
8297         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
8299 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
8301         * config/i386/i386.md (int_cond): New code iterator.
8302         (fp_cond): Ditto.
8303         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
8304         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
8305         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
8306         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
8307         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
8308         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
8309         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
8310         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
8312 2008-03-12  Paul Brook  <paul@codesourcery.com>
8314         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
8315         instead of {arm,thumb}_compute_save_reg_mask.
8316         (output_return_instruction): Ditto.
8317         (thumb_unexpanded_epilogue): Ditto.
8318         (thumb1_expand_prologue): Ditto.
8319         (thumb1_output_function_prologue): Ditto.
8320         (arm_set_return_address): Ditto.
8321         (thumb_set_return_address): Ditto.
8322         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
8323         regs to achieve stack alignment.
8324         (thumb1_compute_save_reg_mask): Fix compiler warning.
8325         (arm_output_epilogue): Use offsets->saved_regs_mask.
8326         Adjust stack pointer by poping call clobered registers.
8327         (arm_expand_prologue): Use offsets->saved_regs_mask.
8328         Adjust stack pointer by pushing extra registers.
8329         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
8331 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
8333         PR tree-opt/35422
8334         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
8335         conversion to the operands of a multiplication.
8337 2008-03-12  Richard Guenther  <rguenther@suse.de>
8339         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
8340         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
8341         * timevar.def (TV_TREE_PHIPROP): Add.
8342         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
8343         pass description.  Use TV_TREE_PHIPROP.
8344         * tree-ssa-forwprop.c: Remove phiprop code.
8346 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
8348         PR middle-end/35549
8349         * omp-low.c (maybe_lookup_decl): Constify first argument.
8350         (use_pointer_for_field): Change last argument from bool to
8351         omp_context *.  Disallow shared copy-in/out in nested
8352         parallel if decl is shared in outer parallel too.
8353         (build_outer_var_ref, scan_sharing_clauses,
8354         lower_rec_input_clauses, lower_copyprivate_clauses,
8355         lower_send_clauses, lower_send_shared_vars): Adjust callers.
8357 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
8358             Ira Rosen  <irar@il.ibm.com>
8360         * tree-vectorizer.c (free_stmt_vec_info): New function.
8361         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
8362         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
8363         * tree-vectorizer.h (free_stmt_vec_info): Declare.
8364         * tree-vect-transform.c (vectorizable_conversion): Free
8365         vec_oprnds0 if it was allocated.
8366         (vect_permute_store_chain): Remove unused VECs.
8367         (vectorizable_store): Free VECs that are allocated in the..
8368         function.
8369         (vect_transform_strided_load, vectorizable_load): Likewise.
8370         (vect_remove_stores): Simplify the code.
8371         (vect_transform_loop): Move code to vect_remove_stores().
8372         Call vect_remove_stores() and free_stmt_vec_info().
8374 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8376         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
8377         TARGET_HPUX.  Revise comment.
8378         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
8379         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
8380         Use sr4 variant of `be' instruction when not generating PIC code.
8381         (attr_length_call): Adjust for above change.
8383 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8385         * ipa-reference.c (static_execute): Remove module_statics_const and
8386         associated setting code.
8388 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
8390         PR target/35540
8391         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
8392         predicate for operand 1.
8393         (paritysi2_cmp): Use register_operand predicate for operand 2.
8394         Use earlyclobber modifier for operand 1.  Remove support for
8395         memory operands.
8396         (paritydi2_cmp): Use register_operand predicate for operand 3.
8397         Use earlyclobber modifier for operand 1.  Remove support for
8398         memory operands.
8400 2008-03-11  Paul Brook  <paul@codesourcery.com>
8401             Vladimir Prus  <vladimir@codesourcery.com>
8403         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
8404         (arm_compute_save_reg0_reg12_mask): Always
8405         check if register 11 must be saved.  Always safe hard frame pointer
8406         when frame_pointer_needeed.
8407         (arm_compute_save_reg_mask): Save IP and PC
8408         only with apcs frames.
8409         (arm_output_epilogue): Adjust Thumb2 codepath to
8410         be also invoked and work for ARM non-apcs frames.
8411         (arm_expand_prologue): Don't bother saving IP
8412         for non-apcs frame, since it's not clobbered by
8413         prologue code.  Implement non-apcs frame
8414         layout.
8416 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
8418         PR rtl-optimization/35281
8419         * expr.c (convert_move): Use a new pseudo for the intermediate
8420         from_mode->word_mode result.
8422 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
8424         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
8425         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
8426         * toplev.c (compile_file): Don't call it.
8428 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
8430         PR middle-end/35526
8431         * expr.c (store_expr): Call emit_block_move if the mode
8432         of "temp" RTX is BLKmode.
8434 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8435             Richard Guenther  <rguenther@suse.de>
8437         PR tree-optimization/31358
8438         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
8439         the step with a NULL_TREE.
8440         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
8441         to sizetype if type is a pointer type.
8442         (add_candidate_1): Don't convert the base and step to
8443         the generic type if the orginal type is a pointer type.
8444         (add_iv_value_candidates): Use sizetype for the step
8445         if type is a pointer type.
8446         (cand_value_at): Likewise.
8447         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
8448         for pointer types.
8449         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
8450         Don't convert the tem affine to the type.
8451         (add_elt_to_tree): Use sizetype for the step if a pointer.
8452         Use POINTER_PLUS_EXPR for pointers.
8453         (aff_combination_to_tree): Use sizetype for the step if a
8454         pointer.
8456 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
8458         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
8459         Remove commutativity hint.
8461 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
8463         PR c/35438
8464         PR c/35439
8465         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
8466         errorneous type.  Check that v is a VAR_DECL.
8468         PR middle-end/35099
8469         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
8471 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
8473         PR tree-optimization/35494
8474         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
8475         may be overriden at link and run time.
8477 2008-03-10  Richard Guenther  <rguenther@suse.de>
8479         PR tree-optimization/34677
8480         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
8481         (poolify_tree): Likewise.
8482         (modify_expr_template): Likewise.
8483         (poolify_modify_stmt): Likewise.
8484         (insert_fake_stores): Handle all component-ref style stores
8485         in addition to INDIRECT_REF.  Also handle complex types.
8486         Do not poolify the inserted load.
8487         (realify_fake_stores): Do not rebuild the tree but only
8488         make it a SSA_NAME copy.
8489         (init_pre): Remove initialzation of modify_expr_template.
8490         Do not allocate modify_expr_node_pool.
8491         (fini_pre): Do not free modify_expr_node_pool.
8493 2008-03-10  Paul Brook  <paul@codesourcery.com>
8495         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
8496         to avoid conflicts.
8498 2008-03-10  Paul Brook  <paul@codesourcery.com>
8499             Mark Shinwell  <shinwell@codesourcery.com>
8501         * config/arm/cortex-r4.md: New.
8502         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
8503         insn attributes.
8504         * config/arm/arm.md: Include cortex-r4.md.
8505         (insn): Add smmls, sdiv and udiv values.
8506         (generic_sched): Don't use generic scheduling for Cortex-R4.
8507         (arm_issue_rate): New function.
8508         (TARGET_SCHED_ISSUE_RATE): Define.
8510 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
8512         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
8514 2008-03-10  Richard Guenther  <rguenther@suse.de>
8516         * tree-ssa-pre.c (get_sccvn_value): Simplify.
8517         (compute_avail): Do not add stmt uses to AVAIL_OUT.
8519 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
8521         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
8522         Set default to true.
8524 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8526         * c.opt (Wsynth): Deprecate.
8527         * doc/invoke.texi (Option Summary, Warning Options): Document
8528         -Wno-format-contains-nul.
8530 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
8532         PR target/35496
8533         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
8534         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
8536 2008-03-09  Ira Rosen  <irar@il.ibm.com>
8538         * config/rs6000/rs6000.c (builtin_description): Rename vector
8539         left shift operations.
8540         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
8541         (altivec_vsl<VI_char>): Rename to ...
8542         (ashl<mode>3): ... new name.
8543         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
8544         gen_ashlv4si3.
8545         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
8547 2008-03-08  Richard Guenther  <rguenther@suse.de>
8549         * coverage.h (tree_coverage_counter_addr): Declare.
8550         * coverage.c (tree_coverage_counter_addr): New function.
8551         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
8552         before using again.
8553         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
8554         (tree_gen_one_value_profiler): Likewise.
8555         (tree_gen_ic_profiler): Likewise.
8556         (tree_gen_average_profiler): Likewise.
8557         (tree_gen_ior_profiler): Likewise.
8559 2008-03-08  Richard Guenther  <rguenther@suse.de>
8561         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
8562         (vn_binary_op_insert): Likewise.
8563         (vn_unary_op_lookup): Likewise.
8564         (vn_unary_op_insert): Likewise.
8565         (vn_nary_op_lookup): Declare.
8566         (vn_nary_op_insert): Likewise.
8567         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
8568         and binary hashes, use a single obstack for unary_op_pool
8569         and binary_op_pool.
8570         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
8571         a single struct vn_nary_op_s.  Store tree code length and
8572         a variable number of operands.
8573         (struct vn_reference_op_struct): Remove unused op2.
8574         (vn_reference_op_eq): Do not compare op2.
8575         (vn_reference_op_compute_hash): Do not compute hash of op2.
8576         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
8577         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
8578         with vn_nary_op_compute_hash.
8579         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
8580         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
8581         vn_nary_op_lookup.
8582         (vn_unary_op_insert, vn_binary_op_insert): Replace with
8583         vn_nary_op_insert.
8584         (visit_unary_op): Call nary functions.
8585         (visit_binary_op): Likewise.
8586         (process_scc): Adjust for struct vn_tables_s changes.
8587         (allocate_vn_table): Likewise.
8588         (free_vn_table): Likewise.
8589         * tree-vn.c (vn_add): Call nary functions.
8590         (vn_lookup): Likewise.
8592 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
8594         PR target/35498
8595         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
8596         wdst back after sync_compare_and_swapqhi_internal.
8598 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
8600         PR target/22152
8601         * config/i386/i386-modes.def (V1DI): New vector mode.
8602         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
8603         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
8604         (MMXMODE248): Ditto.
8605         (MMXMODE): Add V1DI mode.
8606         (mmxvecsize): Change DI mode to V1DI mode.
8607         ("mov<mode>): Use MMXMODEI8 mode iterator.
8608         ("*mov<mode>_internal_rex64"): Ditto.
8609         ("*mov<mode>_internal"): Ditto.
8610         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
8611         ("mmx_sub<mode>3"): Ditto.
8612         ("mmx_adddi3"): Remove insn pattern.
8613         ("mmx_subdi3"): Ditto.
8614         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
8615         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
8616         ("mmx_ashl<mode>3"): Ditto.
8617         ("mmx_lshrdi3"): Remove insn pattern.
8618         ("mmx_ashldi3"): Ditto.
8619         * config/i386/i386.c (classify_argument): Handle V1DImode.
8620         (function_arg_advance_32): Ditto.
8621         (function_arg_32): Ditto.
8622         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
8623         mmx_addv1di3 insn pattern.
8624         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
8625         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
8626         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
8627         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
8628         Remove definitions of built-in functions.
8629         (V1DI_type_node): New node.
8630         (v1di_ftype_v1di_int): Ditto.
8631         (v1di_ftype_v1di_v1di): Ditto.
8632         (v2si_ftype_v2si_si): Ditto.
8633         (v4hi_ftype_v4hi_di): Remove node.
8634         (v2si_ftype_v2si_di): Ditto.
8635         (ix86_init_mmx_sse_builtins): Handle V1DImode.
8636         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
8637         Redefine builtins using def_builtin_const with *_ftype_*_int node.
8638         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
8639         Add new builtins using def_builtin_const.
8640         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
8641         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
8642         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
8643         * config/i386/mmintrin.h (__v1di): New typedef.
8644         (_mm_add_si64): Cast arguments to __v1di type.
8645         (_mm_sub_si64): Ditto.
8646         (_mm_sll_pi16): Cast __count to __v4hi type.
8647         (_mm_sll_pi32): Cast __count to __v2si type.
8648         (_mm_sll_si64): Cast arguments to __v1di type.
8649         (_mm_srl_pi16): Cast __count to __v4hi type.
8650         (_mm_srl_pi32): Cast __count to __v2si type.
8651         (_mm_srl_si64): Cast arguments to __v1di type.
8652         (_mm_sra_pi16): Cast __count to __v4hi type.
8653         (_mm_sra_pi32): Cast __count to __v2si type.
8654         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
8655         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
8656         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
8657         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
8658         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
8659         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
8660         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
8661         (_mm_srai_pi32): Use __builtin_ia32_psradi.
8662         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
8663         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
8664         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
8665         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
8667 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
8669         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
8671 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
8673         PR target/35373
8674         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
8675         reg+const addressing for Altivec modes.  Don't generate reg+reg
8676         addressing for TFmode or TDmode quantities.
8678 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
8680         * c-common.c (vector_types_convertible_p): Call langhook
8681         instead of comptypes.
8683 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8685         PR tree-opt/35402
8686         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
8687         integral and scalar float variables which have a
8688         NULL DECL_INITIAL.
8690 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
8692         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
8693         dwarf_register_span hook when emitting unwind information for
8694         register-to-memory saves.
8695         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
8696         (rs6000_frame_related): Remove call to spe_synthesize_frame.
8698 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
8700         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
8701         for the same VAR_DECL.
8703 2008-03-06  Tom Tromey  <tromey@redhat.com>
8705         * treelang: Delete.
8706         * doc/standards.texi (Standards): Don't mention treelang.
8707         * doc/invoke.texi (Overall Options): Don't mention treelang.
8708         * doc/install.texi (Prerequisites): Don't mention bison or
8709         treelang.
8710         (Configuration): Don't mention treelang.
8711         (Building): Likewise.
8712         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
8714 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
8716         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
8717         word-extractions out of a multi-word object.
8719 2008-03-06  Richard Guenther  <rguenther@suse.de>
8721         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
8722         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
8723         result type and precision.
8724         * expr.c (get_inner_reference): Set unsignedp based on the result
8725         type of BIT_FIELD_REF.
8726         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
8727         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
8728         (try_instantiate_multiple_fields): Likewise.  Use the correct type
8729         for BIT_FIELD_REF.
8730         (sra_build_assignment): Likewise.
8731         (sra_build_elt_assignment): Likewise.
8732         (sra_explode_bitfield_assignment): Likewise.
8733         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
8734         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
8735         set BIT_FIELD_REF_UNSIGNED.
8736         (vectorizable_load): Likewise.
8738 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
8740         * cse.c (cse_extended_basic_block): Invalidate artificial defs
8741         at bb start.
8743 2008-03-06  Richard Guenther  <rguenther@suse.de>
8745         * alias.c (struct alias_set_entry): Move has_zero_child field
8746         to pack with alias_set.
8748 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
8750         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
8751         32bit host.
8753 2008-03-05  Ian Lance Taylor  <iant@google.com>
8755         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
8757 2008-03-05  Kenneth Zadeck <zadeck@naturalbridge.com>
8759         * fwprop.c (update_df): Support width and offset parameters of
8760         df_ref_create.
8761         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
8762         global_conflicts): Change DF_REF_EXTRACT to either
8763         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
8764         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
8765         * df-scan.c (df_ref_record, df_defs_record,
8766         df_ref_create_structure, df_def_record_1, df_uses_record,
8767         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
8768         df_bb_refs_collect, df_entry_block_defs_collect,
8769         df_exit_block_uses_collect): Support new width and offset fields.
8770         (ref_extract_pool): New storage pool.
8771         (df_free_ref): New function.
8772         (df_reg_chain_unlink, df_free_collection_rec,
8773         df_sort_and_compress_refs): Call df_free_ref.
8774         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
8775         of df_ref_extract.
8776         (df_ref_create_structure): Allocate df_ref_extract if offset and
8777         width fields are used.
8778         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
8779         (df_uses_record): Get offset and width from ZERO_EXTRACT 
8780         and SIGN_EXTRACT.
8781         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
8782         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
8783         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
8784         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
8785         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
8786         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
8787         (df_ref_extract): New structure.
8788         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
8789         (df_ref_create): Add width and offset parameters.
8790         
8791 2008-03-05  Richard Guenther  <rguenther@suse.de>
8793         * tree-ssa-structalias.c (get_constraint_for_component_ref):
8794         Use ranges_overlap_p.
8795         (offset_overlaps_with_access): Rename
8796         to ranges_overlap_p and move ...
8797         * tree-flow-inline.h (ranges_overlap_p): ... here.
8799         * tree.h (get_inner_reference, handled_component_p): Update
8800         comments.
8802         * tree.h (record_component_aliases, get_alias_set,
8803         alias_sets_conflict_p, alias_sets_must_conflict_p,
8804         objects_must_conflict_p): Move declarations ...
8805         * alias.h (record_component_aliases, get_alias_set,
8806         alias_sets_conflict_p, alias_sets_must_conflict_p,
8807         objects_must_conflict_p): ... here.
8808         Include coretypes.h.
8809         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
8811 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
8813         * cfg.c: Include tree-flow.h.
8814         (remove_edge_raw): Call redirect_edge_var_map_clear.
8815         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
8816         * tree-flow-inline.h (redirect_edge_var_map_def): New.
8817         (redirect_edge_var_map_result): New.
8818         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
8819         PENDING_STMT use with redirect_edge_var_map_*.
8820         * tree-ssa.c (edge_var_maps): New definition.
8821         (redirect_edge_var_map_add): New.
8822         (redirect_edge_var_map_clear): New.
8823         (redirect_edge_var_map_dup): New.
8824         (redirect_edge_var_map_vector): New.
8825         (redirect_edge_var_map_destroy): New.
8826         (ssa_redirect_edge): Replace PENDING_STMT use with
8827         redirect_edge_var_map_*.
8828         (flush_pending_stmts): Same.
8829         (delete_tree_ssa): Destroy edge var map.
8830         * tree-flow.h (struct _edge_var_map): New.
8831         Define edge_var_map vector type.
8832         Declare redirect_edge_var_map_* prototypes.
8833         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
8834         * tree-cfg.c (reinstall_phi_args): Replace
8835         PENDING_STMT use with redirect_edge_var_map_*.
8837 2008-03-05  Richard Guenther  <rguenther@suse.de>
8839         PR tree-optimization/35472
8840         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
8841         whose single use_stmt has a overlapping set of loaded and
8842         stored symbols as that use_stmt might be a noop assignment then.
8844 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
8846         * gthr-rtems.h: Implement __gthread_mutex_destroy.
8848 2008-03-05  Richard Guenther  <rguenther@suse.de>
8850         PR c++/35336
8851         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
8852         should be constants.
8853         * tree-cfg.c (verify_expr): Verify it.
8854         * fold-const.c (fold_truthop): Remove code generating
8855         BIT_FIELD_REFs of structure bases.
8856         (fold_binary): Likewise.
8857         (fold_ternary): Position and size of BIT_FIELD_REFs are
8858         always host integers.
8859         (make_bit_field_ref): Remove.
8860         (optimize_bit_field_compare): Remove.
8861         (all_ones_mask_p): Remove.
8863 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
8865         PR gcc/33009
8866         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
8867         (split_block_and_df_analyze): New. Split basic block and rebuild
8868         dataflow.
8869         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
8870         SPLIT_BLOCK.
8871         (split_pattern_seq): Likewise.
8872         (erase_matching_seqs): Likewise.
8873         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
8875 2008-03-04  Geoff Keating  <geoffk@apple.com>
8877         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
8878         declaration and code.
8879         (tree_invalid_nonnegative_warnv_p): Likewise.
8881 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
8883         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
8884         examples.  Truncate option-names then causing overfull hbox.
8886 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8888         PR target/35222
8889         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
8890         on hpux10.
8891         * configure: Rebuilt.
8893 2008-03-04  Rafael Espindola  <espindola@google.com>
8895         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
8896         (tree_unary_nonnegative_warnv_p): New.
8897         (tree_binary_nonnegative_warnv_p): New.
8898         (tree_single_nonnegative_warnv_p): New.
8899         (tree_invalid_nonnegative_warnv_p): New.
8900         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
8902 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8904         PR 28322
8905         * opts.c (handle_option): Postpone 'unknown option' errors only for
8906         warning options.
8908 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
8910         PR target/35453
8911         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
8912         (_SIDD_XXX): This.
8914 2008-03-04  Rafael Espindola  <espindola@google.com>
8916         * fold-const.c (tree_unary_nonzero_warnv_p): New.
8917         (tree_binary_nonzero_warnv_p): New.
8918         (tree_single_nonzero_warnv_p): New.
8919         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
8921 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
8923         PR middle-end/35456
8924         * fold-const.c (fold_cond_expr_with_comparison): Prevent
8925         transformations for modes that have signed zeros.
8926         * ifcvt.c (noce_try_abs): Ditto.
8928 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
8930         * config/i386/i386.c (override_options): Force
8931         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
8933 2008-03-04  Jan Hubicka  <jh@suse.cz>
8935         PR c++/35262
8936         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
8937         in last commit.
8939 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
8941         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
8942         label to probe the stack.
8944 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
8946         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
8947         (__gthr_win32_mutex_destroy): Declare.
8948         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
8949         __gthr_win32_mutex_destroy.
8950         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
8952 2008-03-03  Jan Hubicka  <jh@suse.cz>
8954         PR c++/35262
8955         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
8956         aggressive on inlining cold calls.
8958 2008-03-03  Richard Guenther  <rguenther@suse.de>
8960         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
8961         struct copies into the expression table.
8962         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
8963         (try_to_simplify): Likewise.
8964         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
8965         integral and pointer arguments which do not change the
8966         precision to NOP_EXPRs.
8967         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
8968         VIEW_CONVERT_EXPR case.
8970 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
8972         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
8973         defined in a loop at depth 0 is invariant.
8974         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
8975         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
8976         be called at loop depth 0.
8978 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
8980         PR driver/35420
8981         * gcc.c (process_command): Update copyright notice dates.
8982         * gcov.c (print_version): Likewise.
8983         * gcov-dump.c (print_version): Likewise.
8984         * mips-tfile.c (main): Likewise.
8985         * mips-tdump.c (main): Likewise.
8987 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8989         PR 24924
8990         * c-common.c (flag_permissive): Delete.
8991         (constant_expression_warnings): Check flags first.
8992         (constant_expression_error): New.
8993         * c-common.h (flag_permissive): Delete.
8994         (constant_expression_error): Declare.
8995         * flags.h (flag_permissive): Declare. Update description.
8996         * diagnostic.c (pedwarn): Update.
8997         (permerror): New.
8998         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
8999         (permissive_error_kind): New.
9000         * toplev.c (flag_permissive): Define. Update description.
9001         * toplev.h (permissive_error_kind): Declare.
9002         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
9003         (pedwarn_c90): Use pedantic_warning_kind.
9004         * c-opts.c (c_common_post_options): flag_permissive does not affect
9005         flag_pedantic_errors.
9007 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
9009         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
9010         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
9011         __absvsi2, __absvDI2): Use unsigned arithmetic.
9013 2008-03-02  Andi Kleen  <ak@suse.de>
9014             Richard Guenther  <rguenther@suse.de>
9016         * struct-equiv.c: Remove file.
9017         * cfg_cleanup.c (condjump_equiv_p): Remove.
9018         * Makefile.in (OBJS-common): Remove struct-equiv.o.
9019         (struct-equiv.o): Remove rule.
9020         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
9021         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
9022         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
9024 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
9026         * ifcvt.c (noce_process_if_block): Try to handle only the then
9027         block if the else block exists but isn't suitable.
9029 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
9031         PR gcc/35063
9032         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
9033         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
9034         regression from previous patch.
9036 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
9038         PR gcc/35063
9039         * gthr.h: Add __gthread_mutex_destroy as a function that must be
9040         implemented.
9041         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
9042         * gthr-single.h (__gthread_mutex_destroy): Likewise.
9043         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
9044         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
9045         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
9046         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
9047         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
9048         (__gthread_mutex_destroy_function): Rename to
9049         __gthread_mutex_destroy.
9050         * gthr-dce.h (__gthread_mutex_destroy): Call
9051         pthread_mutex_destroy.
9052         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
9053         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
9054         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
9056 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
9058         * df-scan.c (df_ref_chain_change_bb): Simplify.
9059         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
9060         set_block_for_insn if there's any change.
9061         * df.h ((df_insn_change_bb): Fix prototype.
9062         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
9063         df_insn_change_bb, don't call set_block_for_insn.
9064         * emit-rtl.c (reorder_insns): Likewise.
9065         * haifa-sched.c (move_insn): Likewise.
9067 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
9069         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
9071 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
9073         * tree-flow-inline.h (next_readonly_imm_use): Return
9074         NULL_USE_OPERAND_P after the end.
9076 2008-03-01  Richard Guenther  <rguenther@suse.de>
9078         PR tree-optimization/35411
9079         * tree-sra.c (sra_build_assignment): Split conversion to
9080         final type to a separate statement if we are not assigning
9081         to a register.
9083 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
9085         * fold-const.c (fold_convertible_p): Correct the logic to follow
9086         that in fold_convert().
9088 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
9090         PR c++/35315
9091         * tree-inline.c (build_duplicate_type): When we make a
9092         duplicate type, make it unique in the canonical types system.
9094 2008-02-29  Tom Tromey  <tromey@redhat.com>
9096         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
9097         input_file_stack_history, input_file_stack_restored): Remove.
9098         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
9099         * input.h (struct file_stack): Remove.
9100         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
9101         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
9102         Likewise.
9103         * diagnostic.h (struct diagnostic_context) <last_module>: Change
9104         type.
9105         (diagnostic_last_module_changed): Add 'map' argument.
9106         (diagnostic_set_last_function): Likewise.
9107         * diagnostic.c (undiagnostic_report_current_module): Iterate using
9108         line map, not input_file_stack.
9109         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
9111 2008-02-29  Paul Brook  <paul@codesourcery.com>
9113         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
9115 2008-02-29  Paul Brook  <paul@codesourcery.com>
9117         * config/arm/ieee754-df.S (muldf3): Use RET macros.
9119 2008-02-29  Richard Guenther  <rguenther@suse.de>
9121         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
9122         vn_lookup_or_add.
9123         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
9124         value for comparing for a store match.
9125         (simplify_unary_expression): Do nothing for SSA_NAMEs.
9126         (try_to_simplify): Do not do a full-blown reference lookup.
9128 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
9130         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
9131         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
9133         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
9135 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
9137         * tree-loop-linear.c (try_interchange_loops): Compare memory access
9138         strides against cache sizes.
9140 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
9142         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
9143         constant to fpul.
9145 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
9147         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
9148         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
9149         is smaller than the original promoted value.
9150         (simplify_subreg): If OP is a SUBREG, try to preserve its
9151         SUBREG_PROMOTED_VAR_P information.
9153 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
9155         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
9156         (VN_INFO_GET): Allocate new objects on the obstack.
9157         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
9158         for rpo_numbers_temp, for consistency.
9159         (free_scc_vn): Free the obstack.
9161 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
9163         * doc/invoke.texi: Document -ftree-loop-distribution.
9164         * tree-loop-distribution.c: New.
9165         * tree-pass.h (pass_loop_distribution): New.
9166         * graphds.h (struct graph): Add htab_t indices.
9167         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
9168         * tree-vectorizer.c (rename_variables_in_loop): Extern.
9169         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
9170         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
9171         * tree-data-ref.c (debug_data_dependence_relations): New.
9172         (dump_data_dependence_relation): Also print data references.
9173         (free_data_ref): Extern.
9174         (same_access_functions): Moved...
9175         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
9176         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
9177         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
9178         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
9179         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
9180         (stmts_from_loop): Skip LABEL_EXPR.
9181         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
9182         New.
9183         (build_rdg): Initialize rdg->indices htab.
9184         (free_rdg, stores_from_loop, ref_base_address,
9185         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
9186         have_similar_memory_accesses_1, ref_base_address_1,
9187         remove_similar_memory_refs): New.
9188         * tree-data-ref.h: Depend on tree-chrec.h.
9189         (debug_data_dependence_relations, free_data_ref): Declared.
9190         (same_access_functions): ... here.
9191         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
9192         New.
9193         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
9194         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
9195         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
9196         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
9197         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
9198         rdg_vertex_for_stmt): Declared.
9199         (struct rdg_edge): Add level.
9200         (RDGE_LEVEL): New.
9201         (free_rdg, stores_from_loop, remove_similar_memory_refs,
9202         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
9203         Declared.
9204         (rdg_has_similar_memory_accesses): New.
9205         * tree-vect-analyze.c: Remove unused static decls.
9206         * lambda.h (dependence_level): New.
9207         * common.opt (ftree-loop-distribution): New.
9208         * tree-flow.h (mark_virtual_ops_in_bb, 
9209         slpeel_tree_duplicate_loop_to_edge_cfg,
9210         rename_variables_in_loop): Declared.
9211         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
9212         (OBJS-common): Add tree-loop-distribution.o.
9213         (tree-loop-distribution.o): New rule.
9214         * tree-cfg.c (mark_virtual_ops_in_bb): New.
9215         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
9216         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
9218 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
9220         PR target/33963
9221         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
9222         other than structures and unions.
9224 2008-02-28  Richard Guenther  <rguenther@suse.de>
9226         Revert:
9227         2008-02-26  Richard Guenther  <rguenther@suse.de>
9229         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9230         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9231         (lookup_decl_from_uid): Declare.
9232         (remove_decl_from_map): Likewise.
9233         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9234         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9235         (decl_for_uid_map): New global hashtable mapping DECL_UID
9236         to the decl tree.
9237         (init_ttree): Allocate it.
9238         (insert_decl_to_uid_decl_map): New helper function.
9239         (make_node_stat): Insert new decls into the map.
9240         (copy_node_stat): Likewise.
9241         (lookup_decl_from_uid): New function.
9242         (remove_decl_from_map): Likewise.
9243         (print_decl_for_uid_map_statistics): New helper.
9244         (dump_tree_statistics): Call it.
9246         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9247         (referenced_var_iterator): Adjust.
9248         (FOR_EACH_REFERENCED_VAR): Adjust.
9249         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9250         (num_referenced_vars): Adjust.
9251         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9252         (first_referenced_var): Remove.
9253         (end_referenced_vars_p): Likewise.
9254         (next_referenced_var): Likewise.
9255         (referenced_var_iterator_set): New helper function.
9256         * tree-dfa.c (referenced_var_lookup): Adjust.
9257         (referenced_var_check_and_insert): Likewise.
9258         (remove_referenced_var): Likewise.
9259         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9260         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9261         (verify_call_clobbering): Likewise.
9262         (verify_memory_partitions): Likewise.
9263         (init_tree_ssa): Allocate bitmap instead of hashtable for
9264         referenced_vars.
9265         (delete_tree_ssa): Adjust.
9266         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9267         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9268         (compute_tag_properties): Likewise.
9269         (set_initial_properties): Likewise.
9270         (find_partition_for): Likewise.
9271         (update_reference_counts): Likewise.
9272         (dump_may_aliases_for): Likewise.
9273         * tree-ssa-operands.c (add_virtual_operand): Likewise.
9274         (add_call_clobber_ops): Likewise.
9275         (add_call_read_ops): Likewise.
9276         (get_asm_expr_operands): Likewise.
9277         * tree-into-ssa.c (dump_decl_set): Likewise.
9278         (update_ssa): Likewise.
9279         * tree-sra.c (scan_function): Likewise.
9280         (decide_instantiations): Likewise.
9281         (scalarize_parms): Likewise.
9282         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9283         (dsa_named_for): Likewise.
9284         * tree-ssa-structalias.c (update_alias_info): Likewise.
9285         (merge_smts_into): Likewise.
9287 2008-02-27  David Daney  <ddaney@avtrex.com>
9289         PR target/34409
9290         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
9291         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
9292         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
9293         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
9294         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
9296 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
9298         PR target/25477
9299         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
9300         (BUILT_IN_NEXTTOWARD): Remove.
9301         (BUILT_IN_NEXTTOWARDF): Ditto.
9302         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
9303         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
9305 2008-02-27  Tom Tromey  <tromey@redhat.com>
9307         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
9308         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
9310 2008-02-27  Jan Beulich  <jbeulich@novell.com>
9312         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
9313         update the respective field on newdecl.
9315 2008-02-27  Revital Eres  <eres@il.ibm.com>
9317         PR rtl-optimization/34999
9318         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
9319         crossing edges that ends with a call insn.
9320         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
9321         call insn and clear the EDGE_CROSSING flag of the crossing edge
9322         when fixing fallthru edges.
9324 2008-02-27  Richard Guenther  <rguenther@suse.de>
9326         PR middle-end/35390
9327         * fold-const.c (fold_unary): Return the correct argument,
9328         converted to the result type.
9330 2008-02-27  Richard Guenther  <rguenther@suse.de>
9332         PR middle-end/34971
9333         * expr.c (expand_expr_real_1): Assert on rotates that operate
9334         on partial modes.
9335         * fold-const.c (fold_binary): Use the types precision, not the
9336         bitsize of the mode if folding rotate expressions.  Build rotates
9337         only for full modes.
9339 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
9341         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
9342         and CPP_PRAGMA_EOL.
9343         * c-pragma.c (pragma_ns_name): New typedef.
9344         (registered_pp_pragmas): New variable.
9345         (c_pp_lookup_pragma): New function.
9346         (c_register_pragma_1): If flag_preprocess_only, do nothing
9347         for non-expanded pragmas, for expanded ones push pragma's
9348         namespace and name into registered_pp_pragmas vector.
9349         (c_invoke_pragma_handler): Register OpenMP pragmas even when
9350         flag_preprocess_only, don't register GCC pch_preprocess
9351         pragma if flag_preprocess_only.
9352         * c-opts.c (c_common_init): Call init_pragma even if
9353         flag_preprocess_only.
9354         * c-pragma.c (c_pp_lookup_pragma): New prototype.
9355         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
9356         cpp_register_pragma if flag_preprocess_only.
9358 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9360         PR c/28800
9361         * c-parser.c (c_parser_translation_unit): Warn for empty
9362         translation unit, not empty source file.
9364 2008-02-26  Paul Brook  <paul@codesourcery.com>
9366         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
9367         operand for Thumb-2.
9368         * config/arm/arm.h (reg_class): Add CORE_REGS.
9369         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
9370         (BASE_REG_CLASS): Use CORE_REGS.
9371         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
9372         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
9373         (REGNO_OK_FOR_INDEX_P): Exclude SP.
9374         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
9375         ARM_REGNO_OK_FOR_INDEX_P.
9376         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
9377         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
9378         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
9379         (ldm/stm peepholes): Ditto.
9380         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
9381         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
9382         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
9383         * config/arm/constraints.md: Enable "k" constraint on ARM.
9385 2008-02-27  Ben Elliston  <bje@au.ibm.com>
9387         * config/rs6000/rs6000.c: Annotate cache line size field in all
9388         instances of struct processor_costs.
9390 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
9392         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
9393         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
9394         jump_bypass): New counters.
9395         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
9396         * dce.c (gate_ud_dce): Same.
9397         (gate_fast_dce): Same.
9398         * dse.c (gate_dse1): New function.
9399         (gate_dse2): New function.
9400         (gate_dse): Merge results of new gate functions.
9401         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
9402         (gate_handle_jump_bypass): Add dbg_cnt.
9403         (gate_handle_gcse): Add dbg_cnt.
9404         * ifcvt.c (gate_handle_if_conversion): Same.
9405         (gate_handle_if_after_combine): Same.
9406         (gate_handle_if_after_reload): Same.
9407         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
9409 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
9411         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
9412         line sizes.
9413         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
9415 2008-02-26  Jason Merrill  <jason@redhat.com>
9417         PR c++/35315
9418         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
9419         alone if it's the naming decl for the type's main variant.
9421 2008-02-26  Tom Tromey  <tromey@redhat.com>
9423         * system.h (USE_MAPPED_LOCATION): Poison.
9424         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
9425         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
9426         (make_goto_expr_edges): Likewise.
9427         (remove_bb): Likewise.
9428         (execute_warn_function_return): Likewise.
9429         * basic-block.h (struct edge_def) <goto_locus>: Change type to
9430         location_t.
9431         * c-common.c (fname_decl): Remove old location code.
9432         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
9433         location code.
9434         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
9435         variant.
9436         (ASM_INPUT_SOURCE_LOCATION): Likewise.
9437         (gen_rtx_ASM_INPUT): Likewise.
9438         (gen_rtx_ASM_INPUT_loc): Likewise.
9439         (get_rtx_asm_OPERANDS): Remove.
9440         * cfglayout.c (insn_locators_alloc): Remove old location code.
9441         (set_curr_insn_source_location): Likewise.
9442         (curr_insn_locator): Likewise.
9443         * print-tree.c (print_node): Remove old location code.
9444         * tree-mudflap.c (mf_varname_tree): Remove old location code.
9445         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
9446         * cfgexpand.c (expand_gimple_cond_expr): Don't use
9447         location_from_locus.
9448         (construct_exit_block): Remove old location code.
9449         * emit-rtl.c (force_next_line_note): Remove old location code.
9450         * profile.c (branch_prob): Remove old location code.
9451         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
9452         LOC_LINE): Remove old-location variants.
9453         * langhooks.c (lhd_print_error_function): Remove old location
9454         code.
9455         * configure, config.in: Rebuilt.
9456         * configure.ac (--enable-mapped-location): Remove.
9457         * c-decl.c (c_init_decl_processing): Remove old location code.
9458         (finish_function): Likewise.
9459         * recog.c (decode_asm_operands): Remove old location code.
9460         * c-pch.c (c_common_read_pch): Remove old location code.
9461         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
9462         variants.
9463         * gimple-low.c (lower_function_body): Remove old location code.
9464         * toplev.c (unknown_location): Remove.
9465         (push_srcloc): Remove old-location variant.
9466         (process_options): Remove old location code.
9467         (lang_dependent_init): Likewise.
9468         * input.h (UNKNOWN_LOCATION): Move definition.
9469         (location_t): Undeprecate.
9470         (source_locus): Remove.
9471         (location_from_locus): Remove.
9472         (struct location_s): Remove.
9473         Remove all old-location code.
9474         (input_line, input_filename): Remove.
9475         * final.c (final_scan_insn): Remove old location code.
9476         * diagnostic.c (diagnostic_build_prefix): Remove
9477         USE_MAPPED_LOCATION test.
9478         * tree.h (gimple_stmt) <locus>: Now a location_t.
9479         (tree_exp) <locus>: Likewise.
9480         (DECL_IS_BUILTIN): Remove old-location variant.
9481         (annotate_with_file_line, annotate_with_locus): Likewise.
9482         (expr_locus, set_expr_locus): Update.
9483         * tree.c (build1_stat): Remove old location code.
9484         (last_annotated_node): Remove.
9485         (annotate_with_file_line): Remove old-location variant.
9486         (annotate_with_locus): Likewise.
9487         (expr_location): Remove old location code.
9488         (set_expr_location): Likewise.
9489         (expr_has_location): Likewise.
9490         (expr_locus): Likewise.
9491         (set_expr_locus): Likewise.
9492         (expr_filename): Don't use location_from_locus.
9493         (expr_lineno): Likewise.
9494         * rtl-error.c (location_for_asm): Remove old location code.
9495         * c-lex.c (cb_line_change): Remove old location code.
9496         (fe_file_change): Likewise.
9497         (cb_def_pragma): Likewise.
9498         (c_lex_with_flags): Likewise.
9499         * gengtype.c (do_typedef): Don't special-case location types.
9500         (define_location_structures): Remove.
9501         (main): Don't call define_location_structures.
9502         * tree-pretty-print.c (dump_implicit_edges): Remove old location
9503         code.
9505 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9507         PR 26264
9508         * builtins.def (BUILT_IN_STDARG_START): Remove.
9509         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
9510         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
9511         * tree-inline.c (inline_forbidden_p_1): Likewise.
9512         
9513 2008-02-26  Richard Guenther  <rguenther@suse.de>
9515         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9516         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9517         (lookup_decl_from_uid): Declare.
9518         (remove_decl_from_map): Likewise.
9519         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9520         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9521         (decl_for_uid_map): New global hashtable mapping DECL_UID
9522         to the decl tree.
9523         (init_ttree): Allocate it.
9524         (insert_decl_to_uid_decl_map): New helper function.
9525         (make_node_stat): Insert new decls into the map.
9526         (copy_node_stat): Likewise.
9527         (lookup_decl_from_uid): New function.
9528         (remove_decl_from_map): Likewise.
9529         (print_decl_for_uid_map_statistics): New helper.
9530         (dump_tree_statistics): Call it.
9532         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9533         (referenced_var_iterator): Adjust.
9534         (FOR_EACH_REFERENCED_VAR): Adjust.
9535         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9536         (num_referenced_vars): Adjust.
9537         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9538         (first_referenced_var): Remove.
9539         (end_referenced_vars_p): Likewise.
9540         (next_referenced_var): Likewise.
9541         (referenced_var_iterator_set): New helper function.
9542         * tree-dfa.c (referenced_var_lookup): Adjust.
9543         (referenced_var_check_and_insert): Likewise.
9544         (remove_referenced_var): Likewise.
9545         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9546         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9547         (verify_call_clobbering): Likewise.
9548         (verify_memory_partitions): Likewise.
9549         (init_tree_ssa): Allocate bitmap instead of hashtable for
9550         referenced_vars.
9551         (delete_tree_ssa): Adjust.
9552         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9553         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9554         (compute_tag_properties): Likewise.
9555         (set_initial_properties): Likewise.
9556         (find_partition_for): Likewise.
9557         (update_reference_counts): Likewise.
9558         (dump_may_aliases_for): Likewise.
9559         * tree-ssa-operands.c (add_virtual_operand): Likewise.
9560         (add_call_clobber_ops): Likewise.
9561         (add_call_read_ops): Likewise.
9562         (get_asm_expr_operands): Likewise.
9563         * tree-into-ssa.c (dump_decl_set): Likewise.
9564         (update_ssa): Likewise.
9565         * tree-sra.c (scan_function): Likewise.
9566         (decide_instantiations): Likewise.
9567         (scalarize_parms): Likewise.
9568         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9569         (dsa_named_for): Likewise.
9570         * tree-ssa-structalias.c (update_alias_info): Likewise.
9571         (merge_smts_into): Likewise.
9573 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9575         PR 34351
9576         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
9577         * c-opts.c (c_common_handle_option): Wall enables
9578         Wvolatile-register-var.
9579         * common.opt: Move Wvolatile-register-var to...
9580         * c.opt: ...here.
9581         
9582 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9584         * common.opt (Wlarger-than=): New.
9585         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
9586         -Wlarger-than=.
9587         * opts.c (common_handle_option): Handle -Wlarger-than=.
9588         * optc-gen.awk: Likewise.
9589         * opth-gen.awk: Likewise.
9590         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
9591         * tree-optimize.c (tree_rest_of_compilation): Likewise.
9592         
9593 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9595         * c-common.c (match_case_to_enum_1): Add appropriate
9596         OPT_W* parameter to warning.
9597         (c_do_switch_warnings): Likewise.
9598         * c-typeck.c (warning_init): Add one more parameter following
9599         'warning' function.
9600         (push_init_level): Update call to warning_init.
9601         (pop_init_level): Likewise.
9602         (add_pending_init): Likewise.
9603         (output_init_element: Likewise.
9605 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9607         PR 28322
9608         * toplev.c (toplev_main): If there are warnings or error, print
9609         errors for ignored options.
9610         * opts.c (ignored_options): New static variable.
9611         (postpone_unknown_option_error): New.
9612         (print_ignored_options): New.
9613         (handle_option): Postpone errors for unknown -Wno-* options.
9614         * opts.h (print_ignored_options): Declare.
9615         
9616 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
9618         * config/mips/mips.md (loadgp_blockage, blockage): Change type
9619         to "ghost".
9621 2008-02-25  Richard Guenther  <rguenther@suse.de>
9623         Revert:
9624         2008-02-25  Richard Guenther  <rguenther@suse.de>
9626         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9627         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9628         (lookup_decl_from_uid): Declare.
9629         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9630         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9631         (decl_for_uid_map): New global hashtable mapping DECL_UID
9632         to the decl tree.
9633         (init_ttree): Allocate it.
9634         (insert_decl_to_uid_decl_map): New helper function.
9635         (make_node_stat): Insert new decls into the map.
9636         (copy_node_stat): Likewise.
9637         (lookup_decl_from_uid): New function.
9638         (print_decl_for_uid_map_statistics): New helper.
9639         (dump_tree_statistics): Call it.
9641         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9642         (referenced_var_iterator): Adjust.
9643         (FOR_EACH_REFERENCED_VAR): Adjust.
9644         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9645         (num_referenced_vars): Adjust.
9646         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9647         (first_referenced_var): Remove.
9648         (end_referenced_vars_p): Likewise.
9649         (next_referenced_var): Likewise.
9650         (referenced_var_iterator_set): New helper function.
9651         * tree-dfa.c (referenced_var_lookup): Adjust.
9652         (referenced_var_check_and_insert): Likewise.
9653         (remove_referenced_var): Likewise.
9654         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9655         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9656         (verify_call_clobbering): Likewise.
9657         (verify_memory_partitions): Likewise.
9658         (init_tree_ssa): Allocate bitmap instead of hashtable for
9659         referenced_vars.
9660         (delete_tree_ssa): Adjust.
9661         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9662         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9663         (compute_tag_properties): Likewise.
9664         (set_initial_properties): Likewise.
9665         (find_partition_for): Likewise.
9666         (update_reference_counts): Likewise.
9667         (dump_may_aliases_for): Likewise.
9668         * tree-ssa-operands.c (add_virtual_operand): Likewise.
9669         (add_call_clobber_ops): Likewise.
9670         (add_call_read_ops): Likewise.
9671         (get_asm_expr_operands): Likewise.
9672         * tree-into-ssa.c (dump_decl_set): Likewise.
9673         (update_ssa): Likewise.
9674         * tree-sra.c (scan_function): Likewise.
9675         (decide_instantiations): Likewise.
9676         (scalarize_parms): Likewise.
9677         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9678         (dsa_named_for): Likewise.
9679         * tree-ssa-structalias.c (update_alias_info): Likewise.
9680         (merge_smts_into): Likewise.
9682 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
9684         PR fortran/29549
9685         * doc/invoke.texi (-fcx-limited-range): Document new option.
9686         * toplev.c (process_options): Handle -fcx-fortran-rules.
9687         * common.opt: Add documentation for -fcx-fortran-rules.
9689 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
9691         PR c/35162
9692         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
9693         actual behaviour and C99.
9694         
9695 2008-02-26  Ben Elliston  <bje@au.ibm.com>
9697         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
9698         (ASM_CPU_POWER6_SPEC): Likewise.
9699         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
9700         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
9701         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
9703 2008-02-25  Richard Guenther  <rguenther@suse.de>
9705         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9706         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9707         (lookup_decl_from_uid): Declare.
9708         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9709         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9710         (decl_for_uid_map): New global hashtable mapping DECL_UID
9711         to the decl tree.
9712         (init_ttree): Allocate it.
9713         (insert_decl_to_uid_decl_map): New helper function.
9714         (make_node_stat): Insert new decls into the map.
9715         (copy_node_stat): Likewise.
9716         (lookup_decl_from_uid): New function.
9717         (print_decl_for_uid_map_statistics): New helper.
9718         (dump_tree_statistics): Call it.
9720         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9721         (referenced_var_iterator): Adjust.
9722         (FOR_EACH_REFERENCED_VAR): Adjust.
9723         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9724         (num_referenced_vars): Adjust.
9725         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9726         (first_referenced_var): Remove.
9727         (end_referenced_vars_p): Likewise.
9728         (next_referenced_var): Likewise.
9729         (referenced_var_iterator_set): New helper function.
9730         * tree-dfa.c (referenced_var_lookup): Adjust.
9731         (referenced_var_check_and_insert): Likewise.
9732         (remove_referenced_var): Likewise.
9733         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9734         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9735         (verify_call_clobbering): Likewise.
9736         (verify_memory_partitions): Likewise.
9737         (init_tree_ssa): Allocate bitmap instead of hashtable for
9738         referenced_vars.
9739         (delete_tree_ssa): Adjust.
9740         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9741         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9742         (compute_tag_properties): Likewise.
9743         (set_initial_properties): Likewise.
9744         (find_partition_for): Likewise.
9745         (update_reference_counts): Likewise.
9746         (dump_may_aliases_for): Likewise.
9747         * tree-ssa-operands.c (add_virtual_operand): Likewise.
9748         (add_call_clobber_ops): Likewise.
9749         (add_call_read_ops): Likewise.
9750         (get_asm_expr_operands): Likewise.
9751         * tree-into-ssa.c (dump_decl_set): Likewise.
9752         (update_ssa): Likewise.
9753         * tree-sra.c (scan_function): Likewise.
9754         (decide_instantiations): Likewise.
9755         (scalarize_parms): Likewise.
9756         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9757         (dsa_named_for): Likewise.
9758         * tree-ssa-structalias.c (update_alias_info): Likewise.
9759         (merge_smts_into): Likewise.
9761 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
9763         PR target/35258
9764         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
9765         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
9766         * alias.h (nonoverlapping_memrefs_p): Likewise.
9768 2008-02-25  Jan Beulich  <jbeulich@novell.com>
9770         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
9771         * config/i386/netware-libgcc.exp: Add __bswap?i2,
9772         __emultls_get_address, __emultls_register_common,
9773         __floatundi?f, and _Unwind_GetIPInfo.
9774         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
9775         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
9776         (gen_regparm_prefix): Likewise.
9777         (i386_nlm_encode_section_info): Sync with
9778         config/i386/winnt.c:i386_pe_encode_section_info().
9779         (i386_nlm_maybe_mangle_decl_assembler_name): New.
9780         i386_nlm_mangle_decl_assembler_name): New.
9781         (netware_override_options): New.
9782         * config/i386/netware.h (netware_override_options): Declare.
9783         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
9784         (i386_nlm_mangle_decl_assembler_name): Declare.
9785         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
9787 2008-02-25  Ben Elliston  <bje@au.ibm.com>
9789         PR other/32948
9790         * c-decl.c (grokdeclarator): Remove unused local variables
9791         `typedef_type' and `type_as_written'.
9792         * bb-reorder.c
9793         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
9794         unused local variable `has_hot_blocks'.
9795         (fix_crossing_conditional_branches): Remove unused local variable
9796         `prev_bb'.
9797         
9798 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
9800         PR middle-end/19984
9801         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
9802         using DEF_C99_BUILTIN.
9803         (BUILT_IN_NANF): Ditto.
9804         (BUILT_IN_NANL): Ditto.
9806 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
9807             Revital Eres  <eres@il.ibm.com>
9809         * modulo-sched.c (calculate_must_precede_follow): Address TODO
9810         regarding the order of two dependent insns in the same row.
9812 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
9814         * stor-layout.c (layout_decl): Do not bump the alignment of a
9815         bit-field to more than byte alignment if it is packed.
9817 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
9819         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
9820         e300c2 and e300c3.
9822 2008-02-24  Diego Novillo  <dnovillo@google.com>
9824         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
9826         PR 33738
9827         * tree-vrp.c (vrp_evaluate_conditional): With
9828         -Wtype-limits, emit a warning when comparing against a
9829         constant outside the natural range of OP0's type.
9830         * c.opt (Wtype-limits): Move ...
9831         * common.opt (Wtype-limits): ... here.
9833 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
9835         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
9836         * config/rs6000/e300c2c3.md: New file.
9837         * config/rs6000/rs6000.c (processor_costs): Add new costs for
9838         e300c2 and e300c3.
9839         (rs6000_override_options): Add e300c2 and e300c3 cases to
9840         processor_target_table. Do not allow usage of Altivec or Spe
9841         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
9842         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
9843         * config/rs6000/rs6000.h (processor_type): Add
9844         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
9845         (ASM_CPU_SPEC): Add e300c2 and e300c3.
9846         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
9847         and ppce300c3. Include e300c2c3.md.
9849 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
9851         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
9852         instead of TARGET_STRICT_ALIGN.
9854 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
9856         * explow.c (memory_address): Assert that the generated address is
9857         valid.
9859 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
9861         PR target/25477
9862         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
9863         * config/darwin-ppc-ldouble-patch.def: New file.
9864         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
9865         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
9866         SUBTARGET_INIT_BUILTINS if defined.
9867         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
9868         New functions.
9870 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9872         PR rtl-opt/33512
9873         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
9874         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
9876 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9878         PR pch/35027
9879         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
9880         file" warning condtional on -Winvalid-PCH.
9882 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
9884         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
9886 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
9888         PR target/22076
9889         PR target/34256 
9890         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
9891         prevent reload from using MMX registers.
9892         (*mov<mode>_internal): Ditto.
9893         (*movv2sf_internal_rex64): Ditto.
9894         (*movv2sf_internal): Ditto.
9896 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9898         PR documentation/31569
9899         * doc/install.texi2html: Use makeinfo --no-number-sections.
9901 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
9903         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
9904         ensure that we can address an entire entity > 8 bytes.  Don't
9905         generate reg+reg addressing for such data.
9907 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
9909         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
9910         strings when optimizing for size, unless the target cares about
9911         alignment.
9913 2008-02-22  Tom Tromey  <tromey@redhat.com>
9915         * regclass.c (current_pass): Remove declaration.
9917 2008-02-22  Anatoly Sokolov <aesok@post.ru>
9919         * config/avr/libgcc.S (__RAMPZ__): Define.
9920         (__do_copy_data): Add for devices with 128KB code memory.
9922 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
9924         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
9925         Use spe_abi.
9926         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
9928 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
9930         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
9931         GENNONACR_REGS.
9933 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9935         PR c/19999
9936         * c-typeck.c (build_binary_op): Warn about floating point
9937         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
9939 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
9941         PR target/34526
9942         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
9943         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
9944         add vrsave.
9945         (rs6000_override_options): Set altivec_abi as default, not override,
9946         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
9947         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
9948         is used; use new member spe_abi.
9949         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
9950         spe_abi and altivec_abi.
9952 2008-02-22  Tomas Bily  <tbily@suse.cz>
9954         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
9956 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9958         PR bootstrap/35273
9959         * config.build (build_file_translate): Set to `CMD //c' only if
9960         it works.
9961         * Makefile.in (build_file_translate): Improve comment.
9963 2008-02-21  Jan Hubicka  <jh@suse.cz>
9965         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
9966         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
9967         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
9969 2008-02-21  Michael Matz  <matz@suse.de>
9971         PR target/35264
9972         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
9974 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
9976         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
9977         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
9978         as insn constraint.
9979         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
9980         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
9981         SSE_VEC_FLOAT_MODE_P as insn constraint.
9982         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
9983         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
9984         sse4a_movntdf using MODEF mode iterator.
9985         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
9986         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
9987         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
9988         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
9989         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
9990         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
9991         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
9993 2008-02-21  Richard Guenther  <rguenther@suse.de>
9995         * tree.def (PAREN_EXPR): New tree code.
9996         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
9997         and PAREN_EXPR.
9998         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
9999         * expr.c (expand_expr_real_1): Likewise.
10000         * tree-inline.c (estimate_num_insns_1): Likewise.
10001         * tree-complex.c (expand_complex_move): Likewise.
10002         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
10003         as plain x.
10005 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10007         PR target/35225
10008         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
10010 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10012         PR target/35190
10013         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
10015         * config/sh/sh.c (find_barrier): Don't go past
10016         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
10018 2008-02-20  DJ Delorie  <dj@redhat.com>
10020         * config/h8300/h8300.md (insv): Force source operand to be a register.
10022         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
10023         as a jump, not as a plain insn.
10024         
10025 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
10027         * doc/invoke.texi (Warning Options): Add new option
10028         -Wframe-larger-than=.
10029         (-Wframe-larger-than): Document.
10031         * flags.h (warn_frame_larger_than, frame_larger_than_size):
10032         Add declarations for new option variables.
10034         * final.c (final_start_function): Check the frame size
10035         before emission and issue a Wframe-larger-than warning.
10037         * opts.c (warn_frame_larger_than, frame_larger_than_size):
10038         Add definitions for new option variables.
10039         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
10041         * common.opt (Wframe-larger-than=): New option.
10043 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
10045         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
10046         (<sse>_div<mode>3): Ditto.
10047         (<sse>_vmdiv<mode>3): Ditto.
10048         (<sse>_vmsqrt<mode>2): Ditto.
10049         (*smax<mode>3): Ditto.
10050         (sse5_frcz<mode>2): Ditto.
10051         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
10052         as insn constraint.
10054 2008-02-20  Richard Guenther  <rguenther@suse.de>
10056         PR middle-end/35265
10057         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
10058         be happy with INTEGRAL_TYPE_P.
10060 2008-02-20  Richard Guenther  <rguenther@suse.de>
10062         * fold-const.c (split_tree): Associate floatig-point expressions
10063         if flag_associative_math is set.
10065 2008-02-20  Richard Guenther  <rguenther@suse.de>
10067         * tree.h (fold_real_zero_addition_p): Declare.
10068         * fold-const.c (fold_real_zero_addition_p): Export.
10069         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
10070         floating-point operations with zero and one.
10072 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
10074         * doc/install.texi: Correct references to CFLAGS, replacing them
10075         with BOOT_CFLAGS.  Document flags used during bootstrap for
10076         target libraries.
10077                                 
10078 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
10080         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
10081         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
10082         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
10083         insn constraint.
10084         (smin<mode>3): Ditto from similar patterns.
10085         (smax<mode>3): Ditto.
10086         (*ieee_smin<mode>3): Ditto.
10087         (*ieee_smax<mode>3): Ditto.
10088         * config/i386/sse.md (sse): New mode attribute.
10089         (mov<mode>): Macroize expander from movv4sf and movv2df using
10090         SSEMODEF2P mode iterator.
10091         (<sse>_movnt<mode>): Ditto from similar patterns. Use
10092         SSE_VEC_FLOAT_MODE_P as insn constraint.
10093         (storent<mode>): Ditto.
10094         (storent<mode>): Macroize expander from storentsf and storentdf using
10095         MODEF mode iterator.
10096         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
10097         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
10098         (abs<mode>2): Ditto from similar patterns.
10099         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
10100         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
10101         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
10102         (<sse>_vmsqrt<mode>2): Ditto.
10103         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
10104         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
10105         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
10106         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
10107         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
10108         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
10109         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
10110         insn constraint.
10111         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
10112         iterator and SSE_FLOAT_MODE_P as insn constraint.
10113         (<sse>_ucomi): Ditto from similar patterns.
10114         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
10115         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
10116         SSE_VEC_FLOAT_MODE_P as insn constraint.
10117         (vcond<mode>): Ditto from similar patterns.
10118         (and<mode>3, *and<mode>3): Ditto.
10119         (<sse>_nand<mode>3): Ditto.
10120         (ior<mode>3, *ior<mode>3): Ditto.
10121         (xor<mode>3, *xor<mode>3): Ditto.
10122         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
10123         iterator and SSE_FLOAT_MODE_P as insn constraint.
10124         (*nand<mode>3): Ditto from similar patterns.
10125         (*ior<mode>3): Ditto.
10126         (*xor<mode>3): Ditto.
10128 2008-02-20  Ira Rosen  <irar@il.ibm.com>
10130         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
10131         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
10132         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
10134 2008-02-19  Jan Hubicka  <jh@suse.cz>
10136         * predict.c (tree_bb_level_predictions): Remove variable next
10137         mistakely introduced by previous commit.
10139 2008-02-19  Jan Hubicka  <jh@suse.cz>
10141         * predict.c (predict_paths_leading_to): Rewrite.
10142         (predict_paths_for_bb): New.
10143         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
10145 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10147         PR bootstrap/35218
10148         * Makefile.in (build_file_translate): New.
10149         (gcc-vers.texi): Use it for translating $(abs_srcdir).
10150         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
10151         * configure.ac (build_file_translate): Substitute it.
10152         * configure: Regenerate.
10154 2008-02-19  Jan Hubicka  <jh@suse.cz>
10156         PR rtl-optimization/34408
10157         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
10158         invalid sharing.
10160 2008-02-19  Jan Hubicka  <jh@suse.cz>
10162         PR middle-end/28779
10163         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
10164         call_expr.
10166 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
10168         PR Ada/35186
10169         * config/i386/i386-modes.def: Revert the last DI alignment
10170         change until Ada people can look into it.
10172 2008-02-19  Nick Clifton  <nickc@redhat.com>
10174         * opts.c (print_specific_help): Fix typo in --help text.
10176 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
10178         PR target/35239
10179         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
10180         32-bit inline asm without asm alternatives for host GCC < 3.0.
10182 2008-02-19  Richard Guenther  <rguenther@suse.de>
10184         PR tree-optimization/34989
10185         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
10186         Allow propagation to INDIRECT_REF if we can simplify only.
10188 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10190         * c-common.c (warn_for_collisions_1): Use appropriate option when
10191         warning.
10193 2008-02-19  Nick Clifton  <nickc@redhat.com>
10195         PR other/31349
10196         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
10197         (handle_options): Fix indentation.
10198         (print_filtered_help): If no language-specific options were
10199         displayed tell the user how to list all the options supported by
10200         the language's front-end.
10201         (print_specific_help): Fix indentation and remove duplicate line.
10202         (common_handle_option): Handle the -v option.
10203         For --help enable the display of undocumented options if the -v
10204         switch has been included on the command line.
10205         For --help= check for overlaps in the arguments between the option
10206         classes and the language names and issue a warning when they
10207         cannot be disambiguated.
10208         * c.opt (v): Pass on to the common option handler.
10210 2008-02-19  Revital Eres  <eres@il.ibm.com> 
10212         * modulo-sched.c (sms_schedule): Change dump message when
10213         create_ddg function fails.
10214         (try_scheduling_node_in_cycle): Rename row to cycle.
10215         (print_partial_schedule): Rename CYCLE to ROW.
10217 2008-02-19  Christian Bruel  <christian.bruel@st.com>
10218             Zdenek Dvorak  <ook@ucw.cz>
10220         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
10222 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
10224         PR target/33555
10225         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
10226         (*x86_movdicc_0_m1_se): Ditto.
10228 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
10230         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
10231         (CMPtype): Define as __gcc_CMPtype.
10232         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
10233         (CMPtype): Define as __gcc_CMPtype.
10235 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
10237         Support valgrind 3.3 for --enable-checking=valgrind.
10238         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
10239         here.
10240         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
10241         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
10242         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
10243         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
10244         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
10245         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
10246         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
10247         respectively.
10248         * ggc-zone.c: Similar.
10249         * ggc-page.c: Similar.
10251 2008-02-19  Paul Brook  <paul@codesourcery.com>
10253         PR target/35071
10254         * config/arm/ieee754-df.S: Fix do_it typo.
10255         * config/arm/ieee754-sf.S: Fix do_it typo.
10257 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
10259         PR target/35189
10260         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
10261         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
10262         (OPTION_MASK_ISA_SSE_SET): Likewise.
10263         (OPTION_MASK_ISA_SSE2_SET): Likewise.
10264         (OPTION_MASK_ISA_SSE3_SET): Likewise.
10265         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
10266         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
10267         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
10268         (OPTION_MASK_ISA_SSE4_SET): Likewise.
10269         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
10270         (OPTION_MASK_ISA_SSE5_SET): Likewise.
10271         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
10272         (OPTION_MASK_ISA_MMX_UNSET): Updated.
10273         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
10274         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
10275         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
10276         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
10277         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
10278         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
10279         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
10280         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
10281         (OPTION_MASK_ISA_SSE4): Removed.
10282         (ix86_handle_option): Turn on bits in ix86_isa_flags and
10283         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
10284         (override_options): Don't turn on implied SSE/MMX bits in
10285         ix86_isa_flags.
10287 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
10289         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
10290         32bit host.
10292 2008-02-18  Joey Ye  <joey.ye@intel.com>
10294         PR middle-end/34921
10295         * tree-nested.c (insert_field_into_struct): Set type alignment
10296         to field alignment if the former is less than the latter.
10298 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
10300         * BASE-VER: Set to 4.4.0.
10302 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10304         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
10305         * doc/cfg.texi: Likewise.
10306         * doc/extend.texi: Likewise.
10307         * doc/gty.texi: Likewise.
10308         * doc/invoke.texi: Likewise.
10309         * doc/loop.texi: Likewise.
10310         * doc/md.texi: Likewise.
10311         * doc/passes.texi: Likewise.
10312         * doc/rtl.texi: Likewise.
10313         * doc/sourcebuild.texi: Likewise.
10314         * doc/tm.texi: Likewise.
10315         * doc/tree-ssa.texi: Likewise.
10317 2008-02-17  Richard Guenther  <rguenther@suse.de>
10319         PR middle-end/35227
10320         * tree-complex.c (init_parameter_lattice_values): Handle parameters
10321         without default definition.
10323 2008-02-17  Richard Guenther  <rguenther@suse.de>
10325         PR tree-optimization/35231
10326         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
10327         if A | B != 1.
10329 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
10331         Revert:
10332         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
10333         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
10334         libgcc_cmp_return mode.
10336 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10338         PR c/28368
10339         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
10341 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
10343         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
10344         multilibs.
10346 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10348         * doc/c-tree.texi: Use `@.' where appropriate.
10349         * doc/extend.texi: Likewise.
10350         * doc/install.texi: Likewise.
10351         * doc/invoke.texi: Likewise.
10352         * doc/loop.texi: Likewise.
10353         * doc/makefile.texi: Likewise.
10354         * doc/md.texi: Likewise.
10355         * doc/passes.texi: Likewise.
10356         * doc/standards.texi: Likewise.
10357         * doc/tm.texi: Likewise.
10359 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
10361         PR middle-end/35196
10362         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
10363         in entry_bb.
10364         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
10365         rather than in entry_bb.
10367 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
10369         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
10370         libgcc_cmp_return mode.
10372 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
10374         PR middle-end/35130
10375         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
10376         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
10378 2008-02-15  Richard Guenther  <rguenther@suse.de>
10379             Zdenek Dvorak  <ook@ucw.cz>
10381         PR tree-optimization/35164
10382         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
10383         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
10384         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
10385         Only propagate addresses which do not have abnormal SSA_NAMEs
10386         in their operands.
10388 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
10390         PR target/35088
10391         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
10393 2008-02-15  Jan Hubicka  <jh@suse.cz>
10395         PR middle-end/35149
10396         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
10398 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
10400         PR middle-end/34621
10401         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
10402         when calculating alignment_pad.
10404 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
10406         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
10407         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
10408         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
10409         and STACK_BOUNDARY define.
10411 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
10413         PR preprocessor/35061
10414         * c-pragma.c (handle_pragma_pop_macro): Check that
10415         pushed_macro_table has been allocated.
10417 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
10419         PR middle-end/35136
10420         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
10421         (force_gimple_operand): Likewise.
10422         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
10423         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
10424         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
10425         (find_interesting_uses_address): Check addressability and alignment
10426         of the base expression only after substituting bases of IVs into it.
10428 2008-02-14  Michael Matz  <matz@suse.de>
10430         PR target/34930
10431         * function.c (instantiate_virtual_regs_in_insn): Reload address
10432         before falling back to reloading the whole operand.
10434 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
10436         * config/s390/s390.c (s390_mainpool_start): Emit the pool
10437         before the first section switch note.
10439 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10441         * doc/bugreport.texi: Update copyright years.
10442         * doc/c-tree.texi: Likewise.
10443         * doc/cfg.texi: Likewise.
10444         * doc/cpp.texi: Likewise.
10445         * doc/cppinternals.texi: Likewise.
10446         * doc/fragments.texi: Likewise.
10447         * doc/frontends.texi: Likewise.
10448         * doc/gcc.texi: Likewise.
10449         * doc/gty.texi: Likewise.
10450         * doc/hostconfig.texi: Likewise.
10451         * doc/implement-c.texi: Likewise.
10452         * doc/libgcc.texi: Likewise.
10453         * doc/loop.texi: Likewise.
10454         * doc/makefile.texi: Likewise.
10455         * doc/options.texi: Likewise.
10456         * doc/passes.texi: Likewise.
10457         * doc/rtl.texi: Likewise.
10458         * doc/sourcebuild.texi: Likewise.
10459         * doc/standards.texi: Likewise.
10460         * doc/tree-ssa.texi: Likewise.
10461         * doc/trouble.texi: Likewise.
10463         * doc/extend.texi: Use @: or add comma where appropriate.
10464         * doc/invoke.texi: Likewise.
10465         * doc/tm.texi: Likewise.
10467 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
10469         PR target/34393
10470         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
10471         to a reg.
10473 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
10475         * doc/md.texi (clz, ctz): Add reference.
10476         * doc/rtl.texi (clz, ctz): Likewise.
10478 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10480         PR other/35148
10481         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
10482         srcdir.
10484 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
10486         * config/s390/s390.c (struct constant_pool): New field
10487         emit_pool_after added.
10488         (s390_mainpool_start): Set the emit_pool_after flag according
10489         to the section switch notes.
10490         (s390_mainpool_finish): Consider emit_pool_after when emitting
10491         the literal pool at the end of the function.
10492         (s390_chunkify_start): Force literal pool splits at section
10493         switch notes.
10495 2008-02-13  Michael Matz  <matz@suse.de>
10497         PR debug/35065
10498         * var-tracking.c (clobber_variable_part): Correctly traverse the
10499         list.
10501 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10503         PR 29673
10504         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
10505         Add -fdump-ipa-inline.
10506         * tree-dump.c (dump_files): Remove tree-inlined dump.
10507         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
10508         
10509 2008-02-12  Richard Guenther  <rguenther@suse.de>
10511         PR tree-optimization/35171
10512         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
10513         default defs.
10515 2008-02-12  Richard Guenther  <rguenther@suse.de>
10517         PR middle-end/35163
10518         * fold-const.c (fold_widened_comparison): Use get_unwidened in
10519         value-preserving mode.  Disallow final truncation.
10521 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
10523         PR middle-end/35136
10524         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
10525         code from here to...
10526         (force_gimple_operand): ...here.
10528 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
10530         PR c++/35144
10531         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
10532         non-compatible pointers.
10533         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
10534         different FIELD_DECLs, try harder by comparing field offsets, sizes
10535         and types.
10537         PR inline-asm/35160
10538         * function.c (match_asm_constraints_1): Don't replace the same input
10539         multiple times.
10541 2008-02-12  Anatoly Sokolov <aesok@post.ru>
10543         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
10544         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
10545         (expand_epilogue): Restore RAMPZ register.
10546         * config/avr/avr.md (RAMPZ_ADDR): New constant.
10548 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10550         * alloc-pool.c (hash_descriptor, eq_descriptor,
10551         alloc_pool_descriptor): Fix -Wc++-compat warnings.
10552         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
10553         Likewise.
10554         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
10555         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
10556         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
10557         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
10558         Likewise.
10560 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
10562         * tree-flow.h (loop_only_exit_p): Declare.
10563         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
10564         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
10565         the number of iterations if it is constant.  Otherwise, if this is the
10566         only possible exit of the loop, use the conservative estimate on the
10567         number of iterations of the entire loop if available.
10569 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
10571         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
10572         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
10573         Add synchronization functions.
10574         * config/sync.c: New file.
10575         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
10576         (LIBGCC_SYNC_CFLAGS): Likewise.
10578 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
10580         PR target/36710
10581         * config/i386/i386.md (mode): Add TF to "mode" attribute.
10582         (*pushtf_sse): New insn pattern.
10583         (pushtf splitters): New splitters.
10585 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
10587         PR middle-end/35736
10588         * predict.c (build_predict_expr): Use void_type_node for the tree
10589         type, instead of NULL_TREE.
10591 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
10593         * config/i386/i386.c (contains_aligned_value_p): Return true
10594         for TCmode.
10595         (ix86_data_alignment): Align TCmode to 128bits.
10596         (ix86_local_alignment): Likewise.
10598 2008-07-03  Andrew Haley  <aph@redhat.com>
10600         PR bootstrap/33304
10601         * vec.h (VEC_TA): New.
10602         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
10603         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
10604         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
10605         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
10606         (C_COMMON_FIXED_TYPES): Remove first arg.
10607         (C_COMMON_FIXED_MODE_TYPES): Likewise.
10608         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
10609         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
10610         not to use empty macro arguments.
10612 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
10614         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
10615         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
10616         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
10617         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
10618         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
10619         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
10620         config/ia64/crtn.asm, config/m68hc11/larith.asm,
10621         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
10622         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
10623         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
10624         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
10625         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
10626         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
10627         config/rs6000/e500crtres64gpr.asm,
10628         config/rs6000/e500crtres64gprctr.asm,
10629         config/rs6000/e500crtrest32gpr.asm,
10630         config/rs6000/e500crtrest64gpr.asm,
10631         config/rs6000/e500crtresx32gpr.asm,
10632         config/rs6000/e500crtresx64gpr.asm,
10633         config/rs6000/e500crtsav32gpr.asm,
10634         config/rs6000/e500crtsav64gpr.asm,
10635         config/rs6000/e500crtsav64gprctr.asm,
10636         config/rs6000/e500crtsavg32gpr.asm,
10637         config/rs6000/e500crtsavg64gpr.asm,
10638         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
10639         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
10640         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
10641         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
10642         config/sparc/sol2-cn.asm: Remove .file directives.
10644 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
10646         * resource.c (mark_referenced_resources): Look inside
10647         UNSPEC_VOLATILEs and ASM_INPUTs.
10649 2008-07-02  Ian Lance Taylor  <iant@google.com>
10651         * rtlanal.c (add_reg_note): New function.
10652         * rtl.h (add_reg_note): Declare.
10653         * auto-inc-dec.c (attempt_change): Use add_reg_note.
10654         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
10655         * builtins.c (expand_builtin_longjmp): Likewise.
10656         (expand_builtin_nonlocal_goto): Likewise.
10657         * calls.c (emit_call_1, expand_call): Likewise.
10658         * cfgexpand.c (add_reg_br_prob_note): Likewise.
10659         * cfglayout.c (fixup_reorder_chain): Likewise.
10660         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
10661         (commit_one_edge_insertion): Likewise.
10662         * combine.c (move_deaths, distribute_notes): Likewise.
10663         * df-problems.c (df_set_note): Likewise.
10664         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
10665         (set_unique_reg_note): Likewise.
10666         (emit_copy_of_insn_after): Likewise.
10667         * expr.c (expand_expr_real): Likewise.
10668         * gcse.c (add_label_notes): Likewise.
10669         * haifa-sched.c (create_check_block_twin): Likewise.
10670         * jump.c (mark_jump_label_1): Likewise.
10671         * loop-doloop.c (add_test, doloop_modify): Likewise.
10672         * loop-unswitch.c (compare_and_jump_seq): Likewise.
10673         * lower-subreg.c (move_eh_region_note): Likewise.
10674         * optabs.c (emit_libcall_block): Likewise.
10675         * predict.c (predict_insn): Likewise.
10676         (combine_predictions_for_insn): Likewise.
10677         * recog.c (peephole2_optimize): Likewise.
10678         * regmove.c (try_auto_increment): Likewise.
10679         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
10680         * reload.c (find_reloads): Likewise.
10681         * reload1.c (fixup_eh_region_note): Likewise.
10682         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
10683         * reorg.c (delete_prior_computation): Likewise.
10684         (delete_computation, dbr_schedule): Likewise.
10685         * config/pa/pa.c (legitimize_pic_address): Likewise.
10686         * config/sh/sh.c (sh_reorg): Likewise.
10688 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
10690         PR target/36669
10691         * config/libgcc-glibc.ver: Add %exclude.
10692         * config/m32r/libgcc-glibc.ver: Likwise.
10693         * config/s390/libgcc-glibc.ver: Likwise.
10694         * config/sh/libgcc-glibc.ver: Likwise.
10695         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
10697         * config/i386/libgcc-glibc.ver: New.
10699         * config/i386/libgcc-x86_64-glibc.ver: Removed.
10701 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
10703         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
10704         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
10705         i[34567]86-*-linux*, x86_64-*-linux*.  Add
10706         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
10707         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
10708         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
10709         i[34567]86-*-linux*, x86_64-*-linux*.
10711         * libgcc-std.ver: Add empty GCC_4.4.0.
10713         * mkmap-symver.awk: Support multiple versions per symbol.
10715         * config/i386/i386.c (ix86_init_builtins): Always define
10716         __builtin_fabsq and __builtin_copysignq with fallbacks.
10717         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
10718         and __builtin_copysignq if SSE2 isn't available.
10720         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
10721         (LIBGCC2_TF_CEXT): Likwise.
10722         (TF_SIZE): Likwise.
10724         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
10726         * config/i386/sfp-machine.h: Moved to libgcc.
10728         * config/i386/sfp-machine.h: New.
10729         * config/i386/t-linux: Likwise.
10731         * config/i386/t-darwin: Remove softfp_wrap_start and
10732         softfp_wrap_end.
10733         * config/i386/t-darwin64: Likewise.
10735         * config/i386/t-fprules-softfp64: Renamed to ...
10736         * config/i386/t-fprules-softfp: This.
10738         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
10739         and softfp_wrap_end.
10741 2008-07-02  Jason Merrill  <jason@redhat.com>
10743         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
10745         * tree.c (ctor_to_list): New fn.
10746         * tree.h: Declare it.
10747         (CONSTRUCTOR_ELT): New macro.
10748         (CONSTRUCTOR_NELTS): New macro.
10750 2008-07-02  Richard Guenther  <rguenther@suse.de>
10752         * tree-ssa-structalias.c (struct variable_info): Reorder
10753         to fill padding on 64bit hosts.  Make collapsed_to an int.
10754         (get_varinfo_fc): Deal with that.
10755         (new_var_info): Likewise.
10756         (collapse_rest_of_var): Likewise.
10758 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
10760         * doc/install.texi (--enable-java-home): Document.
10761         (--enable-aot-compile-rpm): Likewise.
10762         (--with-arch-directory): Likewise.
10763         (--with-os-directory): Likewise.
10764         (--with-origin-name): Likewise.
10765         (--with-arch-suffix): Likewise.
10766         (--with-jvm-root-dir): Likewise.
10767         (--with-jvm-jar-dir): Likewise.
10768         (--with-python-dir): Likewise.
10770 2008-07-02  Richard Guenther  <rguenther@suse.de>
10772         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
10773         from decls explicitly.  Merge operand checking from tuples.
10775 2008-07-02  Martin Jambor  <mjambor@suse.cz>
10777         * tree-switch-conversion.c: Included timevar.h which I forgot before.
10779 2008-07-02  Martin Jambor  <mjambor@suse.cz>
10781         * tree-switch-conversion.c: Included timevar.h
10782         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
10784         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
10786 2008-07-02  Martin Jambor  <mjambor@suse.cz>
10788         * tree-switch-conversion.c: Corrected various comments and
10789         whitespace issues
10790         (build_constructors): Fixed minor formatting mistakes.
10792         * invoke.texi (Optimize Options): Corrected the
10793         switch-conversion-max-branch-ratio parameter.
10795 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
10797         * final.c (asm_insn_count): Return zero for an empty asm body.
10799 2008-07-02  Richard Guenther  <rguenther@suse.de>
10801         * bitmap.h (bitmap_set_bit): Return bool.
10802         (bitmap_clear_bit): Likewise.
10803         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
10804         write to the bitmap if it would.
10805         (bitmap_clear_bit): Likewise.
10806         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
10807         bitmap_set_bit return value.
10808         (add_pred_graph_edge): Likewise.
10809         (add_graph_edge): Likewise.
10810         (do_sd_constraint): Likewise.
10811         (do_ds_constraint): Likewise.
10813 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10815         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
10816         Fix -Wc++-compat and/or -Wcast-qual warnings.
10817         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
10818         gen_regparm_prefix): Likewise.
10819         * vmsdbgout.c (write_modbeg, lookup_filename,
10820         vmsdbgout_source_line, vmsdbgout_init): Likewise.
10822 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
10824         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
10825         defaults.h definition apply.
10827 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
10829         * function.c (assign_parm_remove_parallels): New.
10830         (assign_parm_setup_block_p): Do not return true for non-BLKmode
10831         PARALLELs.
10832         (assign_parm_setup_block): Do not handle them.
10833         (assign_parm_setup_reg, assign_parm_setup_stack): Call
10834         assign_parm_remove_parallels.
10836 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
10838         * c-typeck.c (convert_for_assignment): Use
10839         vector_targets_convertible_p.
10840         * c-common.c (vector_targets_convertible_p): New.
10841         * c-common.h (vector_targets_convertible_p): New prototype.
10842         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
10843         opaque_p_V2SI_type_node.
10845 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
10847         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
10848         RFmode constants.
10850 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
10852         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
10853         TFmode constants via two element DImode vector for hosts with
10854         HOST_BITS_PER_WIDE_INT < 64.
10855         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
10856         also for HOST_BITS_PER_WIDE_INT < 64.
10858 2008-07-01  Richard Guenther  <rguenther@suse.de>
10860         PR tree-optimization/36666
10861         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
10862         (get_constraint_exp_from_ssa_var): Split into ...
10863         (get_constraint_exp_for_temp): ... this ...
10864         (get_constraint_for_ssa_var): ... and that.
10865         Return constraint expressions for all touched sub-fields
10866         if the results address is not taken.
10867         (process_constraint): Remove assertion that aggregate
10868         assignments do not happen at this place.
10869         (get_constraint_for_component_ref): Add address_p argument.
10870         Return constraint expressions for all touched sub-fields
10871         if the results address is not taken.
10872         (do_deref): Use get_constraint_exp_for_temp.
10873         (get_constraint_for_1): Rename from ...
10874         (get_constraint_for): ... this.  Add the old function as wrapper.
10875         (do_structure_copy): Use get_constraint_for_1.
10877 2008-07-01  Martin Jambor  <mjambor@suse.cz>
10879         * Makefile.in (tree-switch-conversion.o): Add.
10880         (OBJS-common): Add tree-swtch-conversion.o.
10881         * passes.c (init_optimization_passes): Add pass_convert_switch.
10882         * tree-pass.h: (pass_convert_switch): Add.
10883         * tree-switch-conversion.c: New file.
10884         * gcc.dg/tree-ssa/cswtch.c: New testcase.
10885         * common.opt (ftree-cswtch): New option.
10886         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
10887         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
10888         * opts.c (decode_options): Set flag_tree_switch_conversion when
10889         optimization level is >= 2.
10890         * doc/invoke.texi (Optimize Options): Added description of
10891         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
10893 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10895         * config/darwin-driver.c (darwin_default_min_version): Fix
10896         -Wc++-compat warnings.
10898 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
10900         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
10901         of operand 0.
10903 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
10905         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
10907 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
10909         PR rtl-optimization/34744
10910         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
10911         (df_scan_free_internal): Free data structures not
10912         allocated in storage pools.
10913         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
10914         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
10915         df_scan_free_mws_vec.
10916         * dse.c (dse_step6): Free offset_map_p and offset_map_n
10917         unconditionally.
10919 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
10921         * config/i386/i386.c (contains_aligned_value_p): Return true
10922         for __float128.
10923         (ix86_function_arg_boundary): Return its natural boundary
10924         for __float128.
10925         (return_in_memory_32): Don't check TDmode.
10926         (ix86_split_to_parts): Support splitting into 4 parts and
10927         support TFmode for 32bit target.
10928         (ix86_split_long_move): Support splitting into 4 parts.
10929         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
10930         for SSE2.
10931         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
10932         (ix86_init_builtins): Here.
10933         (ix86_scalar_mode_supported_p): Always return true for TFmode.
10934         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
10935         'q' and 'w', respectively.
10937         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
10938         TARGET_64BIT.
10939         (movtf_internal): Likewise.
10940         (<code>tf2): Likewise.
10941         (*absnegtf2_sse): Likewise.
10942         (copysign<mode>3): Likewise.
10943         (copysign<mode>3_const): Likewise.
10944         (copysign<mode>3_var): Likewise.
10945         (define_split UNSPEC_COPYSIGN): Likewise.
10946         * config/i386/sse.md (*nandtf3): Likewise.
10947         (<code>tf3): Likewise.
10948         (*<code>tf3): Likewise.
10950 2008-06-30  Joey Ye  <joey.ye@intel.com>
10951             H.J. Lu  <hongjiu.lu@intel.com>
10953         * global.c (compute_regsets): Set frame_pointer_needed here.
10954         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
10956 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
10958         * doc/install.texi (specific): Expand Windows build notes.
10960 2008-06-30  Ira Rosen  <irar@il.ibm.com>
10962         PR tree-optimization/36648
10963         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
10964         number of prolog iterations by step. Fix the comment.
10966 2008-06-30  Richard Guenther  <rguenther@suse.de>
10968         PR middle-end/36671
10969         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
10970         handle calls from ECF_MALLOC functions.
10971         (handle_pure_call): ECF_MALLOC functions do not return
10972         call-used memory.
10973         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
10975 2008-06-29  Andreas Schwab  <schwab@suse.de>
10977         * config/m68k/m68k.c (print_operand): Always print a float
10978         constant in hex.
10979         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
10980         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
10981         Remove macros.
10983         * config/rs6000/x-linux64: Remove never used file.
10985 2008-06-29  Richard Guenther  <rguenther@suse.de>
10987         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
10988         prototype.
10989         (struct alias_info): Move ...
10990         * tree-ssa-alias.c: ... here.
10991         (update_alias_info): Declare.
10992         (compute_may_aliases): Call it.
10993         (update_alias_info): New function.
10994         * tree-ssa-structalias.c (update_alias_info): Move ...
10995         * tree-ssa-alias.c (update_alias_info_1): ... here.
10996         * tree-ssa-structalias.c (process_constraint_1): Remove
10997         unused from_call argument.  Rename to ...
10998         (process_constraint): ... this.  Delete old wrapper.
10999         (make_constraint_to): Adjust callers.
11000         (handle_const_call): Likewise.
11001         (handle_pure_call): Likewise.
11002         (init_base_vars): Likewise.
11003         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
11004         (find_func_aliases): We don't need structure copies for
11005         complex types.
11006         (make_constraint_from_anything): Remove.
11007         (create_variable_info_for): For globals make constraints
11008         from escaped, not from anything.
11009         (compute_points_to_sets): Do not call update_alias_info.
11010         (ipa_pta_execute): Use make_constraint_from.
11012 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11014         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
11015         (bitmap.o-warn, dominance.o-warn): New.
11016         * configure.ac (cxx_compat_warn): Delete.
11017         (loose_warn): Add -Wcast-qual and -Wc++-compat.
11018         * system.h: Remove #pragma diagnostic for -Wcast-qual and
11019         -Wc++-compat.
11020         * configure: Regenerate.
11022         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
11023         warnings.
11025 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11027         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
11028         * df-scan.c (df_notes_rescan): Likewise.
11029         * ggc-page.c (set_page_table_entry): Likewise.
11030         * intl.c (gcc_gettext_width): Likewise.
11031         * varasm.c (get_unnamed_section, get_noswitch_section,
11032         get_section): Likewise.
11034 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
11036         * regrename.c (build_def_use): Don't copy RTX.
11038 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
11040         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
11041         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
11042         punctuation.  Use @ref instead of @xref.
11043         (Function Names): Remove stray @display/@end display.
11044         (C++ Attributes): Use @ref instead of @xref.
11045         (Deprecated Features): Fix punctuation around @xref.
11046         (Backwards Compatibility): Likewise.
11047         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
11049 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
11051         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
11052         constants for E500 double.
11054 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11056         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
11057         element type of const_vector.
11059 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
11061         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
11062         Remove FLAGS_REG clobber from expander pattern.
11063         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
11064         (anddi3, andsi3, andhi3, andqi3): Ditto.
11065         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
11066         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
11067         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
11068         (ashlsi3, ashlhi3, ashlqi3): Ditto.
11069         (ashrsi3, ashrhi3, ashrqi3): Ditto.
11070         (lshrsi3, lshrhi3, lshrqi3): Ditto.
11071         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
11072         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
11074 2008-06-28  Richard Guenther  <rguenther@suse.de>
11076         * tree-ssa-structalias.c (callused_id, var_callused,
11077         callused_tree): Add.
11078         (handle_pure_call): New function.
11079         (find_func_aliases): Call it.
11080         (find_what_p_points_to): Handle the call-used set.
11081         (clobber_what_escaped): Likewise.
11082         (compute_call_used_vars): New function.
11083         (init_base_vars): Init the call-used variable.
11084         (do_sd_constraint): Do not propagate the solution from CALLUSED
11085         but use CALLUSED as a placeholder.
11086         (solve_graph): Likewise.
11087         * tree-flow-inline.h (gimple_call_used_vars): New function.
11088         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
11089         (compute_call_used_vars): Declare.
11090         * tree-ssa-alias.c (set_initial_properties): Call
11091         compute_call_used_vars.
11092         (reset_alias_info): Clear call-used variables.
11093         (add_call_clobber_ops): Assert we are not called for const/pure
11094         functions.  Remove handling of them.
11095         (add_call_read_ops): Handle pure functions by adding the
11096         call-used set of variables as VUSEs.
11097         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
11098         (delete_tree_ssa): Free it.
11099         * tree-dfa.c (remove_referenced_var): Clear the var from the
11100         call-used bitmap.
11102 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
11104         * tree.c (build_varargs_function_type_list): New.
11105         (build_function_type_list_1): New.
11106         (build_function_type_list): Use build_function_type_list_1.
11107         * tree.h (build_varargs_function_type_list): New.
11109 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11111         PR target/34856
11112         * config/spu/spu.c (spu_builtin_splats): Do not generate
11113         invalid CONST_VECTOR expressions.
11114         (spu_expand_vector_init): Likewise.
11116 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
11118         * optabs.c (libfunc_decls): New variable.
11119         (libfunc_decl_hash, libfunc_decl_eq): New functions.
11120         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
11121         for the same function twice.
11123 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
11125         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
11126         ix86_expand_binary_operator directly.
11127         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
11128         for operand 2.
11129         (*ashrti3_1): Ditto.
11130         (*lshrti3_1): Ditto.
11131         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
11132         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
11133         using only one splitter.  Conditionaly execute splitter before or
11134         after peephole2 pass.
11135         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
11136         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
11137         Use only one alternative in asm template.
11138         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
11139         in asm template.
11140         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
11141         "J" operand constraint for operand 2.
11142         (*ashldi3_cconly_rex64): Ditto.
11143         (*ashrdi3_cmp_rex64): Ditto.
11144         (*ashrdi3_cconly_rex64): Ditto.
11145         (*lshrdi3_cmp_rex64): Ditto.
11146         (*lshrdi3_cconly_rex64): Ditto.
11147         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
11148         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
11149         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
11150         gen_x86_shrd_1.
11152 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
11154         * gimplify.c (omp_is_private): Don't return true if decl is not
11155         already private on #pragma omp for or #pragma omp parallel for.
11157         PR debug/36617
11158         * tree-cfg.c (struct move_stmt_d): Replace block field with
11159         orig_block and new_block fields.
11160         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
11161         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
11162         (move_block_to_fn): Replace vars_map and new_label_map arguments
11163         with struct move_stmt_d pointer.
11164         (replace_block_vars_by_duplicates): New function.
11165         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
11166         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
11167         all subblocks of ORIG_BLOCK to the new function.  Call
11168         replace_block_vars_by_duplicates.
11169         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
11170         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
11171         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
11172         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
11173         (expand_omp): Temporarily set input_location to the location of
11174         region's controlling stmt.
11175         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
11176         BIND_EXPR, push ctx->block_vars and gimplification vars into
11177         the BIND_EXPR and its block's BLOCK_VARS instead of directly
11178         into dest function.
11179         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
11180         there are any BLOCK_VARS.
11181         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
11182         OMP_PARALLEL or OMP_TASK stmt.
11183         (lower_omp): Save and restore input_location around the lower_omp_1
11184         call.
11186 2008-06-27  Richard Guenther  <rguenther@suse.de>
11188         PR tree-optimization/36400
11189         PR tree-optimization/36373
11190         PR tree-optimization/36344
11191         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
11192         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
11193         (update_alias_info): Remove call clobbering code.
11194         (make_constraint_to): New helper function.
11195         (make_escape_constraint): Likewise.
11196         (handle_rhs_call): Use it on all pointer containing arguments.
11197         Also mark the static chain escaped.
11198         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
11199         instead of ANYTHING.
11200         (make_constraint_from): New helper split out from ...
11201         (make_constraint_from_anything): ... here.
11202         (find_func_aliases): Add constraints for escape sites.
11203         (intra_create_variable_infos): Make constraints from NONLOCAL
11204         for parameters.
11205         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
11206         as ANYTHING.
11207         (clobber_what_p_points_to): Remove.
11208         (clobber_what_escaped): New function.
11209         (init_base_vars): Init NONLOCAL and ESCAPED.
11210         (do_sd_constraint): Do not propagate the solution from ESCAPED
11211         but use ESCAPED as a placeholder.
11212         (solve_graph): Likewise.
11213         * tree-flow.h (clobber_what_p_points_to): Remove.
11214         (clobber_what_escaped): Declare.
11215         * tree-ssa-alias.c (set_initial_properties): Call it.
11216         Remove code clobbering escaped pointers.
11218 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
11220         * function.c (allocate_struct_function): Only allocate a unique
11221         funcdef_no if the decl is nonzero.
11223 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
11225         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
11226         * config/mips/mips.c (mips_split_const_insns): New function.
11227         * config/mips/mips.md (move_type): New attribute.
11228         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
11229         (dword_mode): New attribute.
11230         (type): Avoid long line.  Map "move_type"s to "type"s,
11231         choosing "multi" for doubleword moves if appropriate.
11232         Swap MTC/MFC comments to match their declaration order.
11233         (extended_mips16): Default to "yes" if "move_type" is "sll0",
11234         "type" is "branch" or "jal" is "direct".
11235         (length): Handle "extended_mips16" first.  Make the default
11236         "0" for "ghost" instructions.  Set the length from "move_type".
11237         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
11238         of "type", with "sll0" for the register alternative.  Remove the
11239         "extended_mips16" attribute.
11240         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
11241         of "type", with "shift_shift" for the register alternative.
11242         Remove the "length" attribute.
11243         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
11244         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
11245         of "type", with "andi" for the register alternative.
11246         (*zero_extendqihi2): Likewise.
11247         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
11248         of "andi" instead of a "type" of "arith".
11249         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
11250         instead of "type".
11251         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
11252         (mov_<store>r, *mov<mode>_ra): Likewise.
11253         (extendsidi2): Use "move_type" instead of "type", with "move"
11254         for the register alternative.
11255         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
11256         of "type", with "signext" for the register alternative.
11257         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
11258         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
11259         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
11260         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
11261         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
11262         (unnamed branch insn): Likewise.
11263         (*movdi_gp32_fp64): Fold into...
11264         (*movdi_32bit): ...here.
11265         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
11266         (*movdf_hardfloat): ...this new pattern.
11267         (*movdf_softfloat): Remove redundant FPR alternatives.
11268         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
11269         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
11270         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
11271         the "move" attribute.
11272         (*movdi_32bit): Use "move_type" instead of "type" and remove the
11273         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
11274         and "store" for COP loads and stores.
11275         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
11276         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
11277         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
11278         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
11279         (*movtf_mips16, *movv2sf): Likewise.
11280         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
11281         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
11282         (mfhc1<mode>): Use "move_type" instead of "move".
11283         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
11284         (loadgp_blockage): Remove the "length" attribute.
11285         (blockage, set_got_version, update_got_version): Likewise.
11286         (call_internal): Remove the "extended_mips16" attribute.
11287         (call_value_internal, call_value_multiple_internal): Likewise.
11288         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
11289         instead of "move".
11290         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
11291         the "length" attribute.
11293 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11295         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
11296         -Wcast-qual warnings.
11297         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
11298         handle_pragma_pop_macro): Likewise.
11299         * collect2.c (resolve_lib_name): Likewise.
11300         * config/arc/arc.c (arc_init): Likewise.
11301         * config/arm/arm.c (neon_builtin_compare,
11302         locate_neon_builtin_icode): Likewise.
11303         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
11304         * config/bfin/bfin.c (bfin_init_machine_status,
11305         bfin_optimize_loop): Likewise.
11306         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
11307         * config/cris/cris.c (cris_init_expanders): Likewise.
11308         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
11309         * config/darwin.c (machopic_indirection_eq,
11310         machopic_indirection_name, machopic_output_indirection): Likewise.
11311         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
11312         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
11313         frv_optimize_membar): Likewise.
11314         * config/i386/cygwin.h (mingw_scan,
11315         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
11316         * config/i386/cygwin1.c (mingw_scan): Likewise.
11317         * config/i386/i386.c (machopic_output_stub): Likewise.
11318         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
11319         i386_pe_unique_section): Likewise.
11320         * config/ia64/ia64.c (ia64_init_machine_status,
11321         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
11322         Likewise.
11323         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
11324         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
11325         * config/m68k/m68k.c (m68k_handle_option,
11326         m68k_sched_md_init_global): Likewise.
11327         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
11328         mcore_unique_section): Likewise.
11329         * config/mips/mips.c (mips_block_move_straight,
11330         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
11331         Likewise.
11332         * config/mmix/mmix.c (mmix_init_machine_status,
11333         mmix_encode_section_info): Likewise.
11334         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
11335         * config/rs6000/rs6000.c (rs6000_init_machine_status,
11336         print_operand_address, output_toc, redefine_groups,
11337         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
11338         * config/s390/s390.c (s390_init_machine_status): Likewise.
11339         * config/score/score.c (score_block_move_straight,
11340         score_block_move_loop_body): Likewise.
11341         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
11342         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
11343         * emit-rtl.c (find_auto_inc): Likewise.
11344         * gcc.c (translate_options, process_command): Likewise.
11345         * reorg.c (dbr_schedule): Likewise.
11346         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
11347         * xcoffout.c (xcoffout_declare_function): Likewise.
11349 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
11351         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
11352         ipa-pta working again.
11354 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
11356         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
11357         genautomata.
11359 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
11361         * config.gcc (powerpc*-*-*): Add new core e500mc.
11362         * config/rs6000/e500mc.md: New file.
11363         * config/rs6000/rs6000.c (processor_costs): Add new costs for
11364         e500mc.
11365         (rs6000_override_options): Add e500mc case to
11366         processor_target_table. Altivec and Spe options not allowed
11367         with e500mc. Add isel instruction to e500mc by
11368         default. Initialize rs6000_cost for e500mc.
11369         (rs6000_issue_rate): Set issue rate for e500mc.
11370         * config/rs6000/rs6000.h (processor_type): Add
11371         PROCESSOR_PPCE500MC.
11372         (ASM_CPU_SPEC): Add e500mc.
11373         Set TARGET_ISEL to rs6000_isel.
11374         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
11375         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
11376         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
11377         Include e500mc.md.
11378         * doc/invoke.texi: Add e500mc to list of cpus.
11380 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11382         PR c/34867
11383         * c-lex.c (lex_charconst): Initialize unsignedp.
11385 2008-06-27  Olivier Hainque  <hainque@adacore.com>
11387         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
11388         documented assumptions.
11390 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
11392         * dwarf2out.c: Remove trailing white spaces.  Break long line
11393         in comments.
11395 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
11397         * libfuncs.h (LTI_synchronize): New libfunc_index.
11398         (synchronize_libfunc): Declare.
11399         * builtins.c (expand_builtin_synchronize): Consider using
11400         synchronize_libfunc before falling back on an asm blockage.
11401         * config/mips/mips.c: Include libfuncs.h
11402         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
11404 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
11406         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
11407         parameter.  Copy stack_reg to r11 where appropriate.
11408         (no_global_regs_above): Add gpr parameter.
11409         (rs6000_stack_info): Only add padding for SPE save area if we
11410         are saving SPE GPRs and CR.
11411         (saveres_routine_syms): New variable.
11412         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
11413         Define.
11414         (rs6000_savres_routine_sym): New function.
11415         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
11416         split out of...
11417         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
11418         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
11419         Tweak FPR out-of-line saving.
11420         (rs6000_make_savres_rtx): New function.
11421         (rs6000_use_multiple_p): New function.
11422         (rs6000_savres_strategy): New function.
11423         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
11424         out-of-line if appropriate.
11425         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
11426         if we are optimizing for size.
11427         (GP_SAVE_INLINE): Define.
11428         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
11429         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
11430         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
11431         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
11432         (*save_fpregs_<mode>): Add use of r11.
11433         (*restore_gpregs_<mode>): New insn.
11434         (*return_and_restore_gpregs_<mode>): New insn.
11435         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
11436         use r11.
11437         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
11438         (*restore_gpregs_spe): New insn.
11439         (*return_and_restore_gpregs_spe): New insn.
11440         * config/rs6000/predicates.md (save_world_operation): Fix check.
11442 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
11444         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
11445         this point, so assert that.
11447 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
11449         * cfganal.c: Include vec.h and vecprim.h.
11450         (compute_idf): Import from...
11451         * tree-into-ssa (compute_idf): ...here.
11452         * basic-block.h (compute_idf): Export.
11454 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
11456         * c-decl.c (merge_decls): Use !current_function_decl to check for
11457         extern declaration of C99 inline function being at file scope.
11459 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
11461         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
11463 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11465         * alias.c (record_alias_subset, init_alias_analysis): Fix
11466         -Wc++-compat and/or -Wcast-qual warnings.
11467         * attribs.c (lookup_attribute_spec): Likewise.
11468         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
11469         copy_bb, connect_traces,
11470         find_rarely_executed_basic_blocks_and_cr): Likewise.
11471         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
11472         note_btr_set, migrate_btr_defs): Likewise.
11473         * builtins.c (result_vector, expand_builtin_memcpy,
11474         expand_builtin_mempcpy_args, expand_builtin_strncpy,
11475         builtin_memset_read_str, expand_builtin_printf,
11476         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
11477         Likewise.
11478         * caller-save.c (mark_set_regs): Likewise.
11479         * calls.c (expand_call, emit_library_call_value_1): Likewise.
11480         * cgraph.c (cgraph_edge): Likewise.
11481         * combine.c (likely_spilled_retval_1): Likewise.
11482         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
11483         htab_counts_entry_del, get_coverage_counts): Likewise.
11484         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
11485         new_cselib_val): Likewise.
11486         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
11487         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
11488         Likewise.
11489         * df-core.c (df_compact_blocks): Likewise.
11490         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
11491         * df-scan.c (df_grow_reg_info, df_ref_create,
11492         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
11493         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
11494         df_record_entry_block_defs, df_record_exit_block_uses,
11495         df_bb_verify): Likewise.
11496         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
11497         DF_REF_EXTRACT_MODE_CONST): New.
11498         * dominance.c (get_immediate_dominator, get_dominated_by,
11499         nearest_common_dominator, root_of_dom_tree,
11500         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
11501         -Wc++-compat and/or -Wcast-qual warnings.
11502         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
11503         record_store, replace_read, check_mem_read_rtx, scan_insn,
11504         dse_step1, dse_record_singleton_alias_set): Likewise.
11505         * dwarf2asm.c (dw2_force_const_mem): Likewise.
11507 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11509         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
11510         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
11511         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
11512         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
11513         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
11514         add_ranges_num, add_ranges_by_labels, file_info_cmp,
11515         file_name_acquire, output_file_names, add_const_value_attribute,
11516         premark_used_types_helper, file_table_eq, file_table_hash,
11517         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
11518         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
11519         -Wcast-qual warnings.
11520         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
11521         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
11522         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
11523         gen_reg_rtx, start_sequence, init_emit): Likewise.
11524         * et-forest.c (et_new_occ, et_new_tree): Likewise.
11525         * except.c (init_eh_for_function, gen_eh_region,
11526         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
11527         arh_to_landing_pad, arh_to_label, add_action_record,
11528         add_call_site, switch_to_exception_section): Likewise.
11529         * expmed.c (synth_mult): Likewise.
11530         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
11531         store_expr): Likewise.
11532         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
11533         Likewise.
11534         * function.c (assign_stack_temp_for_type,
11535         allocate_struct_function, match_asm_constraints_1): Likewise.
11536         * gcov-io.c (gcov_allocate): Likewise.
11537         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
11538         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
11539         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
11540         record_one_set, insert_expr_in_table, insert_set_in_table,
11541         dump_hash_table, compute_hash_table_work, alloc_hash_table,
11542         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
11543         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
11544         -Wcast-qual warnings.
11546 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11548         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
11549         -Wcast-qual warnings.
11550         * gcc.c (process_command): Likewise.
11551         * genattrtab.c (oballoc): Use XOBNEW.
11552         (oballocvec): Define.
11553         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
11554         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
11555         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
11556         -Wc++-compat and/or -Wcast-qual warnings.
11557         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
11558         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
11559         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
11560         gen_presence_absence_set, gen_automaton, gen_regexp_el,
11561         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
11562         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
11563         add_excls, process_presence_absence_names,
11564         process_presence_absence_patterns, add_presence_absence,
11565         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
11566         get_free_state, add_arc, get_free_automata_list_el,
11567         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
11568         transform_3, cache_presence, create_ainsns, create_automata,
11569         create_state_ainsn_table, dfa_insn_code_enlarge,
11570         output_trans_func, output_min_issue_delay_func,
11571         output_dead_lock_func, output_reset_func,
11572         output_get_cpu_unit_code_func, output_dfa_start_func,
11573         expand_automata): Likewise.
11574         * genextract.c (gen_insn): Likewise.
11575         * gengtype-lex.l: Likewise.
11576         * gengtype.c (read_input_list, adjust_field_type,
11577         process_gc_options): Likewise.
11578         * genoutput.c (note_constraint): Likewise.
11579         * genpreds.c (mangle, add_constraint): Likewise.
11580         * genrecog.c (process_define_predicate, new_decision,
11581         add_to_sequence): Likewise.
11582         * gensupport.c (record_insn_name): Likewise.
11584 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11586         * config/i386/driver-i386.c (detect_caches_amd,
11587         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
11588         and/or -Wcast-qual warnings.
11589         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
11590         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
11591         gt_pch_save): Likewise.
11592         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
11593         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
11594         * global.c (compute_regsets): Likewise.
11595         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
11596         finish_graph_dump_file): Likewise.
11597         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
11598         unlink_bb_notes): Likewise.
11599         * integrate.c (get_hard_reg_initial_val): Likewise.
11600         * ipa-prop.c (ipa_push_func_to_list): Likewise.
11601         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
11602         * local-alloc.c (update_equiv_regs): Likewise.
11603         * loop-invariant.c (check_invariant_table_size,
11604         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
11605         Likewise.
11606         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
11607         altered_reg_used, mark_altered): Likewise.
11608         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
11609         insert_var_expansion_initialization,
11610         combine_var_copies_in_loop_exit, apply_opt_in_copies,
11611         release_var_copies): Likewise.
11612         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
11613         analyze_matrix_decl, add_allocation_site, analyze_transpose,
11614         analyze_accesses_for_phi_node, check_var_notmodified_p,
11615         check_allocation_function, find_sites_in_func,
11616         record_all_accesses_in_func, transform_access_sites,
11617         transform_allocation_sites): Likewise.
11618         * omp-low.c (new_omp_region, create_omp_child_function_name,
11619         check_omp_nesting_restrictions, check_combined_parallel,
11620         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
11621         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
11622         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
11623         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
11624         Likewise.
11625         * opts-common.c (prune_options): Likewise.
11626         * opts.c (add_input_filename, print_filtered_help,
11627         get_option_state): Likewise.
11628         * params.c (add_params): Likewise.
11629         * passes.c (set_pass_for_id, next_pass_1,
11630         do_per_function_toporder, pass_fini_dump_file): Likewise.
11631         * postreload.c (reload_cse_simplify_operands): Likewise.
11632         * predict.c (tree_predicted_by_p, tree_predict_edge,
11633         clear_bb_predictions, combine_predictions_for_bb): Likewise.
11635 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11637         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
11638         warnings.
11639         * recog.c (check_asm_operands, validate_change_1): Likewise.
11640         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
11641         subst_asm_stack_regs): Likewise.
11642         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
11643         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
11644         * regmove.c (reg_is_remote_constant_p): Likewise.
11645         * regrename.c (regrename_optimize, scan_rtx_reg,
11646         kill_clobbered_value, kill_set_value, kill_autoinc_value):
11647         Likewise.
11648         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
11649         regstat_compute_calls_crossed): Likewise.
11650         * reload1.c (init_reload, new_insn_chain,
11651         has_nonexceptional_receiver, reload, copy_reloads,
11652         calculate_needs_all_insns, init_elim_table): Likewise.
11653         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
11654         * rtl.c (shallow_copy_rtx_stat): Likewise.
11655         * rtlanal.c (parms_set): Likewise.
11656         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
11657         sbitmap_resize, sbitmap_vector_alloc): Likewise.
11658         * sched-ebb.c (earliest_block_with_similiar_load,
11659         add_deps_for_risky_insns): Likewise.
11660         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
11661         schedule_region): Likewise.
11662         * see.c (eq_descriptor_pre_extension,
11663         hash_descriptor_pre_extension, hash_del_pre_extension,
11664         eq_descriptor_properties, hash_descriptor_properties,
11665         hash_del_properties, see_seek_pre_extension_expr,
11666         see_initialize_data_structures, see_print_register_properties,
11667         see_print_pre_extension_expr, see_delete_merged_def_extension,
11668         see_delete_unmerged_def_extension, see_emit_use_extension,
11669         see_pre_delete_extension, see_map_extension, see_commit_changes,
11670         see_analyze_merged_def_local_prop,
11671         see_analyze_merged_def_local_prop,
11672         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
11673         see_set_prop_merged_def, see_set_prop_unmerged_def,
11674         see_set_prop_unmerged_use, see_print_one_extension,
11675         see_merge_one_use_extension, see_merge_one_def_extension,
11676         see_store_reference_and_extension, see_update_uses_relevancy,
11677         see_update_defs_relevancy): Likewise.
11678         * statistics.c (hash_statistics_hash, hash_statistics_eq,
11679         hash_statistics_free, curr_statistics_hash): Likewise.
11680         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
11681         expand_asm_operands, expand_return, case_bit_test_cmp,
11682         expand_case): Likewise.
11683         * stor-layout.c (start_record_layout): Likewise.
11684         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
11685         gt_pch_save_stringpool): Likewise.
11686         * tree-data-ref.c (hash_stmt_vertex_info,
11687         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
11688         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
11690 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
11692         PR target/36627
11693         * config/i386/i386.md : Change constraints of HImode and QImode
11694         immediate operands from "i" to "n".  Change SImode "ni" constraint to
11695         "i" and SImode "rmi" constraint to "g".  Remove all constraints
11696         from const0_operand and const1_operand predicated operands.
11697         (i): Change QImode and HImode attribute from "i" to "n".
11698         (*subqi_2): Change HImode operands to QImode.
11699         (*subqi_3): Ditto.
11701 2008-06-25  Olivier Hainque  <hainque@adacore.com>
11703         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
11704         sed substitutions.
11706 2008-06-25  Richard Guenther  <rguenther@suse.de>
11708         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
11709         not overflow the result type.
11711 2008-06-25  Richard Guenther  <rguenther@suse.de>
11713         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
11714         (vn_lookup): Likewise.
11716 2008-06-25  Richard Guenther  <rguenther@suse.de>
11718         PR tree-optimization/35518
11719         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
11720         * tree-sra.c (instantiate_element): Use fold_build3 to build
11721         BIT_FIELD_REFs.
11722         (try_instantiate_multiple_fields): Likewise.
11724 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11726         * config/rs6000/rs6000.md: Change all string instruction's clobber to
11727         be early clobbers.
11729 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11731         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
11732         use_backchain_to_restore_sp to true
11733         if the offset of the link register save area would go over the 32k - 1
11734         offset limit of the load
11735         instructions.
11737 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
11739         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
11740         anchor for the type-punning blurb.  Cross-reference "Structures
11741         unions enumerations and bit-fields implementation".  Provide a
11742         cast-through-pointer example.  Make final sentence self-contained.
11743         * doc/implement-c.texi (Structures unions enumerations and
11744         bit-fields implementation): Cross-reference the type-punning blurb
11745         in the -fstrict-aliasing documentation.
11747 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11749         PR middle-end/36594
11750         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
11751         the memory instead of the memory itself for the save area.
11753 2008-06-24  Olivier Hainque  <hainque@adacore.com>
11754             Nicolas Roche  <roche@adacore.com>
11756         * gengtype.c (srcdir_len): size_t instead of int.
11757         (get_file_realbasename): New function.  For F a filename, the real
11758         basename of F, with all the path components stripped.
11759         (get_file_srcdir_relative_path): New function.  For F a filename, the
11760         relative path to F from $(srcdir).
11761         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
11762         get_file_realbasename.  Adjust the head comment.
11763         (get_prefix_langdir_index): New function. For F a filename, return the
11764         lang_dir_names[] relative index of the language directory that is
11765         a prefix in F.
11766         (get_file_langdir): For F a filename, return the name of the language
11767         directory where F is located.
11768         (get_file_gtfilename): New function. The gt- output file name for an
11769         input filename F.
11770         (get_output_file_with_visibility): Replace in-line computations with
11771         uses of get_file_gtfilename and get_prefix_langdir_index.
11772         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
11774 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
11776         PR tree-optimization/36504
11777         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
11778         references without base address.
11780 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
11782         PR middle-end/36584
11783         * calls.c (expand_call): Increase alignment for recursive functions.
11785 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
11787         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
11788         (TARGET_FUNCTION_VALUE): New define.
11789         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
11790         * config/avr/avr.h (FUNCTION_VALUE): Remove.
11792 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
11794         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
11795         (fmod<mode>3): Ditto.
11796         (remainderxf3): Ditto.
11797         (remainder<mode>3): Ditto.
11799 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
11801         PR target/36533
11802         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
11803         REG is a hard register.
11805         PR tree-optimization/36508
11806         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
11807         499, don't check it at all in release compilers.
11809 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
11811         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
11812         together with SSE_TARGET_MATH to disable insn pattern.
11813         (*fop_<MODEF:mode>_2_i387): Ditto.
11814         (*fop_<MODEF:mode>_3_i387): Ditto.
11816 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
11818         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
11820 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11822         PR middle-end/34906
11823         * gimplify.c (gimplify_asm_expr): Check the return code of
11824         parse_output_constraint call, set function return and is_inout
11825         value if it failed.
11827 2008-06-22  Ian Lance Taylor  <iant@google.com>
11829         * c-lex.c (narrowest_unsigned_type): Change itk to int.
11830         (narrowest_signed_type): Likewise.
11831         * c-typeck.c (c_common_type): Change local variable mclass to enum
11832         mode_class, twice.
11833         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
11834         tcc_comparison, not the tree code itself.
11835         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
11836         (c_expand_expr): Cast modifier to enum expand_modifier.
11837         * c-common.h (C_RID_CODE): Add casts.
11838         (C_SET_RID_CODE): Define.
11839         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
11840         (c_lex_one_token): Add cast to avoid warning.
11841         (c_parser_objc_type_name): Rename local typename to type_name.
11842         (check_no_duplicate_clause): Change code parameter to enum
11843         omp_clause_code.
11844         (c_parser_omp_var_list_parens): Change kind parameter to enum
11845         omp_clause_code.
11846         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
11847         c_parser_omp_list_var_parens.
11848         (c_parser_omp_threadprivate): Likewise.
11849         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
11850         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
11851         * c-format.c (NO_FMT): Define.
11852         (printf_length_specs): Use NO_FMT.
11853         (asm_fprintf_length_specs): Likewise.
11854         (gcc_diag_length_specs): Likewise.
11855         (scanf_length_specs): Likewise.
11856         (strfmon_length_specs): Likewise.
11857         (gcc_gfc_length_specs): Likewise.
11858         (printf_flag_specs): Change 0 to STD_C89.
11859         (asm_fprintf_flag_specs): Likewise.
11860         (gcc_diag_flag_specs): Likewise.
11861         (gcc_cxxdiag_flag_specs): Likewise.
11862         (scanf_flag_specs): Likewise.
11863         (strftime_flag_specs): Likewise.
11864         (strfmon_flag_specs): Likewise.
11865         (print_char_table): Likewise.
11866         (asm_fprintf_char_table): Likewise.
11867         (gcc_diag_char_table): Likewise.
11868         (gcc_tdiag_char_table): Likewise.
11869         (gcc_cdiag_char_table): Likewise.
11870         (gcc_cxxdiag_char_table): Likewise.
11871         (gcc_gfc_char_table): Likewise.
11872         (scan_char_table): Likewise.
11873         (time_char_table): Likewis.
11874         (monetary_char_table): Likewise.
11875         * c-format.h (BADLEN): Likewise.
11877 2008-06-21  Ian Lance Taylor  <iant@google.com>
11879         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
11880         Define END_OF_BASE_TREE_CODES around inclusion.
11881         * tree.c (tree_code_type): New global array.
11882         (tree_code_length, tree_code_name): Likewise.
11883         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
11884         $(lang_tree_files).
11885         (all-tree.def, s-alltree): New targets.
11886         (gencheck.h, s-gencheck): Remove.
11887         (tree.o): Depend upon all-tree.def.
11888         (build/gencheck.o): Remove gencheck.h dependency.
11889         (mostlyclean): Don't remove gencheck.h.
11890         * c-common.h (enum c_tree_code): Remove.
11891         * c-lang.c (tree_code_type): Remove.
11892         (tree_code_length, tree_code_name): Remove.
11893         * gencheck.c (tree_codes): Include all-tree.def, rather than
11894         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
11895         after it is used.
11896         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
11897         than tree.def.
11898         * cp/cp-tree.h (enum cplus_tree_code): Remove.
11899         (operator_name_info): Size to MAX_TREE_CODES.
11900         (assignment_operator_name_info): Likewise.
11901         * cp/cp-lang.c (tree_code_type): Remove.
11902         (tree_code_length, tree_code_name): Remove.
11903         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
11904         (assignment_operator_name_info): Likewise.
11905         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
11906         MAX_TREE_CODES.
11907         * cp/mangle.c (write_expression): Likewise.
11908         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
11909         * fortran/f95-lang.c (tree_code_type): Remove.
11910         (tree_code_length, tree_code_name): Remove.
11911         * java/java-tree.h (enum java_tree_code): Remove.
11912         * java/lang.c (tree_code_type): Remove.
11913         (tree_code_length, tree_code_name): Remove.
11914         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
11915         * objc/objc-act.h (enum objc_tree_code): Remove.
11916         * objc/objc-lang.c (tree_code_type): Remove.
11917         (tree_code_length, tree_code_name): Remove.
11918         * objcp/objcp-lang.c (tree_code_type): Remove.
11919         (tree_code_length, tree_code_name): Remove.
11920         * ada/ada-tree.h (enum gnat_tree_code): Remove.
11921         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
11922         * ada/misc.c (tree_code_type): Remove.
11923         (tree_code_length, tree_code_name): Remove.
11925 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
11927         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
11928         the grand_bitmap_obstack.
11930 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11932         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
11933         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
11934         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
11935         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
11936         move_stmt_r, new_label_mapper): Likewise.
11937         * tree-complex.c (cvc_lookup): Likewise.
11938         * tree-dfa.c (create_function_ann): Likewise.
11939         * tree-dump.c (dump_register): Likewise.
11940         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
11941         find_phi_replacement_condition): Likewise.
11942         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
11943         tree_function_versioning): Likewise.
11944         * tree-into-ssa.c (cmp_dfsnum): Likewise.
11945         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
11946         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
11947         get_nonlocal_debug_decl, convert_nonlocal_reference,
11948         convert_nonlocal_omp_clauses, get_local_debug_decl,
11949         convert_local_reference, convert_local_omp_clauses,
11950         convert_nl_goto_reference, convert_nl_goto_receiver,
11951         convert_tramp_reference, convert_call_expr): Likewise.
11952         * tree-outof-ssa.c (contains_tree_r): Likewise.
11953         * tree-parloops.c (reduction_phi, initialize_reductions,
11954         eliminate_local_variables_1, add_field_for_reduction,
11955         add_field_for_name, create_phi_for_local_result,
11956         create_call_for_reduction_1, create_loads_for_reductions,
11957         create_stores_for_reduction, create_loads_and_stores_for_name):
11958         Likewise.
11959         * tree-phinodes.c (allocate_phi_node): Likewise.
11960         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
11961         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
11962         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
11963         * tree-ssa-coalesce.c (compare_pairs): Likewise.
11964         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
11965         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
11966         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
11967         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
11968         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
11969         vn_nary_op_insert): Likewise.
11970         * tree-ssa.c (redirect_edge_var_map_add,
11971         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
11972         * tree-vectorizer.c (vectorize_loops): Likewise.
11973         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
11974         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
11975         tree_cons_stat, build1_stat, build_variant_type_copy,
11976         decl_init_priority_lookup, decl_fini_priority_lookup,
11977         decl_priority_info, decl_restrict_base_lookup,
11978         decl_restrict_base_insert, decl_debug_expr_lookup,
11979         decl_debug_expr_insert, decl_value_expr_lookup,
11980         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
11981         type_hash_add, get_file_function_name, tree_check_failed,
11982         tree_not_check_failed, tree_range_check_failed,
11983         omp_clause_range_check_failed, build_omp_clause,
11984         build_vl_exp_stat): Likewise.
11985         * value-prof.c (gimple_histogram_value,
11986         gimple_duplicate_stmt_histograms): Likewise.
11987         * var-tracking.c (attrs_list_insert, attrs_list_copy,
11988         unshare_variable, variable_union_info_cmp_pos, variable_union,
11989         dataflow_set_different_1, dataflow_set_different_2,
11990         vt_find_locations, variable_was_changed, set_variable_part,
11991         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
11992         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
11993         section_entry_hash, object_block_entry_eq,
11994         object_block_entry_hash, create_block_symbol,
11995         initialize_cold_section_name, default_function_rodata_section,
11996         strip_reg_name, set_user_assembler_name, const_desc_eq,
11997         build_constant_desc, output_constant_def, lookup_constant_def,
11998         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
11999         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
12000         default_internal_label): Likewise.
12001         * varray.c (varray_init, varray_grow): Likewise.
12002         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
12004 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
12006         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
12007         operators for "test" insn.  Macroize insn using SWI mode macro.
12008         (*jcc_fused_2): Ditto.
12009         (*jcc_fused_3): Macroize insn using SWI mode macro.
12010         (*jcc_fused_4): Ditto.
12012 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
12014         * tree-ssa-pre.c: Fix typo in comment.
12015         (init_antic, fini_antic): Add explicit funtions for
12016         initializing and deinitializing ANTIC and AVAIL sets.
12017         (create_expression_by_pieces): Fix typo in comment.
12018         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
12019         (execute_pre): Eventually dump details about ANTIC_IN.
12021 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12023         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
12024         * gcc.c (translate_options, init_spec, store_arg, read_specs,
12025         add_to_obstack, file_at_path, find_a_file, execute,
12026         add_preprocessor_option, add_assembler_option, add_linker_option,
12027         process_command, insert_wrapper, do_option_spec, do_self_spec,
12028         spec_path, do_spec_1, is_directory, main, used_arg,
12029         getenv_spec_function): Likewise.
12030         * tlink.c (symbol_hash_lookup, file_hash_lookup,
12031         demangled_hash_lookup, symbol_push, file_push, frob_extension):
12032         Likewise.
12034 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
12036         * doc/rtl.texi: Updated subreg section.
12038 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
12040         PR c++/36523
12041         * cgraphunit.c (cgraph_process_new_functions): Don't clear
12042         node->needed and node->reachable.
12043         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
12044         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
12045         (expand_task_call): Don't call expand_task_copyfn.
12046         (expand_task_copyfn): Renamed to...
12047         (finalize_task_copyfn): ... this.
12049 2008-06-19  Jan Hubicka  <jh@suse.cz>
12051         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
12052         clobbering framepointer.
12054 2008-06-19  Jan Hubicka  <jh@suse.cz>
12056         * tree-optimize.c (execute_early_local_optimizations): Set
12057         cgraph_state only at first invocation.
12059 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12061         * system.h (-Wc++-compat): Activate as a warning, no an error.
12063 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
12065         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
12066         instead of "#" in insn asm template.
12067         (*jcc_fused_2): Ditto.
12069 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
12071         * config/i386/i386.h (ix86_tune_indices)
12072         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
12073         (TARGET_FUSE_CMP_AND_BRANCH): New define.
12074         * config/i386/i386.md (*jcc_fused_1): New insn pattern
12075         (*jcc_fused_2): Ditto.
12076         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
12077         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
12078         (print operand): Handle 'E' and 'e' code.
12080 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
12082         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
12083         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
12084         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
12086 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
12088         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
12089         node->decl.
12090         (cgraph_expand_function): Use local copy of decl.
12091         (cgraph_expand_all_functions): Remove redundant initialization of
12092         order_pos.
12093         (cgraph_optimize): Reword internal_error message.
12095 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
12097         * arm-protos.h (arm_return_in_memory): Remove public
12098         arm_return_in_memory() prototype.
12099         * arm.c (arm_return_in_memory): Add static prototype, add target
12100         hook macro, change definition and comments.
12101         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
12103 2008-06-19  Ben Elliston  <bje@au.ibm.com>
12105         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
12106         real.c: Remove references to IEEE 754R.
12107         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
12108         * doc/libgcc.texi (Decimal float library routines): Likewise.
12110 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12112         * targhooks.h (struct gcc_target): New member unwind_word_mode.
12113         (default_unwind_word_mode): Add prototype.
12114         * targhooks.c (default_unwind_word_mode): New function.
12115         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
12116         instead of word_mode.
12117         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
12118         (TARGET_INITIALIZER): Use it.
12120         * c-common.c (handle_mode_attribute): Support "unwind_word"
12121         mode attribute.
12122         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
12124         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
12125         word_mode to access SjLj_Function_Context member "data".
12126         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
12127         conversion from targetm.eh_return_filter_mode () to
12128         targetm.unwind_word_mode () if they differ.
12130         * builtin-types.def (BT_UNWINDWORD): New primitive type.
12131         (BT_FN_UNWINDWORD_PTR): New function type.
12132         (BT_FN_WORD_PTR): Remove.
12133         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
12134         * except.c (expand_builtin_extend_pointer): Convert pointer to
12135         targetm.unwind_word_mode () instead of word_mode.
12137         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
12138         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
12139         (spu_unwind_word_mode): New function.
12140         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
12141         (TARGET_UNWIND_WORD_MODE): Define.
12142         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
12144 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12146         * config/spu/spu.c (reg_align): Remove.
12147         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
12148         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
12149         (spu_split_store): Likewise.
12151 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
12153         * gcc/tree-vn.c: Fix typo in comment.
12155 2008-06-18  Jan Hubicka  <jh@suse.cz>
12157         * cgraphunit.c (cgraph_optimize): Output debug info when doing
12158         toplevel reorder too.
12160 2008-06-18  Jan Hubicka  <jh@suse.cz>
12162         * c-opts.c (c_common_post_options): PCH is not compatible with
12163         no-unit-at-a-time.
12164         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
12165         -fno-toplevel-reorder by default now.
12167 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12169         PR documentation/30739
12170         * doc/install.texi (Prerequisites): Document dependency on awk.
12172 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
12173             Ian Lance Taylor  <iant@google.com>
12175         PR rtl-optimization/35604
12176         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
12177         only want to change jump destinations, not eventual label comparisons.
12179 2008-06-16  Jan Hubicka  <jh@suse.cz>
12181         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
12182         syntax errors.
12183         (cgraph_analyze_function): Likewise.
12185 2008-06-16  Jan Hubicka  <jh@suse.cz>
12187         * cgraph.h (cgraph_mark_if_needed): New function.
12188         * cgraphunit.c (cgraph_mark_if_needed): New function.
12189         * c-decl.c (duplicate_decl): Use it.
12191 2008-06-16  Jan Hubicka  <jh@suse.cz>
12193         * cgraph.c (cgraph_add_new_function): When in expansion state, do
12194         lowering.
12196 2008-06-16  Jan Hubicka  <jh@suse.cz>
12198         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
12200 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
12201             Kazu Hirata  <kazu@codesourcery.com>
12202             Maxim Kuvyrkov  <maxim@codesourcery.com
12204         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
12205         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
12206         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
12207         EXTRA_SPEC_FUNCTIONS.
12208         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
12209         (DRIVER_SELF_SPECS): Adjust.
12210         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
12211         * config/mips/st.h, config/mips/t-st: New.
12212         * config/mips/driver-native.c, config/mips/x-native: New.
12213         * doc/invoke.texi (MIPS): Document 'native' value for -march and
12214         -mtune options.
12216 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
12218         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
12219         from it.
12220         (ISA_HAS_FP_CONDMOVE): New macro.
12221         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
12222         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
12223         (ISA_HAS_NMADD3_NMSUB3): New macro.
12224         * config/mips/mips.c (mips_rtx_costs): Update.
12225         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
12226         compiling for ST Loongson 2E/2F.
12227         (madd<mode>): Rename to madd4<mode>.  Update.
12228         (madd3<mode>): New pattern.
12229         (msub<mode>): Rename to msub4<mode>.  Update.
12230         (msub3<mode>): New pattern.
12231         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
12232         (nmadd3<mode>): New pattern.
12233         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
12234         (nmadd3<mode>_fastmath): New pattern.
12235         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
12236         (nmsub3<mode>): New pattern.
12237         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
12238         (nmsub3<mode>_fastmath): New pattern.
12239         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
12241 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
12243         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
12244         (DF_REF_INSN_INFO): New.
12245         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
12246         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
12247         with a NULL DF_REF_INSN_INFO.
12248         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
12249         DF_INSN_SET.
12250         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
12251         DF_INSN_INFO_EQ_USES): New.
12252         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
12253         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
12254         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
12255         * df-core.c: Update comment for above changes.
12256         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
12257         DF_INSN_UID_* macros.
12258         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
12259         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
12260         insn rtx.  Update all callers.
12261         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
12262         df_ref_create_structure, df_insn_refs_collect): Likewise.
12263         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
12264         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
12265         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
12266         macros to access the insn refs.
12267         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
12268         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
12269         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
12270         for accessing the refs.
12271         (try_fwprop_subst): Likewise.
12272         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
12273         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
12274         for accessing the refs.
12275         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
12276         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
12277         to look at the insn refs.
12278         (record_uses): Likewise.
12279         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
12280         function anymore.
12281         (mark_artificial_uses): Don't mark_insn for artificial refs.
12282         (mark_reg_rependencies): Likewise.
12284         * doc/rtl.texi: Remove documentation of ADDRESSOF.
12286 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12288         * configure: Regenerate.
12290 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
12292         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
12293         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12294         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12296 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
12298         * config/avr/avr.c (avr_mcu_t): Add attiny167.
12299         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12300         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12302 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
12304         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
12305         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12306         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12308 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
12310         * tree-ssa-sccvn.c: Fix format of comments.
12312 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
12314         * cgraph.c: Remove unneeded forward declarations of eq_node()
12315         and hash_node().
12317 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
12319         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
12320         REG_RETVAL notes.
12321         (see_update_relevancy): Likewise.
12322         * fwprop.c (try_fwprop_subst): Likewise.
12323         * rtlanal.c (noop_move_p): Likewise.
12324         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
12325         notes to non-existing libcall blocks.
12326         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
12327         Remove orig_set.
12328         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
12329         (dead_libcall_p): Remove.
12330         (delete_trivially_dead_insns): Don't use it.
12331         * web.c (union_defs): Remove comment about keeping nops.
12332         * gcse.c (hash_scan_insn): Don't take libcall pointers.
12333         (compute_hash_table_work): Don't track libcall notes.
12334         (do_local_cprop): Don't take libcall pointers.  Don't update
12335         libcall notes.
12336         (adjust_libcall_notes): Deleted.
12337         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
12338         ever have existed in the first place).
12339         (replace_store_insn): Don't try to remove libcall notes.
12340         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
12341         (resolve_reg_notes): Don't call them.
12342         (resolve_simple_move): Likewise.
12343         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
12344         Don't remove REG_RETVAL notes.
12345         * emit-rtl.c (try_split): Don't update libcall notes.
12346         (emit_copy_of_insn_after): Dito.
12347         * cselib.c (cselib_current_insn_in_libcall): Remove.
12348         (cselib_process_insn): Don't set/clear it.
12349         (new_elt_loc_list): Don't record it.
12350         (cselib_init): Don't initialize it.
12351         * cselib.c (struct elt_loc_list): Remove in_libcall field.
12352         * loop-invariant.c (find_invariant_insn): Don't look for libcall
12353         notes.
12354         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
12355         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
12356         (init_deps): Don't initialize it.
12357         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
12358         * combine.c (delete_noop_moves): Don't update libcall notes.
12359         (can_combine_p): Remove now pointless #if 0 block.
12360         (try_combine): Remove another obsolete #if 0 block.
12361         (distribute_notes): Don't distribute libcall notes.
12362         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
12363         * dce.c (libcall_dead_p): Remove.
12364         (delete_unmarked_insns): Don't handle libcall blocks.
12365         (preserve_libcall_for_dce): Remove.
12366         (prescan_insns_for_dce): Don't special-case libcall block insns.
12367         * reload1 (reload): Don't handle libcall notes.
12368         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
12369         documentation.
12371 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
12373         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
12374         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12375         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12377 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
12379         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
12380         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12381         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12383 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12385         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
12387 2008-06-16  Ira Rosen  <irar@il.ibm.com>
12389         PR tree-optimization/36493
12390         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
12391         the arguments list. Use VECTYPE to create vector pointer.
12392         (vectorizable_store): Fail if accesses through a pointer to vectype
12393         do not alias the original memory reference operands.
12394         Call vect_create_data_ref_ptr without the removed argument.
12395         (vectorizable_load): Likewise.
12396         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
12397         removed argument.
12399 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
12401         PR target/36336
12402         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
12403         reg_equiv_constant.
12405 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
12407         * config/mips/loongson2ef.md: New file.
12408         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
12409         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
12410         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
12411         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
12412         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
12413         and loongson_2f.
12414         (loongson2ef.md): New include.
12415         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
12416         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
12417         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
12418         (loongson_gt_<mode>, loongson_extract_halfword)
12419         (loongson_insert_halfword_0, loongson_insert_halfword_2)
12420         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
12421         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
12422         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
12423         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
12424         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
12425         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
12426         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
12427         (vec_interleave_low<mode>): Define type attribute.
12428         * config/mips/mips.c (mips_ls2): New static variable.
12429         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
12430         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
12431         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
12432         Implement target scheduling hooks.
12433         (mips_multipass_dfa_lookahead): Update to handle tuning for
12434         Loongson 2E/2F.
12435         (mips_sched_init): Initialize data for Loongson scheduling.
12436         (mips_ls2_variable_issue): New static function.
12437         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
12438         Add sanity check.
12439         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
12440         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
12441         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
12442         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
12443         Handle ST Loongson 2E/2F cores.
12444         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
12446 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12448         * omp-low.c (extract_omp_for_data): Fix comment typo.
12449         * c.opt: Fix typo.
12451 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12453         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
12454         FIXME note about gcc/config.guess.
12455         * doc/options.texi (Option file format): Remove non-ASCII bytes.
12456         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
12457         * doc/cppopts.texi: Likewise.
12458         * doc/extend.texi: Likewise.
12459         * doc/gcc.texi: Likewise.
12460         * doc/gccint.texi: Likewise.
12461         * doc/gcov.texi: Likewise.
12462         * doc/gty.texi: Likewise.
12463         * doc/hostconfig.texi: Likewise.
12464         * doc/install.texi: Likewise.
12465         * doc/invoke.texi: Likewise.
12466         * doc/loop.texi: Likewise.
12467         * doc/makefile.texi: Likewise.
12468         * doc/md.texi: Likewise.
12469         * doc/passes.texi: Likewise.
12470         * doc/tm.texi: Likewise.
12471         * doc/tree-ssa.texi: Likewise.
12472         * doc/trouble.texi: Likewise.
12474 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
12475             Nathan Sidwell  <nathan@codesourcery.com>
12476             Maxim Kuvyrkov  <maxim@codesourcery.com>
12477             Richard Sandiford  <rdsandiford@googlemail.com>
12479         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
12480         * config/mips/mips-protos.h (mips_expand_vector_init): New.
12481         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
12482         builtins.
12483         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
12484         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
12485         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
12486         V8QImode cases.
12487         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
12488         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
12489         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
12490         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
12491         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
12492         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
12493         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
12494         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
12495         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
12496         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
12497         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
12498         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
12499         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
12500         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
12501         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
12502         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
12503         (mips_builtins): Add Loongson builtins.
12504         (mips_loongson_2ef_bdesc): New.
12505         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
12506         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
12507         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
12508         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
12509         New.
12510         (mips_expand_vector_init): New.
12511         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
12512         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
12513         if appropriate.
12514         * config/mips/mips.md: Add unspec numbers for Loongson
12515         builtins.  Include loongson.md.
12516         (MOVE64): Include Loongson vector modes.
12517         (SPLITF): Include Loongson vector modes.
12518         (HALFMODE): Handle Loongson vector modes.
12519         * config/mips/loongson.md: New.
12520         * config/mips/loongson.h: New.
12521         * config.gcc: Add loongson.h header for mips*-*-* targets.
12522         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
12524 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
12526         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
12527         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
12528         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
12529         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
12530         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
12531         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
12532         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
12533         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
12534         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
12535         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
12536         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
12537         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
12538         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
12539         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
12540         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
12541         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
12542         Remove use_fixproto=yes.
12543         (ia64*-*-hpux*): Remove comment about using fixproto.
12544         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
12546 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12548         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
12549         library rebuilds.
12550         * configure: Regenerate.
12552 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
12554         PR middle-end/36520
12555         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
12556         before evaluating it.
12558 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
12560         PR c/36507
12561         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
12562         nested inline functions.
12563         (start_decl, start_function): Don't invert DECL_EXTERNAL
12564         for nested inline functions.
12566 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
12568         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
12569         splits that must be made for correctness.
12571 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
12573         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
12574         (AVAIL_NON_MIPS16): Likewise.
12575         (mips_builtin_description): Replace target_flags with a predicate.
12576         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
12577         (dspr2_32): New availability predicates.
12578         (MIPS_BUILTIN): New macro.
12579         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
12580         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
12581         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
12582         Replace the TARGET_FLAGS parameters with AVAIL parameters.
12583         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
12584         (mips_dsp_32only_bdesc): Merge into...
12585         (mips_builtins): ...this new array.
12586         (mips_bdesc_map, mips_bdesc_arrays): Delete.
12587         (mips_init_builtins): Update after above changes.
12588         (mips_expand_builtin_1): Merge into...
12589         (mips_expand_builtin): ...here and update after above changes.
12591 2008-06-12  Paul Brook  <paul@codesourcery.com>
12593         * longlong.h (__arm__): Define count_leading_zeros.
12594         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
12595         (clzsi2, clzdi2): New functions.
12596         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
12597         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
12598         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
12599         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
12600         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
12601         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
12602         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
12603         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
12604         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
12605         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
12607 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
12609         * config/m68k/m68k.c (m68k_tune_flags): New.
12610         (override_options): Compute m68k_tune_flags.
12611         (MULL_COST, MULW_COST): Update for various variants of CFV2.
12612         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
12614 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
12616         PR middle-end/36506
12617         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
12619 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
12621         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
12622         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
12624 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
12626         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
12627         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
12629 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
12631         PR middle-end/36506
12632         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
12633         reductions.
12635 2008-06-12  Richard Guenther  <rguenther@suse.de>
12637         PR tree-optimization/36345
12638         * tree-flow.h (struct ptr_info_def): Align escape_mask,
12639         add memory_tag_needed flag.
12640         (may_alias_p): Declare.
12641         * tree-ssa-alias.c (may_alias_p): Export.
12642         (set_initial_properties): Use memory_tag_needed flag.
12643         (update_reference_counts): Likewise.
12644         (reset_alias_info): Reset memory_tag_needed flag.
12645         (create_name_tags): Check memory_tag_needed flag.
12646         (dump_points_to_info_for): Dump it.
12647         * tree-ssa-structalias.c (struct variable_info): Remove
12648         directly_dereferenced flag.
12649         (new_var_info): Do not initialize it.
12650         (process_constraint_1): Do not set it.
12651         (update_alias_info): Set is_dereferenced flag.
12652         (set_uids_in_ptset): Use may_alias_p.
12653         (set_used_smts): Check memory_tag_needed flag.
12654         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
12655         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
12656         memory_tag_needed flag.
12657         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
12658         from broken design.
12660 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
12662         * config/i386/i386.c (ix86_compute_frame_layout): Disable
12663         red zone for w64 abi.
12664         (ix86_expand_prologue): Likewise.
12665         (ix86_force_to_memory): Likewise.
12666         (ix86_free_from_memory): Likewise.
12668 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
12670         PR target/36425
12671         * config/rs6000/rs6000.c (rs6000_override_options): Set
12672         rs6000_isel conditionally to the absence of comand line override.
12673         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
12674         Remove duplicate rs6000_isel setting.
12675         * config/rs6000/eabispe.h: Ditto.
12677 2008-06-11  Richard Guenther  <rguenther@suse.de>
12679         * alias.c (get_alias_set): Use the element alias-set for arrays.
12680         (record_component_aliases): For arrays and vectors do nothing.
12681         * c-common.c (strict_aliasing_warning): Handle the cases
12682         of alias set zero explicitly.
12683         * Makefile.in (dfp.o-warn): Add -Wno-error.
12685 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
12687         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
12688         tune_32 tune_64.
12689         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
12690         tune_32 tune_64 to supported_defaults.  Allow values not
12691         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
12692         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
12693         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
12694         with_cpu_64 to generic for 64-bit-supporting configurations, not
12695         with_cpu.  Remove FIXMEs.
12696         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
12697         --with-arch-64, --with-tune-32, --with-tune-64): Document.
12698         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
12699         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
12700         arch_32 and arch_64.
12702 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
12703             Olivier Hainque  <hainque@adacore.com>
12705         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
12706         Use DECL_SIZE_UNIT to retrieve the size of the field.
12708 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
12710         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
12711         with function calls after declarations.  Lay out
12712         neon_float_type_node before further use.
12714 2008-06-11  Richard Guenther  <rguenther@suse.de>
12716         * tree-flow.h (may_point_to_global_var): Declare.
12717         * tree-ssa-alias.c (may_point_to_global_var): New function.
12718         * tree-ssa-sink.c (is_hidden_global_store): Use it.
12720 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
12722         * configure.ac: Teach that fido supports .debug_line.
12723         * configure: Regenerate.
12725 2008-06-10  Tom Tromey  <tromey@redhat.com>
12727         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
12728         debug hook.
12730 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
12732         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
12733         (encode_decimal64, decode_decimal64, encode_decimal128,
12734         decode_decimal128): Reverse order of 32-bit parts of value if host
12735         and target endianness differ.
12737 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
12739         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
12740         Avoid division by 0.
12741         (tree_mod_pow2_value_transform): Likewise.
12742         (tree_ic_transform): Likewise.
12743         (tree_stringops_transform): Likewise.
12744         (tree_mod_subtract_transform): Likewise.
12745         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
12746         (copy_edges_for_bb): Likewise.
12747         (initialize_cfun): Likewise.
12749 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
12751         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
12752         nonmemory_operand. Add "N" operand constraint.
12753         (*btsi): Ditto.
12754         (*jcc_btdi_mask_rex64): New instruction and split pattern.
12755         (*jcc_btsi_mask): Ditto.
12756         (*jcc_btsi_mask_1): Ditto.
12758 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
12760         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
12761         TYPE_CANONICAL for copied element type.
12763 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
12765         PR target/36473
12766         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
12767         Add m_CORE2 and m_GENERIC.
12768         * config/i386/predicates.md (bt_comparison_operator): New predicate.
12769         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
12770         (*btsi): Ditto.
12771         (*jcc_btdi_rex64): New instruction and split pattern.
12772         (*jcc_btsi): Ditto.
12773         (*jcc_btsi_1): Ditto.
12774         (*btsq): Fix Intel asm dialect operand order.
12775         (*btrq): Ditto.
12776         (*btcq): Ditto.
12778 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
12780         PR middle-end/36447
12781         * simplify-rtx.c (simplify_subreg): Add check for shift count
12782         greater than size.
12784 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
12786         * doc/md.texi: Synchronize with later constraints.md change.
12787         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
12788         with a C implementation.
12789         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
12790         MFLO handling.
12791         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
12792         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
12793         when moving to and from MD_REGNUM.
12794         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
12795         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
12796         Handle byte and halfword moves.
12797         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
12798         separately.
12799         * config/mips/constraints.md (h): Turn into NO_REGS.
12800         (l, x): Update documentation.
12801         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
12802         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
12803         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
12804         (HILO): New mode iterator.
12805         (MOVE128): Add TI.
12806         (any_div): New code iterator.
12807         (u): Extend code attribute to div and udiv.
12808         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
12809         d_operand in the splitters.  Remove redundant CONST_INT checks.
12810         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
12811         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
12812         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
12813         accordingly, using normal moves instead of unspecs to move LO into
12814         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
12815         (<u>mulsidi3): Handle expansion in C code.
12816         (<u>mulsidi3_32bit_internal): Rename to...
12817         (<u>mulsidi3_32bit): ...this.
12818         (<u>mulsidi3_32bit_r4000): Fix insn separator.
12819         (*<u>mulsidi3_64bit): Rename to...
12820         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
12821         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
12822         to set LO and HI to the multiplication result.  Use a normal move
12823         for MFLO and an unspec for MFHI.
12824         (*<u>mulsidi3_64bit_parts): Replace with...
12825         (<u>mulsidi3_64bit_hilo): ...this new instruction.
12826         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
12827         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
12828         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
12829         instead of HI.  Split the instruction into a separate multiplication
12830         and MFHI if !TARGET_FIX_R4000.
12831         (<su>muldi3_highpart): Likewise.
12832         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
12833         and the "=h" clobber.
12834         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
12835         (<u>mulditi3): New expander.
12836         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
12837         (madsi): Remove "=h" clobber.
12838         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
12839         Force the modulus result to be a GPR and split the instruction into
12840         a division followed by an MFHI after reload.
12841         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
12842         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
12843         the MIPS16 HIGH define_split.
12844         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
12845         of acc<->gpr moves to "multi".
12846         (*movdi_64bit): Replace the single "x" alternative with
12847         alternatives for moving into and out of "a".
12848         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
12849         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
12850         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
12851         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
12852         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
12853         (movti): New expander.
12854         (*movti, *movti_mips16): New insns.
12855         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
12856         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
12857         (mthi<GPR:mode>_<HILO:mode>): Likewise.
12858         * config/mips/predicates.md (fpr_operand): Delete.
12859         (d_operand): New predicate.
12861 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
12863         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
12864         failure on some Bourne shells.
12865         (x86_64-*-*): Ditto.
12867 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
12869         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
12871 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
12873         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
12874         (sparc-sun-solaris2*): Likewise.
12876 2008-06-09  Arnaud Charlet  <charlet@adacore.com
12878         * doc/install.texi: Update requirements to build the Ada compiler.
12880 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
12882         * df-scan.c (struct df_scan_problem_data): Remove the
12883         mw_link_pool alloc pool.
12884         (df_scan_free_internal): Don't free it.
12885         (df_scan_alloc): Don't allocate it.
12886         * df.h (struct df_link): Update comment.
12888 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
12890         * except.h: Correct checks for when SJLJ exceptions must be used.
12892 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12894         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
12895         default.
12897 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
12899         PR tree-optimization/36218
12900         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
12901         configure for the build system.
12902         (BUILD_LDFLAGS): Define.
12903         * configure: Regenerate.
12904         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
12906 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
12908         PR target/36424
12909         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
12910         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
12911         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
12913 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
12915         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
12917 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
12919         * config.gcc (Obsolete configurations): Remove list of
12920         configurations.
12921         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
12922         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
12923         targets matched by those patterns.
12924         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
12925         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
12926         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
12927         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
12928         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
12929         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
12930         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
12931         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
12932         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
12933         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
12934         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
12935         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
12936         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
12937         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
12938         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
12939         Make code for Solaris 7 and greater unconditional for Solaris.
12940         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
12941         Remove --with-* handling.
12942         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
12943         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
12944         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
12945         LINK_OS_WINDISS_SPEC): Remove.
12946         * config/rs6000/sysv4.opt (mwindiss): Remove.
12947         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
12948         * configure: Regenerate.
12949         * doc/cpp.texi: Don't mention BeOS.
12950         * doc/extend.texi (interrupt): Don't mention MS1.
12951         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
12952         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
12953         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
12954         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
12955         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
12956         Remove.
12957         * doc/invoke.texi (MT Options): Remove.
12958         (-mwindiss): Remove.
12959         (CRIS Options): Remove cris-axis-aout references.
12960         (HPPA Options): Don't mention hppa1.1-*-pro.
12961         * doc/md.texi: (MorphoTech family): Remove.
12962         * libgcc2.c: Don't handle UWIN.
12963         * config/alpha/t-unicosmk: Remove.
12964         * config/alpha/unicosmk.h: Remove.
12965         * config/arm/kaos-arm.h: Remove.
12966         * config/arm/kaos-strongarm.h: Remove.
12967         * config/arm/strongarm-coff.h: Remove.
12968         * config/arm/strongarm-elf.h: Remove.
12969         * config/arm/strongarm-pe.h: Remove.
12970         * config/arm/t-strongarm-pe: Remove.
12971         * config/arm/t-xscale-coff: Remove.
12972         * config/arm/t-xscale-elf: Remove.
12973         * config/arm/xscale-coff.h: Remove.
12974         * config/arm/xscale-elf.h: Remove.
12975         * config/chorus.h: Remove.
12976         * config/cris/aout.h: Remove.
12977         * config/cris/aout.opt: Remove.
12978         * config/cris/t-aout: Remove.
12979         * config/i386/beos-elf.h: Remove.
12980         * config/i386/kaos-i386.h: Remove.
12981         * config/i386/ptx4-i.h: Remove.
12982         * config/i386/sco5.h: Remove.
12983         * config/i386/sco5.opt: Remove.
12984         * config/i386/sysv4-cpp.h: Remove.
12985         * config/i386/sysv5.h: Remove.
12986         * config/i386/t-beos: Remove.
12987         * config/i386/t-sco5: Remove.
12988         * config/i386/t-uwin: Remove.
12989         * config/i386/uwin.asm: Remove.
12990         * config/i386/uwin.h: Remove.
12991         * config/kaos.h: Remove.
12992         * config/mips/windiss.h: Remove.
12993         * config/mt: Remove directory.
12994         * config/pa/pa-osf.h: Remove.
12995         * config/pa/pa-pro-end.h: Remove.
12996         * config/pa/t-pro: Remove.
12997         * config/ptx4.h: Remove.
12998         * config/rs6000/beos.h: Remove.
12999         * config/rs6000/kaos-ppc.h: Remove.
13000         * config/rs6000/t-beos: Remove.
13001         * config/rs6000/windiss.h: Remove.
13002         * config/sh/kaos-sh.h: Remove.
13003         * config/sol2-6.h: Remove.
13004         * config/sparc/sol26-sld.h: Remove.
13005         * config/sparc/sysv4-only.h: Remove.
13006         * config/vax/bsd.h: Remove.
13007         * config/vax/t-memfuncs: Remove.
13008         * config/vax/ultrix.h: Remove.
13009         * config/vax/vaxv.h: Remove.
13010         * config/windiss.h: Remove.
13012 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
13014         PR rtl-optimization/36438
13015         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
13016         for vector shifts with constant scalar shift operands.
13018 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
13020         * doc/invoke.texi: Document -march=xlr.
13021         * config/mips/xlr.md: New file.
13022         * config/mips/mips.md: Include it.
13023         (cpu): Add "xlr".
13024         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
13025         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
13026         (mips_rtx_cost_data): Likewise.
13028 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
13030         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
13031         PRE_INC and PRE_DEC cases.
13033 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
13035         PR rtl-optimization/36419
13036         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
13037         the emitting jump insn.
13039         PR target/36362
13040         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
13041         is not bool, boolify the whole *expr_p and convert to the desired type.
13043 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
13045         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
13046         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
13047         Add omp_private_outer_ref hook, add another argument to
13048         omp_clause_default_ctor hook.
13049         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
13050         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
13051         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
13052         hook_tree_tree_tree_tree_null.
13053         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
13054         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
13055         * hooks.c (hook_tree_tree_tree_tree_null): New function.
13056         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
13057         * tree.def (OMP_TASK): New tree code.
13058         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
13059         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
13060         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
13061         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
13062         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
13063         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
13064         OMP_CLAUSE_COLLAPSE_EXPR): Define.
13065         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
13066         (OMP_DIRECTIVE_P): Add OMP_TASK.
13067         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
13068         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
13069         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
13070         and OMP_CLAUSE_UNTIED entries.
13071         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
13072         num_ops to 2.
13073         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
13074         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
13075         * tree-pretty-print.c (dump_omp_clause): Handle
13076         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
13077         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
13078         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
13079         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
13080         warning about unsigned iterators.  Change decl/init/cond/incr
13081         arguments to TREE_VECs, check arguments for all collapsed loops.
13082         (c_finish_omp_taskwait): New function.
13083         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
13084         ws_clauses.
13085         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
13086         default_function_array_conversion on init.  Add par_clauses argument.
13087         If decl is present in parallel's lastprivate clause, change it to
13088         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
13089         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
13090         collapse count in clauses.
13091         (c_parser_omp_for, c_parser_omp_parallel): Adjust
13092         c_parser_omp_for_loop callers.
13093         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
13094         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
13095         (c_parser_omp_clause_name): Handle collapse and untied clauses.
13096         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
13097         functions.
13098         (c_parser_omp_clause_schedule): Handle schedule(auto).
13099         Include correct location in the error message.
13100         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
13101         and PRAGMA_OMP_CLAUSE_UNTIED.
13102         (OMP_TASK_CLAUSE_MASK): Define.
13103         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
13104         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
13105         * tree-nested.c (convert_nonlocal_omp_clauses,
13106         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
13107         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
13108         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
13109         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
13110         OMP_CLAUSE_DECL.
13111         (conver_nonlocal_reference, convert_local_reference,
13112         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
13113         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
13114         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
13115         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
13116         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
13117         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
13118         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
13119         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
13120         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
13121         OMP_CLAUSE_UNTIED.
13122         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
13123         * c-common.h (c_finish_omp_taskwait): New prototype.
13124         * gimple-low.c (lower_stmt): Handle OMP_TASK.
13125         * tree-parloops.c (create_parallel_loop): Create 1 entry
13126         vectors for OMP_FOR_{INIT,COND,INCR}.
13127         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
13128         (make_edges): Handle OMP_TASK.
13129         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
13130         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
13131         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
13132         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
13133         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
13134         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
13135         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
13136         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
13137         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
13138         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
13139         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
13140         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
13141         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
13142         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
13143         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
13144         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
13145         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
13146         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
13147         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
13148         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
13149         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
13150         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
13151         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
13152         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
13153         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
13154         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
13155         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
13156         original iterator is present in lastprivate clause or if
13157         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
13158         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
13159         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
13160         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
13161         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
13162         if it is set, lookup var in outer contexts too.  Handle
13163         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
13164         to be implicitly determined firstprivate for task regions.
13165         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
13166         if it is set, lookup var in outer contexts too.  Set
13167         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
13168         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
13169         OMP_CLAUSE_UNTIED.  Take region_type as last argument
13170         instead of in_parallel and in_combined_parallel.
13171         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
13172         Adjust callers.
13173         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
13174         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
13175         (new_omp_context): Set default_kind to
13176         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
13177         (omp_region_type): New enum.
13178         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
13179         fields, add region_type.
13180         (new_omp_context): Take region_type as argument instead of is_parallel
13181         and is_combined_parallel.
13182         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
13183         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
13184         ctx->is_combined_parallel checks.
13185         (gimplify_omp_task): New function.
13186         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
13187         OMP_CLAUSE_UNTIED.
13188         * omp-low.c (extract_omp_for_data): Use schedule(static)
13189         for schedule(auto).  Handle pointer and unsigned iterators.
13190         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
13191         Add loops argument.  Extract data for collapsed OMP_FOR loops.
13192         (expand_parallel_call): Assert sched_kind isn't auto,
13193         map runtime schedule to index 3.
13194         (struct omp_for_data_loop): New type.
13195         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
13196         Add loop, loops, collapse and iter_type fields.
13197         (workshare_safe_to_combine_p): Disallow combined for if
13198         iter_type is unsigned long long.  Don't combine collapse > 1 loops
13199         unless all bounds and steps are constant.  Adjust extract_omp_for_data
13200         caller.
13201         (expand_omp_for_generic): Handle pointer, unsigned and long long
13202         iterators.  Handle collapsed OMP_FOR loops.  Adjust
13203         for struct omp_for_data changes.  If libgomp function doesn't return
13204         boolean_type_node, add comparison of the return value with 0.
13205         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
13206         pointer, unsigned and long long iterators.  Adjust for struct
13207         omp_for_data changes.
13208         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
13209         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
13210         unsigned long long.  Allocate loops array, pass it to
13211         extract_omp_for_data.  For collapse > 1 loops use always
13212         expand_omp_for_generic.
13213         (omp_context): Add sfield_map and srecord_type fields.
13214         (is_task_ctx, lookup_sfield): New functions.
13215         (use_pointer_for_field): Use is_task_ctx helper.  Change first
13216         argument's type from const_tree to tree.  Clarify comment.
13217         In OMP_TASK disallow copy-in/out sharing.
13218         (build_sender_ref): Call lookup_sfield instead of lookup_field.
13219         (install_var_field): Add mask argument.  Populate both record_type
13220         and srecord_type if needed.
13221         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
13222         in srecord_type.
13223         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
13224         and DECL_FIELD_OFFSET.
13225         (scan_sharing_clauses): Adjust install_var_field callers.  For
13226         firstprivate clauses on explicit tasks allocate the var by value in
13227         record_type unconditionally, rather than by reference.
13228         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
13229         Use is_taskreg_ctx instead of is_parallel_ctx.
13230         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
13231         (create_omp_child_function_name): Add task_copy argument, use
13232         *_omp_cpyfn* names if it is true.
13233         (create_omp_child_function): Add task_copy argument, if true create
13234         *_omp_cpyfn* helper function.
13235         (scan_omp_parallel): Adjust create_omp_child_function callers.
13236         Rename parallel_nesting_level to taskreg_nesting_level.
13237         (scan_omp_task): New function.
13238         (lower_rec_input_clauses): Don't run constructors for firstprivate
13239         explicit task vars which are initialized by *_omp_cpyfn*.
13240         Pass outer var ref to omp_clause_default_ctor hook if
13241         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
13242         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
13243         OMP_CLAUSE_REDUCTION_INIT.
13244         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
13245         avoid duplicate setting of fields.  Handle
13246         OMP_CLAUSE_PRIVATE_OUTER_REF.
13247         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
13248         copy-out if TREE_READONLY, only copy-in.
13249         (expand_task_copyfn): New function.
13250         (expand_task_call): New function.
13251         (struct omp_taskcopy_context): New type.
13252         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
13253         New functions.
13254         (lower_omp_parallel): Rename to...
13255         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
13256         Call create_task_copyfn if srecord_type is needed.  Adjust
13257         sender_decl type.
13258         (task_shared_vars): New variable.
13259         (check_omp_nesting_restrictions): Warn if work-sharing,
13260         barrier, master or ordered region is closely nested inside OMP_TASK.
13261         Add warnings for barrier if closely nested inside of work-sharing,
13262         ordered, or master region.
13263         (scan_omp_1): Call check_omp_nesting_restrictions even for
13264         GOMP_barrier calls.  Rename parallel_nesting_level to
13265         taskreg_nesting_level.  Handle OMP_TASK.
13266         (lower_lastprivate_clauses): Even if some lastprivate is found on a
13267         work-sharing construct, continue looking for them on parent parallel
13268         construct.
13269         (lower_omp_for_lastprivate): Add lastprivate clauses
13270         to the beginning of dlist rather than end.  Adjust for struct
13271         omp_for_data changes.
13272         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
13273         not after it.  Handle collapsed OMP_FOR loops, adjust for
13274         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
13275         (get_ws_args_for): Adjust extract_omp_for_data caller.
13276         (scan_omp_for): Handle collapsed OMP_FOR
13277         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
13278         (lower_omp_single_simple): If libgomp function doesn't return
13279         boolean_type_node, add comparison of the return value with 0.
13280         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
13281         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
13282         (parallel_nesting_level): Rename to...
13283         (taskreg_nesting_level): ... this.
13284         (is_taskreg_ctx): New function.
13285         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
13286         of is_parallel_ctx.
13287         (execute_lower_omp): Rename parallel_nesting_level to
13288         taskreg_nesting_level.
13289         (expand_omp_parallel): Rename to...
13290         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
13291         Call omp_task_call for OMP_TASK regions.
13292         (expand_omp): Adjust caller, handle OMP_TASK.
13293         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
13295         * bitmap.c (bitmap_default_obstack_depth): New variable.
13296         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
13297         if argument is NULL and bitmap_default_obstack is already initialized.
13298         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
13299         at the end.
13300         * matrix-reorg.c (matrix_reorg): Likewise.
13302 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
13304         * config/i386/i386.md (*indirect_jump): Macroize using P
13305         mode iterator.  Remove !TARGET_64BIT from insn constraints.
13306         (*tablejump_1): Ditto.
13307         (*indirect_jump_rex64): Remove insn pattern.
13308         (*tablejump_1_rex64): Ditto.
13309         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
13310         and eh_return_si insn patterns.
13312 2008-06-06  Richard Guenther  <rguenther@suse.de>
13314         * tree-ssa-structalias.c (merge_smts_into): Remove.
13315         (find_what_p_points_to): Do not bother to compute the
13316         points-to set for pt_anything pointers.
13317         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
13318         for pt_anything pointers is ok.
13320 2008-06-06  Jan Hubicka  <jh@suse.cz>
13322         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
13324 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13326         * cgraph.c: Fix typos in comments.
13327         (cgraph_availability_names): Fix string typo.
13328         * fold-const.c: Fix typos in comments.
13329         (fold_binary): Fix typo in warning.
13330         * genautomata.c: Fix typos in comments.
13331         (check_presence_pattern_sets): Fix typo in local variable.
13332         (output_description): Fix typo in output.
13333         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
13334         * hwint.h: Likewise.
13335         * matrix-reorg.c (check_allocation_function): Likewise.
13336         * omega.c (smooth_weird_equations): Likewise.
13337         * auto-inc-dec.c: Fix typos in comments.
13338         * bb-reorder.c: Likewise.
13339         * builtins.c: Likewise.
13340         * c-common.c: Likewise.
13341         * c-cppbuiltin.c: Likewise.
13342         * c-parser.c: Likewise.
13343         * c-pretty-print.c: Likewise.
13344         * cfgcleanup.c: Likewise.
13345         * cfgexpand.c: Likewise.
13346         * cfghooks.c: Likewise.
13347         * cfglayout.c: Likewise.
13348         * cfgloopmanip.c: Likewise.
13349         * cgraphunit.c: Likewise.
13350         * coverage.c: Likewise.
13351         * dbxout.c: Likewise.
13352         * df-byte-scan.c: Likewise.
13353         * df-core.c: Likewise.
13354         * df-problems.c: Likewise.
13355         * df-scan.c: Likewise.
13356         * dfp.c: Likewise.
13357         * dominance.c: Likewise.
13358         * domwalk.c: Likewise.
13359         * dse.c: Likewise.
13360         * dwarf2out.c: Likewise.
13361         * emit-rtl.c: Likewise.
13362         * et-forest.c: Likewise.
13363         * function.c: Likewise.
13364         * function.h: Likewise.
13365         * gcc.c: Likewise.
13366         * gcov-io.c: Likewise.
13367         * gcov.c: Likewise.
13368         * gcse.c: Likewise.
13369         * genattrtab.c: Likewise.
13370         * ggc-page.c: Likewise.
13371         * gimplify.c: Likewise.
13372         * gthr-lynx.h: Likewise.
13373         * haifa-sched.c: Likewise.
13374         * ipa-cp.c: Likewise.
13375         * ipa-inline.c: Likewise.
13376         * ipa-prop.h: Likewise.
13377         * ipa-pure-const.c: Likewise.
13378         * ipa-struct-reorg.c: Likewise.
13379         * ipa-struct-reorg.h: Likewise.
13380         * ipa-type-escape.c: Likewise.
13381         * ipa.c: Likewise.
13382         * loop-doloop.c: Likewise.
13383         * mips-tfile.c: Likewise.
13384         * mkmap-flat.awk: Likewise.
13385         * mkmap-symver.awk: Likewise.
13386         * modulo-sched.c: Likewise.
13387         * omp-low.c: Likewise.
13388         * optabs.c: Likewise.
13389         * optabs.h: Likewise.
13390         * opts.c: Likewise.
13391         * passes.c: Likewise.
13392         * postreload-gcse.c: Likewise.
13393         * postreload.c: Likewise.
13394         * predict.c: Likewise.
13395         * pretty-print.h: Likewise.
13396         * profile.c: Likewise.
13397         * protoize.c: Likewise.
13398         * ra-conflict.c: Likewise.
13399         * real.c: Likewise.
13400         * recog.c: Likewise.
13401         * regclass.c: Likewise.
13402         * regs.h: Likewise.
13403         * reload.c: Likewise.
13404         * rtl-error.c: Likewise.
13405         * rtlanal.c: Likewise.
13406         * scan.h: Likewise.
13407         * sched-rgn.c: Likewise.
13408         * see.c: Likewise.
13409         * stmt.c: Likewise.
13410         * target.h: Likewise.
13411         * tree-dfa.c: Likewise.
13412         * tree-eh.c: Likewise.
13413         * tree-flow-inline.h: Likewise.
13414         * tree-inline.c: Likewise.
13415         * tree-into-ssa.c: Likewise.
13416         * tree-loop-distribution.c: Likewise.
13417         * tree-nested.c: Likewise.
13418         * tree-parloops.c: Likewise.
13419         * tree-pass.h: Likewise.
13420         * tree-pretty-print.c: Likewise.
13421         * tree-profile.c: Likewise.
13422         * tree-scalar-evolution.c: Likewise.
13423         * tree-sra.c: Likewise.
13424         * tree-ssa-alias-warnings.c: Likewise.
13425         * tree-ssa-ccp.c: Likewise.
13426         * tree-ssa-coalesce.c: Likewise.
13427         * tree-ssa-dom.c: Likewise.
13428         * tree-ssa-dse.c: Likewise.
13429         * tree-ssa-forwprop.c: Likewise.
13430         * tree-ssa-live.c: Likewise.
13431         * tree-ssa-live.h: Likewise.
13432         * tree-ssa-loop-im.c: Likewise.
13433         * tree-ssa-loop-ivopts.c: Likewise.
13434         * tree-ssa-loop-niter.c: Likewise.
13435         * tree-ssa-loop-prefetch.c: Likewise.
13436         * tree-ssa-phiopt.c: Likewise.
13437         * tree-ssa-phiprop.c: Likewise.
13438         * tree-ssa-sccvn.c: Likewise.
13439         * tree-ssa-ter.c: Likewise.
13440         * tree-ssa-threadupdate.c: Likewise.
13441         * tree-ssa.c: Likewise.
13442         * tree-vect-analyze.c: Likewise.
13443         * tree-vect-transform.c: Likewise.
13444         * tree-vectorizer.c: Likewise.
13445         * tree-vn.c: Likewise.
13446         * tree-vrp.c: Likewise.
13447         * tree.c: Likewise.
13448         * tree.def: Likewise.
13449         * tree.h: Likewise.
13450         * unwind-dw2-fde.c: Likewise.
13451         * unwind.inc: Likewise.
13452         * value-prof.c: Likewise.
13453         * vmsdbgout.c: Likewise.
13455 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
13457         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
13458         always place FP constants in the TOC for TARGET_POWERPC64.
13459         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
13461 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
13463         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
13464         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
13465         enable for TARGET_E500_DOUBLE.
13466         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
13467         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
13468         floating-point modes like integer modes for E500 double.
13469         (rs6000_legitimate_offset_address_p): Likewise.
13470         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
13471         addressing for DDmode for E500 double.
13472         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
13473         modes as using 64-bits of registers for E500 double.
13474         (spe_build_register_parallel): Do not handle DDmode or TDmode.
13475         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
13476         specially for E500 double.
13477         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
13478         TDmode for E500 double.
13479         (rs6000_gimplify_va_arg): Only handle SDmode in registers
13480         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
13481         (rs6000_split_multireg_move): Do not handle TDmode specially for
13482         E500 double.
13483         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
13484         using 64-bit registers for E500 double.
13485         (emit_frame_save): Do not handle DDmode specially for E500 double.
13486         (gen_frame_mem_offset): Likewise.
13487         (rs6000_function_value): Do not call spe_build_register_parallel
13488         for DDmode or TDmode.
13489         (rs6000_libcall_value): Likewise.
13490         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
13491         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
13492         for E500 double.
13494 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
13496         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
13497         in comments.
13499 2008-06-04  Junjie Gu <jgu@tensilica.com>
13501         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
13502         comparison for frame pointers.
13504 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
13506         PR target/27386
13507         * config/avr/avr.h (PUSH_ROUNDING): Remove.
13509 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
13511         PR target/30243
13512         * builtins.c (expand_builtin_signbit): Don't take lowpart when
13513         register is already smaller or equal to required mode.
13515 2008-06-04  Xinliang David Li  <davidxl@google.com>
13517         * tree-call-cdce.c: New file.
13518         (cond_dead_built_in_calls): New static variable.
13519         (input_domain): New struct.
13520         (check_pow): New function.
13521         (check_builtin_call): Ditto.
13522         (check_target_format): Ditto.
13523         (is_call_dce_candidate): Ditto.
13524         (gen_one_condition): Ditto.
13525         (gen_conditions_for_domain): Ditto.
13526         (get_domain): Ditto.
13527         (gen_conditions_for_pow_cst_base): Ditto.
13528         (gen_conditions_for_pow_int_base): Ditto.
13529         (gen_conditions_for_pow): Ditto.
13530         (get_no_error_domain): Ditto.
13531         (gen_shrink_wrap_conditions): Ditto.
13532         (shrink_wrap_one_built_in_call): Ditto.
13533         (shink_wrap_conditional_dead_built_in_calls): Ditto.
13534         (tree_call_cdce): Ditto.
13535         (gate_call_cdce): Ditto.
13536         (pass_call_cdce): New gimple pass.
13537         * passes.c: (init_optimization_passes): New pass.
13538         * tree-pass.h: New pass declaration.
13539         * opts.c (decode_options): New flag setting.
13540         * common.opt: Add -ftree-builtin-call-dce flag.
13541         * Makefile.in: Add new source file.
13542         * tempvar.def: New tv_id.
13543         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
13545 2008-06-04  Richard Guenther  <rguenther@suse.de>
13547         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
13548         (is_call_clobbered): Always check var_ann->call_clobbered.
13549         (mark_call_clobbered): Always set var_ann->call_clobbered.
13550         (clear_call_clobbered): Always clear var_ann->call_clobbered.
13551         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
13552         (reset_alias_info): Clear call clobbering info on MTAGs and
13553         globals as well.
13554         (set_pt_anything): Set pt_global_mem.
13555         (create_tag_raw): Adjust comment.
13556         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
13558 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
13559             Maxim Kuvyrkov  <maxim@codesourcery.com>
13561         * config/m68k/m68k.opt (mxgot): New option.
13562         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
13563         (m68k_output_addr_const_extra): New.
13564         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
13565         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
13566         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
13567         * doc/invoke.texi (M680x0 Options): Document -mxgot.
13569 2008-06-04  Richard Guenther  <rguenther@suse.de>
13571         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
13572         negative or non-representable offsets.
13574 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
13576         * config/i386/i386.c (ix86_gen_leave): New.
13577         (ix86_gen_pop1): Likewise.
13578         (ix86_gen_add3): Likewise.
13579         (ix86_gen_sub3): Likewise.
13580         (ix86_gen_sub3_carry): Likewise.
13581         (ix86_gen_one_cmpl2): Likewise.
13582         (ix86_gen_monitor): Likewise.
13583         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
13584         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
13585         ix86_gen_one_cmpl2 and ix86_gen_monitor.
13586         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
13587         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
13588         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
13589         (ix86_expand_epilogue): Updated.
13590         (print_operand): Handle integer register operand for 'z'.
13591         (ix86_expand_strlensi_unroll_1): Likewise.
13592         (ix86_expand_strlen): Likewise.
13593         (ix86_expand_builtin): Likewise.
13594         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
13595         mov{q}/mov{l} and add{q}/add{l}.
13597 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
13599         * config/i386/i386.md (P): New mode iterator.
13600         (SFmode push_operand splitter): Macroize DImode and SImode pushes
13601         using P mode iterator.
13602         (DFmode push_operand splitter): Ditto.
13603         (XFmode push_operand splitter): Ditto.
13604         (DFmode float_extend SFmode push_operand splitter): Ditto.
13605         (XFmode float_extend SFmode push_operand splitter): Do not generate
13606         SImode pushes for 64bit target.  Macroize Dimode and SImode
13607         pushes using P mode iterator.
13608         (XFmode float_extend DFmode push_operand splitter): Ditto.
13610 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
13612         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
13613         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
13614         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
13615         return type to int.
13616         (ix86_call_abi_override): Remove check for call_used_regs.
13618 2008-06-03  Richard Guenther  <rguenther@suse.de>
13620         * tree-ssa-structalias.c (find_func_aliases): Add constraints
13621         for the lhs of calls if the return type contains pointers.
13623 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
13625         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
13626         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
13627         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
13628         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
13629         of cfun and DEFAULT_ABI to deceide abi mode.
13630         (DEFAULT_ABI): New.
13631         (REG_PARM_STACK_SPACE): Removed.
13632         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
13633         (STACK_BOUNDARY): Use default target to deceide stack boundary.
13634         * config/i386/i386-protos.h (ix86_cfun_abi): New.
13635         (ix86_function_abi): Likewise.
13636         (ix86_function_type_abi): Likewise.
13637         (ix86_call_abi_override): Likewise.
13638         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
13639         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
13640         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
13641         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
13642         specific defines.
13643         (X86_64_REGPARM_MAX): New.
13644         (X86_64_SSE_REGPARM_MAX): New.
13645         (X64_REGPARM_MAX): New.
13646         (X64_SSE_REGPARM_MAX): New.
13647         (X86_32_REGPARM_MAX): New.
13648         (X86_32_SSE_REGPARM_MAX): New.
13649         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
13650         (ix86_function_regparm): Handle user calling abi.
13651         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
13652         by DEFAULT_ABI versus SYSV_ABI check.
13653         (ix86_reg_parm_stack_space): New.
13654         (ix86_function_type_abi): New.
13655         (ix86_call_abi_override): New.
13656         (ix86_function_abi): New.
13657         (ix86_cfun_abi): New.
13658         (init_cumulative_args): Call abi specific initialization.
13659         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
13660         (function_arg_64): Extend SSE_REGPARM_MAX check.
13661         (function_arg (): Remove TARGET_64BIT_MS_ABI.
13662         (ix86_pass_by_reference): Likewise.
13663         (ix86_function_value_regno_p): Likewise.
13664         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
13665         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
13666         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
13667         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
13668         (setup_incoming_varargs_64): Adjust regparm for call abi.
13669         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
13670         (ix86_va_start): Likewise.
13671         (ix86_gimplify_va_arg): Likewise.
13672         (ix86_expand_prologue): Likewise.
13673         (output_pic_addr_const): Likewise.
13674         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
13675         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
13676         (x86_output_mi_thunk): Likewise.
13677         (x86_function_profiler): Likewise.
13678         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
13679         (SYSV_ABI, MS_ABI): New constants.
13680         (DEFAULT_ABI): New.
13681         (init_regs): Add prototype of function in regclass.c file.
13682         (OVERRIDE_ABI_FORMAT): New.
13683         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
13684         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
13685         (OUTGOING_REG_PARM_STACK_SPACE): New.
13686         (ix86_reg_parm_stack_space): New prototype.
13687         (CUMULATIVE_ARGS): Add call_abi member.
13688         (machine_function): Add call_abi member.
13689         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
13690         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
13692 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
13694         PR target/34879
13695         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
13696         (avr_builtin_setjmp_frame_value): New function.
13697         * config/avr/avr.md (nonlocal_goto_receiver): Define.
13698         (nonlocal_goto): Define.
13700 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
13702         * config/mips/mips.c (mips_emit_loadgp): Return early if
13703         there is nothing do to, otherwise emit a blockage if
13704         !TARGET_EXPLICIT_RELOCS || crtl->profile.
13705         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
13707 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13709         * configure.ac: Drop unneeded backslash ending up in config.in.
13710         * acinclude.m4: Likewise.
13711         * config.in: Regenerate.
13713 2008-05-26  Jan Hubicka  <jh@suse.cz>
13715         * predict.c (maybe_hot_frequency_p): Break out of...
13716         (maybe_hot_bb_p): ... here.
13717         (maybe_hot_edge_p): New.
13718         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
13719         * basic-block.h (maybe_hot_edge_p): Declare.
13721 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
13723         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
13724         (*cmpfp_<mode>_cc): Ditto.
13725         (*fp_jcc_8<mode>_387): Ditto.
13726         (*fop_<MODEF:mode>_2_i387): Ditto.
13727         (*fop_<MODEF:mode>_3_i387): Ditto.
13728         (*fop_xf_2_i387): Ditto.
13729         (*fop_xf_3_i387): Ditto.
13731 2008-06-02  Tomas Bily  <tbily@suse.cz>
13733         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
13735 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
13737         * config/mips/mips.c (mips_valid_offset_p): New function.
13738         (mips_valid_lo_sum_p): Likewise.
13739         (mips_classify_address): Use them.
13740         (mips_force_address): New function.
13741         (mips_legitimize_address): Use it.
13742         * config/mips/mips.md (MOVE128): New mode iterator.
13743         (movtf): Require TARGET_64BIT.  Remove empty strings.
13744         (*movtf_internal): Rename to...
13745         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
13746         of "R" and use {,fp}{load,store} attributes instead of "multi".
13747         Use a separate define_split.
13748         (*movtf_mips16): New pattern.
13750 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
13752         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
13753         * config/mips/mips.c (mips_expand_before_return): New function.
13754         (mips_expand_epilogue): Call it.
13755         * config/mips/mips.md (return): Turn into a define_expand.
13756         (*return): New insn.
13758 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
13760         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
13761         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
13762         functions.  Do not emit uses and clobbers of CONCATs; individually
13763         use and clobber their operands.
13764         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
13765         gen_clobber, emit_use and gen_use.
13766         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
13767         (expand_builtin_return): Likewise.
13768         * cfgbuild.c (count_basic_blocks): Likewise.
13769         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
13770         * explow.c (emit_stack_restore): Likewise.
13771         * expmed.c (extract_bit_field_1): Likewise.
13772         * expr.c (convert_move, emit_move_complex_parts): Likewise.
13773         (emit_move_multi_word, store_constructor): Likewise.
13774         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
13775         (thread_prologue_and_epilogue_insns): Likewise.
13776         * lower-subreg.c (resolve_simple_move): Likewise.
13777         * optabs.c (widen_operand, expand_binop): Likewise.
13778         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
13779         * reload.c (find_reloads): Likewise.
13780         * reload1.c (eliminate_regs_in_insn): Likewise.
13781         * stmt.c (expand_nl_goto_receiver): Likewise.
13782         * config/alpha/alpha.md (builtin_longjmp): Likewise.
13783         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
13784         * config/arm/arm.c (arm_load_pic_register): Likewise.
13785         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
13786         * config/arm/arm.md (untyped_return): Likewise.
13787         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
13788         * config/avr/avr.c (expand_prologue): Likewise.
13789         * config/bfin/bfin.c (do_unlink): Likewise.
13790         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
13791         * config/cris/cris.c (cris_expand_prologue): Likewise.
13792         * config/darwin.c (machopic_indirect_data_reference): Likewise.
13793         (machopic_legitimize_pic_address): Likewise.
13794         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
13795         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
13796         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
13797         (ix86_expand_convert_uns_didf_sse): Likewise.
13798         (ix86_expand_vector_init_general): Likewise.
13799         * config/ia64/ia64.md (eh_epilogue): Likewise.
13800         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
13801         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
13802         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
13803         (config/iq2000/iq2000.c): Likewise.
13804         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
13805         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
13806         (builtin_longjmp): Likewise.
13807         * config/mn10300/mn10300.md (call, call_value): Likewise.
13808         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
13809         * config/pdp11/pdp11.md (abshi2): Likewise.
13810         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
13811         * config/s390/s390.c (s390_emit_prologue): Likewise.
13812         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
13813         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
13814         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
13815         * config/sh/sh.c (prepare_move_operands): Likewise.
13816         (output_stack_adjust, sh_expand_epilogue): Likewise.
13817         (sh_set_return_address, sh_expand_t_scc): Likewise.
13818         * config/sparc/sparc.c (load_pic_register): Likewise.
13819         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
13820         * config/spu/spu.c (spu_expand_epilogue): Likewise.
13821         * config/v850/v850.c (expand_epilogue): Likewise.
13823 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
13825         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
13826         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
13827         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
13828         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
13829         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
13830         stack pointer register.
13831         (output_movhi): Remove code for interrupt specific writing to the
13832         stack pointer register.
13834 2008-05-31  Richard Guenther  <rguenther@suse.de>
13836         PR tree-optimization/34244
13837         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
13838         (tree_expr_nonzero_warnv_p): Likewise.
13839         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
13840         ssa_name_nonnegative_p.
13841         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
13842         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
13843         not tree_expr_nonzero_warnv_p.
13845         PR tree-optimization/36262
13846         Revert
13847         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
13849         PR tree-optimization/34244
13850         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
13851         (record_numbers_of_iterations): New function.
13852         (execute_vrp): Cache the numbers of iterations of loops.
13853         * tree-scalar-evolution.c (scev_reset_except_niters):
13854         New function.
13855         (scev_reset): Use scev_reset_except_niters.
13856         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
13858 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
13860         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
13861         __WORKAROUND_RETS when appropriate.
13863 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
13865         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
13866         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
13867         mode iterator.
13868         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
13869         *fop_df_comm_sse insn patterns using MODEF mode iterator.
13870         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
13871         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
13872         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
13873         *fop_df_1_mixed insn patterns using MODEF mode iterator.
13874         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
13875         *fop_df_1_sse insn patterns using MODEF mode iterator.
13876         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
13877         *fop_df_1_i387 insn patterns using MODEF mode iterator.
13878         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
13879         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
13880         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
13881         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
13882         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
13883         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
13884         (*fop_xf_4_i387): Use <MODE> for mode attribute.
13885         (*fop_xf_5_i387): Ditto.
13886         (*fop_xf_6_i387): Ditto.
13888 2008-05-30  Richard Guenther  <rguenther@suse.de>
13890         * builtins.c (build_string_literal): Avoid generating
13891         a non-gimple_val result.
13893 2008-05-30  DJ Delorie  <dj@redhat.com>
13895         * exec-tool.in: Use an environment variable (private) instead of a
13896         file (shared) as a semaphore, so as to not break parallel builds.
13898 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
13900         * optabs.c (maybe_encapsulate_block): Remove.
13901         (emit_libcall_block): Adjust accordingly.
13902         * optabs.h (maybe_encapsulate_block): Remove prototype.
13904         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
13905         Don't use maybe_encapsulate_block.
13907 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
13909         * config/rs6000/rs6000.c (rs6000_legitimize_address,
13910         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
13911         rtx is a SYMBOL_REF before calling get_pool_constant.
13913 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
13915         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
13917 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
13919         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
13920         rather than OS names to choose INO_T_EQ definition.
13921         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
13922         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
13924 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
13926         PR target/36348
13927         * config/darwin-f.c: New.
13928         * config/t-darwin: Added rule to build darwin-f.o.
13929         * config.gcc: Defined new variable, fortran_target_objs.
13930         (*-*-darwin*): Set fortran_target_objs.
13931         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
13932         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
13933         * configure: Regenerated.
13935 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
13937         PR target/35771
13938         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
13939         canonical type if needed.
13941 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
13943         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
13945 2008-05-29  Richard Guenther  <rguenther@suse.de>
13947         PR tree-optimization/36343
13948         PR tree-optimization/36346
13949         PR tree-optimization/36347
13950         * tree-flow.h (clobber_what_p_points_to): Declare.
13951         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
13952         pointed-to variable is dereferenced is irrelevant to whether
13953         the pointer can access the pointed-to variable.
13954         (clobber_what_p_points_to): New function.
13955         * tree-ssa-alias.c (set_initial_properties): Use it.
13956         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
13957         call clobber check for NMTs.
13959 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
13961         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
13962         for printing gcov_type.
13964 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
13966         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
13967         and the eh region information.
13968         * value-prof.c (gimple_move_stmt_histograms): New function.
13969         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
13971 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
13973         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
13975 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
13977         * value-prof.c (tree_ic_transform): Print counts.
13978         * tree-profile.c (tree_gen_ic_func_profiler):
13979         Clear __gcov_indreict_call_callee variable to avoid misattribution
13980         of the profile.
13982 2008-05-28  Rafael Espindola  <espindola@google.com>
13984         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
13985         invalid sharing.
13987 2008-05-28  Richard Guenther  <rguenther@suse.de>
13989         PR tree-optimization/36339
13990         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
13991         and clobbering code out of the loop.
13993 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
13995         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
13996         letters defined.
13998         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
13999         s390_contiguous_bitmask_p, s390_symref_operand_p,
14000         s390_check_symref_alignment, s390_reload_larl_operand,
14001         s390_reload_symref_address): New functions.
14002         (s390_branch_condition_mnemonic): Support compare and branch
14003         instructions.
14004         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
14005         and 'W' constraints.
14006         (s390_secondary_reload): Add secondary reloads for unaligned
14007         symbol refs or symbol refs to floating point or QI/TI mode
14008         integer values.
14009         (legitimate_address_p): Accept symbol references as addresses.
14010         (s390_expand_insv): Use rotate and insert selected bits
14011         instruction for insv when building for z10.
14012         (print_operand_address): Handle symbol ref addresses.
14013         (print_operand): Output modifier 'c' added for signed byte values.
14014         (s390_encode_section_info): Mark symbol refs with
14015         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
14017         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
14018         (length attribute): RRF, RRR have 4 byte length.
14019         (FPALL, INTALL): New mode iterators added.
14020         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
14021         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
14022         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
14023         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
14024         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
14025         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
14026         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
14027         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
14028         instructions.
14029         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
14030         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
14031         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
14032         reload<INTALL:mode><P:mode>_toreg_z10,
14033         reload<FPALL:mode><P:mode>_tomem_z10,
14034         reload<FPALL:mode><P:mode>_toreg_z10,
14035         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
14036         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
14037         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
14038         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
14039         definition.
14040         (movmem, clrmem, cmpmem): New splitters added.
14042         * config/s390/predicates.md (larl_operand): Use
14043         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
14044         SYMBOL_REF_ALIGN1_P.
14045         (s390_signed_integer_comparison,
14046         s390_unsigned_integer_comparison): New predicates.
14048         * config/s390/s390-protos.h (s390_check_symref_alignment,
14049         s390_contiguous_bitmask_p, s390_reload_larl_operand,
14050         s390_reload_symref_address,
14051         s390_compare_and_branch_condition_mask): Prototypes added.
14053         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
14054         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
14055         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
14057 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
14059         * config/s390/s390.c (z10_cost): New cost function for z10.
14060         (s390_handle_arch_option, override_options): Support -march=z10 switch.
14061         (s390_issue_rate): Adjust issue rate for z10.
14062         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
14063         (processor_flags): Add PF_Z10.
14064         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
14065         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
14066         * gcc/config.gcc: Add z10.
14068 2008-05-28  Richard Guenther  <rguenther@suse.de>
14070         PR tree-optimization/36291
14071         * tree-flow. h (struct gimple_df): Remove var_anns member.
14072         * tree-flow-inline.h (gimple_var_anns): Remove.
14073         (var_ann): Simplify.
14074         * tree-dfa.c (create_var_ann): Simplify.
14075         (remove_referenced_var): Clear alias info from var_anns of globals.
14076         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
14077         (delete_tree_ssa): Clear alias info from var_anns of globals.
14078         Do not free var_anns.
14079         (var_ann_eq): Remove.
14080         (var_ann_hash): Likewise.
14082 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
14084         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
14085         and loongson2f entries.
14086         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
14087         * config/mips/mips.h (processor_type): Add Loongson-2E
14088         and Loongson-2F entries.
14089         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
14090         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
14091         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
14092         * doc/invoke.texi (MIPS Options): Document loongson2e
14093         and loongson2f processor names.
14095 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
14097         PR target/35767
14098         PR target/35771
14099         * config/i386/i386.c (ix86_function_arg_boundary): Use
14100         alignment of canonical type.
14101         (ix86_expand_vector_move): Check unaligned memory access for
14102         all SSE modes.
14104 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
14106         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
14107         Moved to the front of file.
14109 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
14110             H.J. Lu  <hongjiu.lu@intel.com>
14112         * dwarf2out.c (current_fde): New.
14113         (add_cfi): Use it.
14114         (lookup_cfa:): Likewise.
14115         (dwarf2out_end_epilogue): Likewise.
14116         (dwarf2out_note_section_used): Likewise.
14118 2008-05-27  Michael Matz  <matz@suse.de>
14120         PR c++/27975
14121         * c.opt (Wenum-compare): New warning option.
14122         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
14124 2008-05-27  Michael Matz  <matz@suse.de>
14126         PR middle-end/36326
14127         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
14128         non-BLKmode types.
14129         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
14130         into memory as tail calls.
14132 2008-05-27  Richard Guenther  <rguenther@suse.de>
14134         PR tree-optimization/36339
14135         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
14136         pointers cause all addressable variables to be call clobbered.
14138 2008-05-27  Richard Guenther  <rguenther@suse.de>
14140         PR tree-optimization/36245
14141         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
14143 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
14145         * config/s390/s390.md: Replace all occurences of the 'm'
14146         constraint with 'RT'.
14148 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
14150         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
14151         definitions added.
14152         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
14153         "*movdi_64".
14154         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
14155         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
14156         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
14158 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
14160         * reload.c: (find_reloads): Skip alternatives according to the
14161         "enabled" attribute. Constify the constraint variable.
14162         * recog.c (get_attr_enabled): Add default implementation.
14163         (extract_insn): Set the alternative_enabled_p array
14164         in the recog_data struct.
14165         (preprocess_constraints, constrain_operands): Skip
14166         alternatives according to the "enabled" attribute
14167         * recog.h (struct recog_data): New field alternative_enabled_p.
14168         (skip_alternative): New inline function.
14169         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
14170         (record_reg_classes): Skip alternative according to the
14171         "enabled" attribute.
14173         * doc/md.texi: Add documention for the "enabled" attribute.
14175 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
14177         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
14178         * postreload.c (reload_cse_simplify_operands): Replace 'm'
14179         constraint with TARGET_MEM_CONSTRAINT.
14180         * recog.c (asm_operand_ok, preprocess_constraints,
14181         constrain_operands): Likewise.
14182         * regclass.c (record_reg_classes): Likewise.
14183         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
14184         * reload1.c (maybe_fix_stack_asms): Likewise.
14185         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
14186         * recog.h: Adjust comment.
14187         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
14188         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
14189         * doc/md.texi: Add a note to description of 'm' constraint.
14190         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
14192 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
14194         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
14195         that the bitfield is of integral type before testing its precision.
14197 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
14198             Sa Liu  <saliu@de.ibm.com>
14200         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
14201         __modti3, __udivti3, __umodti3 and __udivmodti4.
14202         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
14203         that implement TImode mul and div functions.
14204         * config/spu/multi3.c: New. Implement __multi3.
14205         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
14206         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
14207         functions on SPU.
14209 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
14211         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
14212         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
14213         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
14214         tls_sysv_suffix): New mode and mode attribute iterators.
14215         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
14216         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
14217         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
14218         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
14219         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
14220         iterators.
14222 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
14224         PR tree-optimization/36329
14225         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
14226         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
14227         * cgraphbuild.c (initialize_inline_failed): Use the latter
14228         macro in lieu of the former.
14229         * ipa-inline.c (cgraph_mark_inline): Likewise.
14230         (cgraph_decide_inlining_of_small_function): Likewise.
14231         (cgraph_decide_inlining): Likewise.
14232         (cgraph_decide_inlining_incrementally): Likewise.
14234 2008-05-26  Tristan Gingold  <gingold@adacore.com>
14235             Anatoly Sokolov  <aesok@post.ru>
14237         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
14238         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
14239         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
14240         optimization for 'avr6' architecture.
14242 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
14244         PR target/34932
14245         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
14247 2008-05-26  Richard Guenther  <rguenther@suse.de>
14249         * tree-ssa-sccvn.c (expr_has_constants): Declare.
14250         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
14252 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
14254         PR middle-end/36253
14255         * caller-save.c (insert_restore): Verify alignment of spill space.
14256         (insert_save): Likewise.
14257         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
14258         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
14259         (STACK_SLOT_ALIGNMENT): Likewise.
14260         * function.c (LOCAL_ALIGNMENT): Removed.
14261         (get_stack_local_alignment): New.
14262         (assign_stack_local): Use it.  Set alignment on stack slot.
14263         (assign_stack_temp_for_type): Use get_stack_local_alignment.
14264         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
14265         (STACK_SLOT_ALIGNMENT): New.
14266         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
14267         stack slot in XFmode.
14269         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
14271 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
14273         PR/36321
14274         * config/i386/i386.md (allocate_stack_worker_64): Make sure
14275         argument operand in rax isn't removed.
14277 2008-05-26  Richard Guenther  <rguenther@suse.de>
14279         PR middle-end/36300
14280         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
14281         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
14283 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
14285         PR bootstrap/36331
14286         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
14288 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
14290         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
14291         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
14293 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
14295         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
14296         build a trampoline if we don't want one.
14297         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
14298         return zero for nested functions if we don't want a trampoline.
14300 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
14302         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
14304 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
14306         PR fortran/18428
14307         * c.opt: Removed undocumented option '-lang-fortran'.
14308         * c-common.h: Removed global variable 'lang_fortran'.
14309         * c-opts.c (c_common_handle_option): Removed code to handle
14310         option '-lang-fortran'. Updated includes.
14311         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
14312         definition of '__GFORTRAN__'.
14313         (define__GNUC__): Reimplemented to use BASEVER and
14314         cpp_define_formatted.
14315         (builtin_define_with_value_n): Removed.
14316         * c-incpath.h: Renamed to ...
14317         * incpath.h: ... this.
14318         * c-incpath.c: Renamed to ...
14319         * incpath.c: ... this. Updated includes.
14320         * fix-header.c: Updated includes.
14321         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
14322         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
14323         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
14325 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
14327         * tree.h: Update the table of flags used on tree nodes.
14328         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
14329         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
14330         (FORCED_LABEL): Add access check.
14331         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
14332         (ASM_INPUT_P): Likewise.
14333         (ASM_VOLATILE_P): Likewise.
14334         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
14335         (OMP_SECTION_LAST): Access private_flag directly.
14336         (OMP_RETURN_NOWAIT): Likewise.
14337         (OMP_PARALLEL_COMBINED): Likewise.
14338         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
14339         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
14340         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
14341         deprecated_flag directly.
14343 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
14345         * final.c (frame_pointer_needed): Removed.
14346         * flags.h (frame_pointer_needed): Likewise.
14348         * function.h (rtl_data): Add frame_pointer_needed.
14349         (frame_pointer_needed): New.
14351 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
14353         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
14355 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
14357         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
14358         SRC is a REG.
14360 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
14362         * c-common.c (strip_array_types): Move function to..
14363         * tree.c: ..here.
14364         (get_inner_array_type): Delete.
14365         * c-common.h (strip_array_types): Move declaration to..
14366         * tree.h: ..here.
14367         (get_inner_array_type): Delete.
14368         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
14369         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
14370         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
14371         * config/pa/pa.c (emit_move_sequence): Likewise.
14373 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
14375         * config/i386/i386.md (*sse_prologue_save_insn): Set length
14376         attribute to 34.
14378 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
14380         * function.c: Include target hook for nonlocal_goto frame value.
14382 2008-05-24  Richard Guenther  <rguenther@suse.de>
14384         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
14385         variable can be only accessed through a pointer or a union.
14387 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14389         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
14390         * doc/extend.texi: Likewise.
14392 2008-05-23  DJ Delorie  <dj@redhat.com>
14394         * config/m32c/jump.md (untyped_call): Add.
14396         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
14397         for A24 to PSImode.
14398         (m32c_address_cost): Detail costs for indirect offsets.
14400 2008-05-23  Rafael Espindola  <espindola@google.com>
14402         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
14403         if a node is a SUBREG.
14404         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
14405         is a SUBREG.
14407 2008-05-23  Paul Brook  <paul@codesourcery.com>
14408             Carlos O'Donell  <carlos@codesourcery.com>
14410         * doc/extend.texi: Clarify use of __attribute__((naked)).
14411         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
14412         * target.h (gcc_target): Add allocate_stack_slots_for_args.
14413         * function.c (use_register_for_decl): Use
14414         targetm.calls.allocate_stack_slots_for_args.
14415         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
14416         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
14417         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
14419 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
14421         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
14423 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
14425         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
14426         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
14427         is only rounded once.
14429 2008-05-23  Richard Guenther  <rguenther@suse.de>
14431         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
14433 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
14434             Jakub Jelinek  <jakub@redhat.com>
14436         PR target/36079
14437         * configure.ac: Handle --enable-cld.
14438         * configure: Regenerated.
14439         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
14440         * config/i386/i386.h (struct machine_function): Add needs_cld field.
14441         (ix86_current_function_needs_cld): New define.
14442         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
14443         (cld): New isns pattern.
14444         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
14445         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
14446         * config/i386/i386.opt (mcld): New option.
14447         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
14448         TARGET_CLD and ix86_current_function_needs_cld.
14449         (override_options): Use -mcld by default for 32-bit code if
14450         USE_IX86_CLD.
14452         * doc/install.texi (Options specification): Document --enable-cld.
14453         * doc/invoke.texi (Machine Dependent Options)
14454         [i386 and x86-64 Options]: Add -mcld option.
14455         (Intel 386 and AMD x86-64 Options): Document -mcld option.
14457 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
14458         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
14459         (return_in_memory_64): Likewise.
14460         (return_in_memory_ms_64): Likewise.
14462 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14464         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
14465         * builtins.c (fold_builtin_fpclassify): New.
14466         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
14467         * builtins.def (BUILT_IN_FPCLASSIFY): New.
14468         * c-common.c (handle_type_generic_attribute): Adjust to accept
14469         fixed arguments before an elipsis.
14470         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
14471         * doc/extend.texi: Document __builtin_fpclassify.
14473 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
14475         * omp-low.c (gate_expand_omp_ssa): Remove.
14476         (pass_expand_omp_ssa): Remove.
14477         (gate_expand_omp): Do not check for flag_openmp_ssa.
14478         * common.opt (-fopenmp-ssa): Remove.
14479         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
14481 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
14483         * config/sh/sh.opt (mfixed-range): New option.
14484         * config/sh/sh-protos.h (sh_fix_range): Declare.
14485         * config/sh/sh.c (sh_fix_range): New function.
14486         * config/sh/sh.h (sh_fixed_range_str): Declare.
14487         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
14488         is not empty.
14489         * doc/invoke.texi (SH Options): Document -mfixed-range.
14491 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
14493         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
14494         it before the redeclaration.
14496 2008-05-22  Anatoly Sokolov <aesok@post.ru>
14498         * config/avr/avr.c (get_sequence_length): Add new function.
14499         (expand_prologue, expand_epilogue): Remove duplicate code.
14501 2008-05-22  Rafael Espindola  <espindola@google.com>
14503         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
14504         sharing.
14506 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14508         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
14509         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
14511         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
14512         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
14513         (vect_update_misalignment_for_peel): Likewise.
14514         (vector_alignment_reachable_p): Likewise.
14515         * tree-vect-transform.c (vectorizable_load): Likewise.
14516         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
14517         (get_vectype_for_scalar_type): Pass mode of scalar_type
14518         to UNITS_PER_SIMD_WORD.
14520         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
14521         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
14522         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
14523         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
14524         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
14526 2008-05-22  Ira Rosen  <irar@il.ibm.com>
14528         PR tree-optimization/36293
14529         * tree-vect-transform.c (vect_transform_strided_load): Don't check
14530         if the first load must be skipped because of a gap.
14532 2008-05-22  Richard Guenther  <rguenther@suse.de>
14534         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
14535         more cases of offset disambiguation that is possible if
14536         strict-aliasing rules apply.
14537         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
14538         for basic offset and type-based disambiguation.
14540 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14542         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
14543         ix86_expand_vector_set on V16QImode for SSE4.1.
14545 2008-05-21  Tom Tromey  <tromey@redhat.com>
14547         * c.opt (Wimport): Mark as undocumented.
14548         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
14549         -Wno-import.
14550         (Warning Options): Likewise.
14551         * doc/cppopts.texi: Don't mention -Wimport.
14553 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
14555         PR tree-optimization/36287
14556         PR tree-optimization/36286
14557         * lambda-code.c (build_access_matrix): Do not use the loop->num
14558         for computing the number of induction variables: use the loop depth
14559         instead.
14561 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
14563         PR/36280
14564         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
14565         option -f(no-)leading-underscore.
14567 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14569         * config/i386/i386.c (ix86_expand_vector_init_general): Use
14570         GET_MODE_NUNITS (mode).
14572 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
14574         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
14575         (-mmulhw): Add 464 to description.
14576         (-mdlmzb): Likewise.
14577         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
14578         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
14579         464fp entries.
14580         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
14581         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
14582         * config/rs6000/rs6000.md: Update comments for 464.
14584 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
14586         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
14588 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14590         * config/i386/sse.md (vec_extractv4sf): Removed.
14591         (vec_extractv2df): Likewise.
14592         (vec_extractv2di): Likewise.
14593         (vec_extractv4si): Likewise.
14594         (vec_extractv8hi): Likewise.
14595         (vec_extractv16qi): Likewise.
14596         (vec_extract<mode>): New.
14598 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14600         * config/i386/sse.md (vec_setv4sf): Removed.
14601         (vec_setv2df): Likewise.
14602         (vec_setv2di): Likewise.
14603         (vec_setv4si): Likewise.
14604         (vec_setv8hi): Likewise.
14605         (vec_setv16qi): Likewise.
14606         (vec_set<mode>): New.
14608 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14610         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
14611         goto for vec_concat and vec_interleave.
14613 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14615         * config/i386/sse.md (vec_initv4sf): Removed.
14616         (vec_initv2df): Likewise.
14617         (vec_initv2di): Likewise.
14618         (vec_initv4si): Likewise.
14619         (vec_initv8hi): Likewise.
14620         (vec_initv16qi): Likewise.
14621         (vec_init<mode>): New.
14623 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
14625         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
14627 2008-05-21  Tom Tromey  <tromey@redhat.com>
14629         * ggc-zone.c (lookup_page_table_if_allocated): New function.
14630         (zone_find_object_offset): Likewise.
14631         (gt_ggc_m_S): Likewise.
14632         (highest_bit): Likewise.
14633         * ggc-page.c (gt_ggc_m_S): New function.
14634         * stringpool.c (string_stack): Remove.
14635         (init_stringpool): Update.
14636         (ggc_alloc_string): Use ggc_alloc.
14637         (maybe_delete_ident): New function.
14638         (ggc_purge_stringpool): Likewise.
14639         (gt_ggc_m_S): Remove.
14640         * ggc-common.c (ggc_protect_identifiers): New global.
14641         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
14642         ggc_protect_identifiers.
14643         * ggc.h (ggc_protect_identifiers): Declare.
14644         (gt_ggc_m_S): Update.
14645         (ggc_purge_stringpool): Declare.
14646         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
14647         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
14648         special case.
14649         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
14651 2008-05-21  David S. Miller  <davem@davemloft.net>
14653         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
14654         tmake_file.
14656 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
14658         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
14659         once finished.
14661 2008-05-20  David Daney  <ddaney@avtrex.com>
14663         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
14664         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
14665         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
14666         UNSPEC_UPDATE_GOT_VERSION): Renumber.
14667         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
14668         (atomic_hiqi_op): New define_code_iterator.
14669         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
14670         mips_expand_compare_and_swap_12.
14671         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
14672         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
14673         (sync_<optab><mode>, sync_old_<optab><mode>,
14674         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
14675         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
14676         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
14677         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
14678         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
14679         (test_and_set_12): New insn.
14680         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
14681         sync_new_<optab><mode>, sync_old_nand<mode>,
14682         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
14683         clobber to operand 0 for SI and DI mode insns.
14684         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
14685         mips_gen_fn_4): New typedefs.
14686         (mips_gen_fn_ptrs): Define new union type.
14687         (mips_expand_compare_and_swap_12): Remove declaration.
14688         (mips_expand_atomic_qihi): Declare function.
14689         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
14690         (mips_expand_atomic_qihi): ... this.  Use new generator function
14691         parameter.
14692         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
14693         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
14694         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
14695         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
14696         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
14697         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
14698         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
14699         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
14700         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
14701         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
14702         New macros.
14704 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
14706         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
14707         the missing break.
14709 2008-05-20  Anatoly Sokolov <aesok@post.ru>
14711         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
14712         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
14713         (avr_attribute_table): Add 'OS_main' function attribute.
14714         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
14715         functions with 'OS_main' attribute.
14717 2008-05-20  Richard Guenther  <rguenther@suse.de>
14719         PR tree-optimization/35204
14720         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
14721         helper, split out from ...
14722         (DFS): ... here.  Make the DFS walk non-recursive.
14724 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
14725             Jan Sjodin  <jan.sjodin@amd.com>
14727         PR tree-optimization/36181
14728         * tree-parloops.c (loop_has_vector_phi_nodes): New.
14729         (parallelize_loops): Don't parallelize when the loop has vector
14730         phi nodes.
14732 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
14733             Sebastian Pop  <sebastian.pop@amd.com>
14735         * tree-loop-linear.c (gather_interchange_stats): Look in the access
14736         matrix, and never look at the tree representation of the memory
14737         accesses.
14738         (linear_transform_loops): Computes parameters and access matrices.
14739         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
14740         when fails.
14741         (access_matrix_get_index_for_parameter): New.
14742         * tree-data-ref.h (struct access_matrix): New.
14743         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
14744         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
14745         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
14746         am_vector_index_for_loop): New.
14747         (struct data_reference): Add field access_matrix.
14748         (DR_ACCESS_MATRIX): New.
14749         (compute_data_dependences_for_loop): Update declaration.
14750         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
14751         * lambda.h (lambda_vector_vec_p): Declared.
14752         * lambda-code.c: Depend on pointer-set.h.
14753         (lambda_collect_parameters_from_af, lambda_collect_parameters,
14754         av_for_af_base, av_for_af, build_access_matrix,
14755         lambda_compute_access_matrices): New.
14756         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
14758 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
14760         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
14761         $SOURCEDIR/include.
14763 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
14764             Sebastian Pop  <sebastian.pop@amd.com>
14766         PR tree-optimization/36206
14767         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
14768         FOLD_CONVERSIONS.
14769         (instantiate_scev_1): Rename flags to fold_conversions.
14770         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
14771         outeside instantiation_loop.
14772         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
14773         (evolution_function_is_affine_or_constant_p): Removed.
14774         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
14775         instantiate_scev.
14776         (analyze_siv_subscript): Pass in the loop nest number.
14777         Call evolution_function_is_affine_in_loop instead of
14778         evolution_function_is_affine_p.
14779         (analyze_overlapping_iterations): Pass in the loop nest number.
14781 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
14782             Sebastian Pop  <sebastian.pop@amd.com>
14784         PR tree-optimization/36206
14785         * tree-chrec.h (chrec_fold_op): New.
14786         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
14787         and other trees.
14789 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
14791         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
14792         (DIRS_EQ): New.
14793         (remove_duplicates): Do not set inode on non-inode systems.
14794         Use DIRS_EQ.
14796 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
14798         * config.gcc (tm_file): Update comments about relative pathnames.
14800 2008-05-20  Richard Guenther  <rguenther@suse.de>
14802         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
14803         * tree-ssa-sccvn.c (process_scc): Likewise.
14804         * tree-ssa-sink.c (execute_sink_code): Likewise.
14805         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
14806         * tree-vrp.c (process_assert_insertions): Likewise.
14807         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
14808         (perform_tree_ssa_dce): Likewise.
14809         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
14810         (dump_dominator_optimization_stats): Likewise.
14811         * tree-vectorizer.c (vectorize_loops): Likewise.
14813 2008-05-20  Richard Guenther  <rguenther@suse.de>
14815         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
14817 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
14819         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
14820         (ix86_i386elf_return_in_memory): Likewise.
14821         (ix86_i386interix_return_in_memory): Likewise.
14822         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
14823         (SUBTARGET_RETURN_IN_MEMORY): New.
14824         * config/i386/i386elf.h: Likewise.
14825         * config/i386/ptx4-i.h: Likewise.
14826         * config/i386/sol2-10.h: Likewise.
14827         * config/i386/sysv4.h: Likewise.
14828         * config/i386/vx-common.h: Likewise.
14829         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
14830         * config/i386/i386.c (ix86_return_in_memory): Made static and
14831         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
14832         (ix86_i386elf_return_in_memory): Removed.
14833         (ix86_i386interix_return_in_memory): Removed.
14834         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
14835         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
14837 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
14839         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
14841 2008-05-19  Xinliang David Li  <davidxl@google.com>
14843         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
14844         * opts.c: Ditto.
14845         * common.opt: Ditto.
14846         * doc/invoke.texi: Ditto.
14848 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
14850         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
14851         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
14853 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
14855         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
14856         sizes of operand array from 8/4 to 4/2.
14857         (ix86_expand_vector_init_general): Change size of operand array
14858         from 32 to 16.  Remove op0, op1 and half_mode.
14860 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
14862         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
14863         (ix86_expand_vector_init_interleave): Likewise.
14864         (ix86_expand_vector_init_general): Use them.  Assert
14865         word_mode == SImode when n_words == 4.
14867 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
14869         * config/i386/i386.c (ix86_secondary_reload): New static function.
14870         (TARGET_SECONDARY_RELOAD): New define.
14871         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
14872         * config/i386/i386.md (reload_outqi): Remove.
14874 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14876         PR middle-end/35509
14877         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
14878         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
14879         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
14880         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
14881         (fold_builtin_1): Likewise.
14882         * builtins.def (BUILT_IN_ISINF_SIGN): New.
14883         c-common.c (check_builtin_function_arguments): Handle
14884         BUILT_IN_ISINF_SIGN.
14885         * doc/extend.texi: Document __builtin_isinf_sign.
14886         * fold-const.c (operand_equal_p): Handle COND_EXPR.
14888 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
14890         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
14891         EH cleanup at the end of the pass, search for those that have been
14892         turned into forwarder blocks and do the cleanup on their successor.
14894 2008-05-18  Richard Guenther  <rguenther@suse.de>
14896         * tree-cfg.c (verify_gimple_expr): Allow conversions from
14897         pointers to sizetype and vice versa.
14899 2008-05-18 Xinliang David Li   <davidxl@google.com>
14901         * gcc/tree-ssa-dce.c: Coding style fix.
14902         (check_pow): Documentation comment.
14903         (check_log): Documenation comment. Coding style fix.
14904         (is_unnecessary_except_errno_call): Ditto.
14905         (gen_conditions_for_pow): Ditto.
14906         (gen_conditions_for_log): Ditto.
14907         (gen_shrink_wrap_conditions): Ditto.
14908         (shrink_wrap_one_built_in_calls): Ditto.
14909         * gcc/doc/invoke.texi: Better documentation string.
14910         * ChangeLog: Fix wrong change log entries from
14911         May 17 checkin on function call DCE.
14913 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
14915         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
14917 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
14919         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
14920         * df-problems.c (simulation routines): Fixed block comment to
14921         properly say how to add forwards scanning functions.
14923 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
14925         * tree-inline.c (setup_one_parameter): Remove dead code.
14927 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
14929         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
14930         a BIT_AND_EXPR only for an INTEGER_TYPE.
14932 2008-05-17 Xinliang David Li   <davidxl@google.com>
14934         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
14935         (check_pow, check_log, is_unnecessary_except_errno_call): New
14936         functions to check for eliminating math functions that are pure
14937         except for setting errno.
14938         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
14939         general condition expressions for shrink-wrapping pow/log calls.
14940         (gen_shrink_wrap_conditions): Ditto.
14941         (shrink_wrap_one_built_in_call): Ditto.
14942         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
14943         (mark_operand_necessary): If debugging, output if OP is necessary.
14944         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
14945         unnecessary.
14946         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
14947         opt level >= 2.
14948         * gcc/common.opt: New user flag -ftree-builtin-dce.
14949         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
14951 2008-05-16  David S. Miller  <davem@davemloft.net>
14953         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
14954         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
14956 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
14958         PR target/36246
14959         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
14961 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
14963         * ifcvt.c (dead_or_predicable): Rename
14964         df_simulate_one_insn_backwards to df_simulate_one_insn.
14965         * recog.c (peephole2_optimize): Ditto.
14966         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
14967         Ditto.
14968         * df.h: Rename df_simulate_one_insn_backwards to
14969         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
14970         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
14971         scanning of defs and uses.
14972         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
14973         (df_simulate_one_insn_forwards): Removed.
14975 2008-05-16  Doug Kwan  <dougkwan@google.com>
14977         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
14978         QNaN & SNaN.
14979         (real_from_string): Handle NaNs and Inf as approriate.
14981 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
14983         * doc/gty.texi (Source Files Containing Type Information): Note
14984         that headers should appear first in the gtfiles list.
14986 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
14988         * tree.def (COND_EXEC): Properly documented this code.
14990 2008-05-16  Diego Novillo  <dnovillo@google.com>
14992         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
14993         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
14994         the new field.
14996 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
14998         * tree-ssa-dse (max_stmt_uid): Removed.
14999         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
15000         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
15001         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
15002         * function.h (cfun.last_stmt_uid): New field.
15003         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
15004         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
15005         New functions.
15006         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
15007         (create_stmt_ann): Initialize the ann->uid field.
15008         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
15009         with new calls.
15010         * tree-flow.h (renumber_gimple_stmt_uids): New function.
15012 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
15014         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
15015         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
15016         (init_empty_tree_cfg): Call it.
15018 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
15020         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
15021         Update all users.
15023 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
15025         * doc/invoke.text (-fdump-tree-*-verbose): New option.
15026         * tree-dump.c (dump_options): New verbose option.
15027         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
15028         Add verbose dump.
15029         * tree-pass.h (TDF_VERBOSE): New dump flag.
15030         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
15031         (tree-flow.h): Added include.
15032         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
15034 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
15036         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
15038         From Jie Zhang  <jie.zhang@analog.com>
15039         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15040         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
15041         mcpu=bf561-none and mcpu=bf561-0.2.
15042         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15043         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
15044         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15045         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
15046         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
15047         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
15048         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
15049         option.
15050         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
15051         (cputype_selected): Remove.
15052         (bfin_handle_option): Don't use cputype_selected.
15053         (override_options): When no mcpu option, enable all workarounds.
15054         Don't use bfin_workarounds.
15055         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
15056         processor type.
15057         (DEFAULT_CPU_TYPE): Don't define.
15059 2008-05-16  Richard Guenther  <rguenther@suse.de>
15061         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
15062         on deletion of the last stmt.
15064 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15066         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
15067         V8HImode for SSE2 and V16QImode for SSE4.1.
15069 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
15071         * cgraph.h (compute_inline_parameters): Made public.
15072         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
15073         variable_generate_summary, function_write_summary,
15074         variable_write_summary, variable_read_summary.  Added generate_summary,
15075         write_summary, read_summary.
15076         * cgraphunit.c (cgraph_process_new_functions): Changed call from
15077         pass_ipa_inline.function_generate_summary, to
15078         compute_inline_parameters.
15079         * ipa-inline.c (compute_inline_parameters): Made public and added
15080         node parameter.
15081         (compute_inline_parameters_for_current): New function.
15082         (pass_inline_param): Now calls compute_inline_parameters_for_current.
15083         (inline_generate_summary): Removed parameter and made to loop over
15084         all cgraph nodes.
15085         (pass_ipa_inline): Updated for new IPA_PASS structure.
15086         * passes.c (execute_ipa_summary_passes): Now is called once per
15087         pass rather than once per node*pass.
15089 2008-05-15  Anatoly Sokolov <aesok@post.ru>
15091         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
15092         avr_have_mul_p, avr_asm_only_p): Remove variables.
15093         (avr_override_options): Remove initialization of removed variables.
15094         (avr_file_start):  Convert removed variables to fields of
15095         'struct base_arch_s *avr_current_arch'.
15096         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
15097         (AVR_HAVE_MUL): (Ditto.).
15098         (AVR_HAVE_MOVW): (Ditto.).
15099         (AVR_HAVE_LPMX): (Ditto.).
15100         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
15101         avr_asm_only_p): Remove declaration.
15103 2008-05-15  Diego Novillo  <dnovillo@google.com>
15105         * config/arm/arm.c (arm_return_in_memory): Fix return type.
15106         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
15108 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
15110         PR middle-end/36194
15111         * combine.c (check_conversion): Rename back to check_promoted_subreg.
15112         Don't call record_truncated_value from here.
15113         (record_truncated_value): Turn it into a for_each_rtx callback.
15114         (record_truncated_values): New function.
15115         (combine_instructions): Call note_uses with record_truncated_values.
15116         Change name of check_conversion to check_promoted_subreg.
15118 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
15120         * doc/sourcebuild.texi: Document support for torture tests.
15122 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
15124         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
15125         to alternative 4 of operand 2.
15127 2008-05-15  Richard Guenther  <rguenther@suse.de>
15129         * tree-pass.h (current_pass): Declare.
15130         (get_pass_for_id): Likewise.
15131         * passes.c (passes_by_id, passes_by_id_size): New globals.
15132         (set_pass_for_id): New function.
15133         (get_pass_for_id): Likewise.
15134         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
15135         (execute_function_todo): Flush per function statistics.
15136         * toplev.c (compile_file): Init statistics.
15137         (general_init): Do early statistics initialization.
15138         (finalize): Finish statistics.
15139         * statistics.h (statistics_early_init): Declare.
15140         (statistics_init): Likewise.
15141         (statistics_fini): Likewise.
15142         (statistics_fini_pass): Likewise.
15143         (statistics_counter_event): Likewise.
15144         (statistics_histogram_event): Likewise.
15145         * statistics.c: New file.
15146         * Makefile.in (OBJS-common): Add statistics.o.
15147         (statistics.o): Add dependencies.
15148         * doc/invoke.texi (-fdump-statistics): Document.
15150         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
15151         (insert): Likewise.
15152         (execute_pre): Use statistics_counter_event.
15153         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
15154         (substitute_and_fold): Increment it.  Use statistics_counter_event.
15156 2008-05-15  Diego Novillo  <dnovillo@google.com>
15158         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
15160         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
15161         * tree-ssa-alias.c (new_type_alias): Remove references to
15162         sub-variables from comment.
15163         * tree-ssa-operands.c (swap_tree_operands): Likewise.
15165 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15167         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
15168         attribute to 1 only for insertps alternative.
15170 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
15172         * config/bfin/bfin.md (loadbytes): New pattern.
15173         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
15174         (bfin_init_builtins): Initialize it.
15175         (bdesc_1arg): Add it.
15177 2008-05-15  Sa Liu  <saliu@de.ibm.com>
15179         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
15180         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
15181         * testsuite/lib/target-supports.exp: Add
15182         check_effective_target_fortran_integer_16.
15184 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
15186         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
15187         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
15188         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
15189         (TARGET_RETURN_IN_MEMORY): Define.
15191 2008-05-15  Richard Guenther  <rguenther@suse.de>
15193         PR middle-end/36244
15194         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
15195         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
15196         represent unmodifiable vars.
15198 2008-05-15  Richard Guenther  <rguenther@suse.de>
15200         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
15201         INDIRECT_REF and TARGET_MEM_REF.
15202         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
15203         TARGET_MEM_REF.
15205 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
15206             H.J. Lu  <hongjiu.lu@intel.com>
15208         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
15209         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
15210         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
15211         insn alternatives.  Add missing alternatives.
15212         (*vec_concatv2di_rex64_sse4_1): Likewise.
15213         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
15214         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
15215         Require TARGET_SSE.
15217 2008-05-15  Richard Guenther  <rguenther@suse.de>
15219         PR tree-optimization/36009
15220         PR tree-optimization/36204
15221         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
15222         (determine_invariantness_stmt): Record the loop a store is
15223         always executed in.
15224         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
15225         dependency.
15227 2008-05-15  Richard Guenther  <rguenther@suse.de>
15229         PR tree-optimization/34330
15230         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
15231         through the pointer will alias the SMT.
15233 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
15235         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
15237 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15239         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
15241 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
15242             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
15244         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
15245         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
15246         (vashl_optab): New optab for vector/vector shifts.
15247         (vashr_optab): Ditto.
15248         (vlshr_optab): Ditto.
15249         (vrotl_optab): Ditto.
15250         (vrotr_optab): Ditto.
15251         (optab_subtype): New enum for optab_for_tree_code call.
15252         (optab_for_tree_code): Add enum optab_subtype argument.
15254         * optabs.c (optab_for_tree_code): Take an additional argument to
15255         distinguish between a vector shift by a scalar and vector shift by
15256         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
15257         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
15258         vector shift by a vector.
15259         (expand_widen_pattern_expr): Pass additional argument to
15260         optab_for_tree_code.
15262         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
15263         vrotl_optab, vrotr_optab.
15265         * expr.c (expand_expr_real_1): Update calls to
15266         optab_for_tree_code to distinguish between vector shifted by a
15267         scalar and vector shifted by a vector.
15268         * tree-vectorizer.c (supportable_widening_operation): Ditto.
15269         (supportable_narrowing_operation): Ditto.
15270         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
15271         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
15272         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
15273         (vect_create_epilog_for_reduction): Ditto.
15274         (vectorizable_reduction): Ditto.
15275         (vectorizable_operation): Ditto.
15276         (vect_strided_store_supported): Ditto.
15277         (vect_strided_load_supported): Ditto.
15278         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
15279         * expmed.c (expand_shift): Ditto.
15281         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
15282         scalar type.
15283         (ashr@var{m}3): Ditto.
15284         (vashl@var{m}3): Document new vector/vector shift standard name.
15285         (vashr@var{m}3): Ditto.
15286         (vlshr@var{m}3): Ditto.
15287         (vrotl@var{m}3): Ditto.
15288         (vrotr@var{m}3): Ditto.
15290         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
15291         (PPERM_INVERT): Ditto.
15292         (PPERM_REVERSE): Ditto.
15293         (PPERM_REV_INV): Ditto.
15294         (PPERM_ZERO): Ditto.
15295         (PPERM_ONES): Ditto.
15296         (PPERM_SIGN): Ditto.
15297         (PPERM_INV_SIGN): Ditto.
15298         (PPERM_SRC1): Ditto.
15299         (PPERM_SRC2): Ditto.
15301         * config/i386/sse.md (mulv2di3): Add SSE5 support.
15302         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
15303         allows a memory operand to be the value being added, and split it
15304         to improve vectorization.
15305         (sse5_pmacsdqh_mem): Ditto.
15306         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
15307         (sse5_mulv2div2di3_high): Ditto.
15308         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
15309         (vec_pack_trunc_v4si): Ditto.
15310         (vec_pack_trunc_v2di): Ditto.
15311         (sse5_pcmov_<mode>): Remove code that tried to use use
15312         andps/andnps instead of pcmov.
15313         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
15314         pmacsdqh instructions.
15315         (vec_widen_smult_lo_v4si): Ditto.
15317         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
15318         (PPERM_INVERT): Ditto.
15319         (PPERM_REVERSE): Ditto.
15320         (PPERM_REV_INV): Ditto.
15321         (PPERM_ZERO): Ditto.
15322         (PPERM_ONES): Ditto.
15323         (PPERM_SIGN): Ditto.
15324         (PPERM_INV_SIGN): Ditto.
15325         (PPERM_SRC1): Ditto.
15326         (PPERM_SRC2): Ditto.
15327         (ix86_expand_sse_movcc): Move the SSE5 test after the if
15328         true/false tests.
15329         (ix86_expand_int_vcond): If SSE5 generate all possible integer
15330         comparisons.
15331         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
15332         says ignore whether the last reference is a memory operand.
15334 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
15335             Paolo Bonzini <bonzini at gnu dot org>
15337         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
15338         shift patterns.
15340         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
15341         (vlshr<mode>3): Rename from vlshr<mode>3.
15342         (vashr<mode>3): Rename from vashr<mode>3.
15343         (mulv4sf3): Change the names of vector shift patterns.
15344         (mulv4si3): Ditto.
15345         (negv4sf2): Ditt.
15347         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
15348         shift insns.
15350         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
15351         (SI_SHLHI): Ditto.
15352         (SI_SHL): Ditto.
15353         (SI_SHLI): Ditto.
15354         (SI_ROTH): Ditto.
15355         (SI_ROTHI): Ditto.
15356         (SI_ROT): Ditto.
15357         (SI_ROTI): Ditto.
15358         (SPU_RL_0): Ditto.
15359         (SPU_RL_1): Ditto.
15360         (SPU_RL_2): Ditto.
15361         (SPU_RL_3): Ditto.
15362         (SPU_RL_4): Ditto.
15363         (SPU_RL_5): Ditto.
15364         (SPU_RL_6): Ditto.
15365         (SPU_RL_7): Ditto.
15366         (SPU_SL_0): Ditto.
15367         (SPU_SL_1): Ditto.
15368         (SPU_SL_2): Ditto.
15369         (SPU_SL_3): Ditto.
15370         (SPU_SL_4): Ditto.
15371         (SPU_SL_5): Ditto.
15372         (SPU_SL_6): Ditto.
15373         (SPU_SL_7): Ditto.
15375         * config/spu/spu.md (v): New iterator macro to add v for vector types.
15376         (floatunssidf2_internal): Change vector/vector shift names.
15377         (floatunsdidf2_internal): Ditto.
15378         (mulv8hi3): Ditto.
15379         (ashrdi3): Ditto.
15380         (ashrti3): Ditto.
15381         (cgt_df): Ditto.
15382         (cgt_v2df): Ditto.
15383         (dftsv): Ditto.
15384         (vashl<mode>3): Rename from ashl<mode>3.
15385         (vashr<mode>3): Rename from ashr<mode>3.
15386         (vlshr<mode>3): Rename from lshr<mode>3.
15387         (vrotl<mode>3): Rename from rotl<mode>3.
15389 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
15391         PR target/36224
15392         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
15393         multiply gives the wrong value when doing widening multiplies.
15394         (vec_widen_smult_lo_v4si): Ditto.
15396 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
15398         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
15399         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
15400         emit_library_call_value.
15401         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
15402         * tree.h (ECF_LIBCALL_BLOCK): Removed.
15403         * calls.c (initialize_argument_information, precompute_arguments,
15404         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
15405         (precompute_arguments): Removed flags parameter.
15406         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
15408 2008-05-14  Richard Guenther  <rguenther@suse.de>
15410         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
15411         Make sure to register the store if the use is a PHI_NODE.
15413 2008-05-14  Olivier Hainque  <hainque@adacore.com>
15415         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
15416         memory if the component is to be referenced in BLKmode according
15417         to get_inner_reference.
15419 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
15421         * calls.c (emit_library_call_value_1): Restore code clearing
15422         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
15424 2008-05-14  Olivier Hainque  <hainque@adacore.com>
15425             Nicolas Roche  <roche@adacore.com>
15427         * configure.ac: Add support for a "gcc_subdir" variable in
15428         config-lang.in, to denote a subdirectory where the language/GCC
15429         integration files are to be found.
15430         * configure: Regenerate.
15432 2008-05-14  Ira Rosen  <irar@il.ibm.com>
15434         PR tree-optimization/36098
15435         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
15436         value for the first load in the group in case of a gap.
15437         (vect_build_slp_tree): Check that there are no gaps in loads.
15439 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
15441         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
15442         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
15443         expand_copysign_bit, ): Change call to emit_no_conflict_block to
15444         emit_insn and remove unneeded code to construct extra args.
15445         (emit_no_conflict_block): Removed.
15446         * optabls.h: (emit_no_conflict_block): Removed.
15447         * cse.c (cse_extended_basic_block): Remove search for
15448         REG_NO_CONFLICT note.
15449         * global.c: Removed incorrect comment added in revision 117.
15450         * expr.c (convert_move): Change call to emit_no_conflict_block to
15451         emit_insn.
15452         * recog.c: Change comments so that they do not mention
15453         REG_NO_CONFLICT.
15454         * local_alloc.c (combine_regs): Removed last parameter.
15455         (no_conflict_p): Removed.
15456         (block_alloc): Removed note, no_conflict_combined_regno and set
15457         local vars. Removed all code to process REG_NO_CONFLICT blocks.
15458         (combine_regs): Removed already_dead and code to look for
15459         REG_NO_CONFLICT notes.
15460         * lower_subreg (remove_retval_note): Removed code to look for
15461         REG_NO_CONFLICT block.
15462         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
15463         (resolve_clobber): Remove code to process libcalls that have
15464         REG_NO_CONFLICT notes.
15465         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
15466         case.
15467         * combine.c (can_combine_p, distribute_notes):  Removed
15468         REG_NO_CONFLICT case.
15469         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
15470         to emit_insns.
15471         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
15472         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
15473         Ditto.
15474         * reg-notes.def (NO_CONFLICT): Removed.
15476 2008-05-14  David S. Miller  <davem@davemloft.net>
15478         * config/sparc/sparc.c (sparc_profile_hook): If
15479         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
15480         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
15481         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
15483 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
15485         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
15487 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
15489         PR target/36222
15490         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
15491         and op1 expansion before vector concat to have less live pseudos.
15493 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
15495         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
15496         ix86_expand_vector_set if supported.
15498 2008-05-13  Diego Novillo  <dnovillo@google.com>
15499             Kenneth Zadeck  <zadeck@naturalbridge.com>
15501         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
15503         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
15504         phinodes_print_statistics, init_ssanames, fini_ssanames,
15505         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
15506         release_ssa_name, release_defs, replace_ssa_name_symbol,
15507         ssanames_print_statistics): Move ...
15508         * tree-flow.h: ... here.
15509         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
15510         Use FN instead of cfun.
15511         (make_ssa_name_fn): Rename from make_ssa_name.
15512         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
15513         * tree-flow-inline.h (make_ssa_name): Move from
15514         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
15515         * omp-low.c (expand_omp_parallel):
15516         * tree-flow-inline.h (redirect_edge_var_map_result):
15517         * tree-ssa.c (init_tree_ssa): Add argument FN.
15518         Use it instead of cfun.  Update all users.
15520 2008-05-13  Tom Tromey  <tromey@redhat.com>
15522         PR preprocessor/22168:
15523         * doc/cpp.texi (Top): Update menu.
15524         (Alternatives to Wrapper #ifndef): New node.
15525         (Other Directives): Document deprecation.
15526         (Obsolete Features): Remove menu.
15527         (Assertions): Merge node into Obsolete Features.
15528         (Obsolete once-only headers): Move earlier; rename to Alternatives
15529         to Wrapper #ifndef.
15530         * doc/cppopts.texi: Update.
15531         * c.opt (Wdeprecated): Enable for C and ObjC.
15532         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
15533         (C++ Dialect Options): Move -Wno-deprecated from here to...
15534         (Warning Options): ... here.
15536 2008-05-13  Richard Guenther  <rguenther@suse.de>
15538         PR middle-end/36227
15539         * fold-const.c (fold_sign_changed_comparison): Do not allow
15540         changes in pointer-ness.
15542 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
15544         PR target/24713
15545         * config/sh/sh.c (sh_expand_prologue): Don't clear
15546         RTX_FRAME_RELATED_P for push insns.
15548 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
15550         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
15552 2008-05-12  Anatoly Sokolov <aesok@post.ru>
15554         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
15555         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
15556         Use 'machine->is_leaf' instead of 'leaf_func_p'.
15558 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
15560         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
15561         (*vec_concatv4sf_sse): This.
15562         (*sse2_concatv2si): Renamed to ...
15563         (*vec_concatv2si_sse2): This.
15564         (*sse1_concatv2si): Renamed to ...
15565         (*vec_concatv2si_sse): This.
15566         (*vec_concatv2di_rex): Renamed to ...
15567         (*vec_concatv2di_rex64): This.
15568         (*vec_concatv2si_sse4_1): New.
15569         (*vec_concatv2di_rex64_sse4_1): Likewise.
15571 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
15573         PR rtl-optimization/36111
15574         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
15575         that was created for swappable operands.
15577 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
15579         PR ada/36001
15580         * Makefile.in: Substitute GNATMAKE and GNATBIND.
15581         * configure.ac: Add call to ACX_PROG_GNAT.
15583 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
15585         * optc-gen.awk: Fix comment typo.
15587 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
15589         * pretty-print.c (pp_integer_with_precision): Use
15590         HOST_LONG_LONG_FORMAT.
15592 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
15594         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
15596 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15598         * config/i386/i386.c (bdesc_ptest): Removed.
15599         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
15600         (bdesc_args): Add __builtin_ia32_ptestz128,
15601         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
15602         (ix86_init_mmx_sse_builtins): Updated.
15603         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
15604         (ix86_expand_builtin): Updated.
15606 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
15608         * tree-cfg.c (valid_fixed_convert_types_p): New function.
15609         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
15611 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
15613         * value-prof.c (interesting_stringop_to_profile): Do not
15614         return early for BUILT_IN_MEMPCPY.
15616 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
15618         * calls.c (expand_call): Don't use callgraph to increase
15619         preferred_stack_boundary.
15621         * cgraph.h (cgraph_rtl_info): Use unsigned on
15622         preferred_incoming_stack_boundary.
15624         * final.c (rest_of_clean_state): Use unsigned on
15625         preferred_stack_boundary.
15627 2008-05-09  Tom Tromey  <tromey@redhat.com>
15629         PR preprocessor/22231:
15630         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
15631         proceeding.
15633 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
15635         PR tree-optimization/36129
15636         * tree-ssa-ccp.c: Include value-prof.h.
15637         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
15638         built-in function was folded to a constant.
15639         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
15641 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
15642             Sebastian Pop  <sebastian.pop@amd.com>
15644         * tree-scalar-evolution.c: Document instantiate_scev.
15645         (instantiate_parameters_1): Renamed instantiate_scev_1.
15646         Don't use the same loop for instantiation_loop and evolution_loop.
15647         (instantiate_scev): New.
15648         (instantiate_parameters): Moved...
15649         (resolve_mixers): Update call to instantiate_scev_1 to pass the
15650         same loop twice.  Maintains the semantics for this function.
15651         * tree-scalar-evolution.h (instantiate_scev): Declare.
15652         (instantiate_parameters): ...here.  Now static inline.
15653         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
15654         instead of resolve_mixers.
15656 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
15658         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
15660 2008-05-09  Tomas Bily  <tbily@suse.cz>
15662         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
15663         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
15664         * tree-ssa-structalias.c (get_constraint_for): Likewise.
15665         * c-common.c (c_common_truthvalue_conversion): Likewise.
15666         * tree-object-size.c (compute_object_offset): Likewise.
15667         * tree-inline.c (estimate_num_insns_1): Likewise.
15668         * varasm.c (const_hash_1, compare_constant, copy_constant)
15669         (compute_reloc_for_constant, output_addressed_constants)
15670         (initializer_constant_valid_p): Likewise.
15671         * c-omp.c (check_omp_for_incr_expr): Likewise.
15672         * gimplify.c (gimplify_expr): Likewise.
15673         * c-typeck.c (c_finish_return): Likewise.
15674         * tree-vectorizer.c (supportable_widening_operation)
15675         (supportable_narrowing_operation): Likewise.
15676         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
15677         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
15678         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
15679         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
15680         (descr_info_loc): Likewise.
15681         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
15682         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
15683         (fold_unary): Likewise.
15684         * builtins.c (get_pointer_alignment): Likewise.
15685         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
15686         (instantiate_parameters_1): Likewise.
15687         * tree.c (expr_align, stabilize_reference): Likewise.
15688         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
15689         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
15690         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
15691         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15692         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
15693         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
15694         Likewise.
15695         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
15696         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
15697         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
15698         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
15699         (forward_propagate_comparison)
15700         (tree_ssa_forward_propagate_single_use_vars): Likewise.
15701         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
15702         * emit-rtl.c (component_ref_for_mem_expr)
15703         (set_mem_attributes_minus_bitpos): Likewise.
15704         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
15705         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
15706         Likewise.
15707         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
15708         (build_function_call, pointer_diff, build_compound_expr)
15709         (c_finish_return): Likewise.
15710         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
15711         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
15712         Likewise.
15713         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
15714         * expr.c (is_aligning_offset): Likewise.
15715         * tree-ssa-alias.c (is_escape_site): Likewise.
15716         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
15717         (check_all_va_list_escapes): Likewise.
15718         * tree-ssa-loop-ivopts.c (determine_base_object)
15719         (determine_common_wider_type): Likewise.
15720         * dojump.c (do_jump): Likewise.
15721         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
15722         * tree-gimple.c (is_gimple_cast): Likewise.
15723         * fold-const.c (decode_field_reference, )
15724         (fold_sign_changed_comparison, fold_unary, fold_comparison)
15725         (fold_binary): Likewise.
15726         * tree-ssa-alias-warnings.c (find_alias_site_helper)
15727         (already_warned_in_frontend_p): Likewise.
15728         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
15729         * tree.c (really_constant_p, get_unwidened): Likewise.
15730         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
15731         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
15732         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
15733         Likewise.
15734         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
15735         CONVERT_EXPR_P.
15736         (CONVERT_EXPR_P): Define.
15737         (CASE_CONVERT): Define.
15739 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
15741         PR middle-end/36117
15742         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
15743         (delete_unmarked_insns): When deleting a call, call
15744         delete_unreachable_blocks.
15745         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
15746         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
15748 2008-05-08  Richard Guenther  <rguenther@suse.de>
15750         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
15751         (-ftree-salias): Likewise.
15752         (salias-max-implicit-fields): Remove param documentation.
15753         (salias-max-array-elements): Likewise.
15754         * tree-pass.h (pass_create_structure_vars): Remove.
15755         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
15756         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
15757         * tree-ssa-alias.c (create_structure_vars): Remove.
15758         (gate_structure_vars): Likewise.
15759         (pass_create_structure_vars): Likewise.
15760         (gate_build_alias): Likewise.
15761         (pass_build_alias): Adjust to run always and dump the function.
15762         * common.opt (ftree-salias): Hide.
15763         * passes.c (init_optimization_passes): Remove
15764         pass_create_structure_vars, adjust comment.
15765         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
15766         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
15767         * opts.c (decode_options): Do not set flag_tree_salias.
15768         (common_handle_option): Add OPT_ftree_salias to the backward
15769         compatibility section.
15771 2008-05-08  Richard Guenther  <rguenther@suse.de>
15773         * tree-flow-inline.h (var_can_have_subvars): Move ...
15774         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
15775         * tree-flow.h (var_can_have_subvars): Remove.
15776         (push_fields_onto_fieldstack): Remove.
15777         (sort_fieldstack): Likewise.
15778         (struct fieldoff): Move ...
15779         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
15780         alias_set and base_for_components fields.
15781         (sort_fieldstack): Make static.
15782         (push_fields_onto_fieldstack): Likewise.  Remove code that
15783         handles anything but RECORD_TYPEs.  Remove alias_set and
15784         base_for_components handling.
15785         (create_variable_info_for): Adjust.
15787 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
15789         * common.opt (Wframe-larger-than=): Shorten the help message
15790         to one line.
15791         * doc/invoke.texi (Wframe-larger-than=): Add more description.
15793 2008-05-08  Rafael Espindola  <espindola@google.com>
15795         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
15796         trap.
15797         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
15798         trap and that both operands are gimple values.
15799         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
15800         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
15801         is a fp operation.
15803 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
15805         * read-rtl.c (join_c_conditions): Return the first string if the
15806         two strings are equal.
15808 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
15810         * gensupport.h (pred_data): Add a "num_codes" field.
15811         (add_predicate_code): Declare.
15812         * gensupport.c (add_predicate_code): New function.
15813         (std_pred_table): Add an "allows_const_p" field.
15814         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
15815         Remove the (incomplete) list of such codes from the codes field.
15816         (init_predicate_table): Use add_predicate_code.  Add all
15817         RTX_CONST_OBJs if allows_const_p is true.
15818         * genrecog.c (process_define_predicate): Use add_predicate_code.
15820 2008-05-08  David Daney  <ddaney@avtrex.com>
15821             Richard Sandiford  <rsandifo@nildram.co.uk>
15823         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
15824         special case of constant zero operands.
15825         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
15826         old and new values.  Special case constant zero values.
15827         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
15828         fails.
15829         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
15830         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
15832 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
15834         PR target/36090
15835         * simplify-rtx.c (simplify_plus_minus): Create CONST of
15836         similar RTX_CONST_OBJ before CONST_INT.
15838 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
15840         * stmt.c (expand_stack_restore): Change sa mode if needed.
15842 2008-05-08  Richard Guenther  <rguenther@suse.de>
15844         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
15845         return type to bool.
15846         (ix86_sol10_return_in_memory): Likewise.
15847         (ix86_i386elf_return_in_memory): Likewise.
15848         (ix86_i386interix_return_in_memory): Likewise.
15849         * config/i386/i386.c (ix86_return_in_memory): Likewise.
15850         (ix86_sol10_return_in_memory): Likewise.
15851         (ix86_i386elf_return_in_memory): Likewise.
15852         (ix86_i386interix_return_in_memory): Likewise.
15854 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
15856         PR bootstrap/36180
15857         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
15858         fndecl argument.
15859         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
15860         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
15861         declared in front.
15863 2008-05-08  Richard Guenther  <rguenther@suse.de>
15865         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
15866         * tree-data-ref.h (struct dr_alias): Remove subvars field.
15867         (DR_SUBVARS): Remove.
15868         * tree-dfa.c (dump_subvars_for): Remove.
15869         (debug_subvars_for): Likewise.
15870         (dump_variable): Do not dump subvars.
15871         (remove_referenced_var): Do not remove subvars.
15872         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
15873         (lookup_subvars_for_var): Remove.
15874         (get_subvars_for_var): Likewise.
15875         (get_subvars_at): Likewise.
15876         (get_first_overlapping_subvar): Likewise.
15877         (overlap_subvar): Likewise.
15878         * tree-flow.h (subvar_t): Remove.
15879         (struct var_ann_d): Remove subvars field.
15880         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
15881         argument.  Remove special handling of SFTs.
15882         (compute_tag_properties): Likewise.
15883         (set_initial_properties): Likewise.
15884         (compute_call_clobbered): Likewise.
15885         (count_mem_refs): Likewise.
15886         (compute_memory_partitions): Likewise.
15887         (compute_flow_insensitive_aliasing): Likewise.
15888         (setup_pointers_and_addressables): Likewise.
15889         (new_type_alias): Likewise.
15890         (struct used_part): Remove.
15891         (used_portions): Likewise.
15892         (struct used_part_map): Likewise.
15893         (used_part_map_eq): Likewise.
15894         (used_part_map_hash): Likewise.
15895         (free_used_part_map): Likewise.
15896         (up_lookup): Likewise.
15897         (up_insert): Likewise.
15898         (get_or_create_used_part_for): Likewise.
15899         (create_sft): Likewise.
15900         (create_overlap_variables_for): Likewise.
15901         (find_used_portions): Likewise.
15902         (create_structure_vars): Likewise.
15903         * tree.def (STRUCT_FIELD_TAG): Remove.
15904         * tree.h (MTAG_P): Adjust.
15905         (struct tree_memory_tag): Remove base_for_components and
15906         unpartitionable flags.
15907         (struct tree_struct_field_tag): Remove.
15908         (SFT_PARENT_VAR): Likewise.
15909         (SFT_OFFSET): Likewise.
15910         (SFT_SIZE): Likewise.
15911         (SFT_NONADDRESSABLE_P): Likewise.
15912         (SFT_ALIAS_SET): Likewise.
15913         (SFT_UNPARTITIONABLE_P): Likewise.
15914         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
15915         (union tree_node): Remove sft field.
15916         * alias.c (get_alias_set): Remove special handling of SFTs.
15917         * print-tree.c (print_node): Remove handling of SFTs.
15918         * tree-dump.c (dequeue_and_dump): Likewise.
15919         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
15920         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
15921         * tree-predcom.c (set_alias_info): Do not set subvars.
15922         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
15923         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
15924         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
15925         (add_vars_for_offset): Remove.
15926         (add_virtual_operand): Remove special handling of SFTs.
15927         (add_call_clobber_ops): Likewise.
15928         (add_call_read_ops): Likewise.
15929         (get_asm_expr_operands): Likewise.
15930         (get_modify_stmt_operands): Likewise.
15931         (get_expr_operands): Likewise.
15932         (add_to_addressable_set): Likewise.
15933         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
15934         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
15935         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
15936         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
15937         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
15938         (tree_node_structure): Likewise.
15939         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
15940         handling of SFTs.
15941         (find_what_p_points_to): Likewise.
15943 2008-05-08  Sa Liu  <saliu@de.ibm.com>
15945         * config/spu/spu.md: Fixed subti3 pattern.
15947 2008-05-08  Richard Guenther  <rguenther@suse.de>
15949         PR middle-end/36154
15950         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
15951         sure to create a representative for trailing arrays for PTA.
15953 2008-05-08  Richard Guenther  <rguenther@suse.de>
15955         PR middle-end/36172
15956         * fold-const.c (operand_equal_p): Two objects which types
15957         differ in pointerness are not equal.
15959 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
15961         * calls.c (compute_argument_block_size): Add argument tree fndecl.
15962         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
15963         (emit_library_call_value_1): Add new variable fndecl initialized by
15964         NULL_TREE. It should be the decl type of orgfun, but this information
15965         seems not to be available here, so it uses the default calling abi.
15966         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
15967         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
15968         by TARGET_RETURN_IN_MEMORY.
15969         * config/i386/i386-interix.h: Likewise.
15970         * config/i386/i386.h: Likewise.
15971         * config/i386/i386elf.h: Likewise.
15972         * config/i386/ptx4-i.h: Likewise.
15973         * config/i386/sol2-10.h: Likewise.
15974         * config/i386/sysv4.h: Likewise.
15975         * config/i386/vx-common.h: Likewise.
15976         * config/cris/cris.h: Removed #if 0 clause.
15977         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
15978         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
15979         argument.
15980         (ix86_sol10_return_in_memory): Likewise.
15981         (ix86_i386elf_return_in_memory): New.
15982         (ix86_i386interix_return_in_memory): New.
15983         * config/mt/mt-protos.h (mt_return_in_memory): New.
15984         * config/mt/mt.c: Likewise.
15985         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
15986         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
15987         * config/bfin/bfin.h: Likewise.
15988         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
15989         argument.
15990         * config/bfin/bfin.c: Likewise.
15991         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
15992         * config/alpha/unicosmk.h: Likewise.
15993         * config/i386/cygming.h: Likewise.
15994         * config/iq2000/iq2000.h: Likewise.
15995         * config/mips/mips.h: Likewise.
15996         * config/mn10300/mn10300.h: Likewise.
15997         * config/rs6000/rs6000.h: Likewise.
15998         * config/score/score.h: Likewise.
15999         * config/spu/spu.h: Likewise.
16000         * config/v850/v850.h: Likewise.
16001         * defaults.h: Likewise.
16002         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
16003         * expr.c (emit_block_move): Adjust use of
16004         OUTGOING_REG_PARM_STACK_SPACE.
16005         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
16006         OUTGOING_REG_PARM_STACK_SPACE.
16007         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
16009 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
16011         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
16012         on OMP_RETURN for OMP_FOR.
16014         PR debug/35896
16015         * dwarf2out.c (dw_expand_expr, common_check): Removed.
16016         (fortran_common): New function.
16017         (gen_variable_die): Call fortran_common instead of common_check,
16018         adjust for it returning tree instead of rtx.  Formatting.
16020 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
16022         PR rtl/7335
16023         PR rtl/33826
16024         * see.c (see_copy_insn): Copy new pure const attributes for new call.
16025         * c-decl.c (merge_decls): Ditto.
16026         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
16027         to RTL_CONST_OR_PURE_CALL_P.
16028         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
16029         Initialized DECL_LOOPING_CONST_PURE.
16030         (process_call_operands): Set tree_side_effects properly.
16031         * tree.h (TREE_READONLY_DECL_P): Removed.
16032         (DECL_IS_PURE): Renamed to DECL_PURE_P.
16033         (DECL_LOOPING_OR_CONST_P): New macro.
16034         (struct tree_function_decl): Added looping_const_or_pure_p.
16035         (ECF_*) Renumbered.
16036         (ECF_LOOPING_OR_CONST_P): New macro.
16037         * rtlanal.c (pure_const_p): Removed.
16038         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
16039         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
16040         to RTL_CONST_CALL_P.
16041         * ipa-pure-const.c (pure_const_state_e): Added looping field.
16042         (check_decl, check_tree, check_call, scan_function): Initialize
16043         looping.
16044         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
16045         (static_execute): Set looping true for recursive functions.
16046         Undo setting state to IPA_NEITHER for recursive functions.
16047         * cse.c (cse_insn):
16048         * ifcvt.c (noce_can_store_speculate_p): Changed
16049         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
16050         RTL_CONST_OR_PURE_CALL_P.
16051         * dse.c (scan_insn): Ditto.
16052         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
16053         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
16054         RTL_CONST_OR_PURE_CALL_P.
16055         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
16056         pure_call_p to RTL_CONST_CALL_P.
16057         * gimplify.c (gimplify_call_expr): Clear side effects for
16058         non-looping pure and constant calls.
16059         * calls.c (emit_call_1): Set rtl flags from ecf flags.
16060         (flags_from_decl_or_type): Set ecf flags from decl flags.
16061         (initialize_argument_information): Turn off
16062         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
16063         Change const to pure if callee_copies is true rather than just
16064         turning off const.
16065         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
16066         way of marking pure calls.
16067         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
16068         Remove hack that was supposed to fix pr7335 and remove old
16069         way of marking pure calls.
16070         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
16071         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
16072         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
16073         RTL_CONST_OR_PURE_CALL_P.
16074         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
16075         * loop-invariant.c (find_exits, find_invariant_bb): Changed
16076         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
16077         * sched-deps.c (schedule_analyze): Ditto.
16078         * rtl.h (struct rtx_def): Use call field, unchanging field, and
16079         return_val field of calls to represent pure and const function info.
16080         (CONST_OR_PURE_CALL_P): Deleted macro.
16081         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
16082         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
16083         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
16084         TREE_READONLY.
16085         * tree-optimize.c (execute_fixup_cfg): Added test for
16086         ECF_LOOPING_CONST_OR_PURE.
16087         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
16088         DECL_PURE_P.
16089         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
16090         effects for looping pure or const calls.
16091         (verify_gimple_expr): Added verification code.
16092         * config/alpha/alpha.c (alpha_legitimize_address,
16093         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
16094         RTL_CONST_CALL_P.
16095         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
16096         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
16097         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
16098         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
16099         RTL_CONST_OR_PURE_CALL_P.
16100         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
16101         and const calls to be deleted.
16103 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
16105         PR target/35714
16106         * config/i386/mmx.md (mmx_subv2sf3): New expander.
16107         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
16108         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
16109         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
16110         to handle nonimmediate operands.
16111         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
16112         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
16113         to handle nonimmediate operands.
16114         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
16115         (mmx_pmulhrwv4hi3): New expander.  Use
16116         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16117         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
16118         (sse2_umulv1siv1di3): New expander.  Use
16119         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16120         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
16121         (mmx_eq<mode>3): New expander.  Use
16122         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16123         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
16124         (mmx_uavgv8qi3): New expander.  Use
16125         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16126         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
16127         (mmx_uavgv4hi3): New expander.  Use
16128         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16130         * config/i386/sse.md
16131         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
16132         to handle nonimmediate operands.
16133         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
16134         to handle nonimmediate operands.
16135         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
16136         to handle nonimmediate operands.
16137         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
16138         to handle nonimmediate operands.
16139         (sse2_unpckhpd_exp): New expander.  Use
16140         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16141         (sse2_unpcklpd_exp): New expander.  Use
16142         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16143         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
16144         to handle nonimmediate operands.
16145         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
16146         to handle nonimmediate operands.
16147         (*sse2_<plusminus_insn><mode>3): Rename from
16148         sse2_<plusminus_insn><mode>3 insn pattern.
16149         (sse2_<plusminus_insn><mode>3): New expander.  Use
16150         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16151         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
16152         (sse2_umulv2siv2di3): New expander.  Use
16153         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16154         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
16155         (sse4_1_mulv2siv2di3): New expander.  Use
16156         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16157         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
16158         (sse2_pmaddwd): New expander.  Use
16159         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16160         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
16161         (sse2_eq<mode>3): New expander.  Use
16162         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16163         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
16164         (sse4_1_eqv2di3): New expander.  Use
16165         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16166         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
16167         (sse2_uavgv16qi3): New expander.  Use
16168         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16169         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
16170         (sse2_uavgv16qi3): New expander.  Use
16171         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16172         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
16173         (sse2_uavgv8hi3): New expander.  Use
16174         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16175         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
16176         (ssse3_pmulhrswv8hi3): New expander.  Use
16177         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16178         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
16179         (ssse3_pmulhrswv4hi3): New expander.  Use
16180         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16182         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
16183         (<sse>_vmmul<mode>3): Ditto.
16184         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
16185         (divv2df3): Ditto.
16186         (ssse3_pmaddubsw128): Use register_operand for operand 1.
16187         (ssse3_pmaddubsw): Ditto.
16189         * config/i386/i386.c (struct_builtin_description)
16190         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
16191         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
16192         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
16193         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
16194         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
16195         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
16196         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
16197         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
16198         (ix86_fixup_binary_operands): Assert that src1
16199         and src2 must have the same mode when swapped.
16200         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
16201         and ix86_binary_operator_ok.  Do not force operands in registers
16202         when optimizing.
16204 2008-05-07  Jan Hubicka  <jh@suse.cz>
16206         * cgraph.c (dump_cgraph_node): Update.
16207         * cgraph.h (cgraph_local_info): Break out inline summary.
16208         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
16209         hook.
16210         * ipa-inline (inline_summary): New accestor function.
16211         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
16212         cgraph_decide_inlining, compute_inline_parameters): Update.
16213         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
16215 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
16217         Cleanup ColdFire scheduling support and add V4 pipeline model.
16219         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
16220         (define_attr cpu): Add cfv4 value.
16221         (define_attr type, define_attr type1): Merge into a single 'type'
16222         attribute.  Update all uses.
16223         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
16224         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
16225         Update all uses.
16226         (define_attr opx_mem, define_attr opy_mem): Remove.
16227         (define_attr op_mem): Clean up, update comment.
16228         (define_attr size): Use specific values instead of general int.
16229         (define_attr guess, define_attr split): Remove.  Update all uses.
16230         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
16231         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
16232         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
16233         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
16234         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
16235         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
16236         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
16237         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
16238         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
16239         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
16240         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
16241         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
16242         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
16243         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
16244         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
16245         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
16246         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
16247         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
16248         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
16249         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
16250         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
16251         Update or set attributes.
16252         (stack_tie): New fake instruction.
16254         * config/m68k/m68k.h (TUNE_CFV4): New macro.
16255         (m68k_sched_attr_size): Update declaration.
16256         (m68k_sched_attr_type2): Remove.
16257         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
16258         Declare new bypass predicates.
16260         * config/m68k/m68k.c (m68k_sched_issue_rate,
16261         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
16262         implementations.
16263         (TARGET_SCHED_ISSUE_RATE,
16264         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
16265         (override_options): Handle scheduling for ColdFire V4 core.
16266         (m68k_expand_prologue): Emit stack_tie.
16267         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
16268         'OP_TYPE_FPN'.  Update all uses.
16269         (sched_guess_p): Remove.
16270         (sched_address_type): Handle symbolic addresses.
16271         (sched_get_operand): New static function.
16272         (sched_operand_type): Merge into sched_attr_op_type.
16273         (sched_attr_op_type): Handle FP registers, handle quick constants,
16274         update.
16275         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
16276         (m68k_sched_attr_size): Update.  Move logic to ...
16277         (sched_get_attr_size_int): New static function.
16278         (sched_get_opxy_mem_type): New static function.
16279         (m68k_sched_attr_op_mem): Update.
16280         (m68k_sched_attr_type2): Remove.
16281         (sched_cfv4_bypass_data): New static variable.
16282         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
16283         (m68k_sched_issue_rate): Implement scheduler hook.
16284         (struct _sched_ib: enabled_p): New field.
16285         (m68k_sched_variable_issue): Update.  Handle V4.
16286         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
16287         sched_dump_class_func_t, sched_dump_split_class,
16288         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
16289         sched_dump_dfa_class, m68k_sched_dump): Remove.
16290         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
16291         hook.
16292         (m68k_sched_init_global): Remove statisctics dumping, introduce
16293         sanity check that all instructions have pipeline reservations.  Handle
16294         ColdFire V4 core.
16295         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
16296         Handle ColdFire V4 core.
16297         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
16298         New static functions.
16299         (m68k_sched_address_bypass_p): New bypass predicate.
16300         (sched_get_indexed_address_scale): New static function.
16301         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
16303         * cf.md: Update comments.
16304         (define_attr type2): Remove.  Use 'type' attribute instead.
16305         Update all uses.
16306         (cf_ib): Rename to cfv123_ib.  Update all uses.
16307         (cf_oep): Rename to cfv123_oep.  Update all uses.
16308         (cf_chr): Rename to cfv123_chr.  Update all uses.
16309         (cf_mem): Rename to cfv123_mem.  Update all uses.
16310         (cf_mac): Move to more appropriate place.
16311         (cfv123_guess): New automaton and cpu_unit.
16312         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
16313         Update uses of 'size' attribute.  Handle before reload scheduling.
16314         (cfv123_guess): New dummy reservation for unhandled instructions.
16315         (cfv4_*): Pipeline description of ColdFire V4 core.
16316         (ignore): New reservation to handle 'ignore' type.
16318 2008-05-07  Ian Lance Taylor  <iant@google.com>
16320         PR middle-end/36013
16321         * gimplify.c (find_single_pointer_decl_1): Don't look through
16322         indirections.
16323         (find_single_pointer_decl): Adjust comments.
16325 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
16327         PR middle-end/36137
16328         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
16329         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
16331         PR middle-end/36106
16332         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
16333         integral type rather than floating point, then VIEW_CONVERT_EXPR
16334         to the floating point type.
16336 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
16338         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
16339         TFmode op0 to register.
16341 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
16343         * c-decl.c (grokdeclarator): Comment typo.
16345 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
16347         * tree-flow.h: Remove prototype for computed_goto_p.
16348         * tree-cfg.c (computed_goto_p): Make static.
16350 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
16352         PR target/35657
16353         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
16354         (contains_aligned_value_p): This.  Handle _Decimal128.
16355         (ix86_function_arg_boundary): Only align _Decimal128 to its
16356         natural boundary and handle it properly.
16358 2008-05-06  Martin Jambor  <mjambor@suse.cz>
16360         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
16361         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
16362         (ipcp_method_set_orig_node): Removed.
16363         (ipcp_cval_get_cvalue_type): Removed.
16364         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
16365         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
16366         (ipcp_cval_set_cvalue_type): Removed.
16367         (ipcp_cval_get_cvalue): Removed.
16368         (ipcp_cval_set_cvalue): Removed.
16369         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
16370         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
16371         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
16372         (ipcp_cval_meet): Renamed to ipa_lattice_meet
16373         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
16374         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
16375         (ipcp_get_ith_lattice): Changed parameters.
16376         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
16377         (ipcp_lattice_from_jfunc): Changed parameters.
16378         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
16379         (ipcp_method_cval_print): Added temporary variable info.
16380         (ipcp_redirect): Removed already unused local variable caller.
16381         (ipcp_redirect): New temporary variable orig_callee_info
16382         (ipcp_redirect): Removed newly unused local variable callee.
16383         (ipcp_redirect): Removed (a bit confusing) local variable type.
16384         (ipcp_insert_stage): Added local variable info.
16385         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
16386         renamed too
16387         (ipcp_formal_create): Removed.
16388         (ipcp_method_cval_set): Removed.
16389         (ipcp_propagate_stage): Renamed lattice variables.
16390         (ipcp_method_cval_set_cvalue_type): Removed.
16391         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
16392         (ipcp_print_all_lattices): Changed printed strings to refer to
16393         lattices rather than cvals.
16394         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
16395         (ipcp_propagate_const): Changed formal parameters.
16396         (build_const_val): Changed formal parameters.
16397         (ipcp_insert_stage): Removed useless variable cvalue
16398         (build_const_val): Changed formal parameters.
16399         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
16400         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
16401         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
16402         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
16403         (ipcp_print_func_profile_counts): Changed string from "method" to
16404         "function"
16405         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
16406         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
16407         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
16408         (ipcp_structures_print): Renamed to ipcp_print_all_structures
16409         (ipcp_profile_print): Renamed to ipcp_print_profile_data
16410         (ipcp_lat_is_const): Changed parameters and made inline.
16411         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
16412         (ipcp_redirect): Renamed to ipcp_need_redirect_p
16413         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
16414         the predicate condition directly
16415         (ipcp_propagate_stage): Added local variable args. Removed local
16416         variable callee.  (Both are mere code simplifications.)
16417         (ipcp_method_dont_insert_const): Renamed to
16418         ipcp_node_not_modifiable_p.
16419         (ipcp_node_not_modifiable_p): Made inline.
16420         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
16421         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
16422         (ipcp_print_all_lattices): Removed variable cvalue
16423         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
16424         Updated comments.
16426 2008-05-06  Olivier Hainque  <hainque@adacore.com>
16428         * tree-sra.c (try_instantiate_multiple_fields): Early return
16429         if field has POINTER_TYPE.
16431 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
16433         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
16434         by using 'q' specifier for instruction.
16435         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
16437 2008-05-06  Anatoly Sokolov <aesok@post.ru>
16439         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
16440         Change mode of zero_extract from QImode to HImode.
16441         (sign bit tests peepholes): (Ditto.).
16443 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
16445         * config/i386/mmx.md: Remove double backslashes from asm templates.
16446         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
16447         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
16448         to handle nonimmediate operands.
16449         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
16450         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
16451         to handle nonimmediate operands.
16452         (*mmx_<code>v2sf3_finite): New insn pattern.
16453         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
16454         (mmx_<code>v2sf3): New expander.  Use
16455         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16456         (mmx_<plusminus_insn><mode>3): New expander.  Use
16457         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16458         (*mmx_<plusminus_insn><mode>3): New insn pattern.
16459         (mmx_add<mode>3): Removed.
16460         (mmx_ssadd<mode>3): Ditto.
16461         (mmx_usadd<mode>3): Ditto.
16462         (mmx_sub<mode>3): Ditto.
16463         (mmx_sssub<mode>3): Ditto.
16464         (mmx_ussub<mode>3): Ditto.
16465         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
16466         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
16467         to handle nonimmediate operands.
16468         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
16469         insn pattern.
16470         (mmx_smulv4hi3_highpart): New expander.  Use
16471         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16472         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
16473         insn pattern.
16474         (mmx_umulv4hi3_highpart): New expander.  Use
16475         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16476         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
16477         (mmx_<code>v4hi3): New expander.  Use
16478         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16479         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
16480         (mmx_<code>v8qi3): New expander.  Use
16481         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16482         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
16483         (mmx_<code><mode>3): New expander.  Use
16484         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16486 2008-05-05  Jan Hubicka  <jh@suse.cz>
16488         PR tree-optimization/36118
16489         * passes.c (pass_init_dump_file): Fix dump header.
16491 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16493         PR middle-end/36141
16494         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
16495         VCE for function decls.
16497 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
16499         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
16501 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
16503         * config/i386/i386.md (sat_plusminus): New.
16504         (plusminus_insn): Likewise.
16505         (plusminus_mnemonic): Likewise.
16506         (addsub): Removed.
16507         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
16508         (*<addsub><mode>3_cc_overflow): Renamed to ...
16509         (*<plusminus_insn><mode>3_cc_overflow): This.
16510         (*<addsub>si3_zext_cc_overflow): Renamed to ...
16511         (*<plusminus_insn>si3_zext_cc_overflow): This.
16513         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
16514         (<plusminus_insn><mode>3): This.
16515         (*<addsub><mode>3): Renamed to ...
16516         (*<plusminus_insn><mode>3): This.
16517         (<sse>_vm<addsub><mode>3): Renamed to ...
16518         (<sse>_vm<plusminus_insn><mode>3): This.
16519         (sse3_h<addsub>v4sf3): Renamed to ...
16520         (sse3_h<plusminus_insn>v4sf3): This.
16521         (sse3_h<addsub>v2df3): Renamed to ...
16522         (sse3_h<plusminus_insn>v2df3): This.
16523         (<plusminus_insn><mode>3): New.
16524         (*<plusminus_insn><mode>3): Likewise.
16525         (sse2_<plusminus_insn><mode>3): Likewise.
16526         (add<mode>): Removed.
16527         (*add<mode>3): Likewise.
16528         (sse2_ssadd<mode>3): Likewise.
16529         (sse2_usadd<mode>3): Likewise.
16530         (sub<mode>3): Likewise.
16531         (*sub<mode>3): Likewise.
16532         (sse2_sssub<mode>3): Likewise.
16533         (sse2_ussub<mode>3): Likewise.
16535 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
16537         * gthr-single.h: Add in required interface elements as per gthr.h.
16538         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
16539         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
16540         Generalize UNUSED macro.
16541         (__gthread_once): Add.
16542         (__gthread_key_create): Add.
16543         (__gthread_key_delete): Add.
16544         (__gthread_getspecific): Add.
16545         (__gthread_setspecific): Add.
16547 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
16549         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
16550         the same size types for the indirect reference on the rhs, then
16551         create a VCE.
16553 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
16555         * config/i386/i386.md
16556         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
16557         one insn template instead of template series.
16558         (*xordi_1_rex64): Ditto.
16559         (*xordi_2_rex64): Ditto.
16561 2008-05-05  Ira Rosen  <irar@il.ibm.com>
16563         PR tree-optimization/36119
16564         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
16565         in case of SLP.
16567 2008-06-04  Jan Hubicka  <jh@suse.cz>
16569         tree-optimization/36100
16570         * tree-pass.h (pass_O0_always_inline): Declare.
16571         * ipa-inline.c (inline_transform): Remove dead code.
16572         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
16573         pass_O0_always_inline): New.
16574         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
16576 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
16578         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
16579         mnemonic in this_param move for TARGET_64BIT.
16581 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
16583         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
16584         (*strmovsi_rex_1): Ditto.
16585         (*strsetsi_1): Ditto.
16586         (*strsetsi_rex_1): Ditto.
16588         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
16589         adddicc expanders using SWI mode iterator.
16591 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
16593         PR target/36121
16594         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
16595         argument handling.
16597 2008-05-04  David S. Miller  <davem@davemloft.net>
16599         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
16600         (sparc*-*-linux*): Use linux.h in tm_file.
16601         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
16602         compiler defaulting to 32-bit.
16603         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
16604         no longer needed.
16605         * config/sparc/linux.h: Remove definitions now obtained
16606         properly from linux.h
16607         * config/sparc/linux64.h: Likewise.
16608         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
16609         don't want this setting for 32-bit builds in a biarch compiler.
16610         * doc/install.texi: Add sparc-linux to list of targets
16611         supporting --enable-targets=all.
16613 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
16615         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
16617 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
16619         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
16620         after V4SI_FTYPE_V8HI.
16621         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
16622         case V4SI_FTYPE_V2DF.
16624 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
16626         * doc/invoke.texi (max-flow-memory-locations): Removed.
16627         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
16629 2008-05-03  Richard Guenther  <rguenther@suse.de>
16631         PR middle-end/34973
16632         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
16634 2008-05-02  David S. Miller  <davem@davemloft.net>
16636         * config.gcc (need_64bit_hwint): Document libcpp dependency.
16638 2008-05-02  Simon Baldwin <simonb@google.com>
16640         PR bootstrap/36108
16641         * c-common.h (warn_array_subscript_range): Removed.
16642         * c-common.c (warn_array_subscript_range): Ditto.
16643         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
16644         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
16646 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
16648         * config/i386/i386.c (ix86_special_builtin_type): New.
16649         (bdesc_special_args): Likewise.
16650         (ix86_expand_special_args_builtin): Likewise.
16651         (ix86_init_mmx_sse_builtins): Updated.
16652         (ix86_expand_builtin): Updated.
16653         (ix86_expand_store_builtin): Removed.
16654         (ix86_expand_unop_builtin): Likewise.
16656         * config/i386/mm3dnow.h (__v2sf): Moved to ...
16657         * config/i386/mmintrin.h (__v2sf): Here.
16659         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
16660         const __v2sf.
16661         (_mm_loadl_pi): Likewise.
16662         (_mm_storeh_pi): Replace __v2si with __v2sf.
16663         (_mm_storel_pi): Likewise.
16665         * doc/extend.texi: Correct __builtin_ia32_loadhps,
16666         __builtin_ia32_loadlps, __builtin_ia32_storehps,
16667         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
16668         __builtin_ia32_loadlpd.
16670 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
16672         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
16673         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
16674         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
16675         (ix86_init_mmx_sse_builtins): Updated.
16676         (ix86_expand_args_builtin): Likewise.
16677         (ix86_expand_builtin): Likewise.
16678         (ix86_expand_unop1_builtin): Renamed to ...
16679         (ix86_expand_unop_vec_merge_builtin): This.
16681 2008-05-01  Jan Hubicka  <jh@suse.cz>
16683         PR bootstrap/36100
16684         * ipa-inline.c (inline_generate_summary): Make static.
16685         (inline_transform): Do not call inlining at -O0; make static.
16686         * passes.c (execute_todo): Add sanity check.
16687         (execute_one_ipa_transform_pass): Execute proper flags.
16689 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
16691         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
16692         (DECL_NONADDRESSABLE_P): Likewise.
16693         * alias.c (record_component_aliases): Fix comment.
16695 2008-05-01  Simon Baldwin <simonb@google.com>
16697         * c-common.h (warn_array_subscript_range): New function.
16698         * c-common.c (warn_array_subscript_range): Ditto.
16699         * tree-vrp.c (check_array_ref): Corrected code to agree with
16700         comment, ignoring only arrays of size 0 or size 1.
16701         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
16703 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
16705         * config/i386/i386.c (ix86_builtin_type): Replace
16706         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
16707         (bdesc_args): Updated.
16708         (ix86_init_mmx_sse_builtins): Likewise.
16709         (ix86_expand_args_builtin): Likewise.
16711         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
16712         with __v1di.
16714         * doc/extend.texi: Correct __builtin_ia32_palignr.
16716 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
16718         PR target/36095
16719         * config/i386/i386.c (bdesc_crc32): Removed.
16720         (ix86_expand_crc32): Likewise.
16721         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
16722         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
16723         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
16724         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
16725         UINT_FTYPE_UINT_UCHAR.
16726         (bdesc_args): Updated. Add crc32 builtins.
16727         (ix86_init_mmx_sse_builtins): Updated.
16728         (ix86_expand_args_builtin): Updated to support subreg.
16730         * doc/extend.texi: Correct __builtin_ia32_crc32di.
16732 2008-05-01  Jan Hubicka  <jh@suse.cz>
16734         * tree-pass.h (opt_pass): Add IPA_PASS.
16735         (varpool_node, cgraph_node): Forward declare.
16736         (ipa_opt_pass): Define.
16737         (pass_ipa_inline): Turn into ipa_opt_pass.
16738         (pass_apply_inline): Remove.
16739         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
16740         (apply_inline): Turn into ....
16741         (inline_transform): ... this one.
16742         (inline_generate_summary): New function.
16743         (pass_apply_inline): Remove.
16744         * function.h (ipa_opt_pass): Forward declare structure; typedef;
16745         vector.
16746         (struct function): Add ipa_transforms_to_apply.
16747         * passes.c (register_one_dump_file): Work on IPA_PASS.
16748         (init_optimization_passes): Remove pass_inline_parameters and
16749         pass_apply_inline.
16750         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
16751         (execute_one_pass) ... here; apply transforms when possible.
16752         (add_ipa_transform_pass, execute_ipa_summary_asses,
16753         execute_one_ipa_transform_pass): New.
16754         (execute_ipa_pass_list): Update for IPA_PASS type.
16756 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
16758         * config/i386/i386.c (ix86_builtin_type): Add
16759         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
16760         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
16761         (bdesc_args): Add SSE4a builtins.
16762         (ix86_init_mmx_sse_builtins): Updated.
16763         (ix86_expand_args_builtin): Likewise.
16764         (ix86_expand_builtin): Likewise.
16766 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
16768         * config/i386/i386.c (ix86_builtin_type): Add
16769         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
16770         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
16771         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
16772         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
16773         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
16774         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
16775         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
16776         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
16777         and DI_FTYPE_DI_DI_INT.
16778         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
16779         (ix86_init_mmx_sse_builtins): Updated.
16780         (ix86_expand_args_builtin): Likewise.
16781         (ix86_expand_builtin): Likewise.
16782         (ix86_expand_binop_imm_builtin): Removed.
16784         * doc/extend.texi: Correct __builtin_ia32_palignr128.
16786 2008-04-30  Richard Guenther  <rguenther@suse.de>
16788         PR tree-optimization/32921
16789         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
16791 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
16793         * config/arm/arm.c (arm_unwind_emit): Use
16794         crtl->all_throwers_are_sibcalls instead of
16795         cfun->all_throwers_are_sibcalls.
16796         (arm_output_fn_unwind): Likewise.
16797         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
16798         instead of cfun->uses_pic_offset_table.
16799         (frv_expand_prologue): Likewise.
16800         (frv_frame_pointer_required): Likewise.
16801         (frv_expand_fdpic_call): Likewise.
16802         (frv_emit_movsi): Likewise.
16803         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
16804         cfun->returns_pcc_struct instead of
16805         current_function_returns_pcc_struct.
16806         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
16807         instead of cfun->calls_eh_return.
16808         (m32c_pushm_popm): Likewise.
16809         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
16810         "extern" declaration.
16812 2008-04-30  Richard Guenther  <rguenther@suse.de>
16814         PR tree-optimization/21636
16815         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
16816         constant address.
16817         (evaluate_stmt): Print the likely value.
16818         (ccp_visit_stmt): Avoid excessive vertical spacing.
16820 2008-04-30  Rafael Espindola  <espindola@google.com>
16822         * builtins.c (fold_call_expr): Return realret.
16823         * tree-ssa-threadedge.c
16824         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
16825         __builtin_object_size.
16827 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
16829         * gcc.c (wrapper_string): New variable.
16830         (insert_wrapper): New function.
16831         (execute): New option -wrapper.
16832         * doc/invoke.texi (Overall Options): New driver option -wrapper.
16834 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
16836         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
16837         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
16838         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
16839         from...
16840         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
16841         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
16842         config/rs6000/e500crtres64gprctr.asm,
16843         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
16844         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
16845         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
16846         config/rs6000/e500crtsav64gprctr.asm,
16847         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
16848         config/rs6000/e500crtsavg64gprctr.asm: New files.
16849         * config/rs6000/t-ppccomm: Add build rules for new files.
16850         (LIB2FUNCS_STATIC_EXTRA): Add new files.
16851         * config/rs6000/t-netbsd: Add build rules for new files.
16852         (LIB2FUNCS_STATIC_EXTRA): New variable.
16853         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
16854         (CRTSAVRES_DEFAULT_SPEC): Likewise.
16855         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
16857 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
16859         * config/i386/i386.c (ix86_builtin_type): Add
16860         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
16861         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
16862         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
16863         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
16864         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
16865         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
16866         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
16867         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
16868         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
16869         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
16870         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
16871         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
16872         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
16873         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
16874         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
16875         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
16876         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
16877         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
16878         V1DI_FTYPE_V2SI_V2SI.
16879         (bdesc_2arg): Moved to ...
16880         (bdesc_args): Here.
16881         (ix86_init_mmx_sse_builtins): Updated.
16882         (ix86_expand_args_builtin): Updated.  Take a pointer
16883         to const struct builtin_description.  Handle comparison
16884         builtin functions.
16885         (ix86_expand_sse_compare): Take a new argument for swapping operands.
16886         (ix86_expand_builtin): Updated.
16888         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
16889         (ssse3_pmaddubsw128): This.
16890         (ssse3_pmaddubswv4hi3): Renamed to ...
16891         (ssse3_pmaddubsw): This.
16893         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
16894         (__builtin_ia32_packssdw128): Likewise.
16895         (__builtin_ia32_packuswb128): Likewise.
16896         (__builtin_ia32_pmaddubsw): Likewise.
16897         (__builtin_ia32_pmaddubsw128): Likewise.
16899 2008-04-30  Richard Guenther  <rguenther@suse.de>
16901         PR tree-optimization/14847
16902         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
16903         (recognize_bits_test): Use it.
16904         (recognize_single_bit_test): Likewise.
16906 2008-04-30  Martin Jambor  <mjambor@suse.cz>
16908         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
16909         instead of setting number of formal parameters to zero.
16910         (ipcp_init_stage): Do not set the number of actual parameters to zero
16911         either.
16912         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
16913         which are called with variable number of arguments.
16914         (ipcp_insert_stage): Explicitely skipping all nodes which are
16915         called with variable number of arguments.
16916         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
16917         number of parameters.
16919         * ipa-prop.h (struct ipa_node_params): Added flag
16920         called_with_var_arguments
16921         (ipa_set_param_count): Added.  Changed sole setter to use it.
16922         (ipa_get_param_count): Added.  All readers of param_count
16923         converted to use it instead.
16924         (ipa_set_called_with_variable_arg): Added.
16925         (ipa_is_called_with_var_arguments): Added.
16926         (ipa_get_ith_param): Added.  All readers of param_decls converted
16927         to use it instead.
16928         (ipa_set_cs_argument_count): Added, sole writer to argument_count
16929         changed to use it.
16930         (ipa_get_cs_argument_count): Added, all readers of argument_count
16931         changed to cal it.
16932         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
16933         to use it.
16935         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
16936         (struct ipcp_lattice): Renamed cval_type to type
16937         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
16939         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
16940         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
16941         (ipcp_insert_stage): Changed the type of variable cvalue to tree
16942         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
16943         (build_const_val): Changed the type of parameter cvalue to tree
16944         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
16945         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
16947         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
16948         constant
16950         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
16951         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
16952         (ipa_add_method): Renamed to ipa_push_func_to_list
16953         (ipa_remove_method): Renamed to ipa_pop_func_from_list
16954         (ipa_callsite_param_count): Removed.
16955         (ipa_callsite_param_count_set): Removed.
16956         (ipa_callsite_param): Removed.
16957         (ipa_callsite_callee): Removed.
16958         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
16959         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
16960         (ipa_method_formal_count): Removed.
16961         (ipa_method_formal_count_set): Removed.
16962         (ipa_method_get_tree): Removed.
16963         (ipa_method_tree_map_create): Removed.
16964         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
16965         (ipa_create_param_decls_array): Creates the array itself
16966         (ipa_create_param_decls_array): Temporary variable info instead of
16967         a few dereferences.
16968         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
16969         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
16970         (get_type): Removed.
16971         (ipa_jf_get_info_type): Removed.
16972         (ipa_node_create): Renamed to ipa_create_node_params
16973         (ipa_free): Renamed to ipa_free_all_node_params
16974         (ipa_nodes_create): Renamed to ipa_create_all_node_params
16975         (ipa_edges_create): Renamed to ipa_create_all_edge_args
16976         (ipa_edges_free): Renamed to ipa_free_all_edge_args
16977         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
16978         (ipa_free_all_node_params): Deallocation to jump_functions moved to
16979         ipa_free_all_edge_args
16980         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
16981         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
16982         (ipa_create_methodlist_node): Removed.
16983         (ipa_methodlist_method): Removed.
16984         (ipa_methodlist_method_set): Removed.
16985         (ipa_methodlist_next_method): Removed.
16986         (ipa_methodlist_next_method_set): Removed.
16987         (ipa_method_is_modified): Removed.
16988         (ipa_method_modify_create): Removed.
16989         (ipa_method_modify_init): Temporary variable info instead of a few
16990         dereferences.
16991         (ipa_detect_param_modifications): Temporary variable info instead of
16992         a few dereferences.
16993         (ipa_compute_jump_functions): Temporary variable info instead of
16994         a few dereferences.
16995         (ipa_method_modify_set): Removed.
16996         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
16997         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
16998         than craph_node as the first parameter.
16999         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
17000         (ipa_method_modify_init): Removed.
17001         (ipa_compute_jump_functions): Added a temp variable instead of
17002         repeatadly dereferencing the cgraph_edge.aux pointer
17003         (ipa_callsite_param_set_type): Removed.
17004         (ipa_compute_jump_functions): i renamed to index and moved to
17005         an inner block
17006         (ipa_callsite_param_set_info_type_formal): Removed.
17007         (ipa_callsite_param_set_info_type): Removed.
17008         (ipa_callsite_param_map_create): Removed.
17009         (ipa_callsite_tree): Removed.
17010         (ipa_callsite_caller): Removed.
17011         (ipa_pop_func_from_list): return_method removed to return_func
17013         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
17014         prefixed all values with IPA_. Changed all users.
17015         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
17016         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
17017         and FORMAL_IPATYPE IPA_PASS_THROUGH.
17018         (union parameter_info): Renamed to jump_func_value.
17019         (union jump_func_value): Renamed value to constant
17020         (struct ipa_jump_func): Renamed info_type to value
17021         (struct ipa_node): Renamed to ipa_node_params
17022         (struct ipa_node_params): Renamed ipa_arg_num to param_count
17023         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
17024         (struct ipa_node_params): Renamed ipa_mod to modified_flags
17025         (struct ipa_edge): Renamed to ipa_edge_args
17026         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
17027         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
17028         (struct ipa_methodlist): Renamed to ipa_func_list
17029         (struct ipa_func_list): method_p renamed to node, next_method
17030         renamed to next
17031         (ipa_methodlist_p): Removed, switched all users to struct pointer
17032         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
17034 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
17036         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
17037         (rs6000_emit_epilogue): Use backchain to restore only when we
17038         have a large frame.  Make use of frame pointer to restore if we
17039         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
17041 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
17043         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
17044         Add mode to zero_extract.
17045         (sign bit tests peepholes): (Ditto.).
17047 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
17049         * config/i386/i386.c (ix86_builtins): Replace Prescott New
17050         Instructions in comments with SSE3.
17051         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
17052         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
17053         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
17054         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
17055         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
17056         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
17057         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
17058         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
17059         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
17060         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
17061         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
17062         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
17063         (bdesc_sse_args): Renamed to ...
17064         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
17065         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
17066         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
17067         IX86_BUILTIN_FABSQ.
17068         (bdesc_1arg): Moved to ...
17069         (bdesc_args): Here.
17070         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
17071         Instructions in comments with SSE3.
17072         (ix86_expand_sse_operands_builtin): Renamed to ...
17073         (ix86_expand_args_builtin): This.  Updated.
17074         (ix86_expand_unop1_builtin): Update comments.
17075         (ix86_expand_builtin): Updated.
17077 2008-04-29  Richard Guenther  <rguenther@suse.de>
17079         PR tree-optimization/36078
17080         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
17081         Update virtual SSA form after cleaning up the CFG.
17083 2008-04-29  Richard Guenther  <rguenther@suse.de>
17085         PR middle-end/15255
17086         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
17088 2008-04-29  Richard Guenther  <rguenther@suse.de>
17090         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
17091         (compute_may_aliases): Do not call finalize_ref_all_pointers.
17092         (compute_flow_insensitive_aliasing): Do not treat
17093         PTR_IS_REF_ALL pointers special.
17094         (get_smt_for): Likewise.
17095         (may_alias_p): Re-structure.
17096         (is_escape_site): A ref-all pointer conversion is not an escape site.
17097         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
17098         PTR_IS_REF_ALL pointers special.
17099         * tree-ssa-structalias.h (struct alias_info): Remove
17100         ref_all_symbol_mem_tag field.
17101         (PTR_IS_REF_ALL): Remove.
17103 2008-04-29  Richard Guenther  <rguenther@suse.de>
17105         PR middle-end/36077
17106         * fold-const.c (extract_muldiv_1): In combining division constants
17107         make sure to never overflow.
17109 2008-04-29  Nick Clifton  <nickc@redhat.com>
17111         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
17113 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17115         PR bootstrap/35169
17116         * optc-gen.awk: Work around HP-UX/IA awk bug.
17118 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
17120         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
17121         2008-04-25 commit.
17123 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
17125         PR target/36073
17126         * config/i386/i386.md
17127         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
17128         Change operand 1 predicate to nonimmediate_operand.
17130 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
17132         PR debug/36060
17133         * dwarf2out.c (struct die_struct): Mark as chain_circular through
17134         die_sub field.
17135         * gengtype.c (walk_type, write_func_for_structure): Handle
17136         chain_circular.
17137         * doc/gty.texi: Document chain_circular.
17139 2008-04-28  Richard Guenther  <rguenther@suse.de>
17141         PR tree-optimization/36066
17142         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
17143         SCEV and loop.
17145 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
17147         PR target/36064
17148         * config/i386/i386.md
17149         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
17150         Use match_scratch instead of match_operand for operands 3 and 4.
17152 2008-04-27  Richard Guenther  <rguenther@suse.de>
17154         PR tree-optimization/18754
17155         PR tree-optimization/34223
17156         * tree-pass.h (pass_complete_unrolli): Declare.
17157         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
17158         loop size before and after unconditionally of UL_NO_GROWTH in effect.
17159         Rewrite loop into loop closed SSA form if it is not already.
17160         (tree_unroll_loops_completely): Re-structure to iterate over
17161         innermost loops with intermediate CFG cleanups.
17162         Unroll outermost loops only if requested or the code does not grow
17163         doing so.
17164         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
17165         loops are available.
17166         (tree_vectorize): Instead do so here.
17167         (tree_complete_unroll): Also unroll outermost loops.
17168         (tree_complete_unroll_inner): New function.
17169         (gate_tree_complete_unroll_inner): Likewise.
17170         (pass_complete_unrolli): New pass.
17171         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
17172         uses outside of the loop.
17173         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
17174         form if it is available.
17175         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
17176         * passes.c (init_optimization_passes): Schedule complete inner
17177         loop unrolling pass before the first CCP pass after final inlining.
17179 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
17181         * targhooks.h (default_emutls_var_fields,
17182         default_emutls_var_init): Declare.
17183         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
17184         * target.h (struct gcc_target): Add struct emutls member.
17185         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
17186         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
17187         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
17188         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
17189         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
17190         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
17191         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
17192         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
17193         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
17194         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
17195         emit debug information.
17196         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
17197         * varasm.c: Include targhooks.h.
17198         (emutls_object_section, emutls_tmpl_section): New.
17199         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
17200         (EMUTLS_SEPARATOR): New.
17201         (prefix_name): New.
17202         (get_emutls_object_name): New.
17203         (default_emutls_var_fields): New, broken out of ...
17204         (get_emutls_object_type): ... here.  Adjust to use target hooks.
17205         (get_emutls_init_templ_addr): Adjust to use target hooks.
17206         (emutls_decl): Adjust to use target hooks.
17207         (emutls_finish): Likewise.
17208         (default_emutls_var_init): New, broken out of ...
17209         (assemble_variable): ... here.  Adjust to use target hooks.
17210         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
17211         SECCAT_EMUTLS_TMPL.
17212         * c-common.c (handle_section_attribute): Prevent overriding
17213         sections for emulated tls with special sections.
17214         * config/i386/i386.c (x86_64_elf_select_section): Add
17215         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
17216         (x86_64_elf_unique_section): Likewise.
17217         * config/vxworks.c: Include tree.h.
17218         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
17219         (vxworks_override_options): Set TLS scheme.
17220         * doc/tm.texi (Emulated TLS): New node.
17222 2008-04-26  Simon Baldwin <simonb@google.com>
17224         PR c/35652
17225         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
17226         with propagated string constants.
17228 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
17230         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
17231         constraint for operand 2 when operand 0 is memory operand.
17232         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
17233         operand 0 is memory operand.
17234         (fix_trunc<mode>_i387_with_temp): Ditto.
17235         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
17236         operand 2 when operand 1 is memory operand.
17237         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
17238         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
17239         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
17240         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
17241         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
17242         operands 2,3 and 4 when operand 1 is memory operand.
17243         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
17244         is memory operand.
17245         (fistdi2_floor_with_temp): Ditto.
17246         (fist<mode>2_floor_with_temp): Ditto.
17247         (fistdi2_ceil_with_temp): Ditto.
17248         (fist<mode>2_ceil_with_temp): Ditto.
17249         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
17251 2008-04-26  David Daney  <ddaney@avtrex.com>
17253         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
17254         unspec_volitile.
17255         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
17256         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
17257         UNSPEC_UPDATE_GOT_VERSION): Renumber.
17258         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
17259         (compare_and_swap_12): New insn.
17260         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
17261         * config/mips/mips.c (mips_force_binary): New function.
17262         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
17263         (mips_expand_compare_and_swap_12): New function.
17264         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
17266 2008-04-25  Jan Hubicka  <jh@suse.cz>
17268         PR testsuite/35843
17269         * cfgexpand.c (pass_expand): Turn into RTL pass.
17270         * passes.c (execute_one_pass): Do pass typechecking after execution.
17271         * tree-pass.h (pass_expand): Turn into RTL pass.
17273         * function.h (struct rtl_data): Move here fields
17274         accesses_prior_frames, calls_eh_return, saves_all_registers,
17275         has_nonlocal_goto, has_asm_statement, is_thunk,
17276         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
17277         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
17278         arg_pointer_save_area_init from struct function; turn into bool.
17279         (struct function): Move
17280         calls_eh_return, saves_all_registers, has_nonlocal_goto,
17281         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
17282         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
17283         tail_call_emit, arg_pointer_save_area_init
17284         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
17285         (current_function_returns_struct, current_function_returns_pcc_struct,
17286         current_function_calls_setjmp, current_function_calls_alloca,
17287         current_function_accesses_prior_frames,
17288         current_function_calls_eh_return, current_function_is_thunk,
17289         current_function_stdarg, current_function_profile,
17290         current_function_limit_stack, current_function_uses_pic_offset_table,
17291         current_function_uses_const_pool, current_function_has_nonlocal_label,
17292         current_function_saves_all_registers,
17293         current_function_has_nonlocal_goto,
17294         current_function_has_asm_statement): Remove accesor macros.
17295         * ra-conflict.c (global_conflicts): Update.
17296         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
17297         (suitable_for_tail_call_opt_p): Update.
17298         * builtins.c (expand_builtin_return_addr): Update.
17299         (expand_builtin_setjmp_setup): Update.
17300         (expand_builtin_nonlocal_goto): Update.
17301         * final.c (final_start_function): Update.
17302         (profile_function): Update.
17303         (leaf_function_p): Update.
17304         (only_leaf_regs_used): Update.
17305         * df-scan.c (df_get_exit_block_use_set): Update.
17306         * dojump.c (clear_pending_stack_adjust): Update.
17307         * tree-stdarg.c (gate_optimize_stdarg): Update.
17308         * gimple-low.c (lower_function_body): Update.
17309         * global.c (compute_regsets): Update.
17310         (global_alloc): Update.
17311         * dwarf2out.c (dwarf2out_begin_prologue): Update.
17312         * expr.c (expand_assignment): Update.
17313         * dse.c (dse_step0): Update.
17314         (dse_step1): Update.
17315         * c-decl.c (store_parm_decls): Update.
17316         * local-alloc.c (combine_regs): Update.
17317         (find_free_reg): Update.
17318         * function.c (assign_parms_augmented_arg_list): Update.
17319         (assign_parm_find_data_types): Update.
17320         (assign_parms): Update.
17321         (allocate_struct_function): Update.
17322         (expand_function_start): Update.
17323         (expand_function_end): Update.
17324         (get_arg_pointer_save_area): Update.
17325         (thread_prologue_and_epilogue_insns): Update.
17326         (rest_of_match_asm_constraints): Update.
17327         * stor-layout.c (variable_size): Update.
17328         * gcse.c (gcse_main): Update.
17329         (bypass_jumps): Update.
17330         * gimplify.c (gimplify_function_tree): Update.
17331         * calls.c (emit_call_1): Update.
17332         (expand_call): Update.
17333         * bt-load.c (compute_defs_uses_and_gen): Update.
17334         * except.c (sjlj_assign_call_site_values): Update.
17335         (sjlj_emit_function_enter): Update.
17336         (can_throw_external): Update.
17337         (set_nothrow_function_flags): Update.
17338         (expand_builtin_unwind_init): Update.
17339         (expand_eh_return): Update.
17340         (convert_to_eh_region_ranges): Update.
17341         (output_function_exception_table): Update.
17342         * emit-rtl.c (gen_tmp_stack_mem): Update.
17343         * cfgexpand.c (expand_used_vars): Update.
17344         (tree_expand_cfg): Update.
17345         * cfgcleanup.c (rest_of_handle_jump): Update.
17346         * explow.c (allocate_dynamic_stack_space): Update.
17347         * varasm.c (assemble_start_function): Update.
17348         (force_const_mem): Update.
17349         (mark_constant_pool): Update.
17350         * tree-optimize.c (tree_rest_of_compilation): Update.
17351         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
17352         * tree-cfg.c (notice_special_calls): Update.
17353         (is_ctrl_altering_stmt): Update.
17354         (tree_can_make_abnormal_goto): Update.
17355         (tree_purge_dead_abnormal_call_edges): Update.
17356         * config/alpha/predicates.md: Update.
17357         * config/alpha/alpha.c (alpha_sa_mask): Update.
17358         (alpha_sa_size): Update.
17359         (alpha_does_function_need_gp): Update.
17360         (alpha_expand_prologue): Update.
17361         (alpha_start_function): Update.
17362         (alpha_output_function_end_prologue): Update.
17363         (alpha_expand_epilogue): Update.
17364         * config/frv/frv.c (frv_stack_info): Update.
17365         (frv_expand_epilogue): Update.
17366         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
17367         (s390_register_info): Update.
17368         (s390_frame_info): Update.
17369         (s390_init_frame_layout): Update.
17370         (s390_can_eliminate): Update.
17371         (save_gprs): Update.
17372         * config/spu/spu.c (spu_split_immediate): Update.
17373         (need_to_save_reg): Update.
17374         (spu_expand_prologue): Update.
17375         (spu_expand_epilogue): Update.
17376         * config/sparc/sparc.md: Update.
17377         * config/sparc/sparc.c (eligible_for_return_delay): Update.
17378         (sparc_tls_got): Update.
17379         (legitimize_pic_address): Update.
17380         (sparc_emit_call_insn): Update.
17381         (sparc_expand_prologue): Update.
17382         (output_return): Update.
17383         (print_operand): Update.
17384         (sparc_function_ok_for_sibcall): Update.
17385         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
17386         * config/m32r/m32r.md: Update.
17387         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
17388         (m32r_compute_frame_size): Update.
17389         (m32r_expand_prologue): Update.
17390         (m32r_expand_epilogue): Update.
17391         (m32r_legitimize_pic_address): Update.
17392         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
17393         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
17394         * config/i386/i386.c (ix86_frame_pointer_required): Update.
17395         (gen_push): Update.
17396         (ix86_save_reg): Update.
17397         (ix86_compute_frame_layout): Update.
17398         (ix86_expand_prologue): Update.
17399         (ix86_expand_epilogue): Update.
17400         * config/sh/sh.c (output_stack_adjust): Update.
17401         (calc_live_regs): Update.
17402         (sh5_schedule_saves): Update.
17403         (sh_expand_prologue): Update.
17404         (sh_expand_epilogue): Update.
17405         (sh_setup_incoming_varargs): Update.
17406         (sh_allocate_initial_value): Update.
17407         (sh_get_pr_initial_val): Update.
17408         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
17409         * config/sh/sh.md (label:): Update.
17410         * config/avr/avr.c (out_movhi_mr_r): Update.
17411         * config/crx/crx.h (enum): Update.
17412         * config/xtensa/xtensa.h (along): Update.
17413         * config/stormy16/stormy16.c Update.
17414         (xstormy16_compute_stack_layout): Update.
17415         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
17416         (fr30_expand_prologue): Update.
17417         * config/cris/cris.c (cris_conditional_register_usage): Update.
17418         (cris_reg_saved_in_regsave_area): Update.
17419         (cris_initial_frame_pointer_offset): Update.
17420         (cris_simple_epilogue): Update.
17421         (cris_expand_prologue): Update.
17422         (cris_expand_epilogue): Update.
17423         (cris_expand_pic_call_address): Update.
17424         (cris_asm_output_symbol_ref): Update.
17425         (cris_asm_output_label_ref): Update.
17426         * config/cris/cris.md Update.
17427         * config/iq2000/iq2000.c (compute_frame_size): Update.
17428         (iq2000_expand_epilogue): Update.
17429         * config/mt/mt.h (save_direction): Update.
17430         * config/mn10300/mn10300.c (mn10300_function_value): Update.
17431         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
17432         (ia64_secondary_reload_class): Update.
17433         * config/m68k/m68k.c (m68k_save_reg): Update.
17434         (m68k_expand_prologue): Update.
17435         (m68k_expand_epilogue): Update.
17436         (legitimize_pic_address): Update.
17437         * config/rs6000/rs6000.c (rs6000_got_register): Update.
17438         (first_reg_to_save): Update.
17439         (first_altivec_reg_to_save): Update.
17440         (compute_vrsave_mask): Update.
17441         (compute_save_world_info): Update.
17442         (rs6000_stack_info): Update.
17443         (spe_func_has_64bit_regs_p): Update.
17444         (rs6000_ra_ever_killed): Update.
17445         (rs6000_emit_eh_reg_restore): Update.
17446         (rs6000_emit_allocate_stack): Update.
17447         (rs6000_emit_prologue): Update.
17448         (rs6000_emit_epilogue): Update.
17449         (rs6000_output_function_epilogue): Update.
17450         (output_profile_hook): Update.
17451         (rs6000_elf_declare_function_name): Update.
17452         * config/rs6000/rs6000.h (rs6000_args): Update.
17453         * config/rs6000/rs6000.md: Update.
17454         * config/mcore/mcore.c (mcore_expand_prolog): Update.
17455         * config/arc/arc.c (arc_output_function_epilogue): Update.
17456         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
17457         * config/darwin.c (machopic_function_base_name): Update.
17458         * config/score/score3.c (score3_compute_frame_size): Update.
17459         (rpush): Update.
17460         (rpop): Update.
17461         (score3_epilogue): Update.
17462         * config/score/score7.c (score7_compute_frame_size): Update.
17463         (score7_prologue): Update.
17464         (score7_epilogue): Update.
17465         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
17466         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
17467         * config/arm/arm.c (use_return_insn): Update.
17468         (require_pic_register): Update.
17469         (arm_load_pic_register): Update.
17470         (arm_compute_save_reg0_reg12_mask): Update.
17471         (arm_compute_save_reg_mask): Update.
17472         (thumb1_compute_save_reg_mask): Update.
17473         (output_return_instruction): Update.
17474         (arm_output_function_prologue): Update.
17475         (arm_output_epilogue): Update.
17476         (arm_get_frame_offsets): Update.
17477         (arm_expand_prologue): Update.
17478         (thumb_pushpop): Update.
17479         (thumb_exit): Update.
17480         (thumb1_expand_prologue): Update.
17481         (thumb1_expand_epilogue): Update.
17482         (arm_unwind_emit): Update.
17483         (arm_output_fn_unwind): Update.
17484         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
17485         * config/arm/arm.md: Update.
17486         * config/pa/pa.md: Update.
17487         * config/pa/pa.c (legitimize_pic_address): Update.
17488         (compute_frame_size): Update.
17489         (hppa_expand_prologue): Update.
17490         (hppa_expand_epilogue): Update.
17491         (borx_reg_operand): Update.
17492         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
17493         (HARD_REGNO_RENAME_OK): Update.
17494         * config/mips/mips.c (mips_global_pointer): Update.
17495         (mips_save_reg_p): Update.
17496         (mips_compute_frame_info): Update.
17497         (mips_frame_pointer_required): Update.
17498         (mips_expand_prologue): Update.
17499         (mips_expand_epilogue): Update.
17500         (mips_can_use_return_insn): Update.
17501         (mips_reorg_process_insns): Update.
17502         * config/v850/v850.c (compute_register_save_size): Update.
17503         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
17504         * config/mmix/mmix.c (along): Update.
17505         (mmix_expand_epilogue): Update.
17506         * config/bfin/bfin.c (legitimize_pic_address): Update.
17507         (must_save_p): Update.
17508         (stack_frame_needed_p): Update.
17509         (add_to_reg): Update.
17510         (bfin_expand_prologue): Update.
17511         * stmt.c (expand_asm_operands): Update.
17512         * reload1.c (reload): Update.
17513         (init_elim_table): Update.
17515 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
17517         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
17519 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
17521         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
17522         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
17523         (mov<mode>): Removed.
17524         (*movv4sf_internal): Likewise.
17525         (*movv2df_internal): Likewise.
17527 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
17529         * config.gcc (crx-*-elf): Remove deprecation.
17531 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
17533         * config/i386/cygming-crtend.c (register_frame_ctor): Register
17534         __gcc_deregister_frame with atexit.
17535         (deregister_frame_dtor): Remove.
17537 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
17538             Nathan Sidwell  <nathan@codesourcery.com>
17540         * config/rs6000/rs6000.opt (mspe): Remove Var property.
17541         (misel): Likewise.
17542         * config/rs6000/rs6000.h (rs6000_spe): Declare.
17543         (rs6000_isel): Likewise.
17544         * config/rs6000/rs6000.c (rs6000_spe): New variable.
17545         (rs6000_isel): New variable.
17546         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
17548 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
17550         PR c++/35758
17551         * c-common.c (handle_vector_size_attribute): Call
17552         lang_hooks.types.reconstruct_complex_type instead of
17553         reconstruct_complex_type.
17554         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
17555         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
17556         * langhooks.h (struct lang_hooks_for_types): Add
17557         reconstruct_complex_type hook.
17558         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
17559         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
17561 2008-04-24  Richard Guenther  <rguenther@suse.de>
17563         * c-common.h (check_builtin_function_arguments): Declare.
17564         * c-common.c (validate_nargs): New function.
17565         (check_builtin_function_arguments): Likewise.
17566         * c-typeck.c (build_function_call): Call
17567         check_builtin_function_arguments.
17568         * builtins.c (fold_builtin_classify): Remove error reporting code.
17569         (fold_builtin_unordered_cmp): Likewise.
17570         (fold_builtin_1): Likewise.
17571         (fold_builtin_n): Likewise.
17573 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
17575         PR tree-optimization/36008
17576         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
17577         the original op1, rather than delta by step.
17579 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
17580             Sebastian Pop  <sebastian.pop@amd.com>
17582         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
17583         eliminate_local_variables_stmt, eliminate_local_variables,
17584         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
17585         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
17586         of code delimited by two edges in the CFG.
17587         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
17588         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
17589         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
17590         the case of parallelisation of reductions.
17591         (expr_invariant_in_region_p): New.
17593         * tree-flow.h (gather_blocks_in_sese_region): Declared.
17594         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
17596 2008-04-24  Ira Rosen  <irar@il.ibm.com>
17597             Richard Guenther  <rguenther@suse.de>
17599         PR tree-optimization/36034
17600         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
17601         incapable of dealing with loads with gaps.
17603 2008-04-24  Rafael Espindola  <espindola@google.com>
17605         * tree-flow.h (vrp_evaluate_conditional): Change signature.
17606         * tree-ssa-propagate.c (fold_predicate_in): Update call to
17607         vrp_evaluate_conditional.
17608         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
17609         (vrp_evaluate_conditional): Split the cond argument.
17610         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
17611         (simplify_stmt_for_jump_threading): Update call to
17612         vrp_evaluate_conditional.
17614 2008-04-24  Ira Rosen  <irar@il.ibm.com>
17616         PR tree-optimization/35982
17617         * tree-vect-analyze.c (vect_check_interleaving): Check that the
17618         interleaved data-refs are of the same type.
17620 2008-04-24  Danny Smith  <dannysmith@users.net>
17622         * c-format.c (check_format_info_main): Use strncmp rather than a
17623         magic prefix to handle multichar length specs.
17624         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
17625         Don't prefix "I64" and "I32" with '\0'.
17627 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
17629         PR target/36015
17630         * config/i386/i386.c (init_cumulative_args): Don't pass anything
17631         in registers for -m32 only if stdarg_p (fntype).
17633 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
17635         PR rtl-optimization/36006
17636         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
17637         temp to op0 in order to avoid invalid rtx sharing.
17639 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
17641         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
17642         check TREE_INVARIANT.
17643         * tree-gimple.c (is_gimple_address): New.
17644         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
17645         * tree-gimple.h (is_gimple_address): New.
17646         * tree.h (decl_address_invariant_p): New.
17647         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
17648         (build_string): Likewise.
17649         (decl_address_invariant_p): New, from is_gimple_invariant_address.
17650         (tree_invariant_p_1): Likewise.
17651         (save_expr): Use it.
17652         (tree_invariant_p): New.
17653         (skip_simple_arithmetic): Use it.
17654         (stabilize_reference_1): Use it.
17655         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
17656         simplify.
17657         (build1_stat): Drop code to compute TREE_INVARIANT.
17658         (build2_stat): Drop code to compute TREE_INVARIANT.
17659         (build3_stat): Drop code to compute TREE_INVARIANT.
17660         (build4_stat): Drop code to compute TREE_INVARIANT.
17661         (build5_stat): Drop code to compute TREE_INVARIANT.
17662         (build7_stat): Drop code to compute TREE_INVARIANT.
17663         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
17664         * tree.h (struct tree_base): Remove invariant_flag.
17665         (TREE_INVARIANT): Remove.
17666         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
17667         (fold_builtin_expect): Check TREE_CONSTANT.
17668         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
17669         * c-tree.h (c_expr_to_decl): Drop third parameter.
17670         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
17671         (build_c_cast): Don't set TREE_INVARIANT.
17672         (pop_init_level): Don't set TREE_INVARIANT.
17673         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
17674         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
17675         TREE_CONSTANT.
17676         (gimplify_init_constructor): Don't set TREE_INVARIANT.
17677         (gimplify_addr_expr): Adjust comment.
17678         * tree-mudflap.c (mf_build_string):
17679         * print-tree.c (print_node): Don't print TREE_INVARIANT.
17680         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
17681         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
17682         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
17683         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
17684         * langhooks.h (struct lang_hooks): Drop third parameter from
17685         expr_to_decl.
17687 2008-04-23  Richard Guenther  <rguenther@suse.de>
17689         PR tree-optimization/27799
17690         PR tree-optimization/32921
17691         PR tree-optimization/32624
17692         * tree-ssa-structalias.c (merge_smts_into): Only merge the
17693         SMTs aliases and the tag itself into the solution.
17694         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
17695         merge the points-to solution back into the SMT aliases.
17696         (may_alias_p): Use alias_set_subset_of instead of
17697         aliases_conflict_p.  A pointer which points to
17698         memory with alias set zero may access any variable.
17700 2008-04-23  Richard Guenther  <rguenther@suse.de>
17702         * alias.c (alias_set_subset_of): Correctly handle asking
17703         if zero is a subset of an alias set with zero child.
17704         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
17705         (compute_flow_insensitive_aliasing): Correctly walk all
17706         pointers.  Do not unnecessarily union sets.
17708 2008-04-23  Richard Guenther  <rguenther@suse.de>
17710         PR middle-end/36021
17711         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
17713 2008-04-22  Tomas Bily  <tbily@suse.cz>
17715         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
17716         unreachable case.
17717         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
17718         NON_LVALUE_EXPR.
17719         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
17720         * tree-ssa-structalias.c (get_constraint_for): Likewise.
17721         * tree-inline.c (estimate_num_insns_1): Likewise.
17722         * varasm.c (const_hash_1, compare_constant, copy_constant)
17723         (compute_reloc_for_constant, output_addressed_constants): Likewise.
17724         * emit-rtl.c (component_ref_for_mem_expr)
17725         (set_mem_attributes_minus_bitpos): Likewise.
17726         * expr.c (highest_pow2_factor, expand_expr_real_1, )
17727         (is_aligning_offset): Likewise.
17728         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
17729         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
17730         * dojump.c (do_jump): Likewise.
17731         * builtins.c (get_pointer_alignment, get_memory_rtx)
17732         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
17733         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
17735 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
17737         PR rtl-optimization/36017
17738         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
17739         expanding the library call.
17741 2008-04-22  Ian Lance Taylor  <iant@google.com>
17743         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
17744         than size_in_bytes.
17746 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
17748         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
17749         of LR/CTR moves for Power6.
17751 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
17753         PR middle-end/36003
17754         * passes.c (init_optimization_passes): Remove
17755         pass_fast_rtl_byte_dce.
17757 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
17759         PR target/29096
17760         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
17761         builtin functions to generate faster code.
17762         (_mm_cvtpu16_ps): Ditto.
17763         (_mm_cvtpi32x2_ps): Ditto.
17765 2008-04-22  Nick Clifton  <nickc@redhat.com>
17767         * common.opt (ftree-loop-distribution): Add Optimization
17768         attribute.
17770         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
17771         (frv_expand_builtin_va_start): Likewise.
17773         * config/arm/arm.c (thumb_find_work_register): Fix location of
17774         argument register count.
17776 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
17778         Support scheduling for ColdFire V1 and V3 microarchitecture.
17779         Improve scheduling of multiplication instructions.
17781         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
17782         (mac): New instruction attribute.
17783         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
17784         (m68k_sched_mac): New variable.
17785         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
17786         Handle cfv1 and cfv3.
17787         (max_insn_size): New static variable.
17788         (struct _sched_ib): New type.
17789         (sched_ib): New static variable.
17790         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
17791         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
17792         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
17793         Update.
17794         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
17795         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
17796         new variables.  Update.
17797         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
17798         Add modeling of cfv3 instruction buffer.  Update.
17799         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
17800         * config/m68k/m68k.h (TUNE_CFV3): New macro.
17801         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
17802         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
17803         a particular reservation applies to.
17804         (type2): Reorganize attribute values.  Rename alu to alu_reg,
17805         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
17806         to mul_l and mul_w.
17807         (cf_ib_*): Simplify description of instruction buffer.
17808         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
17809         (cf_mem): Split into cf_mem1 and cf_mem2.
17810         (cf_v2_move_??): Rename to cfv12_alu_??.
17811         (cf_v2_move_l_??): Rename to cfv12_omove_??.
17812         (cf_v2_mul_??): Remove reservations.
17813         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
17814         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
17815         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
17816         appropriate place.
17817         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
17818         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
17819         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
17820         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
17821         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
17822         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
17823         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
17824         expansions of the above reservations for instructions of sizes
17825         1, 2 and 3 words.
17827 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
17829         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
17831 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
17833         * coverage.c: Include tree-pass.h.
17834         (coverage_counter_alloc): Print da_file_name to the dump file.
17836 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
17838         * sbitmap.c (sbitmap_range_empty_p): New function.
17839         * sbitmap.h (sbitmap_range_empty_p): New function.
17840         * bitmap.h: Now includes obstack.h.
17842 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
17843             Kenneth Zadeck  <zadeck@naturalbridge.com>
17845         * dbgcnt.def (ra_byte_scan): Added.
17846         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
17847         when the last hit happens for a counter.
17848         * timevar.def (TV_DF_BYTE_LR): New variable.
17849         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
17850         * passes.c (pass_fast_rtl_byte_dce): New pass.
17851         * fwprop.c (update_df): Added mode to call df_ref_create.
17852         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
17853         DF_REF_EXTRACT_OFFSET.
17854         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
17855         DF_BYTE_LR_OUT, df_byte_lr): New macro.
17856         (df_mm): New enum.
17857         (df_ref_extract): Added mode field.
17858         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
17859         DF_REF_EXTRACT_OFFSET.
17860         (DF_REF_EXTRACT_MODE): New macro.
17861         (df_byte_lr_bb_info): New structure.
17862         (df_print_byte_regset, df_compute_accessed_bytes,
17863         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
17864         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
17865         df_byte_lr_simulate_uses,
17866         df_byte_lr_simulate_artificial_refs_at_top,
17867         df_byte_lr_simulate_artificial_refs_at_end,
17868         df_compute_accessed_bytes): New function.
17869         (df_ref_create): Add parameter.
17870         (df_byte_lr_get_bb_info): New inline function.
17871         * df-scan.c (df_ref_record, df_uses_record,
17872         df_ref_create_structure): Added mode parameter.
17873         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
17874         df_defs_record, df_uses_record, df_get_conditional_uses,
17875         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
17876         df_entry_block_defs_collect, df_exit_block_uses_collect):
17877         Added mode parameter to calls to df_ref_record, df_uses_record,
17878         df_ref_create_structure.
17879         (df_ref_equal_p, df_ref_compare): Added test for modes.
17880         (df_ref_create_structure): Added code to set mode.  Renamed
17881         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
17882         DF_REF_EXTRACT_OFFSET.
17883         * df-core.c (df_print_byte_regset): New function.
17884         * df-byte-scan.c: New file.
17885         * df-problems.c (df_rd_transfer_function): Removed unnecessary
17886         calls to BITMAP_FREE.
17887         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
17888         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
17889         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
17890         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
17891         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
17892         df_byte_lr_local_compute, df_byte_lr_init,
17893         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
17894         df_byte_lr_transfer_function, df_byte_lr_free,
17895         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
17896         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
17897         df_byte_lr_simulate_uses,
17898         df_byte_lr_simulate_artificial_refs_at_top,
17899         df_byte_lr_simulate_artificial_refs_at_end): New function.
17900         * dce.c (byte_dce_process_block): New function.
17901         (dce_process_block): au is now passed in rather than computed
17902         locally.  Changed loops that look at artificial defs to not look
17903         for conditional or partial ones, because there never are any.
17904         (fast_dce): Now is able to drive byte_dce_process_block or
17905         dce_process_block depending on the kind of dce being done.
17906         (rest_of_handle_fast_dce): Add parameter to fast_dce.
17907         (rest_of_handle_fast_byte_dce): New function.
17908         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
17909         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
17911 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
17913         PR fortran/35019
17914         * gcc.h: Added fortran options that take arguments to
17915         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
17916         macros.
17918 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
17920         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
17921         scalarization if on the LHS and not a full access.
17923 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17925         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
17927 2008-04-18  Rafael Espindola  <espindola@google.com>
17929         * tree-vrp.c (find_case_label_index): Fix the binary search.
17930         (find_case_label_range): New.
17931         (vrp_visit_switch_stmt): Use find_case_label_range.
17932         (simplify_switch_using_ranges): Use find_case_label_range.
17934 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
17936         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
17937         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
17939 2008-04-18  Tom Tromey  <tromey@redhat.com>
17941         PR libcpp/15500:
17942         * doc/cpp.texi (Implementation-defined behavior): Mention
17943         -finput-charset.
17945 2008-04-18  Ian Lance Taylor  <iant@google.com>
17947         * fold-const.c (pointer_may_wrap_p): New static function.
17948         (fold_comparison): Add another test for pointer overflow.  Use
17949         pointer_may_wrap_p to disable some false positives.
17951 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
17953         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
17954         (fname_as_string): Match updated cpp_interpret_string prototype.
17955         (fix_string_type): Support char16_t* and char32_t*.
17956         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
17957         derivative) nodes.  Register as builtin if C++0x.
17958         (c_parse_error): Support CPP_CHAR{16,32}.
17959         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
17960         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
17961         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
17962         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
17963         CTI_CHAR32_ARRAY_TYPE>: New elements.
17964         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
17965         char32_type_node, signed_char32_type_node, char16_array_type_node,
17966         char32_array_type_node): New defines.
17967         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
17968         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
17969         (lex_string): Support CPP_STRING{16,32}, match updated
17970         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
17971         (lex_charconst): Support CPP_CHAR{16,32}.
17972         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
17973         and CPP_STRING{16,32}.
17975 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
17977         PR bootstrap/35457
17978         * aclocal.m4: Regenerate.
17979         * configure: Regenerate.
17981 2008-04-18  Jan Hubicka  <jh@suse.cz>
17983         * except.c (dw2_size_of_call_site_table,
17984         sjlj_size_of_call_site_table): Use vector API for call_site_record.
17986         * cgraphbuild.c (build_cgraph_edges): Update.
17987         * tree-pass.h: Update comment.
17988         * final.c (leaf_function_p): Update.
17989         (leaf_renumber_regs): Update.
17990         (rest_of_clean_state): Update.
17991         * omp-low.c (expand_omp_parallel): Update.
17992         * ipa-reference.c (analyze_function): Update.
17993         * reorg.c (find_end_label): Update.
17994         (optimize_skip): Update.
17995         (fill_simple_delay_slots): Update.
17996         (fill_simple_delay_slots): Update.
17997         (make_return_insns): Update.
17998         (dbr_schedule): Update.
17999         * gimple-low.c (record_vars_into): Update.
18000         * cfgbuild.c (make_edges): Update.
18001         * function.c (assign_stack_local): Update.
18002         (assign_parm_adjust_stack_rtl): Update.
18003         (locate_and_pad_parm): Update.
18004         (allocate_struct_function): Do not initialize stack_alignment_needed
18005         and preferred_stack_boundary here.
18006         (stack_protect_prologue): Update.
18007         (stack_protect_epilogue): Update.
18008         (expand_function_start): Initialize stack_alignment_needed,
18009         preferred_stack_boundary and max_jumptable_ents.
18010         (expand_function_end): Update.
18011         (free_after_compilation): Do not NULLify epilogue_delay_list.
18012         * function.h (struct rtl_data): Add stack_protect_guard,
18013         stack_alignment_needed,
18014         preferred_stack_boundary, epilogue_delay_list.
18015         (struct function): Remove value_histograms, stack_alignment_needed,
18016         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
18017         last_label_uid,
18018         unexpanded_var_list, stack_protect_guard.
18019         (current_function_epilogue_delay_list): Remove.
18020         * ipa-type-escape.c (analyze_function): Update.
18021         * gimplify.c (pop_gimplify_context): Update comment.
18022         * calls.c (expand_call): Update.
18023         (emit_library_call_value_1): Update.
18024         * except.c (set_nothrow_function_flags): Update.
18025         * cfgexpand.c (get_decl_align_unit): Update.
18026         (create_stack_guard): Update.
18027         (estimated_stack_frame_size): Update.
18028         (expand_used_vars): Update.
18029         (tree_expand_cfg): Free histogram earliers, init expansion variables.
18030         * explow.c (allocate_dynamic_stack_space): Update.
18031         * tree-ssa-live.c (remove_unused_locals): Update.
18032         * varasm.c (mark_constant_pool): Update.
18033         * tree-inline.c (remap_decls): Update.
18034         (initialize_cfun): Update.
18035         (declare_return_variable): Update.
18036         (inline_forbidden_p): Update.
18037         (expand_call_inline): Update.
18038         (declare_inline_vars): Update.
18039         (tree_function_versioning): Update.
18040         * tree-flow.h (value_histograms): New.
18041         (VALUE_HISTOGRAMS): New macro.
18042         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
18043         last_label_uid.
18044         * tree-cfg.c (set_bb_for_stmt): Update.
18045         (replace_by_duplicate_decl): Update.
18046         (move_block_to_fn): Update.
18047         (new_label_mapper): Update.
18048         (dump_function_to_file): Update.
18049         * ipa-struct-reorg.c (build_data_structure): Update.
18050         * cfgrtl.c (print_rtl_with_bb): Update.
18051         * reload1.c (reload): Update.
18052         (reload): Update.
18053         * config/i386/i386.c (setup_incoming_varargs_64,
18054         ix86_compute_frame_layout): Update.
18055         * config/arc/arc.c (arc_output_function_epilogue): Update.
18057 2008-04-18  Marius Strobl <marius@FreeBSD.org>
18059         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
18060         for FreeBSD as well.
18061         * gthr-posix95.h: Likewise.
18063 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
18065         PR rtl-optimization/35838
18066         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
18067         out the byte offset of the first subreg.
18069 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
18071         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
18072         to split_ti instead of three separate calls with single member arrays.
18073         (subti3 splitter): Ditto.
18074         (adddi3 splitter): Ditto with split_di.
18075         (subdi3 splitter): Ditto.
18076         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
18077         two separate calls with single member arrays.  Swap match_dup
18078         operands 1 and 2 to better fit into the array.
18079         (negdi2 splitter): Ditto with split_di.
18080         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
18081         two separate calls with single member arrays.  Swap match_dup operands
18082         6 and 7 to better fit into the array.
18084 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
18086         * config/i386/i386.c (sse_builtin_type): New.
18087         (bdesc_sse_args): Likewise.
18088         (bdesc_sse_3arg): Removed.
18089         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
18090         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
18091         IX86_BUILTIN_ROUNDPS.
18092         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
18093         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
18094         IX86_BUILTIN_ROUNDPS.
18095         (ix86_expand_sse_4_operands_builtin): Removed.
18096         (ix86_expand_sse_operands_builtin): New.
18097         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
18098         and CODE_FOR_sse4_1_roundps.
18099         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
18100         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
18102 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
18104         PR target/35907
18105         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
18106         regs before frame pop when needed.  If use_backchain_to_restore_sp
18107         then load backchain into a temp reg to restore vr and vrsave.  Add
18108         code to restore vr after frame pop if possible.
18110 2008-04-17  Richard Guenther  <rguenther@suse.de>
18112         * tree-vn.c (expressions_equal_p): Do not check type
18113         equality or compatibility before calling operand_equal_p.
18114         * fold-const.c (operand_equal_p): Check equivalence of
18115         integer constants before bailing out due to signedness or
18116         precision differences.
18117         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
18118         spurious differences in type qualification.  Ignore types
18119         for COMPONENT_REFs at all.
18121 2008-04-17  Christian Bruel  <christian.bruel@st.com>
18123         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
18124         msw_skip comparison.
18126 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
18128         PR c/35739
18129         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
18130         reg type.
18132         PR tree-optimization/35899
18133         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
18134         rather than TREE_OPERAND.
18136 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
18138         PR target/35944
18139         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
18140         temporary registers.  Change operand predicate to general_operand.
18141         (remainderxf3): Ditto.
18143 2008-04-16  Richard Guenther  <rguenther@suse.de>
18145         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
18146         * tree-affine.c (aff_combination_expand): Look through some
18147         conversions.
18149 2008-04-15  Doug Kwan  <dougkwan@google.com>
18151         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
18152         for hex printing.
18153         * tree-pretty-print.c (dump_generic_node): Ditto.
18154         * final.c (output_addr_const): Ditto.
18155         * dwarf2out.c (output_cfi): Ditto.
18156         * c-pretty-print.c (pp_c_integer_constant): Ditto.
18157         * print-rtl.c (print_rtx): Ditto.
18158         * print-tree.c (print_node_brief, print_node): Ditto.
18159         * c-common.c (match_case_to_enum_1): Ditto.
18160         * sched-vis.c (print_value): Ditto.
18161         * config/i386/i386.c (print_operand): Cast to long unsigned int
18162         for hex printing.
18164 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
18165         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
18166         MS Windows VirtualProtect function.
18168 2008-04-15  Jan Hubicka  <jh@suse.cz>
18170         * gengtype.c (write_root): Param_is argument is OK.
18171         * expr.c (expand_expr_real_1): Update call of get_exception_*.
18172         * function.h: Include varray.h
18173         (rtl_eh): New stucture based on except.c one.
18174         (call_site_record): New forward declaration and vector type.
18175         * calls.c (emit_call_1): Do not call
18176         note_current_region_may_contain_throw.
18177         * except.c (eh_status): Remove cur_region, try_region since they are
18178         unused.
18179         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
18180         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
18181         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
18182         Remove call_site_data_used, call_site_data_size.
18183         Turn call_site_record into vector in function.h.
18184         (note_current_region_may_contain_throw): Remove.
18185         (get_exception_pointer, get_exception_filter): Do not take struct
18186         function argument; update.
18187         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
18188         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
18189         build_post_landing_pads, dw2_build_landing_pads,
18190         sjlj_assign_call_site_values, sjlj_mark_call_sites,
18191         sjlj_emit_function_enter, sjlj_emit_function_enter,
18192         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
18193         sjlj_build_landing_pads, finish_eh_generation,
18194         remove_exception_handler_label, remove_eh_handler,
18195         maybe_remove_eh_handler, add_reachable_handler,
18196         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
18197         add_action_record, collect_one_action_chain, add_call_site,
18198         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
18199         sjlj_output_call_site_table, output_function_exception_table,
18200         * except.h (note_current_region_may_contain_throw): Remove
18201         (get_exception_pointer, get_exception_filter): Do not take struct
18202         function argument.
18203         * Makefile.in (GTFILES): Put varargs before struct function.
18205 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
18207         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
18208         punt for STRING_CST.
18209         (get_constraint_for): Deal with STRING_CST here instead.
18211 2008-04-15  Richard Guenther  <rguenther@suse.de>
18213         * tree-ssa-propagate.c (substitute_and_fold): Substitute
18214         statements in a basic-block with a backward walk.  Do not
18215         substitute into dead statements but instead remove those.
18217 2008-04-15  Richard Guenther  <rguenther@suse.de>
18219         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
18220         to zero, thus disable creation of SFTs.
18222 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
18224         * tree-predcom.c (suitable_reference_p): Return false if the
18225         reference can throw.
18227 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
18229         PR c/35751
18230         * c-decl.c (finish_decl): If extern or static var has variable
18231         size, set TREE_TYPE (decl) to error_mark_node.
18233 2008-04-15  Rafael Espindola  <espindola@google.com>
18235         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
18236         variable arg1.
18238 2008-04-15  Richard Guenther  <rguenther@suse.de>
18240         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
18241         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
18242         (visit_reference_op_load): Do walk vuse-vdef chains on
18243         vn_reference_lookup.
18244         (visit_reference_op_store): But do not here.
18245         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
18246         vn_reference_lookup.
18247         (vn_lookup_with_vuses): But do so here.
18249 2008-04-14  Ian Lance Taylor  <iant@google.com>
18251         * fold-const.c (fold_overflow_warning): Remove assertion.
18253 2008-04-15  Ben Elliston  <bje@au.ibm.com>
18255         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
18256         temp1 local variables.
18258 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
18260         PR target/35661
18261         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
18262         ".text.unlikely" section as executable.
18264 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
18266         * config/ia64/ia64.c (rtx_needs_barrier): Handle
18267         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
18268         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
18269         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
18270         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
18271         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
18272         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
18274 2008-04-14  Ian Lance Taylor  <iant@google.com>
18276         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
18277         * fold-const.c (fold_comparison): If appropriate, test
18278         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
18279         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
18280         reassociating a pointer type.
18281         * doc/invoke.texi (Optimize Options): Document that
18282         -fstrict-overflow applies to pointer wraparound.
18284 2008-04-13  Jan Hubicka  <jh@suse.cz>
18286         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
18288 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
18290         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
18291         we are going to "save the world".
18293 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
18295         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
18296         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
18297         operand 0 constraint, not "=".
18299 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
18301         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
18303 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
18305         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
18306         of size of positions_needed * CHAR_BIT.
18308 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
18310         PR middle-end/35897
18311         * dse.c (store_info): Change positions_needed to unsigned
18312         HOST_WIDE_INT.
18313         (lowpart_bitmask): New.
18314         (record_store): Cast to unsigned HOST_WIDE_INT for
18315         positions_needed.  Assert width <= size of positions_needed *
18316         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
18317         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
18318         lowpart_bitmask to set mask.
18320 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
18322         * config/bfin/constraints.md: New file.
18323         * config/bfin/bfin.md: Include it.
18324         (adddi3): Use satisfies_constraint functions instead of the old macros.
18325         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
18326         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
18327         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
18328         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
18329         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
18330         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
18331         EXTRA_CONSTRAINT): Delete.
18332         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
18333         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
18334         of the old macros.
18335         * config/bfin/bfin.c: Include "tm-constrs.h".
18336         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
18337         Use satisfies_constraint functions instead of the old macros.
18338         * doc/md.texi (Blackfin Constraints): Update file name reference.
18340 2008-04-11  Richard Guenther  <rguenther@suse.de>
18342         PR tree-optimization/35869
18343         * tree-vrp.c (execute_vrp): Move switch statement update after
18344         jump threading.  Schedule another cfg cleanup run.
18346 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
18348         PR c/35744
18349         * attribs.c (decl_attributes): Return early on errorneous node.
18351 2008-04-10  Oleg Ryjkov  <olegr@google.com>
18353         * tree.h (struct tree_base): Added a new flag default_def_flag.
18354         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
18356 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
18358         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
18360 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18362         PR target/35768
18363         * pa.md: Define mode iterator P.  Define mode attribute dwc.
18364         (dcacheflush): Update pattern to use iterator P and attribute dwc.
18365         (icacheflush): Likewise.
18366         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
18367         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
18369 2008-04-11  Ben Elliston  <bje@au.ibm.com>
18371         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
18373 2008-04-10  Rafael Espindola  <espindola@google.com>
18375         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
18376         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
18377         (extract_range_from_expr): The same.
18379 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
18381         * config/mips/mips.md (GPR2): New mode iterator.
18382         (seq): Add comment.
18383         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
18384         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
18385         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
18386         Rewrite these to take two modes, the mode of comparison and the
18387         mode of the destination.
18388         * config/mips/mips.c (mips_expand_scc): Instead of having
18389         paradoxical subreg as destination, expand "narrowing" scc if mode
18390         of comparison is SI and target is requested in DI mode.
18391         (mips_emit_int_order_test): Update comment.  Make mode of
18392         comparison match CMP0 rather than TARGET.  When creating inverse
18393         target use mode of TARGET.
18395 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
18397         * gcov-dump.c (tag_summary): Only print summaries for the first
18398         GCOV_COUNTERS_SUMMABLE counters.
18400 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
18402         * config/i386/i386.md (absneg): New code iterator.
18403         (absnegprefix): New code attribute.
18404         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
18405         patterns using absneg code iterator.
18406         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
18407         using absneg code iterator.
18408         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
18409         *neg<mode>2 patterns using absneg code iterator.
18410         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
18411         *negextendsfdf2 patterns using absneg code iterator.
18412         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
18413         *negextendsfxf2 patterns using absneg code iterator.
18414         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
18415         *negextendsfdf2 patterns using absneg code iterator.
18416         * config/i386/sse.md (<code><mode>2): Macroize expander from
18417         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
18419 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
18421         * config/s390/s390.h: Remove the remains of the recent search
18422         & replace action of current_function_outgoing_args_size.
18424 2008-04-10  Ira Rosen  <irar@il.ibm.com>
18426         PR tree-optimization/35821
18427         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
18428         NEW_STMT_LIST is not NULL.
18430 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
18432         PR libstdc++/35597
18433         * toplev.c (process_options): Remove -ffunction-sections debugging
18434         warning.
18436 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
18438         PR middle-end/PR28690
18439         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
18440         than gen_rtx_fmt_ee to perform more canonicalizations.
18442 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18444         PR driver/35665
18445         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
18447 2008-04-09  Richard Guenther  <rguenther@suse.de>
18449         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
18450         (dump_function_to_file): Dump function arguments with types.
18452 2008-04-08  Richard Guenther  <rguenther@suse.de>
18454         * fold-const.c (fold_widened_comparison): Do not allow
18455         sign-changes that change the result.
18457 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
18459         PR target/35839
18460         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
18461         kinds of indirect references.
18463 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
18465         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
18466         GNU Fortran language string.
18468 2008-04-08  Rafael Espindola  <espindola@google.com>
18470         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
18471         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
18472         * tree.h (tree_call_nonnegative_warnv_p): New.
18474 2008-04-08  Jan Hubicka  <jh@suse.cz>
18476         * function.c (free_after_compilation): Clear out regno_reg_rtx
18477         pointer.
18479 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
18481         Revert
18482         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
18484         PR middle-end/PR28690
18485         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
18486         same precedence as REG_POINTER and MEM_POINTER operands.
18488 2008-04-08  Richard Guenther  <rguenther@suse.de>
18490         PR middle-end/35834
18491         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
18492         for adding index to base.
18494 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
18496         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
18497         (MINGW_ENABLE_EXECUTE_STACK): New.
18498         (IN_LIBGCC2): For libgcc include windows.h file for
18499         function declarations.
18501 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
18503         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
18504         and tem2 if tem1 is not a REG or MULT.
18506 2008-04-08  Jan Hubicka  <jh@suse.cz>
18508         * function.h (incomming_args): Break out of struct function.
18509         (function_subsections): Break out of struct function.
18510         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
18511         return_rtx and hard_reg_initial_vals from struct function.
18512         Kill inl_max_label_num.
18513         (current_function_pops_args, current_function_args_info,
18514         current_function_args_size, current_function_args_size,
18515         current_function_pretend_args_size,
18516         current_function_outgoing_args_size,
18517         current_function_internal_arg_pointer, current_function_return_rtx):
18518         Kill compatibility accestor macros.
18519         * builtins.c (expand_builtin_apply_args_1): Update.
18520         (expand_builtin_next_arg): Update.
18521         * df-scan.c (df_get_call_refs): Update.
18522         * dbxout.c (dbxout_function_end): Update.
18523         * dwarf2out.c (dwarf2out_switch_text_section): Update.
18524         (output_line_info): Update.
18525         (secname_for_decl): Update.
18526         (dwarf2out_var_location): Update.
18527         * function.c (free_after_compilation): Update.
18528         (assign_parm_find_stack_rtl): Update.
18529         (assign_parms): Update.
18530         (expand_dummy_function_end): Update.
18531         (expand_function_end): Update.
18532         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
18533         (expand_call): Update.
18534         (emit_library_call_value_1): Update.
18535         (store_one_arg): Update.
18536         * varasm.c (initialize_cold_section_name): Update.
18537         (unlikely_text_section): Update.
18538         (unlikely_text_section_p): Update.
18539         (assemble_start_function): Update.
18540         (assemble_end_function): Update.
18541         (default_section_type_flags): Update.
18542         (switch_to_section): Update.
18543         * integrate.c (set_decl_abstract_flags): Update.
18544         (get_hard_reg_initial_val): Update.
18545         (has_hard_reg_initial_val): Update.
18546         (allocate_initial_values): Update.
18547         * resource.c (init_resource_info): Update.
18548         * config/alpha/alpha.c (NUM_ARGS): Update.
18549         (direct_return): Update.
18550         (alpha_va_start): Update.
18551         (alpha_sa_size): Update.
18552         (alpha_initial_elimination_offset): Update.
18553         (alpha_expand_prologue): Update.
18554         (alpha_start_function): Update.
18555         (alpha_expand_epilogue): Update.
18556         (unicosmk_initial_elimination_offset):
18557         * config/alpha/alpha.md (call expander): Update.
18558         * config/s390/s390.c (s390_register_info): Update.
18559         (s390_register_info): Update.
18560         (s390_frame_info): Update.
18561         (s390_initial_elimination_offset): Update.
18562         (s390_build_builtin_va_list): Update.
18563         (s390_va_start): Update.
18564         * config/spu/spu.c (direct_return): Update.
18565         (spu_expand_prologue): Update.
18566         (spu_initial_elimination_offset): Update.
18567         (spu_build_builtin_va_list): Update.
18568         (spu_va_start): Update.
18569         * config/sparc/sparc.c (sparc_init_modes): Update.
18570         (sparc_compute_frame_size): Update.
18571         (function_value): Update.
18572         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
18573         * config/i386/i386.md (return expander): Update.
18574         * config/i386/i386.c (ix86_va_start): Update.
18575         (ix86_can_use_return_insn_p): Update.
18576         (ix86_compute_frame_layout): Update.
18577         (ix86_expand_epilogue): Update.
18578         * config/sh/sh.c (output_stack_adjust): Update.
18579         (calc_live_regs): Update.
18580         (sh_expand_prologue): Update.
18581         (sh_builtin_saveregs): Update.
18582         (sh_va_start): Update.
18583         (initial_elimination_offset): Update.
18584         (sh_allocate_initial_value): Update.
18585         (sh_function_ok_for_sibcall): Update.
18586         (sh_get_pr_initial_val): Update.
18587         * config/sh/sh.md (return expander): Update.
18588         * config/avr/avr.c (frame_pointer_required_p): UPdate.
18589         * config/crx/crx.c (crx_compute_frame): UPdate.
18590         (crx_initial_elimination_offset): UPdate.
18591         * config/xtensa/xtensa.c (compute_frame_size): Update
18592         (xtensa_builtin_saveregs): Update.
18593         (xtensa_va_start): Update.
18594         (order_regs_for_local_alloc): Update.
18595         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
18596         (xstormy16_expand_builtin_va_start): Update.
18597         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
18598         * config/m68hc11/m68hc11.md (return expanders): Update.
18599         * config/m68hc11/m68hc11.c (expand_prologue): Update.
18600         (expand_epilogue): Update.
18601         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
18602         (cris_simple_epilogue): Update.
18603         (cris_expand_prologue): Update.
18604         (cris_expand_epilogue): Update.
18605         * config/iq2000/iq2000.c (iq2000_va_start): Update.
18606         (compute_frame_size): Update.
18607         * config/mt/mt.c (mt_compute_frame_size): Update.
18608         * config/mn10300/mn10300.c (expand_prologue): Update.
18609         (expand_epilogue): Update.
18610         (initial_offset): Update.
18611         (mn10300_builtin_saveregs):
18612         * config/mn10300/mn10300.md (return expander): Update.
18613         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
18614         (ia64_initial_elimination_offset): Update.
18615         (ia64_initial_elimination_offset): Update.
18616         (ia64_expand_prologue): Update.
18617         * config/m68k/m68k.md (return expander): Update.
18618         * config/rs6000/rs6000.c (rs6000_va_start): Update.
18619         (rs6000_stack_info): Update.
18620         * config/mcore/mcore.c (layout_mcore_frame): Update.
18621         (mcore_expand_prolog): Update.
18622         * config/arc/arc.c (arc_compute_frame_size): Update.
18623         * config/score/score3.c (score3_compute_frame_size): Update.
18624         * config/score/score7.c (score7_compute_frame_size): Update.
18625         * config/arm/arm.c (use_return_insn): Update.
18626         (thumb_find_work_register): Update.
18627         (arm_compute_save_reg_mask): Update.
18628         (arm_output_function_prologue): Update.
18629         (arm_output_epilogue): Update.
18630         (arm_size_return_regs): Update.
18631         (arm_get_frame_offsets): Update.
18632         (arm_expand_prologue): Update.
18633         (thumb_exit): Update.
18634         (thumb_unexpanded_epilogue): Update.
18635         (thumb1_output_function_prologue): Update.
18636         * config/pa/pa.md (return expander): Update.
18637         * config/pa/pa.c (compute_frame_size): Update.
18638         (hppa_builtin_saveregs): Update.
18639         * config/mips/mips.c (mips_va_start): Update.
18640         (mips16_build_function_stub): Update.
18641         (mips_compute_frame_info): Update.
18642         (mips_restore_gp): Update.
18643         (mips_output_function_prologue): Update.
18644         (mips_expand_prologue): Update.
18645         * config/v850/v850.c (compute_frame_size): Update.
18646         (expand_prologue): * config/mmix/mmix.c (along): update.
18647         (mmix_initial_elimination_offset): update.
18648         (mmix_reorg): update.
18649         (mmix_use_simple_return): update.
18650         (mmix_expand_prologue): update.
18651         (mmix_expand_epilogue): Update.
18652         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
18653         (emit_link_insn): Update.
18655 2008-04-08  Anatoly Sokolov <aesok@post.ru>
18657         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
18658         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
18659         instructions.
18660         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
18661         atmega103 device.
18663 2008-04-07  Jan Hubicka  <jh@suse.cz>
18665         * function.h (rtl): Rename to x_rtl.
18666         (crtl): New define.
18667         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
18668         frame_offset, stack_check_probe_note, arg_pointer_save_area,
18669         used_temp_slots avail_temp_slots, temp_slot_level,
18670         nonlocal_goto_handler_labels): Update accesstors.
18671         (rtl): New global variable.
18672         (struct function): Move some fileds to rtl_data.
18673         (get_arg_pointer_save_area): Update prototype.
18674         * builtins.c (expand_builtin_setjmp_receiver): Update call of
18675         get_arg_pointer_save_area.
18676         * expr.c (init_expr): Update
18677         * function.c (get_frame_size): Update
18678         (assign_stack_local): Update
18679         (expand_function_end): Update.
18680         (get_art_pointer_save_area): Update
18681         * function.h
18682         * emit-rtl.c (rtl): Declare.
18683         (regno_reg_rtx): Declare.
18684         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
18685         Update.
18686         (gen_reg_rtx): Update.
18687         * varasm.c (n_deferred_constatns): Update accestor.
18688         (init_varasm_status): Do not allocate varasm_status.
18689         (force_const_mem, get_pool_size, output_constant_pool): Update.
18690         * stmt.c (force_label_rtx): Do not use x_ prefixes.
18691         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
18692         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
18693         * sparc/sparc.h (INIT_EXPANDERS): Update.
18694         * ia64/ia64.h (INIT_EXPANDERS): Update.
18696 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
18698         * reload.c (push_secondary_reload): Add missing break to for loop.
18700 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
18702         PR middle-end/PR28690
18703         * rtlanal.c: Update copyright years.
18704         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
18705         as REG_POINTER and MEM_POINTER operands.
18706         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
18707         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
18708         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
18709         * gcse.c: Update copyright years.
18710         (pre_delete): Call gen_reg_rtx_and_attrs.
18711         (hoist_code): Likewise.
18712         (build_store_vectors): Likewise.
18713         (delete_store): Likewise.
18714         * loop-invariant.c (move_invariant_reg): Likewise.
18715         Update copyright years.
18717 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
18719         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
18720         control string instead of quoted.
18722 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
18724         * doc/rtl.texi: Rewrite of subreg section.
18726 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
18728         PR/35842
18729         * config/i386/i386.c (legitimize_pic_address): Add treating
18730         of dllimport SYM_REF's.
18731         (legitimize_dllimport_symbol): Add prototype.
18733 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
18735         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
18736         reference in constructor with non self-referential type.
18738 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
18740         Removal of Return with Depressed Stack Pointer support
18741         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
18742         (ECF_SP_DEPRESSED): Likewise.
18743         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
18744         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
18745         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
18746         (expand_call): Do not test ECF_SP_DEPRESSED.
18747         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
18748         * function.c (keep_stack_depressed): Delete.
18749         (handle_epilogue_set): Likewise.
18750         (update_epilogue_consts): Likewise.
18751         (emit_equiv_load): Likewise.
18752         (thread_prologue_and_epilogue_insns): Remove support for Return with
18753         Depressed Stack Pointer.
18754         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
18756 2008-04-06  Richard Guenther  <rguenther@suse.de>
18758         PR tree-optimization/35400
18759         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
18760         information from SSA_NAMEs.
18762 2008-04-06  Anatoly Sokolov <aesok@post.ru>
18764         * config/avr/avr.h (avr_mega_p): Remove declaration.
18765         (AVR_MEGA): Remove macro.
18766         * config/avr/avr.c (avr_mega_p): Remove variable.
18767         (avr_override_options): Remove inicializion of avr_mega_p.
18768         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
18769         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
18770         (avr_jump_mode): (Ditto.).
18771         (avr_output_progmem_section_asm_op): (Ditto.).
18772         (avr_asm_init_sections): (Ditto.).
18773         (avr_asm_init_sections): (Ditto.).
18774         (avr_rtx_costs): (Ditto.).
18775         * config/avr/avr.md: (Ditto.).
18776         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
18777         '__AVR_MEGA__'.
18779 2008-04-06  Richard Guenther  <rguenther@suse.de>
18781         PR tree-optimization/35842
18782         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
18783         is_gimple_invariant_address.
18785 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18787         * gcc.c (default_compilers): Sync Fortran extensions list with
18788         that in fortran/lang-specs.h.
18789         * doc/invoke.texi: Likewise.
18790         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
18791         * dwarf2out.c (gen_compile_unit_die): Likewise.
18793 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
18795         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
18797 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
18799         PR target/12329
18800         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
18801         attribute is used for nested functions.
18803 2008-04-05  Jan Hubicka  <jh@suse.cz>
18805         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
18807         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
18808         letter argument.
18809         (dump_files): Update.
18810         (enable_rtl_dump_file): Do not accept letter argument.
18811         * tree-pass.h (dump_file_info): Remove letter argument.
18812         * toplev.c (decode_d_option): Update -da handling.
18813         * toplev.h (enable_rtl_dump_file): Update prototype.
18814         * passes.c (register_one_dump_file): Do not accept IPA argument; work
18815         it out based on pass type.
18816         (register_dump_files_1): Likewise.
18817         (init_optimization_passes): Update register_one_dump_file calls.
18818         (execute_one_pass): Sanity check that IPA passes are called at IPA
18819         level and RTL passes at RTL level.
18820         (execute_pass_list): IPA pass can not be after or subpass of
18821         GIMPLE/RTL pass.
18822         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
18823         disallov RTL subpasses of IPA subpasses.
18825 2008-04-05  Ben Elliston  <bje@au.ibm.com>
18827         * tree-cfg.c (need_fake_edge_p): Return false for calls to
18828         builtins that return exactly once and do not throw. Cache call to
18829         call_expr_flags.
18831 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
18833         PR rtl-optimization/34916
18834         PR middle-end/35519
18835         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
18836         between instruction pairs.
18838 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
18840         * doc/invoke.texi: Document -mbitops for SH.
18841         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
18842         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
18843         * config/sh/sh.c (print_operand): Add %t operand code.
18844         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
18845         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
18846         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
18847         (extendqihi2): Likewise.
18848         (movqi_i): Likewise.
18849         (insv): Use bset, bclr and bst instructions for SH2A if possible.
18850         (extv): Use bld instruction for SH2A if possible.
18851         (extzv): Likewise.
18852         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
18853         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
18854         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
18855         (bset.b, bclr.b): Define peepholes.
18856         * config/sh/sh.opt (mbitops): New option.
18858 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
18860         PR target/35620
18861         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
18862         and view convert expression.
18864 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
18866         PR target/35364
18867         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
18869 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
18871         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
18873         * config/i386/cpuid.h (bit_AES): New.
18874         (bit_PCLMUL): Likewise.
18876         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
18877         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
18878         SSE2 if AES or PCLMUL is enabled.
18879         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
18880         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
18881         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
18882         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
18883         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
18884         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
18885         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
18886         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
18887         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
18888         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
18889         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
18890         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
18891         __builtin_ia32_aeskeygenassist128 and
18892         __builtin_ia32_pclmulqdq128.
18893         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
18894         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
18895         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
18897         * config/i386/i386.h (TARGET_AES): New.
18898         (TARGET_PCLMUL): Likewise.
18899         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
18901         * config/i386/i386.md (UNSPEC_AESENC): New.
18902         (UNSPEC_AESENCLAST): Likewise.
18903         (UNSPEC_AESDEC): Likewise.
18904         (UNSPEC_AESDECLAST): Likewise.
18905         (UNSPEC_AESIMC): Likewise.
18906         (UNSPEC_AESKEYGENASSIST): Likewise.
18907         (UNSPEC_PCLMUL): Likewise.
18909         * config/i386/i386.opt (maes): New.
18910         (mpclmul): Likewise.
18912         * config/i386/sse.md (aesenc): New pattern.
18913         (aesenclast): Likewise.
18914         (aesdec): Likewise.
18915         (aesdeclast): Likewise.
18916         (aesimc): Likewise.
18917         (aeskeygenassist): Likewise.
18918         (pclmulqdq): Likewise.
18920         * config/i386/wmmintrin.h: New.
18922         * doc/extend.texi: Document AES and PCLMUL built-in function.
18924         * doc/invoke.texi: Document -maes and -mpclmul.
18926 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
18928         * function.c (free_after_parsing): Replace with
18929         cxx_push_function_context from C++ front-end.
18930         (allocate_struct_function): Don't call langhook.
18931         * langhooks.h (struct lang_hooks_for_functions): Delete.
18932         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
18933         member "function".
18934         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
18935         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
18936         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
18937         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
18938         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
18939         remove LANG_HOOKS_FUNCTION_INITIALIZER.
18940         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
18942         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
18943         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
18945 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
18947         PR c/35440
18948         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
18949         for all types.
18951 2008-04-04  Richard Guenther  <rguenther@suse.de>
18953         PR middle-end/35823
18954         * fold-const.c (optimize_minmax_comparison): Use the correct
18955         type for the constant in the simplified comparison.
18957 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
18959         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
18960         Pass L2 size as "--param l2-cache-size" to the compiler.
18961         (decode_l2_cache): New function to decode L2 cache parameters using
18962         0x8000006 extended cpuid function.
18963         (detect_caches_amd): Determine parameters of L2 cache using
18964         decode_l2_caches function.
18965         (decode_caches_intel): Decode L2 cache parameters.
18966         (detect_caches_intel): Determine L2 cache parameters using
18967         decode_caches_intel and decode_l2_caches functions.
18969 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
18971         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
18972         secondary input reload for subword loads from the constant pool.
18974 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
18976         PR target/35713
18977         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
18978           constants of the appropriate size for runtime calculations.
18980         PR c/35712
18981         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
18982           decimal-float literal constant zero.
18984 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
18986         PR c/35738
18987         * c-parser.c (c_parser_omp_atomic): Call
18988         default_function_array_conversion on the RHS.
18990         PR middle-end/35818
18991         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
18992         call is_variable_sized if decl has incomplete type.
18994 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
18996         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
18998 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
19000         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
19001         iterators.
19002         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
19003         (sgt<u>): Merge sgt and sgtu into new expander.
19004         (sgt, sgtu): Remove expanders.
19005         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
19006         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
19007         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
19008         *sgtu_<mode>_mips16 into new pattern.
19009         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
19010         (sge<u>): Merge sge and sgeu into new expander.
19011         (sge, sgeu): Remove expanders.
19012         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
19013         new pattern.
19014         (*sge_<mode>, second *sge_<mode>): Remove patterns.
19015         (slt<u>): Merge slt and sltu into new expander.
19016         (slt, sltu): Remove expanders.
19017         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
19018         (*slt_<mode>, *sltu_<mode>): Remove patterns.
19019         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
19020         *sltu_<mode>_mips16 into new pattern.
19021         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
19022         (sle<u>): Merge sle and sleu into new expander.
19023         (sle, sleu): Remove expanders.
19024         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
19025         (*sle_<mode>, *sleu_<mode>): Remove patterns.
19026         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
19027         *sleu_<mode>_mips16 into new pattern.
19028         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
19030 2008-04-03  Jan Hubicka  <jh@suse.cz>
19032         PR tree-optimization/35795
19033         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
19034         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
19035         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
19036         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
19037         * score/score3.c (score3_output_mi_thunk): Likewise.
19038         * score/score7.c (score7_output_mi_thunk): Likewise.
19039         * mips/mips.c (mips_output_mi_thunk): Likewise.
19041 2008-04-03  Richard Guenther  <rguenther@suse.de>
19043         * tree-vrp.c (extract_range_from_unary_expr): Handle all
19044         conversions.  Simplify code.
19046 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
19048         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
19050 2008-04-03  Tom Tromey  <tromey@redhat.com>
19051             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19053         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
19054         * config/bfin/t-bfin-linux (generated_files): Add
19055         linux-sysroot-suffix.h.
19056         * doc/install.texi (Prerequisites): Require make 3.80.
19057         * doc/sourcebuild.texi (Front End Directory): Document new
19058         variable.
19059         * Makefile.in (generated_files): New variable.
19060         (ALL_HOST_OBJS): New variable.
19061         ($(ALL_HOST_OBJS)): New target.
19063 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
19065         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
19066         (remap_block): Call id->transform_lang_insert_block instead
19067         of langhook.
19068         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
19069         Set id.transform_lang_insert_block to NULL.
19070         (clone_body): Move to cp/optimize.c
19071         * tree-inline.h (struct copy_body_data): Change
19072         transform_lang_insert_block to function pointer.
19073         (copy_generic_body, copy_decl_no_change): Export.
19074         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
19075         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
19076         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
19078         * c-tree.h (insert_block): Kill.
19079         * c-decl.c (insert_block): Kill.
19081 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
19083         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
19084         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
19085         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
19086         argument.
19087         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
19088         argument, call {push,pop}_function_context from here.
19089         * c-parser.c: Use c_{push,pop}_function_context.
19091         * function.c (push_function_context_to): Move meat ...
19092         (push_function_context): ... here.  Simplify.
19093         * function.c (pop_function_context_from): Move meat ...
19094         (pop_function_context): ... here.  Simplify.
19095         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
19096         leave_nested).
19097         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
19098         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
19099         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
19100         * tree.h (push_function_context_to, pop_function_context_from): Remove.
19102 2008-04-03  Ben Elliston  <bje@au.ibm.com>
19104         * expmed.c (extract_force_align_mem_bit_field): Remove.
19106 2008-04-03  Richard Guenther  <rguenther@suse.de>
19108         PR middle-end/35800
19109         * expr.h (try_casesi): Adjust prototype.
19110         * expr.c (try_casesi): Take fallback label as extra parameter.
19111         Use that for gen_casesi if default_label is NULL.
19112         * stmt.c (expand_case): Pass fallback label to try_casesi,
19113         make sure to fill gaps with a fallback label if default_label
19114         is not present.
19116 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
19118         PR target/35801
19119         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
19121 2008-04-03  Ben Elliston  <bje@au.ibm.com>
19123         * expmed.c (extract_split_bit_field): Remove if (0) code.
19124         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
19125         (do_ds_constraint): Likewise.
19127 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
19129         * doc/cppopts.texi (-dU): Document.
19130         * c-common.h (flag_dump_macros): Update comment.
19131         * c-opts.c (handle_OPT_d): Handle -dU.
19132         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
19133         dump_queued_macros, cb_used_define, cb_used_undef): New.
19134         (init_pp_output): Handle -dU.
19135         (cb_line_change): Call dump_queued_macros.
19136         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
19138 2008-04-02  Anatoly Sokolov <aesok@post.ru>
19140         * config/avr/predicates.md (io_address_operand): New predicate.
19141         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
19142         * config/avr/avr.c (avr_io_address_p): Remove function.
19143         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
19144         'avr_io_address_p' function.
19145         (out_movhi_r_mr): (Ditto.).
19146         (out_movqi_mr_r): (Ditto.).
19147         (out_movhi_mr_r): (Ditto.).
19148         (avr_address_cost): (Ditto.).
19150 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
19152         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
19153         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
19154         in 32bit mode when XMM registers are available to avoid store
19155         forwarding stalls.
19156         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
19157         corresponding post-reload splitters.
19159 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
19161         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
19162         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
19163         __builtin_ia32_roundss.
19164         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
19165         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
19166         __builtin_ia32_roundss.
19167         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
19168         IX86_BUILTIN_SHUFPD here.
19170 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
19172         * config/i386/i386.md (plogic): New.
19173         (plogicprefix): Likewise.
19175         * config/i386/mmx.md (mmx_<code><mode>3): New.
19176         (mmx_and<mode>3): Removed.
19177         (mmx_ior<mode>3): Likewise.
19178         (mmx_xor<mode>3): Likewise.
19180         * config/i386/sse.md (<code><mode>3): New.
19181         (*<code><mode>3): Likewise.
19182         (*<code><mode>3): Likewise.
19183         (<code><mode>3): Likewise.
19184         (*sse_<code><mode>3): Likewise.
19185         (*sse2_<code><mode>3): Likewise.
19186         (<code>tf3): Likewise.
19187         (*<code>tf3): Likewise.
19188         (and<mode>3): Likewise.
19189         (*and<mode>3): Likewise.
19190         (ior<mode>3): Removed.
19191         (*ior<mode>3): Likewise.
19192         (xor<mode>3): Likewise.
19193         (*xor<mode>3): Likewise.
19194         (*and<mode>3): Likewise.
19195         (*ior<mode>3): Likewise.
19196         (*xor<mode>3): Likewise.
19197         (and<mode>3): Likewise.
19198         (*sse_and<mode>3): Likewise.
19199         (*sse2_and<mode>3): Likewise.
19200         (andtf3): Likewise.
19201         (*andtf3): Likewise.
19202         (ior<mode>3): Likewise.
19203         (*sse_ior<mode>3): Likewise.
19204         (*sse2_ior<mode>3): Likewise.
19205         (iortf3): Likewise.
19206         (*iortf3): Likewise.
19207         (xor<mode>3): Likewise.
19208         (*sse_xor<mode>3): Likewise.
19209         (*sse2_xor<mode>3): Likewise.
19210         (xortf3): Likewise.
19211         (*xortf3): Likewise.
19213 2008-04-02  Richard Guenther  <rguenther@suse.de>
19215         PR tree-optimization/14495
19216         PR tree-optimization/34793
19217         * tree-vrp.c (struct switch_update): New structure.
19218         (to_remove_edges, to_update_switch_stmts): New VECs.
19219         (simplify_switch_using_ranges): New function.  Remove not taken
19220         case labels and edges.
19221         (simplify_stmt_using_ranges): Call it.
19222         (identify_jump_threads): Mark edges we have queued for removal
19223         so we don't thread them.
19224         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
19225         case label vector.
19226         * tree-cfg.c (group_case_labels): Deal with missing default label.
19227         (tree_verify_flow_info): Allow missing default label.
19228         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
19229         (emit_case_nodes): Likewise.
19230         (expand_case): Do not rely on the default label to be present.
19231         * expr.c (try_casesi): Deal with NULL default_label.
19232         (do_tablejump): Likewise.
19234 2008-04-02  Richard Guenther  <rguenther@suse.de>
19236         PR tree-optimization/14495
19237         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
19238         SWITCH_EXPR here ...
19239         (vrp_visit_switch_stmt): ... but here (new function).
19240         (find_case_label_index): New helper function.
19241         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
19243 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
19245         * fwprop.c: Fix ISO-C99ism.
19247 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
19249         PR bootstrap/35752
19250         * Makefile.in (objdir): Set it here.
19251         * configure.ac: Not here.  Find dynamic linker characteristics.
19252         * exec-tool.in: Use them.
19253         * aclocal.m4: Regenerate.
19254         * configure: Regenerate.
19256 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
19258         * expr.c (expand_var): Delete it.
19259         * expr.h (expand_var): Delete prototype.
19260         * function.c (expand_function_start): Use expand_decl instead.
19261         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
19262         langhook.
19264 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
19266         PR rtl-optimization/35542
19267         * fwprop.c (forward_propagate_and_simplify): Replace
19268         loc_reg_mentioned_in_p with reg_mentioned_p.
19270 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
19272         PR rtl-optimization/35281
19273         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
19274         (propagate_rtx_1): Handle PR_HANDLE_MEM.
19275         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
19276         (varying_mem_p): Move above propagate_rtx.
19277         (all_uses_available_at): Do not check MEMs.
19279 2008-04-02  Rafael Espindola  <espindola@google.com>
19281         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
19282         (register_edge_assert_for_2): Split the cond argument.
19283         (register_edge_assert_for_1): Adjust for the change in
19284         register_edge_assert_for_2.
19285         (register_edge_assert_for): Split the cond argument.
19286         (find_switch_asserts): Adjust for the change in
19287         register_edge_assert_for.
19289 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
19291         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
19292         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
19293         offsets for 64-bit mingw.
19294         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
19295         abi for x86_64-pc-mingw.
19297 2008-04-02  Richard Guenther  <rguenther@suse.de>
19299         * tree-vrp.c (extract_range_from_assert): Make sure to not
19300         produce range min/max with TREE_OVERFOW set.
19301         If merging a anti-range and a range keep the anti-range if
19302         the range covers all values of the type.
19303         (register_edge_assert_for_2): Only allow sign-changing
19304         conversions in detecting canonical range checks.  Also
19305         register an assert for the unsigned name if useful.
19307         PR tree-optimization/35787
19308         * tree-vrp.c (vrp_val_max): New function.
19309         (vrp_val_min): Likewise.
19310         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
19311         (vrp_val_is_min): Likewise.
19312         (supports_overflow_infinity): Use vrp_val_{min,max}.
19313         (negative_overflow_infinity): Likewise.
19314         (positive_overflow_infinity): Likewise.
19315         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
19316         (is_positive_overflow_infinity): Likewise.
19317         (is_overflow_infinity): Likewise.
19318         (avoid_overflow_infinity): Use vrp_val_{min,max} and
19319         vrp_val_is_{min,max}.
19320         (set_and_canonicalize_value_range): Canonicalize anti-ranges
19321         to ranges if possible.  Avoid empty ranges.
19323 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19325         PR middle-end/35705
19326         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
19327         the expression is a function address.
19329 2008-04-01  George Helffrich  <george@gcc.gnu.org>
19331         PR fortran/35154, fortran/23057
19332         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
19333         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
19334         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
19335         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
19336         in common.
19337         (dbxout_syms): Check for COMMON-based symbol and wrap in
19338         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
19339         in bracket for efficiency.
19341         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
19342         using DW_TAG_common_block + member offset.
19343         (add_pubname_string): New function.
19344         (dw_expand_expr): New function to find block name and offset for
19345         COMMON var.
19346         (common_check): New function to check whether symbol in Fortran COMMON.
19347         (gen_variable_die): If COMMON, use DW_TAG_common_block.
19349 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
19351         PR c/35436
19352         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
19354 2008-04-02  Ben Elliston  <bje@au.ibm.com>
19356         * config/v850/v850.md (casesi): Remove if (0) code.
19357         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
19358         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
19360 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
19362         * config/i386/i386.md (rex64suffix): New mode attribute.
19363         (floathi<mode>2): Disable expander for SSE math.
19364         (*floathi<mode>2_1): New insn insn_and_split pattern.
19365         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
19366         corresponding post-reload splitters.
19367         (*floathi<mode>2_i387): New macroized insn pattern.
19368         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
19369         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
19370         insn_and_split pattern.
19371         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
19372         New macroized instruction patterns and corresponding post-reload
19373         splitters.
19374         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
19375         and corresponding post-reload splitters.
19376         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
19377         New macroized instruction patterns.
19378         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
19379         macroized instruction patterns and corresponding post-reload splitters.
19380         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
19381         corresponding post-reload splitters.
19382         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
19383         New macroized instruction patterns.
19384         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
19385         corresponding post-reload splitters.
19386         (*floatsi<mode>2_i387): New macroized instruction patterns.
19388 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
19390         * config/i386/i386.md (smaxmin): New.
19391         (umaxmin): Likewise.
19392         (maxminiprefix): Likewise.
19393         (maxminfprefix): Likewise.
19394         (<code><mode>3): Likewise.
19395         (smin<mode>3): Removed.
19396         (smax<mode>3): Likewise.
19398         * config/i386/mmx.md (mmx_<code>v2sf3): New.
19399         (mmx_<code>v4hi3): Likewise.
19400         (mmx_<code>v8qi3): Likewise.
19401         (mmx_smaxv2sf3): Removed.
19402         (mmx_sminv2sf3): Likewise.
19403         (mmx_umaxv8qi3): Likewise.
19404         (mmx_smaxv4hi3): Likewise.
19405         (mmx_uminv8qi3): Likewise.
19406         (mmx_sminv4hi3): Likewise.
19408         * config/i386/sse.md (<addsub><mode>3): New.
19409         (*<addsub><mode>3): Likewise.
19410         (<sse>_vm<addsub><mode>3): Likewise.
19411         (<maxmin><mode>3): Likewise.
19412         (*<maxmin><mode>3_finite): Likewise.
19413         (*<maxmin><mode>3): Likewise.
19414         (<sse>_vm<maxmin><mode>3): Likewise.
19415         (sse3_h<addsub>v4sf3): Likewise.
19416         (sse3_h<addsub>v2df3): Likewise.
19417         (<maxmin>v16qi3): Likewise.
19418         (*<maxmin>v16qi3): Likewise.
19419         (<maxmin>v8hi3): Likewise.
19420         (*<maxmin>v8hi3): Likewise.
19421         (*sse4_1_<maxmin><mode>3): Likewise.
19422         (*sse4_1_<maxmin><mode>3): Likewise.
19423         (add<mode>3): Removed.
19424         (*add<mode>3): Likewise.
19425         (<sse>_vmadd<mode>3): Likewise.
19426         (sub<mode>3): Likewise.
19427         (*sub<mode>3): Likewise.
19428         (<sse>_vmsub<mode>3): Likewise.
19429         (smin<mode>3): Likewise.
19430         (*smin<mode>3_finite): Likewise.
19431         (*smin<mode>3): Likewise.
19432         (<sse>_vmsmin<mode>3): Likewise.
19433         (smax<mode>3): Likewise.
19434         (*smax<mode>3_finite): Likewise.
19435         (*smax<mode>3): Likewise.
19436         (<sse>_vmsmax<mode>3): Likewise.
19437         (sse3_haddv4sf3): Likewise.
19438         (sse3_haddv2df3): Likewise.
19439         (sse3_hsubv4sf3): Likewise.
19440         (sse3_hsubv2df3): Likewise.
19441         (umaxv16qi3): Likewise.
19442         (*umaxv16qi3): Likewise.
19443         (smaxv8hi3): Likewise.
19444         (*smaxv8hi3): Likewise.
19445         (*sse4_1_smax<mode>3): Likewise.
19446         (*sse4_1_umax<mode>3): Likewise.
19447         (uminv16qi3): Likewise.
19448         (*uminv16qi3): Likewise.
19449         (sminv8hi3): Likewise.
19450         (*sminv8hi3): Likewise.
19451         (*sse4_1_smin<mode>3): Likewise.
19452         (*sse4_1_umin<mode>3): Likewise.
19454 2008-04-01  Rafael Espindola  <espindola@google.com>
19456         * tree-cfg.c (verify_expr): remove in_phi.
19457         (verify_stmt): Don't call walk_tree with verify_expr. Use
19458         is_gimple_min_invariant instead of is_gimple_val.
19460 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
19462         * doc/include/gpl_v3.texi: Update for manpage generation.
19463         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
19464         gpl.texi.
19465         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
19466         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
19467         gpl_v3.texi instead of gpl.texi.
19468         (gpl.pod): New.
19470 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
19472         PR pch/13675
19473         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
19475 2008-04-01  Rafael Espindola  <espindola@google.com>
19477         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
19478         (extract_code_and_val_from_cond): Use
19479         extract_code_and_val_from_cond_with_ops.
19481 2008-04-01  Jan Hubicka  <jh@suse.cz>
19483         * function.c (free_after_compilation): Free epilogue_delay_list.
19484         (prepare_function_start): Assert that previous compilation was freed.
19486 2008-04-01  Jan Hubicka  <jh@suse.cz>
19487             Jim Wilson  <wilson@tuliptree.org>
19488             Andreas Tobler <andreast@gcc.gnu.org>
19490         PR middle-end/35781
19491         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
19492         rtl.emit instead cfun->emit.
19493         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
19494         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
19496 2008-04-01  Ben Elliston  <bje@au.ibm.com>
19498         * doc/c-tree.texi (Function Basics): Fix grammatical error.
19500 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
19502         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
19503         New options
19504         (fprofile-use): Add var flag_profile_use
19505         * coverage.c (coverage_begin_output): Do not open a gcno file for
19506         output only if -ftest-coverage is set.
19507         Do not add getpwd() to gcda file path.
19508         (build_gcov_info): Check the new flag
19509         flag_profile_datafile_relative_path.
19510         (coverage_init): Use profile_data_prefix.
19511         Read profile counter only if flag_profile_use is set.
19512         * opts.c (common_handle_option): New option fprofile-use=,
19513         fprofile-dir=, fprofile-generate=.
19514         * toplev.c (profile_data_prefix): New variable definition.
19515         * toplev.h (profile_data_prefix): New declaration.
19516         * doc/invoke.tex (Option Summary, Optimization Options):
19517         Add new options.
19519 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
19521         * varasm.c (output_constant_pool_1): In LABEL_REF check,
19522         use tmp consistently.
19524         PR target/35695
19525         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
19526         * config/ia64/ia64.c (rtx_needs_barrier): Handle
19527         UNSPEC_FR_RECIP_APPROX_RES.
19528         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
19530 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
19532         PR c/35750
19533         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
19535 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19537         PR middle-end/30186
19538         * fold-const.c (fold_indirect_ref_1): Support accessing non first
19539         element of the vector via a pointer.
19541 2008-03-31  Ian Lance Taylor  <iant@google.com>
19543         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
19545 2008-03-31  Jan Hubicka  <jh@suse.cz>
19547         * builtins.c (expand_builtin_setjmp_receiver): Update call of
19548         get_arg_pointer_save_area.
19549         * expr.c (init_expr): Just clear out rtl.expr.
19550         * function.c (free_after_compilation): Clear out whole RTL structure.
19551         (get_func_frame_size): Merge into ...
19552         (get_frame_size): ... this one.
19553         (assign_stack_local_1): Merge into ...
19554         (assign_stack_local): ... this one.
19555         (expand_function_end): Update call of get_arg_pointer_save_area.
19556         (get_art_pointer_save_area): Remove cfun argument.
19557         * function.h (emit_status): regno_pointer_align does not need length
19558         attribute. Move x_regno_reg_rtx to ...
19559         (regno_reg_rtx): ... new global array.
19560         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
19561         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
19562         apply_args_value, forced_labels, stack_pointer_delta):
19563         Update accestors.
19564         (struct varasm_status): Move here from varasm.c
19565         (struct rtl_data): New. Move here some fields from struct function.
19566         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
19567         frame_offset, stack_check_probe_note, arg_pointer_save_area,
19568         used_temp_slots avail_temp_slots, temp_slot_level,
19569         nonlocal_goto_handler_labels): Update accesstors.
19570         (rtl): New global variable.
19571         (struct function): Move some fileds to rtl_data.
19572         (get_arg_pointer_save_area): Update prototype.
19573         * emit-rtl.c (rtl): Declare.
19574         (regno_reg_rtx): Declare.
19575         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
19576         Update.
19577         (gen_reg_rtx): Update.
19578         (init_virtual_regs): Do not tate emit_status argument.
19579         (init_emit): Do not allocate emit.
19580         * varasm.c (varasm_statuc): Move to function.h.
19581         (n_deferred_constatns): Update accestor.
19582         (init_varasm_status): Do not allocate varasm_status.
19583         (force_const_mem, get_pool_size, output_constant_pool): Update.
19584         * stmt.c (force_label_rtx): Do not use x_ prefixes.
19585         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
19587 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
19589         PR rtl-optimization/35729
19590         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
19591         references.
19593 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19595         PR target/32000
19596         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
19597         load/store if memory is unaligned.
19598         (*movti_rex64): Likewise.
19600         * config/i386/predicates.md (misaligned_operand): New.
19602 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
19604         PR tree-opt/35431
19605         * tree-ssa-phiopt.c (conditional_replacement): Return early for
19606         complex types.
19608 2008-03-31  Jan Beulich  <jbeulich@novell.com>
19610         * config/ia64/constraints.md: Add 'j' constraint.
19611         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
19612         (movdi_internal): Likewise.
19614 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
19616         PR c/35748
19617         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
19619 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
19621         PR target/35757
19622         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
19623         proper error message for the third argument on blendpd and
19624         blendps.
19626         * config/i386/sse.md (blendbits): New.
19627         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
19629 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
19631         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
19633 2008-03-30  Richard Guenther  <rguenther@suse.de>
19635         PR middle-end/31023
19636         * fold-const.c (fold_sign_changed_comparison): Do leave
19637         conversions to base-types alone.
19639 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19641         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
19642         the link register if one altivec register is be saved.
19644 2008-03-30  Ben Elliston  <bje@au.ibm.com>
19646         * final.c (final_scan_insn): Remove if (0) code.
19648 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
19650         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
19652 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
19654         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
19655         of V4SFmode to ix86_binary_operator_ok.
19657 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
19659         * config/i386/i386.c (override_options): Initialize
19660         ix86_veclib_handler to ix86_veclibabi_svml when
19661         -mveclibabi=svml is used.
19662         (ix86_veclibabi_svml): New function for SVML ABI style
19663         vectorization support.
19664         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
19666 2008-03-28  Rafael Espindola  <espindola@google.com>
19668         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
19669         (tree_binary_nonnegative_warnv_p): Make it public.
19670         (tree_single_nonnegative_warnv_p): Make it public.
19671         (tree_invalid_nonnegative_warnv_p): Make it public.
19672         (tree_unary_nonzero_warnv_p): Make it public.
19673         (tree_binary_nonzero_warnv_p): Make it public
19674         (tree_single_nonzero_warnv_p): Make it public.
19675         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
19676         (extract_range_from_binary_expr): Split the expr argument.
19677         (extract_range_from_unary_expr): Split the expr argument.
19678         (extract_range_from_comparison): Split the expr argument.
19679         (extract_range_from_expr): Use the new aux functions.
19680         (vrp_evaluate_conditional_warnv): Use
19681         vrp_evaluate_conditional_warnv_with_ops.
19682         * tree.h (tree_unary_nonzero_warnv_p): Declare.
19683         (tree_binary_nonzero_warnv_p): Declare.
19684         (tree_single_nonzero_warnv_p): Declare.
19685         (tree_expr_nonzero_warnv_p): Declare.
19686         (tree_unary_nonnegative_warnv_p): Declare.
19687         (tree_binary_nonnegative_warnv_p): Declare.
19688         (tree_single_nonnegative_warnv_p): Declare.
19689         (tree_invalid_nonnegative_warnv_p): Declare.
19691 2008-03-28  Richard Guenther  <rguenther@suse.de>
19693         PR tree-optimization/30317
19694         PR tree-optimization/30911
19695         PR tree-optimization/34793
19696         * tree-vrp.c (set_and_canonicalize_value_range): New function.
19697         (struct assert_locus_d): New member EXPR.
19698         (register_new_assert_for): Add EXPR parameter to support
19699         ASSERT_EXPR <name, expr OP limit>.
19700         (register_edge_assert_for_1): Adjust callers.
19701         (find_assert_locations): Likewise.
19702         (process_assert_insertions_for): Build condition from expression.
19703         (extract_range_from_assert): Handle ASSERT_EXPRs
19704         of the form ASSERT_EXPR <name, expr OP limit>.
19705         (register_edge_assert_for_2): New helper registering
19706         asserts for comparisons.  Recognize range tests of the form
19707         (unsigned)i - CST1 OP CST2.
19708         (register_edge_assert_for_1): Use it.
19709         (register_edge_assert_for): Likewise.
19710         (needs_overflow_infinity): Integer sub-types
19711         do not need overflow infinities.
19712         (vrp_val_is_max): The extreme values of integer sub-types
19713         are those of the base type.
19714         (vrp_val_is_min): Likewise.
19715         * tree.def (ASSERT_EXPR): Document extra allowed conditional
19716         expressions.
19718 2008-03-28  Nick Clifton  <nickc@redhat.com>
19720         PR target/31110
19721         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
19722         Return GENERAL_REGS for stack adjustment reloads.
19724 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19726         PR target/31334
19727         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
19728         const_vector when all the vectors are constant.
19730 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
19732         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
19733         comparisons.
19734         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
19735         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
19736         (scc_sf): New.
19737         (s<code>_sf): Use new scc_sf attribute for opcode names.
19739 2008-03-27  Tom Tromey  <tromey@redhat.com>
19741         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
19742         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
19743         config/spu/t-spu-elf, config/i386/t-interix,
19744         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
19745         config/i386/x-darwin, config/i386/x-mingw32,
19746         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
19747         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
19748         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
19749         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
19750         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
19751         config/rs6000/x-darwin, config/rs6000/t-rs6000,
19752         config/score/t-score-elf, config/arm/t-strongarm-pe,
19753         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
19754         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
19755         Revert automatic dependency patch.
19757 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
19759         PR target/35657
19760         * config/i386/i386.c (ix86_function_arg_boundary): Align
19761         decimal floating point to its natural boundary.
19763 2008-03-27  Richard Guenther  <rguenther@suse.de>
19765         PR middle-end/35716
19766         * fold-const.c (fold_comparison): Restrict distinct decl
19767         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
19768         solely rely on operand_equal_p.
19770 2008-03-27  Richard Guenther  <rguenther@suse.de>
19772         PR c/32511
19773         * c-common.c (handle_weak_attribute): Reject combination of
19774         weak and inline.
19776 2008-03-27  Richard Guenther  <rguenther@suse.de>
19778         PR tree-optimization/32810
19779         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
19780         conversions from DECL_INITIAL.
19781         (fold_const_aggregate_ref): Likewise from constructor elements.
19783 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
19785         * tree-affine.h (aff_combination_expand): Declare.
19786         (get_inner_reference_aff): Likewise.
19787         * tree-affine.c (aff_combination_expand): Split out from
19788         tree_to_aff_combination_expand.
19789         (get_inner_reference_aff): New function.
19790         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
19791         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
19792         (struct lim_aux_data): sm_done field removed.
19793         (mem_ref_loc_p, mem_ref_locs_p): New types.
19794         (struct mem_ref): Added id, stored, accesses_in_loop,
19795         indep_loop, dep_loop, indep_ref, dep_ref fields.
19796         Removed is_stored, locs and next fields.
19797         (memory_accesses): New variable.
19798         (movement_possibility): Do not allow moving statements
19799         that store to memory.
19800         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
19801         New functions.
19802         (determine_max_movement): For statements with memory references,
19803         find the outermost loop in that the reference is independent.
19804         (move_computations_stmt): Mark the virtual operands for renaming.
19805         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
19806         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
19807         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
19808         add_vop_ref_mapping, create_vop_ref_mapping_loop,
19809         create_vop_ref_mapping, analyze_memory_references,
19810         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
19811         get_all_locs_in_loop, ref_always_accessed_p,
19812         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
19813         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
19814         store_motion_loop, store_motion): New functions.
19815         (struct vop_to_refs_elt): New type.
19816         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
19817         memref_hash, memref_eq, hoist_memory_references): Rewritten.
19818         (schedule_sm): Replaced by...
19819         (execute_sm): ... this.
19820         (determine_lsm_ref, hoist_memory_references,
19821         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
19822         find_more_ref_vops, free_mem_ref, free_mem_refs,
19823         determine_lsm_loop, determine_lsm): Removed.
19824         (tree_ssa_lim_finalize): Free data structures used by store motion.
19825         (tree_ssa_lim): Call analyze_memory_references.  Use
19826         store_motion instead of determine_lsm.
19828 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
19830         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
19831         rename tmake_file to m68hc11/t-m68hc11.
19832         (mcore): Set inhibit_libc to true.
19833         * config.host (alpha*-dec-*vms*): Set extra_programs.
19834         (interix3*): Don't use host_xmake_file.
19835         * configure.ac: Let config.gcc override inhibit_libc.
19836         * configure: Regenerate.
19838         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
19839         * config/t-openbsd-thread: Remove commented out lines.
19841         * config/x-interix: Remove.
19843         * config/m68hc11/t-m68hc11-gas: Rename to...
19844         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
19846         * config/mcore/t-mcore: Remove T_CFLAGS.
19847         * config/mcore/t-mcore-pe: Likewise.
19849 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
19851         * configure.ac: Replace custom __GNU_SOURCE test with
19852         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
19853         * aclocal.m4: Regenerate.
19854         * configure: Regenerate.
19855         * config.in: Regenerate.
19857 2008-03-27  Richard Guenther  <rguenther@suse.de>
19859         * fold-const.c (target.h): Include.
19860         (fold_comparison): Fold comparison of addresses of decls
19861         that bind locally or of constants.  Consolidate address folding code.
19862         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
19863         results from fold_binary_to_constant.
19864         (compare_values_warnv): Likewise.
19866 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
19868         PR middle-end/35429
19869         * fold-const.c (fold_truthop): Check for integeral types when folding
19870         a == 0 && b == 0 and a != 0 || b != 0 .
19872 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
19874         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
19876 2008-03-26  Andreas Schwab  <schwab@suse.de>
19878         * doc/invoke.texi: Fix use of @item vs. @itemx.
19880 2008-03-26  Tom Tromey  <tromey@redhat.com>
19882         * Makefile.in (build/gensupport.o, build/print-rtl.o,
19883         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
19884         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
19885         build/gencodes.o, build/genconditions.o, build/genconfig.o,
19886         build/genconstants.o, build/genemit.o, build/genextract.o,
19887         build/genflags.o, build/genmddeps.o, build/genopinit.o,
19888         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
19889         options.h.
19891 2008-03-26  Richard Guenther  <rguenther@suse.de>
19893         Revert
19894         2008-03-26  Richard Guenther  <rguenther@suse.de>
19896         * fold-const.c (target.h): Include.
19897         (fold_comparison): Fold comparison of addresses of two decls
19898         that bind locally.  Consolidate address folding code.
19900 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19902         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
19903         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
19904         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
19905         dconstsqrt2, dconstthird, dconste and/or dconst10.
19906         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
19907         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
19908         dconstsqrt2, dconste): Delete.
19909         (init_emit_once): Likewise.  Simplify initializing dconstm1.
19910         Constify variable.
19911         * real.c (get_real_const): New.
19912         * real.h (dconst3, dconst10, dconstm2, dconstthird,
19913         dconstsqrt2, dconste): Delete.
19914         (real_value_const, get_real_const): New.
19916 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
19918         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
19920         * config/i386/i386.c (ix86_function_arg_boundary): Check
19921         BIGGEST_ALIGNMENT instead of 128.
19922         (setup_incoming_varargs_64): Likewise.
19924 2008-03-26  Tom Tromey  <tromey@redhat.com>
19926         * Makefile.in (DEPFILES): Add missing '/'.
19928 2008-03-26  Richard Guenther  <rguenther@suse.de>
19930         * fold-const.c (target.h): Include.
19931         (fold_comparison): Fold comparison of addresses of two decls
19932         that bind locally.  Consolidate address folding code.
19934 2008-03-26  Nick Clifton  <nickc@redhat.com>
19936         PR target/31232
19937         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
19938         not allow INT+INT as a legitimate addressing mode.
19940 2008-03-26  Richard Guenther  <rguenther@suse.de>
19942         * tree-flow.h (widen_bitfield): Remove declaration.
19943         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
19944         (widen_bitfield): Remove function.
19945         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
19946         code.
19948 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19950         PR target/31558
19951         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
19952         error_mark_node's.
19954 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
19956         PR rtl-optimization/35232
19957         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
19958         (forget_old_reloads_1, forget_marked_reloads): Don't clear
19959         reg_reloaded_call_part_clobbered here.
19960         (reload_regs_reach_end_p): New function.
19961         (reload_reg_rtx_for_input): New variable.
19962         (reload_reg_rtx_for_output): Likewise.
19963         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
19964         when reassigning a pseudo register.  Load reloadreg from
19965         reload_reg_rtx_for_input, moving the mode and register
19966         calculation to...
19967         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
19968         instead of the original when deciding whether an input reload
19969         would be a no-op or whether an output reload can be deleted.
19970         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
19971         when setting up new_spill_reg_store.  Load it from
19972         reload_reg_rtx_for_output, moving the mode and register
19973         calculation to...
19974         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
19975         instead of the original when deciding whether an output reload
19976         would be a no-op.  Do the same when modifying insn notes.
19977         Use rtx_equal_p instead of == to compare the registers.
19978         (inherit_piecemeal_p): Take a mode and two register numbers
19979         as argument.
19980         (emit_reload_insns): Clear new_spill_reg_store for every hard
19981         register in the reload register.  Remove spill registers
19982         from reg_reloaded_valid before considering whether to record
19983         inheritance information for them.  Use reload_reg_rtx_for_output
19984         instead of reg_rtx when recording output reloads.  Use
19985         reload_reg_rtx_for_input instead of reg_rtx when recording
19986         input reloads.  Set or clear reg_reloaded_call_part_clobbered
19987         at the same time as setting reg_reloaded_valid.
19988         (delete_output_reload): Add a new_reload_reg parameter and use it
19989         instead of rld[j].reg_rtx.
19990         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
19991         calls accordingly.
19993 2008-03-25  Tom Tromey  <tromey@redhat.com>
19995         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
19996         (build/genattr.o): Likewise.
19997         (build/genattrtab.o): Likewise.
19998         (build/gencodes.o): Likewise.
19999         (build/genconfig.o): Likewise.
20000         (build/genconstants.o): Likewise.
20001         (build/genemit.o): Likewise.
20002         (build/genextract.o): Likewise.
20003         (build/genflags.o): Likewise.
20005 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
20007         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
20008         instead of size_int for integer types.
20009         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
20010         to match type of MINUS_EXPR.
20012 2008-03-25  Tom Tromey  <tromey@redhat.com>
20014         * configure: Rebuilt.
20015         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
20016         Makefile.
20018 2008-03-25  Tom Tromey  <tromey@redhat.com>
20020         * config/x-solaris (host-solaris.o): Update.
20021         * config/x-linux (host-linux.o): Update.
20022         * config/x-hpux (host-hpux.o): Update.
20023         * config/x-darwin (host-darwin.o): Update.
20024         * config/v850/t-v850e (v850-c.o): Update.
20025         * config/v850/t-v850 (v850-c.o): Update.
20026         * config/t-vxworks (vxworks.o): Update.
20027         * config/t-sol2 (sol2-c.o, sol2.o): Update.
20028         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
20029         * config/spu/t-spu-elf (spu-c.o): Update.
20030         (spu.o): Remove.
20031         * config/sh/t-symbian (sh-c.o): Update.
20032         (symbian.o): Update.
20033         * config/sh/t-sh (sh-c.o): Update.
20034         * config/score/t-score-elf (score7.o, score3.o): Update.
20035         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
20036         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
20037         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
20038         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
20039         (rs6000.o): Remove.
20040         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
20041         * config/m32c/t-m32c (m32c-pragma.o): Update.
20042         * config/ia64/t-ia64 (ia64-c.o): Update.
20043         * config/i386/x-mingw32 (host-mingw32.o): Update.
20044         * config/i386/x-i386 (driver-i386.o): Update.
20045         * config/i386/x-darwin (host-i386-darwin.o): Update.
20046         * config/i386/x-cygwin (host-cygwin.o): Update.
20047         * config/i386/t-nwld (nwld.o): Update.
20048         * config/i386/t-netware (netware.o): Update.
20049         * config/i386/t-interix (winnt.o): Update.
20050         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
20051         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
20052         msformat-c.o): Update.
20053         * config/bfin/t-bfin-linux (generated_files): Add
20054         linux-sysroot-suffix.h.
20055         * config/arm/t-wince-pe (pe.o): Update.
20056         * config/arm/t-strongarm-pe (pe.o): Update.
20057         * config/arm/t-pe (pe.o): Update.
20058         * config/arm/t-arm (arm-c.o): Update.
20059         * doc/install.texi (Prerequisites): Require make 3.80.
20060         * Makefile.in: Remove .o targets.
20061         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
20062         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
20063         (simple_generated_h, simple_generated_c): Move earlier.
20064         (generated_files): New variable.
20065         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
20066         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
20067         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
20068         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
20069         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
20070         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
20071         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
20072         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
20073         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
20074         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
20075         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
20076         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
20077         (.c.o): Remove.
20078         (COMPILE.base, COMPILE): New variables.
20079         (%.o): New pattern rule.
20080         (ALL_HOST_OBJS): New variable.
20081         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
20082         (dummy-checksum.o, cc1-checksum.o): Remove.
20083         (DRIVER_SHLIB): New variable.
20084         (DRIVER_DEFINES): Use it.
20085         (gencondmd.c): Move out of build/.
20086         (s-conditions): Update.
20087         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
20088         (ALL_BUILD_OBJS): Likewise.
20089         (build/%.o): Use BUILDCOMPILE.
20090         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
20091         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
20092         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
20093         build/gencheck.o, build/gencodes.o, build/genconditions.o,
20094         build/genconfig.o, build/genconstants.o, build/genemit.o,
20095         build/genextract.o, build/genflags.o, build/genmddeps.o,
20096         build/genopinit.o, build/genoutput.o, build/genpeep.o,
20097         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
20098         build/gen-protos.o, build/scan.o, build/fix-header.o,
20099         build/scan-decls.o): Simplify.
20100         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
20101         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
20102         prefix.o, toplev.o): Reduce to variable setting.
20103         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
20104         ($(out_object_file), gcc-options.o): New targets.
20105         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
20106         * configure: Rebuilt.
20107         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
20108         * doc/sourcebuild.texi (Front End Directory): Document new variable.
20110 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
20112         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
20113         complain when we hit an error, return ERROR_MARK_NODE.
20115 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
20117         * config/sh/constraints.md (Pso, Psz): New constraints.
20118         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
20119         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
20121 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
20123         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
20124         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
20126 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
20128         * config/sh/sh.md (prefetch): Add condition for SH2A target.
20129         (prefetch_sh2a): New.
20131 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
20132             Naveen.H.S  <naveen.hs@kpitcummins.com>
20134         * config/sh/constraints.md (I28): New constraint.
20135         * config/sh/sh.c (broken_move): Add support for movi20s.
20136         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
20138 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
20139             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
20140             Naveen.H.S  <naveen.hs@kpitcummins.com>
20142         * config/sh/sh.c (SH_ATTRIBUTES): Define.
20143         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
20144         (print_operand): Handle resbank in %@ operand code.
20145         (sh_encode_section_info): New.
20146         (push_regs): Add conditions for resbank.
20147         (sh_expand_epilogue): Likewise.
20148         (sh_insert_attributes): Likewise.
20149         (sh_attribute_table): Likewise.
20150         (sh_handle_resbank_handler_attribute): New.
20151         (sh2a_handle_function_vector_handler_attribute): New.
20152         (sh2a_is_function_vector_call): New.
20153         (sh2a_get_function_vector_number): New.
20154         (sh2a_function_vector_p): New.
20155         (sh_cfun_resbank_handler_p): New.
20156         * config/sh/sh.md (calli): Emit jsr/n if possible.
20157         (calli_tbr_rel): New.
20158         (calli_pcrel): Emit jsr/n if possible.
20159         (return_i): Emit rts/n if possible.
20160         (call_valuei_tbr_rel): New.
20161         (call_valuei_pcrel): Add condition for SH2A target.
20162         (call_value): Likewise.
20163         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
20164         (sh2a_get_function_vector_number): Likewise.
20165         (sh2a_is_function_vector_call): Likewise.
20166         * doc/extend.texi: Document TBR relative addressing of SH2A.
20167         (resbank): Add description for SH2A.
20169 2008-03-24  Richard Guenther  <rguenther@suse.de>
20171         PR c/22371
20172         * gimplify.c (gimplify_modify_expr): For frontend type-correct
20173         pointer assignments change conversions according to middle-end rules.
20174         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
20175         * configure.ac: Include type checking in yes.
20176         * configure: Regenerate.
20178 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20180         * diagnostic.c (diagnostic_count_diagnostic): Delete.
20181         (diagnostic_report_diagnostic): Update. Handle ICEs here.
20183 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
20185         * gthr-vxworks.h (UNUSED): Define.
20187 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
20189         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
20191 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
20193         * doc/extend.texi (Function Attributes): Add missing comma in the
20194         example of the "alloc_size" attribute.
20196 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
20198         Revert:
20199         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
20201         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
20202         32bit host.
20204         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
20206         PR target/35496
20207         * stor-layout.c (update_alignment_for_field): Set minimum alignment
20208         of the underlying type of a MS bitfield layout to the natural
20209         alignment of the type.
20211         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
20213         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
20214         to their natural alignment to avoid store forwarding stalls.
20216 2008-03-22  Richard Guenther  <rguenther@suse.de>
20218         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
20219         For PHI nodes verify the address is invariant.
20220         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
20221         (get_symbol_constant_value): Use is_gimple_min_invariant.
20222         (maybe_fold_stmt_indirect): Likewise.
20224 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
20226         PR rtl-optimization/33927
20227         * Makefile.in (dse.o): Depend on $(TM_P_H).
20228         * expr.h (extract_low_bits): Declare.
20229         * expmed.c (extract_low_bits): New function.
20230         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
20231         * dse.c: Include tm_p.h.
20232         (find_shift_sequence): Remove the read_reg argument and return the
20233         read value.  Emit the instructions instead of returning them.
20234         Iterate on new_mode rather than calculating it each time.
20235         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
20236         source to NEW_MODE and extract_low_bits to convert the shifted
20237         value to READ_MODE.
20238         (replace_read): Allow the load and store to have different mode
20239         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
20240         or extraction instructions before trying the replacement.  Update
20241         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
20243 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
20245         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
20246         to their natural alignment to avoid store forwarding stalls.
20248 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20250         PR target/27946
20251         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
20252         encouraging but not allowing gprs for input;
20253         change the input constraint to !f#r.
20254         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
20255         gprs for output;
20256         change the output constraint to !f#r.
20258 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
20260         PR target/13958
20261         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
20262         corresponding post-reload splitters.
20263         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
20264         when x87 FP math is selected.
20265         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
20266         New function prototype.
20267         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
20268         unreachable function to ease macroization of insn patterns.
20270 2008-03-21  Martin Jambor  <mjambor@suse.cz>
20272         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
20273         reference dumps if ddr is NULL or dependence is unknown.
20275 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
20277         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
20278         unsigned extension into account.
20279         (ATOMIC_COMPARE_AND_SWAP): Likewise.
20280         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
20281         Do computations on a scratch register.
20283 2008-03-21  Richard Guenther  <rguenther@suse.de>
20285         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
20286         Use is_gimple_min_invariant instead of TREE_INVARIANT.
20287         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
20288         * tree-ssa-dom.c (record_equality): Likewise.
20289         * tree-inline.c (copy_body_r): Likewise.
20290         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
20291         TREE_INVARIANT.
20293 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
20295         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
20296         as 'delete_unused' argument.
20298 2008-03-20  Richard Guenther  <rguenther@suse.de>
20300         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
20301         special casing of constant qualifiers.
20302         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
20303         care about them in general.
20304         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
20305         regardless of their type.
20306         (fold_stmt_r): Forcefully fold *& if we end up with that.
20308 2008-03-20  Paul Brook  <paul@codesourcery.com>
20310         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
20311         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
20312         linker flags.
20313         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
20314         definition.
20315         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
20316         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
20318 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
20320         * common.opt (Wmudflap): New option.
20321         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
20322         (mx_register_decls): Likewise.
20323         (mudflap_finish_file): Likewise.
20324         * doc/invoke.texi: Document -Wno-mudflap.
20326 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
20328         * c-format.c (replace_format_name_to_system_name): New.
20329         (cmp_attribs): New.
20330         (convert_format_name_to_system_name): New.
20331         (decode_format_attr): Add use of convert_format_name_to_system_name.
20332         (format_types_orig): Add gnu_ prefix to names.
20333         (check_format_info_main): Special treating of \0 escaped names for
20334         supporting multi-character format specifiers as I32, I64.
20335         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
20336         (gnu_target_overrides_format_attributes): New.
20337         * c-format.h: Add structure target_ovr_attr to hold
20338         system specific formatter names.
20339         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
20340         msformat-c.o file to c_target_objs and cxx_target_objs.
20341         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
20342         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
20343         (TARGET_N_FORMAT_TYPES): New.
20344         * config/i386/msformat-c.c: New.
20345         * config/i386/t-cygming: Add build rule for msformat-c.o.
20346         * doc/extend.texi: Add new format names gnu_* and ms_* and
20347         further details.
20348         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
20350 2008-03-20  Ira Rosen  <irar@il.ibm.com>
20352         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
20353         optimizations turned on under -O3.
20354         (ftree-vectorize): Add that the flag is turned on with -O3.
20356 2008-03-20  Ben Elliston  <bje@au.ibm.com>
20358         * regmove.c (try_auto_increment): Fix spelling error in comment.
20359         * final.c (final_scan_insn): Likewise.
20361 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
20363         PR target/14552
20364         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
20365         allocator preferences for "y" and "r" class registers.
20366         ("*mov<mode>_internal"): Ditto.
20367         ("*movv2sf_internal_rex64"): Ditto.
20368         ("*movv2sf_internal"): Ditto.
20370 2008-03-19  Michael Matz  <matz@suse.de>
20372         PR middle-end/35616
20373         * calls.c (expand_call): Check overlap of arguments with call
20374         address for sibcalls.
20376 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
20378         PR target/35496
20379         * stor-layout.c (update_alignment_for_field): Set minimum alignment
20380         of the underlying type of a MS bitfield layout to the natural
20381         alignment of the type.
20383 2008-03-19  Jan Hubicka  <jh@suse.cz>
20385         PR other/35094
20386         * toplev.c (decode_d_option): Handle all CPP flags.
20387         * tree-vrp.c: Update tree_pass descriptors.
20388         * regrename.c: Update tree_pass descriptors.
20389         * fwprop.c: Update tree_pass descriptors.
20390         * doc/invoke.texi: Remove documentation of dropped -d? flags.
20391         * tree-into-ssa.c: Update tree_pass descriptors.
20392         * tree-dump.c: Update tree_pass descriptors.
20393         * tree-complex.c: Update tree_pass descriptors.
20394         * tree-dump.h: Update tree_pass descriptors.
20395         * see.c: Update tree_pass descriptors.
20396         * cgraphbuild.c: Update tree_pass descriptors.
20397         * tracer.c: Update tree_pass descriptors.
20398         * tree-loop-distribution.c: Update tree_pass descriptors.
20399         * cgraph.c: Update tree_pass descriptors.
20400         * postreload-gcse.c: Update tree_pass descriptors.
20401         * postreload.c: Update tree_pass descriptors.
20402         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
20403         * tree-tailcall.c: Update tree_pass descriptors.
20404         * tree-pass.h (tree_opt_pass): Rename to ...
20405         (opt_pass) ... this one; add "type" field and remove letter field.
20406         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
20407         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
20408         all_lowering_passes): Update declaration.
20409         * ipa-cp.c: Update tree_pass descriptors.
20410         * final.c: Update tree_pass descriptors.
20411         * omp-low.c: Update tree_pass descriptors.
20412         * tree-ssa-dse.c: Update tree_pass descriptors.
20413         * ipa-reference.c: Update tree_pass descriptors.
20414         * tree-ssa-uncprop.c: Update tree_pass descriptors.
20415         * auto-inc-dec.c: Update tree_pass descriptors.
20416         * reorg.c: Update tree_pass descriptors.
20417         * cgraphunit.c: Update tree_pass descriptors.
20418         * tree-ssa-copyrename.c: Update tree_pass descriptors.
20419         * tree-ssa-ccp.c: Update tree_pass descriptors.
20420         * df-core.c: Update tree_pass descriptors.
20421         * mode-switching.c: Update tree_pass descriptors.
20422         * tree-nomudflap.c: Update tree_pass descriptors.
20423         * modulo-sched.c: Update tree_pass descriptors.
20424         * ipa-pure-const.c: Update tree_pass descriptors.
20425         * cse.c: Update tree_pass descriptors.
20426         * web.c: Update tree_pass descriptors.
20427         * tree-stdarg.c: Update tree_pass descriptors.
20428         * tree-ssa-math-opts.c: Update tree_pass descriptors.
20429         * tree-ssa-dom.c: Update tree_pass descriptors.
20430         * tree-nrv.c: Update tree_pass descriptors.
20431         * tree-ssa-alias.c: Update tree_pass descriptors.
20432         * loop-init.c: Update tree_pass descriptors.
20433         * gimple-low.c: Update tree_pass descriptors.
20434         * ipa-inline.c: Update tree_pass descriptors.
20435         * tree-ssa-sink.c: Update tree_pass descriptors.
20436         * global.c: Update tree_pass descriptors.
20437         * ifcvt.c: Update tree_pass descriptors.
20438         * jump.c: Update tree_pass descriptors.
20439         * predict.c: Update tree_pass descriptors.
20440         * tree-ssa-loop.c: Update tree_pass descriptors.
20441         * recog.c: Update tree_pass descriptors.
20442         * dse.c: Update tree_pass descriptors.
20443         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
20444         * tree-eh.c: Update tree_pass descriptors.
20445         * regmove.c: Update tree_pass descriptors.
20446         * local-alloc.c
20447         * function.c: Update tree_pass descriptors.
20448         * tree-vectorizer.c: Update tree_pass descriptors.
20449         * gcse.c: Update tree_pass descriptors.
20450         * ipa-type-escape.c: Update tree_pass descriptors.
20451         * tree-if-conv.c: Update tree_pass descriptors.
20452         * init-regs.c: Update tree_pass descriptors.
20453         * ipa.c: Update tree_pass descriptors.
20454         * tree-ssa-phiopt.c: Update tree_pass descriptors.
20455         * rtl-factoring.c: Update tree_pass descriptors.
20456         * lower-subreg.c: Update tree_pass descriptors.
20457         * bt-load.c: Update tree_pass descriptors.
20458         * tree-dfa.c: Update tree_pass descriptors.
20459         * except.c: Update tree_pass descriptors.
20460         * emit-rtl.c: Update tree_pass descriptors.
20461         * cfgexpand.c: Update tree_pass descriptors.
20462         * tree-cfgcleanup.c: Update tree_pass descriptors.
20463         * cfgcleanup.c: Update tree_pass descriptors.
20464         * tree-ssa-pre.c: Update tree_pass descriptors.
20465         * tree-sra.c: Update tree_pass descriptors.
20466         * tree-mudflap.c: Update tree_pass descriptors.
20467         * tree-ssa-copy.c: Update tree_pass descriptors.
20468         * cfglayout.c: Update tree_pass descriptors.
20469         * tree-ssa-forwprop.c: Update tree_pass descriptors.
20470         * tree-ssa-dce.c: Update tree_pass descriptors.
20471         * tree-ssa.c: Update tree_pass descriptors.
20472         * regclass.c: Update tree_pass descriptors.
20473         * integrate.c: Update tree_pass descriptors.
20474         * tree-optimize.c: Update tree_pass descriptors.
20475         * tree-ssa-phiprop.c: Update tree_pass descriptors.
20476         * tree-object-size.c: Update tree_pass descriptors.
20477         * combine.c: Update tree_pass descriptors.
20478         * tree-outof-ssa.c: Update tree_pass descriptors.
20479         * bb-reorder.c: Update tree_pass descriptors.
20480         * stack-ptr-mod.c: Update tree_pass descriptors.
20481         * var-tracking.c: Update tree_pass descriptors.
20482         * tree-profile.c: Update tree_pass descriptors.
20483         * tree-vect-generic.c: Update tree_pass descriptors.
20484         * reg-stack.c: Update tree_pass descriptors.
20485         * sched-rgn.c: Update tree_pass descriptors.
20486         * tree-ssa-structalias.c: Update tree_pass descriptors.
20487         * tree-cfg.c: Update tree_pass descriptors.
20488         * passes.c (current_pass): Update declaration.
20489         (finish_optimization_passes): Update.
20490         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
20491         (register_one_dump_file, register_dump_files_1, next_pass_1):
20492         Update arguments.
20493         (init_optimization_passes): Update handling of new types.
20494         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
20495         * ipa-struct-reorg.c: Update tree_pass descriptors.
20496         * tree-ssa-reassoc.c: Update tree_pass descriptors.
20497         * combine-stack-adj.c: Update tree_pass descriptors.
20498         * cfgrtl.c: Update tree_pass descriptors.
20499         * dce.c: Update tree_pass descriptors.
20500         * tree-ssanames.c: Update tree_pass descriptors.
20502 2008-03-19  Richard Guenther  <rguenther@suse.de>
20504         PR middle-end/35609
20505         * tree-ssa.c (walk_data): New structure.
20506         (warn_uninitialized_var): If not always_executed warn with "maybe"
20507         instead of "is".
20508         (execute_early_warn_uninitialized): Compute post-dominators.
20509         Initialize always_executed before processing each basic block.
20511 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
20513         PR target/35504
20514         * config/i386/i386.c (x86_this_parameter): Calculate correct location
20515         of "this" pointer when "regparm = N" or "fastcall" is in effect.
20517 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20519         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
20521 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
20523         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
20524         is true.
20525         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
20526         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
20527         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
20528         target after ignore has been set, and move there also the commputation
20529         of subtarget and original_target.
20530         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
20531         (LANG_HOOKS_INITIALIZER): Remove it.
20532         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
20534 2008-03-18  Richard Guenther  <rguenther@suse.de>
20536         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
20537         found an expression with constants, note that in the VN for the lhs.
20538         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
20539         fold them to constants if possible.  Run cleanup_cfg if done so.
20540         (execute_pre): Return todo.
20541         (do_pre): Likewise.
20542         (execute_fre): Likewise.
20543         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
20544         of constants.
20545         (get_prop_source_stmt): Look through pointer conversions.
20547 2008-03-18  Jan Hubicka  <jh@suse.cz>
20549         * tree-pretty-print.c: Include predict.h.
20550         (dump_generic_node): Dump predictor.
20551         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
20552         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
20553         * gimple-low.c (lower_stmt): Likewise.
20554         * expr.c (expand_expr_real): Likewise.
20555         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
20556         them.
20557         (build_predict_expr, build_predict_expr): New.
20558         * predict.h (predictor_name, build_predict_expr): Update.
20559         * c-typeck.c (c_finish_bc_stmt): Add prediction.
20560         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
20561         * predict.def (PRED_CONTINUE): Update hitrate.
20562         * tree.def (PREDICT_EXPR): Define.
20563         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
20564         do not handle BIND_EXPR.
20565         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
20566         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
20567         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
20568         operands.
20570 2008-03-18  Michael Matz  <matz@suse.de>
20572         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
20574 2008-03-18  Richard Guenther  <rguenther@suse.de>
20576         * tree-gimple.h (is_gimple_invariant_address): Declare.
20577         (is_gimple_constant): Likewise.
20578         * tree-gimple.c (is_gimple_constant): New function.
20579         (is_gimple_invariant_address): Likewise.
20580         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
20581         and is_gimple_invariant_address.
20582         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
20583         previous change.
20584         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
20585         an addressable base.
20587 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
20589         PR middle-end/35611
20590         * gimplify.c (gimplify_expr): Gimplify second operand of
20591         OMP_ATOMIC_LOAD.
20593 2008-03-17  Richard Guenther  <rguenther@suse.de>
20595         PR tree-optimization/19637
20596         * fold-const.c (fold_unary): Remove restrictions of removing
20597         intermediate pointer-conversions (P2)(P1)P0.
20598         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
20599         conversion to void pointer.
20600         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
20602 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
20604         PR debug/31510
20605         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
20606         emulated thread local variables.
20608 2008-03-16  Richard Guenther  <rguenther@suse.de>
20610         PR middle-end/35607
20611         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
20612         expand TREE_INVARIANT operations that are not gimple invariant.
20614 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
20616         * doc/extend.texi (Alignment): Say that the ABI controls
20617         the __alignof__ for non-strict-alignment targets rather
20618         than being a recommendation.
20620 2008-03-15  Paul Brook  <paul@codesourcery.com>
20622         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
20623         annotations.
20624         (arm_output_fn_unwind): Mark functions that can not be unwound.
20626 2008-03-15  Paul Brook  <paul@codesourcery.com>
20628         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
20629         extension instructions.
20631 2008-03-15  Richard Guenther  <rguenther@suse.de>
20633         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
20634         and fold constant aggregate refs.
20635         (fold_const_aggregate_ref): Handle string constants
20636         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
20637         (evaluate_stmt): Simplify now that ccp_fold folds constant
20638         aggregate refs.
20640 2008-03-15  Paul Brook  <paul@codesourcery.com>
20642         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
20643         (extzv): Use gen_extzv_t2.
20644         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
20646 2008-03-15  Richard Guenther  <rguenther@suse.de>
20648         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
20649         (fold_const_aggregate_ref): Likewise.
20650         (get_value): Return NULL if we don't have any values.
20651         (ccp_finalize): Set const_val to NULL after freeing it.
20652         * tree-flow.h (get_symbol_constant_value): Declare.
20653         (fold_const_aggregate_ref): Likewise.
20654         * tree-ssa-sccvn.c (try_to_simplify): Use them.
20656 2008-03-15  Richard Guenther  <rguenther@suse.de>
20658         PR middle-end/35593
20659         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
20660         to not produce negative array indices if not allowed.  Add
20661         parameter to indicate that.
20662         (maybe_fold_offset_to_component_ref): Allow negative array
20663         indices only for the first member of a structure.
20664         (maybe_fold_offset_to_reference): Allow negative array indices.
20665         (maybe_fold_stmt_addition): Likewise.
20667 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
20668             Anatoly Sokolov <aesok@post.ru>
20670         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
20671         (avr_arch): Add ARCH_AVR6.
20672         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
20673         (initial_elimination_offset): Initialize and use 'avr_pc_size'
20674         instead of fixed value 2.
20675         (print_operand_address): Use gs() asm specifier instead of pm().
20676         (avr_assemble_integer): (Ditto.).
20677         (avr_output_addr_vec_elt): (Ditto.).
20678         (print_operand): Handle "!" code.
20679         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
20680         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
20681         (AVR_HAVE_EIJMP_EICALL): Define.
20682         (AVR_3_BYTE_PC): Redefine.
20683         (AVR_2_BYTE_PC): (Ditto.).
20684         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
20685         (LINK_SPEC): Add atmega2560 and atmega2561.
20686         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
20687         (crtm2561.o).
20688         * config/avr/avr.md (call_insn): Use eicall instead of icall
20689         for 3 byte PC devices.
20690         (call_value_insn): (Ditto.).
20691         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
20692         (indirect_jump): Use only for for 2 byte PC devices.
20693         (*tablejump): (Ditto.).
20694         (*indirect_jump_avr6): Add insn.
20695         (*tablejump_rjmp): Don't use for 3 byte PC devices.
20696         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
20697         instead of ijmp for 3 byte PC devices.
20698         (__tablejump2__): (Ditto.).
20699         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
20700         (MULITLIB_DIRNAMES): (Ditto.).
20701         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
20703 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
20705         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
20706         "sse2_umulsidi3".  Use V1DI mode for operand 0.
20707         ("mmx_psadbw"): Use V1DI mode for operand 0.
20708         * config/i386/i386-modes.def (V1SI): New vector mode.
20709         * config/i386/i386.c (struct builtin_description)
20710         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
20711         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
20712         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
20713         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
20714         v1di_ftype_v8qi_v8qi type.
20715         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
20717         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
20718         __builtin_ia32_pmuludq]: Fix the mode of return value.
20720 2008-03-15  Richard Guenther  <rguenther@suse.de>
20722         PR middle-end/35595
20723         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
20724         being a PHI_NODE.
20726 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
20728         * doc/invoke.texi (Option Summary, Xtensa Options): Document
20729         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
20730         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
20731         unless TARGET_SERIALIZE_VOLATILE is enabled.
20732         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
20733         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
20734         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
20736 2008-03-14  Richard Guenther  <rguenther@suse.de>
20738         PR tree-optimization/34172
20739         * tree-flow.h (refs_may_alias_p): Declare.
20740         (get_single_def_stmt): Likewise.
20741         (get_single_def_stmt_from_phi): Likewise.
20742         (get_single_def_stmt_with_phi): Likewise.
20743         * tree-dfa.c (refs_may_alias_p): New function.
20744         (get_single_def_stmt): Likewise.
20745         (get_single_def_stmt_from_phi): Likewise.
20746         (get_single_def_stmt_with_phi): Likewise.
20747         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
20748         (vn_reference_lookup_1): New helper function.
20749         (vn_reference_lookup): Walk the virtual use-def chain to
20750         continue searching for a match if the def does not alias the
20751         reference we are looking for.
20753 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
20755         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
20756         archive and Perzl.  Update The Written Word listing.
20758 2008-03-14  Richard Guenther  <rguenther@suse.de>
20760         PR tree-optimization/34043
20761         PR tree-optimization/33989
20762         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
20763         when doing FRE.
20764         (bitmap_find_leader): Use extra argument to verify dominance
20765         relationship inside a basic-block.
20766         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
20767         (find_leader_in_sets): Adjust.
20768         (create_component_ref_by_pieces): Take extra argument for
20769         dominance check, handle lookup failures.
20770         (find_or_generate_expression): Likewise.
20771         (create_expression_by_pieces): Likewise.
20772         (insert_into_preds_of_block): Adjust.
20773         (create_value_expr_from): If asked for, verify all operands
20774         are in the blocks AVAIL_OUT set.
20775         (make_values_for_stmt): Check for SSA_NAMEs that are life
20776         over an abnormal edge.
20777         (compute_avail): Remove such check.
20778         (do_SCCVN_insertion): New function.
20779         (eliminate): If we do not find a leader suitable for replacement
20780         insert a replacement expression from SCCVN if available.
20781         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
20782         (struct vn_ssa_aux): Add needs_insertion flag.
20783         * tree-ssa-sccvn.c (may_insert): New global flag.
20784         (copy_reference_ops_from_ref): Value-number union member access
20785         based on its size, not type and member if insertion is allowed.
20786         (visit_reference_op_load): For a weak match from union type
20787         punning lookup a view-converted value and insert a SSA_NAME
20788         for that value if that is not found.
20789         (visit_use): Make dumps shorter.  Do not disallow value numbering
20790         SSA_NAMEs that are life over an abnormal edge to constants.
20791         (free_scc_vn): Release inserted SSA_NAMEs.
20792         (run_scc_vn): New flag to specify whether insertion is allowed.
20793         Process SSA_NAMEs in forward order.
20794         * tree-ssa-loop-im.c (for_each_index): Handle invariant
20795         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
20796         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
20797         pointer type to/from integral types that do not change the
20798         precision to regular conversions.
20800 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
20802         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
20803         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
20804         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
20805         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
20806         input arguments and the mode of return value.  Built-in functions
20807         that operate on whole 64-bit MMX register now use V1DI mode.
20809 2008-03-13  Alon Dayan  <alond@il.ibm.com>
20810             Olga Golovanevsky  <olga@il.ibm.com>
20812         PR tree-optimization/35041
20813         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
20814         to locate the right position in a statement.
20816 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
20818         PR target/34000
20819         PR target/35553
20820         * config/i386/xmmintrin.h:  Change all static inline functions to
20821         extern inline and add __gnu_inline__ attribute.
20822         * config/i386/bmintrin.h: Ditto.
20823         * config/i386/smmintrin.h: Ditto.
20824         * config/i386/tmmintrin.h: Ditto.
20825         * config/i386/mmintrin-common.h: Ditto.
20826         * config/i386/ammintrin.h: Ditto.
20827         * config/i386/emmintrin.h: Ditto.
20828         * config/i386/pmmintrin.h: Ditto.
20829         * config/i386/mmintrin.h: Ditto.
20830         * config/i386/mm3dnow.h: Ditto.
20832 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
20834         PR middle-end/35185
20835         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
20836         (lower_omp_2): New function.
20837         (lower_omp_1, lower_omp): Rewritten.
20839 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
20841         PR 35054
20842         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
20843         with the phrase "Microsoft Windows compilers".
20844         (Push/Pop Macro Pragmas): New subsection. Document
20845         #pragma push_macro and pragma pop_macro.
20847 2008-03-12  Paul Brook  <paul@codesourcery.com>
20849         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
20851 2008-03-12  Paul Brook  <paul@codesourcery.com>
20853         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
20854         (thumb2_alusi3_short): Exclude PLUS and MINUS.
20855         (thumb2_addsi_shortim): Rename ...
20856         (thumb2_addsi_short): ... to this.  Allow register operands.
20857         (thumb2_subsi_short): New pattern.
20858         (thumb2_one_cmplsi2_short,
20859         thumb2_negsi2_short): New patterns and peepholes.
20861 2008-03-12  Paul Brook  <paul@codesourcery.com>
20863         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
20865 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
20867         * config/i386/i386.md (int_cond): New code iterator.
20868         (fp_cond): Ditto.
20869         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
20870         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
20871         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
20872         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
20873         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
20874         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
20875         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
20876         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
20878 2008-03-12  Paul Brook  <paul@codesourcery.com>
20880         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
20881         instead of {arm,thumb}_compute_save_reg_mask.
20882         (output_return_instruction): Ditto.
20883         (thumb_unexpanded_epilogue): Ditto.
20884         (thumb1_expand_prologue): Ditto.
20885         (thumb1_output_function_prologue): Ditto.
20886         (arm_set_return_address): Ditto.
20887         (thumb_set_return_address): Ditto.
20888         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
20889         regs to achieve stack alignment.
20890         (thumb1_compute_save_reg_mask): Fix compiler warning.
20891         (arm_output_epilogue): Use offsets->saved_regs_mask.
20892         Adjust stack pointer by poping call clobered registers.
20893         (arm_expand_prologue): Use offsets->saved_regs_mask.
20894         Adjust stack pointer by pushing extra registers.
20895         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
20897 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
20899         PR tree-opt/35422
20900         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
20901         conversion to the operands of a multiplication.
20903 2008-03-12  Richard Guenther  <rguenther@suse.de>
20905         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
20906         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
20907         * timevar.def (TV_TREE_PHIPROP): Add.
20908         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
20909         pass description.  Use TV_TREE_PHIPROP.
20910         * tree-ssa-forwprop.c: Remove phiprop code.
20912 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
20914         PR middle-end/35549
20915         * omp-low.c (maybe_lookup_decl): Constify first argument.
20916         (use_pointer_for_field): Change last argument from bool to
20917         omp_context *.  Disallow shared copy-in/out in nested
20918         parallel if decl is shared in outer parallel too.
20919         (build_outer_var_ref, scan_sharing_clauses,
20920         lower_rec_input_clauses, lower_copyprivate_clauses,
20921         lower_send_clauses, lower_send_shared_vars): Adjust callers.
20923 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
20924             Ira Rosen  <irar@il.ibm.com>
20926         * tree-vectorizer.c (free_stmt_vec_info): New function.
20927         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
20928         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
20929         * tree-vectorizer.h (free_stmt_vec_info): Declare.
20930         * tree-vect-transform.c (vectorizable_conversion): Free
20931         vec_oprnds0 if it was allocated.
20932         (vect_permute_store_chain): Remove unused VECs.
20933         (vectorizable_store): Free VECs that are allocated in the..
20934         function.
20935         (vect_transform_strided_load, vectorizable_load): Likewise.
20936         (vect_remove_stores): Simplify the code.
20937         (vect_transform_loop): Move code to vect_remove_stores().
20938         Call vect_remove_stores() and free_stmt_vec_info().
20940 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20942         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
20943         TARGET_HPUX.  Revise comment.
20944         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
20945         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
20946         Use sr4 variant of `be' instruction when not generating PIC code.
20947         (attr_length_call): Adjust for above change.
20949 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20951         * ipa-reference.c (static_execute): Remove module_statics_const and
20952         associated setting code.
20954 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
20956         PR target/35540
20957         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
20958         predicate for operand 1.
20959         (paritysi2_cmp): Use register_operand predicate for operand 2.
20960         Use earlyclobber modifier for operand 1.  Remove support for
20961         memory operands.
20962         (paritydi2_cmp): Use register_operand predicate for operand 3.
20963         Use earlyclobber modifier for operand 1.  Remove support for
20964         memory operands.
20966 2008-03-11  Paul Brook  <paul@codesourcery.com>
20967             Vladimir Prus  <vladimir@codesourcery.com>
20969         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
20970         (arm_compute_save_reg0_reg12_mask): Always
20971         check if register 11 must be saved.  Always safe hard frame pointer
20972         when frame_pointer_needeed.
20973         (arm_compute_save_reg_mask): Save IP and PC
20974         only with apcs frames.
20975         (arm_output_epilogue): Adjust Thumb2 codepath to
20976         be also invoked and work for ARM non-apcs frames.
20977         (arm_expand_prologue): Don't bother saving IP
20978         for non-apcs frame, since it's not clobbered by
20979         prologue code.  Implement non-apcs frame
20980         layout.
20982 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
20984         PR rtl-optimization/35281
20985         * expr.c (convert_move): Use a new pseudo for the intermediate
20986         from_mode->word_mode result.
20988 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
20990         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
20991         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
20992         * toplev.c (compile_file): Don't call it.
20994 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
20996         PR middle-end/35526
20997         * expr.c (store_expr): Call emit_block_move if the mode
20998         of "temp" RTX is BLKmode.
21000 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21001             Richard Guenther  <rguenther@suse.de>
21003         PR tree-optimization/31358
21004         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
21005         the step with a NULL_TREE.
21006         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
21007         to sizetype if type is a pointer type.
21008         (add_candidate_1): Don't convert the base and step to
21009         the generic type if the orginal type is a pointer type.
21010         (add_iv_value_candidates): Use sizetype for the step
21011         if type is a pointer type.
21012         (cand_value_at): Likewise.
21013         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
21014         for pointer types.
21015         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
21016         Don't convert the tem affine to the type.
21017         (add_elt_to_tree): Use sizetype for the step if a pointer.
21018         Use POINTER_PLUS_EXPR for pointers.
21019         (aff_combination_to_tree): Use sizetype for the step if a
21020         pointer.
21022 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
21024         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
21025         Remove commutativity hint.
21027 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
21029         PR c/35438
21030         PR c/35439
21031         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
21032         errorneous type.  Check that v is a VAR_DECL.
21034         PR middle-end/35099
21035         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
21037 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
21039         PR tree-optimization/35494
21040         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
21041         may be overriden at link and run time.
21043 2008-03-10  Richard Guenther  <rguenther@suse.de>
21045         PR tree-optimization/34677
21046         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
21047         (poolify_tree): Likewise.
21048         (modify_expr_template): Likewise.
21049         (poolify_modify_stmt): Likewise.
21050         (insert_fake_stores): Handle all component-ref style stores
21051         in addition to INDIRECT_REF.  Also handle complex types.
21052         Do not poolify the inserted load.
21053         (realify_fake_stores): Do not rebuild the tree but only
21054         make it a SSA_NAME copy.
21055         (init_pre): Remove initialzation of modify_expr_template.
21056         Do not allocate modify_expr_node_pool.
21057         (fini_pre): Do not free modify_expr_node_pool.
21059 2008-03-10  Paul Brook  <paul@codesourcery.com>
21061         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
21062         to avoid conflicts.
21064 2008-03-10  Paul Brook  <paul@codesourcery.com>
21065             Mark Shinwell  <shinwell@codesourcery.com>
21067         * config/arm/cortex-r4.md: New.
21068         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
21069         insn attributes.
21070         * config/arm/arm.md: Include cortex-r4.md.
21071         (insn): Add smmls, sdiv and udiv values.
21072         (generic_sched): Don't use generic scheduling for Cortex-R4.
21073         (arm_issue_rate): New function.
21074         (TARGET_SCHED_ISSUE_RATE): Define.
21076 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
21078         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
21080 2008-03-10  Richard Guenther  <rguenther@suse.de>
21082         * tree-ssa-pre.c (get_sccvn_value): Simplify.
21083         (compute_avail): Do not add stmt uses to AVAIL_OUT.
21085 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
21087         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
21088         Set default to true.
21090 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21092         * c.opt (Wsynth): Deprecate.
21093         * doc/invoke.texi (Option Summary, Warning Options): Document
21094         -Wno-format-contains-nul.
21096 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
21098         PR target/35496
21099         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
21100         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
21102 2008-03-09  Ira Rosen  <irar@il.ibm.com>
21104         * config/rs6000/rs6000.c (builtin_description): Rename vector
21105         left shift operations.
21106         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
21107         (altivec_vsl<VI_char>): Rename to ...
21108         (ashl<mode>3): ... new name.
21109         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
21110         gen_ashlv4si3.
21111         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
21113 2008-03-08  Richard Guenther  <rguenther@suse.de>
21115         * coverage.h (tree_coverage_counter_addr): Declare.
21116         * coverage.c (tree_coverage_counter_addr): New function.
21117         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
21118         before using again.
21119         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
21120         (tree_gen_one_value_profiler): Likewise.
21121         (tree_gen_ic_profiler): Likewise.
21122         (tree_gen_average_profiler): Likewise.
21123         (tree_gen_ior_profiler): Likewise.
21125 2008-03-08  Richard Guenther  <rguenther@suse.de>
21127         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
21128         (vn_binary_op_insert): Likewise.
21129         (vn_unary_op_lookup): Likewise.
21130         (vn_unary_op_insert): Likewise.
21131         (vn_nary_op_lookup): Declare.
21132         (vn_nary_op_insert): Likewise.
21133         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
21134         and binary hashes, use a single obstack for unary_op_pool
21135         and binary_op_pool.
21136         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
21137         a single struct vn_nary_op_s.  Store tree code length and
21138         a variable number of operands.
21139         (struct vn_reference_op_struct): Remove unused op2.
21140         (vn_reference_op_eq): Do not compare op2.
21141         (vn_reference_op_compute_hash): Do not compute hash of op2.
21142         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
21143         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
21144         with vn_nary_op_compute_hash.
21145         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
21146         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
21147         vn_nary_op_lookup.
21148         (vn_unary_op_insert, vn_binary_op_insert): Replace with
21149         vn_nary_op_insert.
21150         (visit_unary_op): Call nary functions.
21151         (visit_binary_op): Likewise.
21152         (process_scc): Adjust for struct vn_tables_s changes.
21153         (allocate_vn_table): Likewise.
21154         (free_vn_table): Likewise.
21155         * tree-vn.c (vn_add): Call nary functions.
21156         (vn_lookup): Likewise.
21158 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
21160         PR target/35498
21161         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
21162         wdst back after sync_compare_and_swapqhi_internal.
21164 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
21166         PR target/22152
21167         * config/i386/i386-modes.def (V1DI): New vector mode.
21168         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
21169         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
21170         (MMXMODE248): Ditto.
21171         (MMXMODE): Add V1DI mode.
21172         (mmxvecsize): Change DI mode to V1DI mode.
21173         ("mov<mode>): Use MMXMODEI8 mode iterator.
21174         ("*mov<mode>_internal_rex64"): Ditto.
21175         ("*mov<mode>_internal"): Ditto.
21176         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
21177         ("mmx_sub<mode>3"): Ditto.
21178         ("mmx_adddi3"): Remove insn pattern.
21179         ("mmx_subdi3"): Ditto.
21180         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
21181         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
21182         ("mmx_ashl<mode>3"): Ditto.
21183         ("mmx_lshrdi3"): Remove insn pattern.
21184         ("mmx_ashldi3"): Ditto.
21185         * config/i386/i386.c (classify_argument): Handle V1DImode.
21186         (function_arg_advance_32): Ditto.
21187         (function_arg_32): Ditto.
21188         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
21189         mmx_addv1di3 insn pattern.
21190         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
21191         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
21192         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
21193         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
21194         Remove definitions of built-in functions.
21195         (V1DI_type_node): New node.
21196         (v1di_ftype_v1di_int): Ditto.
21197         (v1di_ftype_v1di_v1di): Ditto.
21198         (v2si_ftype_v2si_si): Ditto.
21199         (v4hi_ftype_v4hi_di): Remove node.
21200         (v2si_ftype_v2si_di): Ditto.
21201         (ix86_init_mmx_sse_builtins): Handle V1DImode.
21202         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
21203         Redefine builtins using def_builtin_const with *_ftype_*_int node.
21204         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
21205         Add new builtins using def_builtin_const.
21206         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
21207         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
21208         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
21209         * config/i386/mmintrin.h (__v1di): New typedef.
21210         (_mm_add_si64): Cast arguments to __v1di type.
21211         (_mm_sub_si64): Ditto.
21212         (_mm_sll_pi16): Cast __count to __v4hi type.
21213         (_mm_sll_pi32): Cast __count to __v2si type.
21214         (_mm_sll_si64): Cast arguments to __v1di type.
21215         (_mm_srl_pi16): Cast __count to __v4hi type.
21216         (_mm_srl_pi32): Cast __count to __v2si type.
21217         (_mm_srl_si64): Cast arguments to __v1di type.
21218         (_mm_sra_pi16): Cast __count to __v4hi type.
21219         (_mm_sra_pi32): Cast __count to __v2si type.
21220         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
21221         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
21222         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
21223         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
21224         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
21225         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
21226         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
21227         (_mm_srai_pi32): Use __builtin_ia32_psradi.
21228         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
21229         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
21230         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
21231         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
21233 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
21235         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
21237 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
21239         PR target/35373
21240         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
21241         reg+const addressing for Altivec modes.  Don't generate reg+reg
21242         addressing for TFmode or TDmode quantities.
21244 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
21246         * c-common.c (vector_types_convertible_p): Call langhook
21247         instead of comptypes.
21249 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21251         PR tree-opt/35402
21252         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
21253         integral and scalar float variables which have a
21254         NULL DECL_INITIAL.
21256 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
21258         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
21259         dwarf_register_span hook when emitting unwind information for
21260         register-to-memory saves.
21261         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
21262         (rs6000_frame_related): Remove call to spe_synthesize_frame.
21264 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
21266         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
21267         for the same VAR_DECL.
21269 2008-03-06  Tom Tromey  <tromey@redhat.com>
21271         * treelang: Delete.
21272         * doc/standards.texi (Standards): Don't mention treelang.
21273         * doc/invoke.texi (Overall Options): Don't mention treelang.
21274         * doc/install.texi (Prerequisites): Don't mention bison or
21275         treelang.
21276         (Configuration): Don't mention treelang.
21277         (Building): Likewise.
21278         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
21280 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
21282         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
21283         word-extractions out of a multi-word object.
21285 2008-03-06  Richard Guenther  <rguenther@suse.de>
21287         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
21288         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
21289         result type and precision.
21290         * expr.c (get_inner_reference): Set unsignedp based on the result
21291         type of BIT_FIELD_REF.
21292         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
21293         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
21294         (try_instantiate_multiple_fields): Likewise.  Use the correct type
21295         for BIT_FIELD_REF.
21296         (sra_build_assignment): Likewise.
21297         (sra_build_elt_assignment): Likewise.
21298         (sra_explode_bitfield_assignment): Likewise.
21299         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
21300         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
21301         set BIT_FIELD_REF_UNSIGNED.
21302         (vectorizable_load): Likewise.
21304 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
21306         * cse.c (cse_extended_basic_block): Invalidate artificial defs
21307         at bb start.
21309 2008-03-06  Richard Guenther  <rguenther@suse.de>
21311         * alias.c (struct alias_set_entry): Move has_zero_child field
21312         to pack with alias_set.
21314 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
21316         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
21317         32bit host.
21319 2008-03-05  Ian Lance Taylor  <iant@google.com>
21321         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
21323 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
21325         * fwprop.c (update_df): Support width and offset parameters of
21326         df_ref_create.
21327         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
21328         global_conflicts): Change DF_REF_EXTRACT to either
21329         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
21330         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
21331         * df-scan.c (df_ref_record, df_defs_record,
21332         df_ref_create_structure, df_def_record_1, df_uses_record,
21333         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
21334         df_bb_refs_collect, df_entry_block_defs_collect,
21335         df_exit_block_uses_collect): Support new width and offset fields.
21336         (ref_extract_pool): New storage pool.
21337         (df_free_ref): New function.
21338         (df_reg_chain_unlink, df_free_collection_rec,
21339         df_sort_and_compress_refs): Call df_free_ref.
21340         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
21341         of df_ref_extract.
21342         (df_ref_create_structure): Allocate df_ref_extract if offset and
21343         width fields are used.
21344         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
21345         (df_uses_record): Get offset and width from ZERO_EXTRACT
21346         and SIGN_EXTRACT.
21347         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
21348         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
21349         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
21350         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
21351         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
21352         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
21353         (df_ref_extract): New structure.
21354         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
21355         (df_ref_create): Add width and offset parameters.
21357 2008-03-05  Richard Guenther  <rguenther@suse.de>
21359         * tree-ssa-structalias.c (get_constraint_for_component_ref):
21360         Use ranges_overlap_p.
21361         (offset_overlaps_with_access): Rename
21362         to ranges_overlap_p and move ...
21363         * tree-flow-inline.h (ranges_overlap_p): ... here.
21365         * tree.h (get_inner_reference, handled_component_p): Update
21366         comments.
21368         * tree.h (record_component_aliases, get_alias_set,
21369         alias_sets_conflict_p, alias_sets_must_conflict_p,
21370         objects_must_conflict_p): Move declarations ...
21371         * alias.h (record_component_aliases, get_alias_set,
21372         alias_sets_conflict_p, alias_sets_must_conflict_p,
21373         objects_must_conflict_p): ... here.
21374         Include coretypes.h.
21375         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
21377 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
21379         * cfg.c: Include tree-flow.h.
21380         (remove_edge_raw): Call redirect_edge_var_map_clear.
21381         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
21382         * tree-flow-inline.h (redirect_edge_var_map_def): New.
21383         (redirect_edge_var_map_result): New.
21384         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
21385         PENDING_STMT use with redirect_edge_var_map_*.
21386         * tree-ssa.c (edge_var_maps): New definition.
21387         (redirect_edge_var_map_add): New.
21388         (redirect_edge_var_map_clear): New.
21389         (redirect_edge_var_map_dup): New.
21390         (redirect_edge_var_map_vector): New.
21391         (redirect_edge_var_map_destroy): New.
21392         (ssa_redirect_edge): Replace PENDING_STMT use with
21393         redirect_edge_var_map_*.
21394         (flush_pending_stmts): Same.
21395         (delete_tree_ssa): Destroy edge var map.
21396         * tree-flow.h (struct _edge_var_map): New.
21397         Define edge_var_map vector type.
21398         Declare redirect_edge_var_map_* prototypes.
21399         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
21400         * tree-cfg.c (reinstall_phi_args): Replace
21401         PENDING_STMT use with redirect_edge_var_map_*.
21403 2008-03-05  Richard Guenther  <rguenther@suse.de>
21405         PR tree-optimization/35472
21406         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
21407         whose single use_stmt has a overlapping set of loaded and
21408         stored symbols as that use_stmt might be a noop assignment then.
21410 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
21412         * gthr-rtems.h: Implement __gthread_mutex_destroy.
21414 2008-03-05  Richard Guenther  <rguenther@suse.de>
21416         PR c++/35336
21417         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
21418         should be constants.
21419         * tree-cfg.c (verify_expr): Verify it.
21420         * fold-const.c (fold_truthop): Remove code generating
21421         BIT_FIELD_REFs of structure bases.
21422         (fold_binary): Likewise.
21423         (fold_ternary): Position and size of BIT_FIELD_REFs are
21424         always host integers.
21425         (make_bit_field_ref): Remove.
21426         (optimize_bit_field_compare): Remove.
21427         (all_ones_mask_p): Remove.
21429 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
21431         PR gcc/33009
21432         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
21433         (split_block_and_df_analyze): New. Split basic block and rebuild
21434         dataflow.
21435         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
21436         SPLIT_BLOCK.
21437         (split_pattern_seq): Likewise.
21438         (erase_matching_seqs): Likewise.
21439         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
21441 2008-03-04  Geoff Keating  <geoffk@apple.com>
21443         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
21444         declaration and code.
21445         (tree_invalid_nonnegative_warnv_p): Likewise.
21447 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
21449         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
21450         examples.  Truncate option-names then causing overfull hbox.
21452 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21454         PR target/35222
21455         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
21456         on hpux10.
21457         * configure: Rebuilt.
21459 2008-03-04  Rafael Espindola  <espindola@google.com>
21461         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
21462         (tree_unary_nonnegative_warnv_p): New.
21463         (tree_binary_nonnegative_warnv_p): New.
21464         (tree_single_nonnegative_warnv_p): New.
21465         (tree_invalid_nonnegative_warnv_p): New.
21466         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
21468 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21470         PR 28322
21471         * opts.c (handle_option): Postpone 'unknown option' errors only for
21472         warning options.
21474 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
21476         PR target/35453
21477         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
21478         (_SIDD_XXX): This.
21480 2008-03-04  Rafael Espindola  <espindola@google.com>
21482         * fold-const.c (tree_unary_nonzero_warnv_p): New.
21483         (tree_binary_nonzero_warnv_p): New.
21484         (tree_single_nonzero_warnv_p): New.
21485         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
21487 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
21489         PR middle-end/35456
21490         * fold-const.c (fold_cond_expr_with_comparison): Prevent
21491         transformations for modes that have signed zeros.
21492         * ifcvt.c (noce_try_abs): Ditto.
21494 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
21496         * config/i386/i386.c (override_options): Force
21497         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
21499 2008-03-04  Jan Hubicka  <jh@suse.cz>
21501         PR c++/35262
21502         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
21503         in last commit.
21505 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
21507         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
21508         label to probe the stack.
21510 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
21512         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
21513         (__gthr_win32_mutex_destroy): Declare.
21514         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
21515         __gthr_win32_mutex_destroy.
21516         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
21518 2008-03-03  Jan Hubicka  <jh@suse.cz>
21520         PR c++/35262
21521         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
21522         aggressive on inlining cold calls.
21524 2008-03-03  Richard Guenther  <rguenther@suse.de>
21526         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
21527         struct copies into the expression table.
21528         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
21529         (try_to_simplify): Likewise.
21530         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
21531         integral and pointer arguments which do not change the
21532         precision to NOP_EXPRs.
21533         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
21534         VIEW_CONVERT_EXPR case.
21536 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
21538         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
21539         defined in a loop at depth 0 is invariant.
21540         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
21541         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
21542         be called at loop depth 0.
21544 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
21546         PR driver/35420
21547         * gcc.c (process_command): Update copyright notice dates.
21548         * gcov.c (print_version): Likewise.
21549         * gcov-dump.c (print_version): Likewise.
21550         * mips-tfile.c (main): Likewise.
21551         * mips-tdump.c (main): Likewise.
21553 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21555         PR 24924
21556         * c-common.c (flag_permissive): Delete.
21557         (constant_expression_warnings): Check flags first.
21558         (constant_expression_error): New.
21559         * c-common.h (flag_permissive): Delete.
21560         (constant_expression_error): Declare.
21561         * flags.h (flag_permissive): Declare. Update description.
21562         * diagnostic.c (pedwarn): Update.
21563         (permerror): New.
21564         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
21565         (permissive_error_kind): New.
21566         * toplev.c (flag_permissive): Define. Update description.
21567         * toplev.h (permissive_error_kind): Declare.
21568         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
21569         (pedwarn_c90): Use pedantic_warning_kind.
21570         * c-opts.c (c_common_post_options): flag_permissive does not affect
21571         flag_pedantic_errors.
21573 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
21575         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
21576         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
21577         __absvsi2, __absvDI2): Use unsigned arithmetic.
21579 2008-03-02  Andi Kleen  <ak@suse.de>
21580             Richard Guenther  <rguenther@suse.de>
21582         * struct-equiv.c: Remove file.
21583         * cfg_cleanup.c (condjump_equiv_p): Remove.
21584         * Makefile.in (OBJS-common): Remove struct-equiv.o.
21585         (struct-equiv.o): Remove rule.
21586         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
21587         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
21588         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
21590 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
21592         * ifcvt.c (noce_process_if_block): Try to handle only the then
21593         block if the else block exists but isn't suitable.
21595 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
21597         PR gcc/35063
21598         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
21599         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
21600         regression from previous patch.
21602 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
21604         PR gcc/35063
21605         * gthr.h: Add __gthread_mutex_destroy as a function that must be
21606         implemented.
21607         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
21608         * gthr-single.h (__gthread_mutex_destroy): Likewise.
21609         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
21610         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
21611         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
21612         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
21613         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
21614         (__gthread_mutex_destroy_function): Rename to
21615         __gthread_mutex_destroy.
21616         * gthr-dce.h (__gthread_mutex_destroy): Call
21617         pthread_mutex_destroy.
21618         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
21619         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
21620         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
21622 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
21624         * df-scan.c (df_ref_chain_change_bb): Simplify.
21625         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
21626         set_block_for_insn if there's any change.
21627         * df.h ((df_insn_change_bb): Fix prototype.
21628         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
21629         df_insn_change_bb, don't call set_block_for_insn.
21630         * emit-rtl.c (reorder_insns): Likewise.
21631         * haifa-sched.c (move_insn): Likewise.
21633 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
21635         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
21637 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
21639         * tree-flow-inline.h (next_readonly_imm_use): Return
21640         NULL_USE_OPERAND_P after the end.
21642 2008-03-01  Richard Guenther  <rguenther@suse.de>
21644         PR tree-optimization/35411
21645         * tree-sra.c (sra_build_assignment): Split conversion to
21646         final type to a separate statement if we are not assigning
21647         to a register.
21649 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
21651         * fold-const.c (fold_convertible_p): Correct the logic to follow
21652         that in fold_convert().
21654 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
21656         PR c++/35315
21657         * tree-inline.c (build_duplicate_type): When we make a
21658         duplicate type, make it unique in the canonical types system.
21660 2008-02-29  Tom Tromey  <tromey@redhat.com>
21662         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
21663         input_file_stack_history, input_file_stack_restored): Remove.
21664         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
21665         * input.h (struct file_stack): Remove.
21666         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
21667         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
21668         Likewise.
21669         * diagnostic.h (struct diagnostic_context) <last_module>: Change
21670         type.
21671         (diagnostic_last_module_changed): Add 'map' argument.
21672         (diagnostic_set_last_function): Likewise.
21673         * diagnostic.c (undiagnostic_report_current_module): Iterate using
21674         line map, not input_file_stack.
21675         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
21677 2008-02-29  Paul Brook  <paul@codesourcery.com>
21679         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
21681 2008-02-29  Paul Brook  <paul@codesourcery.com>
21683         * config/arm/ieee754-df.S (muldf3): Use RET macros.
21685 2008-02-29  Richard Guenther  <rguenther@suse.de>
21687         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
21688         vn_lookup_or_add.
21689         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
21690         value for comparing for a store match.
21691         (simplify_unary_expression): Do nothing for SSA_NAMEs.
21692         (try_to_simplify): Do not do a full-blown reference lookup.
21694 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
21696         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
21697         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
21699         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
21701 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
21703         * tree-loop-linear.c (try_interchange_loops): Compare memory access
21704         strides against cache sizes.
21706 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
21708         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
21709         constant to fpul.
21711 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
21713         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
21714         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
21715         is smaller than the original promoted value.
21716         (simplify_subreg): If OP is a SUBREG, try to preserve its
21717         SUBREG_PROMOTED_VAR_P information.
21719 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
21721         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
21722         (VN_INFO_GET): Allocate new objects on the obstack.
21723         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
21724         for rpo_numbers_temp, for consistency.
21725         (free_scc_vn): Free the obstack.
21727 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
21729         * doc/invoke.texi: Document -ftree-loop-distribution.
21730         * tree-loop-distribution.c: New.
21731         * tree-pass.h (pass_loop_distribution): New.
21732         * graphds.h (struct graph): Add htab_t indices.
21733         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
21734         * tree-vectorizer.c (rename_variables_in_loop): Extern.
21735         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
21736         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
21737         * tree-data-ref.c (debug_data_dependence_relations): New.
21738         (dump_data_dependence_relation): Also print data references.
21739         (free_data_ref): Extern.
21740         (same_access_functions): Moved...
21741         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
21742         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
21743         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
21744         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
21745         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
21746         (stmts_from_loop): Skip LABEL_EXPR.
21747         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
21748         New.
21749         (build_rdg): Initialize rdg->indices htab.
21750         (free_rdg, stores_from_loop, ref_base_address,
21751         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
21752         have_similar_memory_accesses_1, ref_base_address_1,
21753         remove_similar_memory_refs): New.
21754         * tree-data-ref.h: Depend on tree-chrec.h.
21755         (debug_data_dependence_relations, free_data_ref): Declared.
21756         (same_access_functions): ... here.
21757         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
21758         New.
21759         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
21760         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
21761         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
21762         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
21763         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
21764         rdg_vertex_for_stmt): Declared.
21765         (struct rdg_edge): Add level.
21766         (RDGE_LEVEL): New.
21767         (free_rdg, stores_from_loop, remove_similar_memory_refs,
21768         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
21769         Declared.
21770         (rdg_has_similar_memory_accesses): New.
21771         * tree-vect-analyze.c: Remove unused static decls.
21772         * lambda.h (dependence_level): New.
21773         * common.opt (ftree-loop-distribution): New.
21774         * tree-flow.h (mark_virtual_ops_in_bb,
21775         slpeel_tree_duplicate_loop_to_edge_cfg,
21776         rename_variables_in_loop): Declared.
21777         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
21778         (OBJS-common): Add tree-loop-distribution.o.
21779         (tree-loop-distribution.o): New rule.
21780         * tree-cfg.c (mark_virtual_ops_in_bb): New.
21781         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
21782         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
21784 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
21786         PR target/33963
21787         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
21788         other than structures and unions.
21790 2008-02-28  Richard Guenther  <rguenther@suse.de>
21792         Revert:
21793         2008-02-26  Richard Guenther  <rguenther@suse.de>
21795         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
21796         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
21797         (lookup_decl_from_uid): Declare.
21798         (remove_decl_from_map): Likewise.
21799         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
21800         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
21801         (decl_for_uid_map): New global hashtable mapping DECL_UID
21802         to the decl tree.
21803         (init_ttree): Allocate it.
21804         (insert_decl_to_uid_decl_map): New helper function.
21805         (make_node_stat): Insert new decls into the map.
21806         (copy_node_stat): Likewise.
21807         (lookup_decl_from_uid): New function.
21808         (remove_decl_from_map): Likewise.
21809         (print_decl_for_uid_map_statistics): New helper.
21810         (dump_tree_statistics): Call it.
21812         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
21813         (referenced_var_iterator): Adjust.
21814         (FOR_EACH_REFERENCED_VAR): Adjust.
21815         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
21816         (num_referenced_vars): Adjust.
21817         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
21818         (first_referenced_var): Remove.
21819         (end_referenced_vars_p): Likewise.
21820         (next_referenced_var): Likewise.
21821         (referenced_var_iterator_set): New helper function.
21822         * tree-dfa.c (referenced_var_lookup): Adjust.
21823         (referenced_var_check_and_insert): Likewise.
21824         (remove_referenced_var): Likewise.
21825         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
21826         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21827         (verify_call_clobbering): Likewise.
21828         (verify_memory_partitions): Likewise.
21829         (init_tree_ssa): Allocate bitmap instead of hashtable for
21830         referenced_vars.
21831         (delete_tree_ssa): Adjust.
21832         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
21833         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21834         (compute_tag_properties): Likewise.
21835         (set_initial_properties): Likewise.
21836         (find_partition_for): Likewise.
21837         (update_reference_counts): Likewise.
21838         (dump_may_aliases_for): Likewise.
21839         * tree-ssa-operands.c (add_virtual_operand): Likewise.
21840         (add_call_clobber_ops): Likewise.
21841         (add_call_read_ops): Likewise.
21842         (get_asm_expr_operands): Likewise.
21843         * tree-into-ssa.c (dump_decl_set): Likewise.
21844         (update_ssa): Likewise.
21845         * tree-sra.c (scan_function): Likewise.
21846         (decide_instantiations): Likewise.
21847         (scalarize_parms): Likewise.
21848         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
21849         (dsa_named_for): Likewise.
21850         * tree-ssa-structalias.c (update_alias_info): Likewise.
21851         (merge_smts_into): Likewise.
21853 2008-02-27  David Daney  <ddaney@avtrex.com>
21855         PR target/34409
21856         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
21857         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
21858         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
21859         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
21860         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
21862 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
21864         PR target/25477
21865         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
21866         (BUILT_IN_NEXTTOWARD): Remove.
21867         (BUILT_IN_NEXTTOWARDF): Ditto.
21868         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
21869         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
21871 2008-02-27  Tom Tromey  <tromey@redhat.com>
21873         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
21874         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
21876 2008-02-27  Jan Beulich  <jbeulich@novell.com>
21878         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
21879         update the respective field on newdecl.
21881 2008-02-27  Revital Eres  <eres@il.ibm.com>
21883         PR rtl-optimization/34999
21884         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
21885         crossing edges that ends with a call insn.
21886         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
21887         call insn and clear the EDGE_CROSSING flag of the crossing edge
21888         when fixing fallthru edges.
21890 2008-02-27  Richard Guenther  <rguenther@suse.de>
21892         PR middle-end/35390
21893         * fold-const.c (fold_unary): Return the correct argument,
21894         converted to the result type.
21896 2008-02-27  Richard Guenther  <rguenther@suse.de>
21898         PR middle-end/34971
21899         * expr.c (expand_expr_real_1): Assert on rotates that operate
21900         on partial modes.
21901         * fold-const.c (fold_binary): Use the types precision, not the
21902         bitsize of the mode if folding rotate expressions.  Build rotates
21903         only for full modes.
21905 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
21907         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
21908         and CPP_PRAGMA_EOL.
21909         * c-pragma.c (pragma_ns_name): New typedef.
21910         (registered_pp_pragmas): New variable.
21911         (c_pp_lookup_pragma): New function.
21912         (c_register_pragma_1): If flag_preprocess_only, do nothing
21913         for non-expanded pragmas, for expanded ones push pragma's
21914         namespace and name into registered_pp_pragmas vector.
21915         (c_invoke_pragma_handler): Register OpenMP pragmas even when
21916         flag_preprocess_only, don't register GCC pch_preprocess
21917         pragma if flag_preprocess_only.
21918         * c-opts.c (c_common_init): Call init_pragma even if
21919         flag_preprocess_only.
21920         * c-pragma.c (c_pp_lookup_pragma): New prototype.
21921         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
21922         cpp_register_pragma if flag_preprocess_only.
21924 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21926         PR c/28800
21927         * c-parser.c (c_parser_translation_unit): Warn for empty
21928         translation unit, not empty source file.
21930 2008-02-26  Paul Brook  <paul@codesourcery.com>
21932         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
21933         operand for Thumb-2.
21934         * config/arm/arm.h (reg_class): Add CORE_REGS.
21935         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
21936         (BASE_REG_CLASS): Use CORE_REGS.
21937         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
21938         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
21939         (REGNO_OK_FOR_INDEX_P): Exclude SP.
21940         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
21941         ARM_REGNO_OK_FOR_INDEX_P.
21942         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
21943         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
21944         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
21945         (ldm/stm peepholes): Ditto.
21946         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
21947         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
21948         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
21949         * config/arm/constraints.md: Enable "k" constraint on ARM.
21951 2008-02-27  Ben Elliston  <bje@au.ibm.com>
21953         * config/rs6000/rs6000.c: Annotate cache line size field in all
21954         instances of struct processor_costs.
21956 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
21958         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
21959         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
21960         jump_bypass): New counters.
21961         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
21962         * dce.c (gate_ud_dce): Same.
21963         (gate_fast_dce): Same.
21964         * dse.c (gate_dse1): New function.
21965         (gate_dse2): New function.
21966         (gate_dse): Merge results of new gate functions.
21967         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
21968         (gate_handle_jump_bypass): Add dbg_cnt.
21969         (gate_handle_gcse): Add dbg_cnt.
21970         * ifcvt.c (gate_handle_if_conversion): Same.
21971         (gate_handle_if_after_combine): Same.
21972         (gate_handle_if_after_reload): Same.
21973         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
21975 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
21977         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
21978         line sizes.
21979         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
21981 2008-02-26  Jason Merrill  <jason@redhat.com>
21983         PR c++/35315
21984         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
21985         alone if it's the naming decl for the type's main variant.
21987 2008-02-26  Tom Tromey  <tromey@redhat.com>
21989         * system.h (USE_MAPPED_LOCATION): Poison.
21990         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
21991         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
21992         (make_goto_expr_edges): Likewise.
21993         (remove_bb): Likewise.
21994         (execute_warn_function_return): Likewise.
21995         * basic-block.h (struct edge_def) <goto_locus>: Change type to
21996         location_t.
21997         * c-common.c (fname_decl): Remove old location code.
21998         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
21999         location code.
22000         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
22001         variant.
22002         (ASM_INPUT_SOURCE_LOCATION): Likewise.
22003         (gen_rtx_ASM_INPUT): Likewise.
22004         (gen_rtx_ASM_INPUT_loc): Likewise.
22005         (get_rtx_asm_OPERANDS): Remove.
22006         * cfglayout.c (insn_locators_alloc): Remove old location code.
22007         (set_curr_insn_source_location): Likewise.
22008         (curr_insn_locator): Likewise.
22009         * print-tree.c (print_node): Remove old location code.
22010         * tree-mudflap.c (mf_varname_tree): Remove old location code.
22011         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
22012         * cfgexpand.c (expand_gimple_cond_expr): Don't use
22013         location_from_locus.
22014         (construct_exit_block): Remove old location code.
22015         * emit-rtl.c (force_next_line_note): Remove old location code.
22016         * profile.c (branch_prob): Remove old location code.
22017         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
22018         LOC_LINE): Remove old-location variants.
22019         * langhooks.c (lhd_print_error_function): Remove old location
22020         code.
22021         * configure, config.in: Rebuilt.
22022         * configure.ac (--enable-mapped-location): Remove.
22023         * c-decl.c (c_init_decl_processing): Remove old location code.
22024         (finish_function): Likewise.
22025         * recog.c (decode_asm_operands): Remove old location code.
22026         * c-pch.c (c_common_read_pch): Remove old location code.
22027         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
22028         variants.
22029         * gimple-low.c (lower_function_body): Remove old location code.
22030         * toplev.c (unknown_location): Remove.
22031         (push_srcloc): Remove old-location variant.
22032         (process_options): Remove old location code.
22033         (lang_dependent_init): Likewise.
22034         * input.h (UNKNOWN_LOCATION): Move definition.
22035         (location_t): Undeprecate.
22036         (source_locus): Remove.
22037         (location_from_locus): Remove.
22038         (struct location_s): Remove.
22039         Remove all old-location code.
22040         (input_line, input_filename): Remove.
22041         * final.c (final_scan_insn): Remove old location code.
22042         * diagnostic.c (diagnostic_build_prefix): Remove
22043         USE_MAPPED_LOCATION test.
22044         * tree.h (gimple_stmt) <locus>: Now a location_t.
22045         (tree_exp) <locus>: Likewise.
22046         (DECL_IS_BUILTIN): Remove old-location variant.
22047         (annotate_with_file_line, annotate_with_locus): Likewise.
22048         (expr_locus, set_expr_locus): Update.
22049         * tree.c (build1_stat): Remove old location code.
22050         (last_annotated_node): Remove.
22051         (annotate_with_file_line): Remove old-location variant.
22052         (annotate_with_locus): Likewise.
22053         (expr_location): Remove old location code.
22054         (set_expr_location): Likewise.
22055         (expr_has_location): Likewise.
22056         (expr_locus): Likewise.
22057         (set_expr_locus): Likewise.
22058         (expr_filename): Don't use location_from_locus.
22059         (expr_lineno): Likewise.
22060         * rtl-error.c (location_for_asm): Remove old location code.
22061         * c-lex.c (cb_line_change): Remove old location code.
22062         (fe_file_change): Likewise.
22063         (cb_def_pragma): Likewise.
22064         (c_lex_with_flags): Likewise.
22065         * gengtype.c (do_typedef): Don't special-case location types.
22066         (define_location_structures): Remove.
22067         (main): Don't call define_location_structures.
22068         * tree-pretty-print.c (dump_implicit_edges): Remove old location
22069         code.
22071 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22073         PR 26264
22074         * builtins.def (BUILT_IN_STDARG_START): Remove.
22075         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
22076         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
22077         * tree-inline.c (inline_forbidden_p_1): Likewise.
22079 2008-02-26  Richard Guenther  <rguenther@suse.de>
22081         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
22082         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
22083         (lookup_decl_from_uid): Declare.
22084         (remove_decl_from_map): Likewise.
22085         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
22086         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
22087         (decl_for_uid_map): New global hashtable mapping DECL_UID
22088         to the decl tree.
22089         (init_ttree): Allocate it.
22090         (insert_decl_to_uid_decl_map): New helper function.
22091         (make_node_stat): Insert new decls into the map.
22092         (copy_node_stat): Likewise.
22093         (lookup_decl_from_uid): New function.
22094         (remove_decl_from_map): Likewise.
22095         (print_decl_for_uid_map_statistics): New helper.
22096         (dump_tree_statistics): Call it.
22098         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
22099         (referenced_var_iterator): Adjust.
22100         (FOR_EACH_REFERENCED_VAR): Adjust.
22101         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
22102         (num_referenced_vars): Adjust.
22103         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
22104         (first_referenced_var): Remove.
22105         (end_referenced_vars_p): Likewise.
22106         (next_referenced_var): Likewise.
22107         (referenced_var_iterator_set): New helper function.
22108         * tree-dfa.c (referenced_var_lookup): Adjust.
22109         (referenced_var_check_and_insert): Likewise.
22110         (remove_referenced_var): Likewise.
22111         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
22112         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22113         (verify_call_clobbering): Likewise.
22114         (verify_memory_partitions): Likewise.
22115         (init_tree_ssa): Allocate bitmap instead of hashtable for
22116         referenced_vars.
22117         (delete_tree_ssa): Adjust.
22118         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
22119         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22120         (compute_tag_properties): Likewise.
22121         (set_initial_properties): Likewise.
22122         (find_partition_for): Likewise.
22123         (update_reference_counts): Likewise.
22124         (dump_may_aliases_for): Likewise.
22125         * tree-ssa-operands.c (add_virtual_operand): Likewise.
22126         (add_call_clobber_ops): Likewise.
22127         (add_call_read_ops): Likewise.
22128         (get_asm_expr_operands): Likewise.
22129         * tree-into-ssa.c (dump_decl_set): Likewise.
22130         (update_ssa): Likewise.
22131         * tree-sra.c (scan_function): Likewise.
22132         (decide_instantiations): Likewise.
22133         (scalarize_parms): Likewise.
22134         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
22135         (dsa_named_for): Likewise.
22136         * tree-ssa-structalias.c (update_alias_info): Likewise.
22137         (merge_smts_into): Likewise.
22139 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22141         PR 34351
22142         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
22143         * c-opts.c (c_common_handle_option): Wall enables
22144         Wvolatile-register-var.
22145         * common.opt: Move Wvolatile-register-var to...
22146         * c.opt: ...here.
22148 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22150         * common.opt (Wlarger-than=): New.
22151         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
22152         -Wlarger-than=.
22153         * opts.c (common_handle_option): Handle -Wlarger-than=.
22154         * optc-gen.awk: Likewise.
22155         * opth-gen.awk: Likewise.
22156         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
22157         * tree-optimize.c (tree_rest_of_compilation): Likewise.
22159 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22161         * c-common.c (match_case_to_enum_1): Add appropriate
22162         OPT_W* parameter to warning.
22163         (c_do_switch_warnings): Likewise.
22164         * c-typeck.c (warning_init): Add one more parameter following
22165         'warning' function.
22166         (push_init_level): Update call to warning_init.
22167         (pop_init_level): Likewise.
22168         (add_pending_init): Likewise.
22169         (output_init_element: Likewise.
22171 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22173         PR 28322
22174         * toplev.c (toplev_main): If there are warnings or error, print
22175         errors for ignored options.
22176         * opts.c (ignored_options): New static variable.
22177         (postpone_unknown_option_error): New.
22178         (print_ignored_options): New.
22179         (handle_option): Postpone errors for unknown -Wno-* options.
22180         * opts.h (print_ignored_options): Declare.
22182 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
22184         * config/mips/mips.md (loadgp_blockage, blockage): Change type
22185         to "ghost".
22187 2008-02-25  Richard Guenther  <rguenther@suse.de>
22189         Revert:
22190         2008-02-25  Richard Guenther  <rguenther@suse.de>
22192         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
22193         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
22194         (lookup_decl_from_uid): Declare.
22195         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
22196         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
22197         (decl_for_uid_map): New global hashtable mapping DECL_UID
22198         to the decl tree.
22199         (init_ttree): Allocate it.
22200         (insert_decl_to_uid_decl_map): New helper function.
22201         (make_node_stat): Insert new decls into the map.
22202         (copy_node_stat): Likewise.
22203         (lookup_decl_from_uid): New function.
22204         (print_decl_for_uid_map_statistics): New helper.
22205         (dump_tree_statistics): Call it.
22207         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
22208         (referenced_var_iterator): Adjust.
22209         (FOR_EACH_REFERENCED_VAR): Adjust.
22210         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
22211         (num_referenced_vars): Adjust.
22212         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
22213         (first_referenced_var): Remove.
22214         (end_referenced_vars_p): Likewise.
22215         (next_referenced_var): Likewise.
22216         (referenced_var_iterator_set): New helper function.
22217         * tree-dfa.c (referenced_var_lookup): Adjust.
22218         (referenced_var_check_and_insert): Likewise.
22219         (remove_referenced_var): Likewise.
22220         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
22221         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22222         (verify_call_clobbering): Likewise.
22223         (verify_memory_partitions): Likewise.
22224         (init_tree_ssa): Allocate bitmap instead of hashtable for
22225         referenced_vars.
22226         (delete_tree_ssa): Adjust.
22227         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
22228         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22229         (compute_tag_properties): Likewise.
22230         (set_initial_properties): Likewise.
22231         (find_partition_for): Likewise.
22232         (update_reference_counts): Likewise.
22233         (dump_may_aliases_for): Likewise.
22234         * tree-ssa-operands.c (add_virtual_operand): Likewise.
22235         (add_call_clobber_ops): Likewise.
22236         (add_call_read_ops): Likewise.
22237         (get_asm_expr_operands): Likewise.
22238         * tree-into-ssa.c (dump_decl_set): Likewise.
22239         (update_ssa): Likewise.
22240         * tree-sra.c (scan_function): Likewise.
22241         (decide_instantiations): Likewise.
22242         (scalarize_parms): Likewise.
22243         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
22244         (dsa_named_for): Likewise.
22245         * tree-ssa-structalias.c (update_alias_info): Likewise.
22246         (merge_smts_into): Likewise.
22248 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
22250         PR fortran/29549
22251         * doc/invoke.texi (-fcx-limited-range): Document new option.
22252         * toplev.c (process_options): Handle -fcx-fortran-rules.
22253         * common.opt: Add documentation for -fcx-fortran-rules.
22255 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
22257         PR c/35162
22258         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
22259         actual behaviour and C99.
22261 2008-02-26  Ben Elliston  <bje@au.ibm.com>
22263         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
22264         (ASM_CPU_POWER6_SPEC): Likewise.
22265         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
22266         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
22267         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
22269 2008-02-25  Richard Guenther  <rguenther@suse.de>
22271         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
22272         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
22273         (lookup_decl_from_uid): Declare.
22274         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
22275         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
22276         (decl_for_uid_map): New global hashtable mapping DECL_UID
22277         to the decl tree.
22278         (init_ttree): Allocate it.
22279         (insert_decl_to_uid_decl_map): New helper function.
22280         (make_node_stat): Insert new decls into the map.
22281         (copy_node_stat): Likewise.
22282         (lookup_decl_from_uid): New function.
22283         (print_decl_for_uid_map_statistics): New helper.
22284         (dump_tree_statistics): Call it.
22286         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
22287         (referenced_var_iterator): Adjust.
22288         (FOR_EACH_REFERENCED_VAR): Adjust.
22289         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
22290         (num_referenced_vars): Adjust.
22291         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
22292         (first_referenced_var): Remove.
22293         (end_referenced_vars_p): Likewise.
22294         (next_referenced_var): Likewise.
22295         (referenced_var_iterator_set): New helper function.
22296         * tree-dfa.c (referenced_var_lookup): Adjust.
22297         (referenced_var_check_and_insert): Likewise.
22298         (remove_referenced_var): Likewise.
22299         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
22300         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22301         (verify_call_clobbering): Likewise.
22302         (verify_memory_partitions): Likewise.
22303         (init_tree_ssa): Allocate bitmap instead of hashtable for
22304         referenced_vars.
22305         (delete_tree_ssa): Adjust.
22306         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
22307         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22308         (compute_tag_properties): Likewise.
22309         (set_initial_properties): Likewise.
22310         (find_partition_for): Likewise.
22311         (update_reference_counts): Likewise.
22312         (dump_may_aliases_for): Likewise.
22313         * tree-ssa-operands.c (add_virtual_operand): Likewise.
22314         (add_call_clobber_ops): Likewise.
22315         (add_call_read_ops): Likewise.
22316         (get_asm_expr_operands): Likewise.
22317         * tree-into-ssa.c (dump_decl_set): Likewise.
22318         (update_ssa): Likewise.
22319         * tree-sra.c (scan_function): Likewise.
22320         (decide_instantiations): Likewise.
22321         (scalarize_parms): Likewise.
22322         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
22323         (dsa_named_for): Likewise.
22324         * tree-ssa-structalias.c (update_alias_info): Likewise.
22325         (merge_smts_into): Likewise.
22327 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
22329         PR target/35258
22330         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
22331         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
22332         * alias.h (nonoverlapping_memrefs_p): Likewise.
22334 2008-02-25  Jan Beulich  <jbeulich@novell.com>
22336         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
22337         * config/i386/netware-libgcc.exp: Add __bswap?i2,
22338         __emultls_get_address, __emultls_register_common,
22339         __floatundi?f, and _Unwind_GetIPInfo.
22340         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
22341         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
22342         (gen_regparm_prefix): Likewise.
22343         (i386_nlm_encode_section_info): Sync with
22344         config/i386/winnt.c:i386_pe_encode_section_info().
22345         (i386_nlm_maybe_mangle_decl_assembler_name): New.
22346         i386_nlm_mangle_decl_assembler_name): New.
22347         (netware_override_options): New.
22348         * config/i386/netware.h (netware_override_options): Declare.
22349         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
22350         (i386_nlm_mangle_decl_assembler_name): Declare.
22351         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
22353 2008-02-25  Ben Elliston  <bje@au.ibm.com>
22355         PR other/32948
22356         * c-decl.c (grokdeclarator): Remove unused local variables
22357         `typedef_type' and `type_as_written'.
22358         * bb-reorder.c
22359         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
22360         unused local variable `has_hot_blocks'.
22361         (fix_crossing_conditional_branches): Remove unused local variable
22362         `prev_bb'.
22364 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
22366         PR middle-end/19984
22367         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
22368         using DEF_C99_BUILTIN.
22369         (BUILT_IN_NANF): Ditto.
22370         (BUILT_IN_NANL): Ditto.
22372 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
22373             Revital Eres  <eres@il.ibm.com>
22375         * modulo-sched.c (calculate_must_precede_follow): Address TODO
22376         regarding the order of two dependent insns in the same row.
22378 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
22380         * stor-layout.c (layout_decl): Do not bump the alignment of a
22381         bit-field to more than byte alignment if it is packed.
22383 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
22385         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
22386         e300c2 and e300c3.
22388 2008-02-24  Diego Novillo  <dnovillo@google.com>
22390         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
22392         PR 33738
22393         * tree-vrp.c (vrp_evaluate_conditional): With
22394         -Wtype-limits, emit a warning when comparing against a
22395         constant outside the natural range of OP0's type.
22396         * c.opt (Wtype-limits): Move ...
22397         * common.opt (Wtype-limits): ... here.
22399 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
22401         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
22402         * config/rs6000/e300c2c3.md: New file.
22403         * config/rs6000/rs6000.c (processor_costs): Add new costs for
22404         e300c2 and e300c3.
22405         (rs6000_override_options): Add e300c2 and e300c3 cases to
22406         processor_target_table. Do not allow usage of Altivec or Spe
22407         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
22408         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
22409         * config/rs6000/rs6000.h (processor_type): Add
22410         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
22411         (ASM_CPU_SPEC): Add e300c2 and e300c3.
22412         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
22413         and ppce300c3. Include e300c2c3.md.
22415 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
22417         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
22418         instead of TARGET_STRICT_ALIGN.
22420 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
22422         * explow.c (memory_address): Assert that the generated address is
22423         valid.
22425 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
22427         PR target/25477
22428         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
22429         * config/darwin-ppc-ldouble-patch.def: New file.
22430         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
22431         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
22432         SUBTARGET_INIT_BUILTINS if defined.
22433         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
22434         New functions.
22436 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22438         PR rtl-opt/33512
22439         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
22440         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
22442 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22444         PR pch/35027
22445         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
22446         file" warning condtional on -Winvalid-PCH.
22448 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
22450         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
22452 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
22454         PR target/22076
22455         PR target/34256
22456         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
22457         prevent reload from using MMX registers.
22458         (*mov<mode>_internal): Ditto.
22459         (*movv2sf_internal_rex64): Ditto.
22460         (*movv2sf_internal): Ditto.
22462 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22464         PR documentation/31569
22465         * doc/install.texi2html: Use makeinfo --no-number-sections.
22467 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
22469         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
22470         ensure that we can address an entire entity > 8 bytes.  Don't
22471         generate reg+reg addressing for such data.
22473 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
22475         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
22476         strings when optimizing for size, unless the target cares about
22477         alignment.
22479 2008-02-22  Tom Tromey  <tromey@redhat.com>
22481         * regclass.c (current_pass): Remove declaration.
22483 2008-02-22  Anatoly Sokolov <aesok@post.ru>
22485         * config/avr/libgcc.S (__RAMPZ__): Define.
22486         (__do_copy_data): Add for devices with 128KB code memory.
22488 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
22490         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
22491         Use spe_abi.
22492         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
22494 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
22496         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
22497         GENNONACR_REGS.
22499 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22501         PR c/19999
22502         * c-typeck.c (build_binary_op): Warn about floating point
22503         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
22505 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
22507         PR target/34526
22508         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
22509         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
22510         add vrsave.
22511         (rs6000_override_options): Set altivec_abi as default, not override,
22512         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
22513         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
22514         is used; use new member spe_abi.
22515         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
22516         spe_abi and altivec_abi.
22518 2008-02-22  Tomas Bily  <tbily@suse.cz>
22520         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
22522 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22524         PR bootstrap/35273
22525         * config.build (build_file_translate): Set to `CMD //c' only if
22526         it works.
22527         * Makefile.in (build_file_translate): Improve comment.
22529 2008-02-21  Jan Hubicka  <jh@suse.cz>
22531         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
22532         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
22533         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
22535 2008-02-21  Michael Matz  <matz@suse.de>
22537         PR target/35264
22538         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
22540 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
22542         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
22543         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
22544         as insn constraint.
22545         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
22546         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
22547         SSE_VEC_FLOAT_MODE_P as insn constraint.
22548         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
22549         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
22550         sse4a_movntdf using MODEF mode iterator.
22551         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
22552         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
22553         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
22554         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
22555         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
22556         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
22557         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
22559 2008-02-21  Richard Guenther  <rguenther@suse.de>
22561         * tree.def (PAREN_EXPR): New tree code.
22562         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
22563         and PAREN_EXPR.
22564         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
22565         * expr.c (expand_expr_real_1): Likewise.
22566         * tree-inline.c (estimate_num_insns_1): Likewise.
22567         * tree-complex.c (expand_complex_move): Likewise.
22568         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
22569         as plain x.
22571 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
22573         PR target/35225
22574         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
22576 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
22578         PR target/35190
22579         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
22581         * config/sh/sh.c (find_barrier): Don't go past
22582         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
22584 2008-02-20  DJ Delorie  <dj@redhat.com>
22586         * config/h8300/h8300.md (insv): Force source operand to be a register.
22588         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
22589         as a jump, not as a plain insn.
22591 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
22593         * doc/invoke.texi (Warning Options): Add new option
22594         -Wframe-larger-than=.
22595         (-Wframe-larger-than): Document.
22597         * flags.h (warn_frame_larger_than, frame_larger_than_size):
22598         Add declarations for new option variables.
22600         * final.c (final_start_function): Check the frame size
22601         before emission and issue a Wframe-larger-than warning.
22603         * opts.c (warn_frame_larger_than, frame_larger_than_size):
22604         Add definitions for new option variables.
22605         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
22607         * common.opt (Wframe-larger-than=): New option.
22609 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
22611         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
22612         (<sse>_div<mode>3): Ditto.
22613         (<sse>_vmdiv<mode>3): Ditto.
22614         (<sse>_vmsqrt<mode>2): Ditto.
22615         (*smax<mode>3): Ditto.
22616         (sse5_frcz<mode>2): Ditto.
22617         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
22618         as insn constraint.
22620 2008-02-20  Richard Guenther  <rguenther@suse.de>
22622         PR middle-end/35265
22623         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
22624         be happy with INTEGRAL_TYPE_P.
22626 2008-02-20  Richard Guenther  <rguenther@suse.de>
22628         * fold-const.c (split_tree): Associate floatig-point expressions
22629         if flag_associative_math is set.
22631 2008-02-20  Richard Guenther  <rguenther@suse.de>
22633         * tree.h (fold_real_zero_addition_p): Declare.
22634         * fold-const.c (fold_real_zero_addition_p): Export.
22635         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
22636         floating-point operations with zero and one.
22638 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
22640         * doc/install.texi: Correct references to CFLAGS, replacing them
22641         with BOOT_CFLAGS.  Document flags used during bootstrap for
22642         target libraries.
22644 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
22646         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
22647         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
22648         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
22649         insn constraint.
22650         (smin<mode>3): Ditto from similar patterns.
22651         (smax<mode>3): Ditto.
22652         (*ieee_smin<mode>3): Ditto.
22653         (*ieee_smax<mode>3): Ditto.
22654         * config/i386/sse.md (sse): New mode attribute.
22655         (mov<mode>): Macroize expander from movv4sf and movv2df using
22656         SSEMODEF2P mode iterator.
22657         (<sse>_movnt<mode>): Ditto from similar patterns. Use
22658         SSE_VEC_FLOAT_MODE_P as insn constraint.
22659         (storent<mode>): Ditto.
22660         (storent<mode>): Macroize expander from storentsf and storentdf using
22661         MODEF mode iterator.
22662         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
22663         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
22664         (abs<mode>2): Ditto from similar patterns.
22665         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
22666         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
22667         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
22668         (<sse>_vmsqrt<mode>2): Ditto.
22669         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
22670         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
22671         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
22672         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
22673         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
22674         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
22675         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
22676         insn constraint.
22677         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
22678         iterator and SSE_FLOAT_MODE_P as insn constraint.
22679         (<sse>_ucomi): Ditto from similar patterns.
22680         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
22681         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
22682         SSE_VEC_FLOAT_MODE_P as insn constraint.
22683         (vcond<mode>): Ditto from similar patterns.
22684         (and<mode>3, *and<mode>3): Ditto.
22685         (<sse>_nand<mode>3): Ditto.
22686         (ior<mode>3, *ior<mode>3): Ditto.
22687         (xor<mode>3, *xor<mode>3): Ditto.
22688         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
22689         iterator and SSE_FLOAT_MODE_P as insn constraint.
22690         (*nand<mode>3): Ditto from similar patterns.
22691         (*ior<mode>3): Ditto.
22692         (*xor<mode>3): Ditto.
22694 2008-02-20  Ira Rosen  <irar@il.ibm.com>
22696         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
22697         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
22698         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
22700 2008-02-19  Jan Hubicka  <jh@suse.cz>
22702         * predict.c (tree_bb_level_predictions): Remove variable next
22703         mistakely introduced by previous commit.
22705 2008-02-19  Jan Hubicka  <jh@suse.cz>
22707         * predict.c (predict_paths_leading_to): Rewrite.
22708         (predict_paths_for_bb): New.
22709         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
22711 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22713         PR bootstrap/35218
22714         * Makefile.in (build_file_translate): New.
22715         (gcc-vers.texi): Use it for translating $(abs_srcdir).
22716         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
22717         * configure.ac (build_file_translate): Substitute it.
22718         * configure: Regenerate.
22720 2008-02-19  Jan Hubicka  <jh@suse.cz>
22722         PR rtl-optimization/34408
22723         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
22724         invalid sharing.
22726 2008-02-19  Jan Hubicka  <jh@suse.cz>
22728         PR middle-end/28779
22729         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
22730         call_expr.
22732 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
22734         PR Ada/35186
22735         * config/i386/i386-modes.def: Revert the last DI alignment
22736         change until Ada people can look into it.
22738 2008-02-19  Nick Clifton  <nickc@redhat.com>
22740         * opts.c (print_specific_help): Fix typo in --help text.
22742 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
22744         PR target/35239
22745         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
22746         32-bit inline asm without asm alternatives for host GCC < 3.0.
22748 2008-02-19  Richard Guenther  <rguenther@suse.de>
22750         PR tree-optimization/34989
22751         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
22752         Allow propagation to INDIRECT_REF if we can simplify only.
22754 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22756         * c-common.c (warn_for_collisions_1): Use appropriate option when
22757         warning.
22759 2008-02-19  Nick Clifton  <nickc@redhat.com>
22761         PR other/31349
22762         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
22763         (handle_options): Fix indentation.
22764         (print_filtered_help): If no language-specific options were
22765         displayed tell the user how to list all the options supported by
22766         the language's front-end.
22767         (print_specific_help): Fix indentation and remove duplicate line.
22768         (common_handle_option): Handle the -v option.
22769         For --help enable the display of undocumented options if the -v
22770         switch has been included on the command line.
22771         For --help= check for overlaps in the arguments between the option
22772         classes and the language names and issue a warning when they
22773         cannot be disambiguated.
22774         * c.opt (v): Pass on to the common option handler.
22776 2008-02-19  Revital Eres  <eres@il.ibm.com>
22778         * modulo-sched.c (sms_schedule): Change dump message when
22779         create_ddg function fails.
22780         (try_scheduling_node_in_cycle): Rename row to cycle.
22781         (print_partial_schedule): Rename CYCLE to ROW.
22783 2008-02-19  Christian Bruel  <christian.bruel@st.com>
22784             Zdenek Dvorak  <ook@ucw.cz>
22786         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
22788 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
22790         PR target/33555
22791         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
22792         (*x86_movdicc_0_m1_se): Ditto.
22794 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
22796         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
22797         (CMPtype): Define as __gcc_CMPtype.
22798         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
22799         (CMPtype): Define as __gcc_CMPtype.
22801 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
22803         Support valgrind 3.3 for --enable-checking=valgrind.
22804         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
22805         here.
22806         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
22807         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
22808         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
22809         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
22810         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
22811         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
22812         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
22813         respectively.
22814         * ggc-zone.c: Similar.
22815         * ggc-page.c: Similar.
22817 2008-02-19  Paul Brook  <paul@codesourcery.com>
22819         PR target/35071
22820         * config/arm/ieee754-df.S: Fix do_it typo.
22821         * config/arm/ieee754-sf.S: Fix do_it typo.
22823 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
22825         PR target/35189
22826         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
22827         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
22828         (OPTION_MASK_ISA_SSE_SET): Likewise.
22829         (OPTION_MASK_ISA_SSE2_SET): Likewise.
22830         (OPTION_MASK_ISA_SSE3_SET): Likewise.
22831         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
22832         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
22833         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
22834         (OPTION_MASK_ISA_SSE4_SET): Likewise.
22835         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
22836         (OPTION_MASK_ISA_SSE5_SET): Likewise.
22837         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
22838         (OPTION_MASK_ISA_MMX_UNSET): Updated.
22839         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
22840         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
22841         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
22842         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
22843         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
22844         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
22845         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
22846         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
22847         (OPTION_MASK_ISA_SSE4): Removed.
22848         (ix86_handle_option): Turn on bits in ix86_isa_flags and
22849         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
22850         (override_options): Don't turn on implied SSE/MMX bits in
22851         ix86_isa_flags.
22853 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
22855         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
22856         32bit host.
22858 2008-02-18  Joey Ye  <joey.ye@intel.com>
22860         PR middle-end/34921
22861         * tree-nested.c (insert_field_into_struct): Set type alignment
22862         to field alignment if the former is less than the latter.
22864 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
22866         * BASE-VER: Set to 4.4.0.
22868 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22870         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
22871         * doc/cfg.texi: Likewise.
22872         * doc/extend.texi: Likewise.
22873         * doc/gty.texi: Likewise.
22874         * doc/invoke.texi: Likewise.
22875         * doc/loop.texi: Likewise.
22876         * doc/md.texi: Likewise.
22877         * doc/passes.texi: Likewise.
22878         * doc/rtl.texi: Likewise.
22879         * doc/sourcebuild.texi: Likewise.
22880         * doc/tm.texi: Likewise.
22881         * doc/tree-ssa.texi: Likewise.
22883 2008-02-17  Richard Guenther  <rguenther@suse.de>
22885         PR middle-end/35227
22886         * tree-complex.c (init_parameter_lattice_values): Handle parameters
22887         without default definition.
22889 2008-02-17  Richard Guenther  <rguenther@suse.de>
22891         PR tree-optimization/35231
22892         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
22893         if A | B != 1.
22895 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
22897         Revert:
22898         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
22899         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
22900         libgcc_cmp_return mode.
22902 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22904         PR c/28368
22905         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
22907 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
22909         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
22910         multilibs.
22912 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22914         * doc/c-tree.texi: Use `@.' where appropriate.
22915         * doc/extend.texi: Likewise.
22916         * doc/install.texi: Likewise.
22917         * doc/invoke.texi: Likewise.
22918         * doc/loop.texi: Likewise.
22919         * doc/makefile.texi: Likewise.
22920         * doc/md.texi: Likewise.
22921         * doc/passes.texi: Likewise.
22922         * doc/standards.texi: Likewise.
22923         * doc/tm.texi: Likewise.
22925 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
22927         PR middle-end/35196
22928         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
22929         in entry_bb.
22930         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
22931         rather than in entry_bb.
22933 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
22935         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
22936         libgcc_cmp_return mode.
22938 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
22940         PR middle-end/35130
22941         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
22942         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
22944 2008-02-15  Richard Guenther  <rguenther@suse.de>
22945             Zdenek Dvorak  <ook@ucw.cz>
22947         PR tree-optimization/35164
22948         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
22949         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
22950         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
22951         Only propagate addresses which do not have abnormal SSA_NAMEs
22952         in their operands.
22954 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
22956         PR target/35088
22957         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
22959 2008-02-15  Jan Hubicka  <jh@suse.cz>
22961         PR middle-end/35149
22962         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
22964 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
22966         PR middle-end/34621
22967         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
22968         when calculating alignment_pad.
22970 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
22972         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
22973         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
22974         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
22975         and STACK_BOUNDARY define.
22977 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
22979         PR preprocessor/35061
22980         * c-pragma.c (handle_pragma_pop_macro): Check that
22981         pushed_macro_table has been allocated.
22983 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
22985         PR middle-end/35136
22986         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
22987         (force_gimple_operand): Likewise.
22988         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
22989         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
22990         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
22991         (find_interesting_uses_address): Check addressability and alignment
22992         of the base expression only after substituting bases of IVs into it.
22994 2008-02-14  Michael Matz  <matz@suse.de>
22996         PR target/34930
22997         * function.c (instantiate_virtual_regs_in_insn): Reload address
22998         before falling back to reloading the whole operand.
23000 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
23002         * config/s390/s390.c (s390_mainpool_start): Emit the pool
23003         before the first section switch note.
23005 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23007         * doc/bugreport.texi: Update copyright years.
23008         * doc/c-tree.texi: Likewise.
23009         * doc/cfg.texi: Likewise.
23010         * doc/cpp.texi: Likewise.
23011         * doc/cppinternals.texi: Likewise.
23012         * doc/fragments.texi: Likewise.
23013         * doc/frontends.texi: Likewise.
23014         * doc/gcc.texi: Likewise.
23015         * doc/gty.texi: Likewise.
23016         * doc/hostconfig.texi: Likewise.
23017         * doc/implement-c.texi: Likewise.
23018         * doc/libgcc.texi: Likewise.
23019         * doc/loop.texi: Likewise.
23020         * doc/makefile.texi: Likewise.
23021         * doc/options.texi: Likewise.
23022         * doc/passes.texi: Likewise.
23023         * doc/rtl.texi: Likewise.
23024         * doc/sourcebuild.texi: Likewise.
23025         * doc/standards.texi: Likewise.
23026         * doc/tree-ssa.texi: Likewise.
23027         * doc/trouble.texi: Likewise.
23029         * doc/extend.texi: Use @: or add comma where appropriate.
23030         * doc/invoke.texi: Likewise.
23031         * doc/tm.texi: Likewise.
23033 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
23035         PR target/34393
23036         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
23037         to a reg.
23039 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
23041         * doc/md.texi (clz, ctz): Add reference.
23042         * doc/rtl.texi (clz, ctz): Likewise.
23044 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23046         PR other/35148
23047         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
23048         srcdir.
23050 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
23052         * config/s390/s390.c (struct constant_pool): New field
23053         emit_pool_after added.
23054         (s390_mainpool_start): Set the emit_pool_after flag according
23055         to the section switch notes.
23056         (s390_mainpool_finish): Consider emit_pool_after when emitting
23057         the literal pool at the end of the function.
23058         (s390_chunkify_start): Force literal pool splits at section
23059         switch notes.
23061 2008-02-13  Michael Matz  <matz@suse.de>
23063         PR debug/35065
23064         * var-tracking.c (clobber_variable_part): Correctly traverse the
23065         list.
23067 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23069         PR 29673
23070         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
23071         Add -fdump-ipa-inline.
23072         * tree-dump.c (dump_files): Remove tree-inlined dump.
23073         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
23075 2008-02-12  Richard Guenther  <rguenther@suse.de>
23077         PR tree-optimization/35171
23078         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
23079         default defs.
23081 2008-02-12  Richard Guenther  <rguenther@suse.de>
23083         PR middle-end/35163
23084         * fold-const.c (fold_widened_comparison): Use get_unwidened in
23085         value-preserving mode.  Disallow final truncation.
23087 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
23089         PR middle-end/35136
23090         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
23091         code from here to...
23092         (force_gimple_operand): ...here.
23094 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
23096         PR c++/35144
23097         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
23098         non-compatible pointers.
23099         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
23100         different FIELD_DECLs, try harder by comparing field offsets, sizes
23101         and types.
23103         PR inline-asm/35160
23104         * function.c (match_asm_constraints_1): Don't replace the same input
23105         multiple times.
23107 2008-02-12  Anatoly Sokolov <aesok@post.ru>
23109         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
23110         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
23111         (expand_epilogue): Restore RAMPZ register.
23112         * config/avr/avr.md (RAMPZ_ADDR): New constant.
23114 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
23116         * config/i386/cygwin.asm: (__alloca): Correct calling
23117         convention and alignment.
23118         (__chkstk): Force 8 byte stack alignment.
23120 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
23121             Richard Guenther  <rguenther@suse.de>
23123         PR tree-optimization/33992
23124         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
23125         the zero we compare against.
23127 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
23129         PR libfortran/35063
23130         * gthr-win32.h (__gthread_mutex_destroy_function): New function
23131         to CloseHandle after unlocking to prevent accumulation of handle
23132         count.
23134 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23136         PR middle_end/34150
23137         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
23138         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
23139         and update LABEL_NUSES during and after reload.
23141 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
23143         PR middle-end/34627
23144         * combine.c (simplify_if_then_else): Make sure the comparison is
23145         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
23147 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
23149         PR bootstrap/35051
23150         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
23151         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
23152         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
23153         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
23154         * tree.h (get_type_static_bounds): Likewise.
23156 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23158         * doc/invoke.texi (Option Summary, C++ Dialect Options)
23159         (Objective-C and Objective-C++ Dialect Options, Warning Options):
23160         Make -Wfoo language annotations match what the compiler outputs.
23162 2008-02-08  Sa Liu  <saliu@de.ibm.com>
23164         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
23165         intrinsics spu_convts, spu_convtu, spu_convtf.
23167 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
23169         * doc/extend.texi (Function Attributes) <noinline>: Mention
23170         asm ("") as method to keep calls.
23172 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23174         PR other/32754
23175         * doc/options.texi (Options): Replace references to opts.sh with
23176         optc-gen.awk.
23177         * opts-common.c: Likewise.
23178         * optc-gen.awk: Likewise.
23180 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
23182         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
23184 2008-02-07  Richard Henderson  <rth@redhat.com>
23186         PR rtl-opt/33410
23187         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
23188         EXPR_LIST for the REG_EQUAL instead of a comparison with a
23189         funny mode.
23191 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
23193         PR tree-optimization/35085
23194         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
23195         for operand entry oe2 in addition to operand entry oe3 in order to
23196         expose more opportunities for vectorizer sum reduction.
23198 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23200         PR other/35107
23201         * Makefile.in (LIBS): Remove $(GMPLIBS).
23202         (cc1-dummy, cc1): Add $(GMPLIBS).
23204 2008-02-06  Jan Hubicka  <jh@suse.cz>
23206         PR target/23322
23207         * i386.md (moddf_integer): Do not produce partial memory stalls for
23208         targets where it hurts.
23210 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
23212         PR target/35083
23213         * optabs.c (expand_float): Do not check for decimal modes when
23214         expanding unsigned integer through signed conversion.
23216 2008-02-06  Nick Clifton  <nickc@redhat.com>
23218         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
23219         inside the clobber with a match_operand and duplicated operand
23220         number in the constraint.
23221         (ineqbranchsi): Delete redundant comment.
23223 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
23225         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
23226         builtin_define ("__USE_INIT_FINI__").
23227         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
23228         -msx multilibs.
23229         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
23231 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23233         PR documentation/30330
23234         * doc/invoke.texi (C++ Dialect Options)
23235         (Objective-C and Objective-C++ Dialect Options, Warning Options):
23236         For each warning option -Wfoo that allows -Wno-foo, ensure both
23237         -Wfoo and -Wno-foo are listed in the option index.  Fix index
23238         entry of -Wswitch-default, index -Wnormalized= including the
23239         `=', and -Wlarger-than-@var{len} including @var{len}.
23241 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
23243         * config/i386/i386.md (floatunssisf2): Use
23244         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
23245         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
23246         Macroize expander using MODEF mode iterator.
23248 2008-02-05  Diego Novillo  <dnovillo@google.com>
23250         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
23252         PR 33738
23253         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
23255 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23257         PR other/35070
23258         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
23260 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
23262         PR target/35084
23263         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
23264         to indicate if a message should be generated.
23265         (init_cumulative_args): Updated.
23266         (function_value_32): Likewise.
23268 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
23270         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
23272 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
23274         PR target/35083
23275         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
23276         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
23278 2008-02-04  Diego Novillo  <dnovillo@google.com>
23280         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
23282         PR 33738
23283         * tree-vrp.c (vrp_evaluate_conditional): With
23284         -Wtype-limits, emit a warning when comparing against a
23285         constant outside the natural range of OP0's type.
23287 2008-02-04  Richard Guenther  <rguenther@suse.de>
23289         PR middle-end/33631
23290         * expr.c (count_type_elements): Give for unions instead of
23291         guessing.
23293 2008-02-04  Richard Guenther  <rguenther@suse.de>
23295         PR middle-end/35043
23296         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
23297         to TYPE_DOMAINs base type instead of using bitsizetype here.
23299 2008-02-03  Jason Merrill  <jason@redhat.com>
23301         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
23303 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23305         PR other/29972
23306         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
23307         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
23308         (RS/6000 and PowerPC Options): Fix typos and markup.
23309         * doc/passes.texi (Tree-SSA passes): Likewise.
23311 2008-02-02  Michael Matz  <matz@suse.de>
23313         PR target/35045
23314         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
23315         from record_last_reg_set_info.
23316         (record_last_reg_set_info): Take an RTX argument, iterate over all
23317         constituent hardregs.
23318         (record_last_set_info, record_opr_changes): Change calls to
23319         new signature or to record_last_reg_set_info_regno.
23321 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
23323         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
23325 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
23327         PR rtl-optimization/34773
23328         * reg-notes.def (EQUAL): Mention significance of combination of
23329         REG_EQUAL and REG_RETVAL.
23330         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
23331         insn that has a REG_RETVAL.
23333 2008-02-01  Roger Sayle  <roger@eyesopen.com>
23335         PR bootstrap/33781
23336         * configure.ac (--enable-fixed-point): Disable unless explicitly
23337         requested on IRIX.
23338         * configure: Regenerate.
23340 2008-02-01  Richard Guenther  <rguenther@suse.de>
23342         PR other/35042
23343         * invoke.texi (-finline-limit): Remove no longer true parts
23344         of the documentation.  Note that there is no default value.
23346 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
23347             Mark Mitchell  <mark@codesourcery.com>
23348             Ben Elliston  <bje@au.ibm.com>
23350         PR c/29326
23351         * doc/extend.texi (Other Builtins): Document.
23353 2008-01-31  Tom Browder <tom.browder@gmail.com>
23355         * doc/c-tree.texi (Types): Fix grammar.
23356         (Expression trees): Ditto.
23357         * doc/passes.texi (Tree-SSA passes): Ditto.
23359         * doc/configterms.texi (Configure Terms): Fix typo.
23360         * doc/cpp.texi (Common Predefined Macros): Ditto.
23361         * doc/md.texi (Machine Constraints): Ditto.
23363         * doc/makefile.texi (Makefile): Add comma.
23365 2008-01-31  Tom Browder  <tom.browder@gmail.com>
23366             Gerald Pfeifer  <gerald@pfeifer.com>
23368         * doc/sourcebuild.texi (Front End): Remove references to CVS
23369         and CVSROOT/modules.
23370         (Texinfo Manuals): Replace reference to CVS by one to SVN.
23371         (Back End): Remove reference to CVS.
23373 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
23375         PR target/34900
23376         * config/mips/mips.c (gen_load_const_gp): New function, taking a
23377         comment from...
23378         (mips16_gp_pseudo_reg): ...here.
23379         * config/mips/mips.md (load_const_gp): Replace with...
23380         (load_const_gp_<mode>): ...this :P-based insn.
23382 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23384         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
23385         options. Minor fixes.
23386         (-std): Move reference to standards closer to where language
23387         standards are first mentioned.
23389 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
23391         PR rtl-optimization/34995
23392         * reload.c (alternative_allows_const_pool_ref): Take an rtx
23393         parameter and return a bool.  If the rtx parameter is nonnull,
23394         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
23395         (find_reloads): Update call accordingly.  Pass the new operand
23396         if it needed no address reloads, otherwise pass null.
23398 2008-01-30  Richard Henderson  <rth@redhat.com>
23400         PR c/34993
23401         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
23402         for unbounded arrays.
23404 2008-01-30  Silvius Rus  <rus@google.com>
23406         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
23408 2008-01-30  Jan Hubicka  <jh@suse.cz>
23410         PR target/34982
23411         * i386.c (init_cumulative_args): Use real function declaration when
23412         calling locally.
23414 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
23416         PR rtl-optimization/34998
23417         * global.c (build_insn_chain): Treat non-subreg_lowpart
23418         SUBREGs of pseudos as clobbering all the words covered by the
23419         SUBREG, not just all the bytes.
23420         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
23421         original df_ref rather than an extract parameter.
23422         (global_conflicts): Update call accordingly.
23424 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
23426         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
23427         the overflow check to make it easier to read.
23428         (__fixtfdi): Change the type of the ll member in union
23429         long_double to UDItype_x.
23431 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
23433         PR middle-end/34969
23434         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
23435         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
23436         * tree-inline.c (fold_marked_statements): Call
23437         cgraph_update_edges_for_call_stmt if folding a call statement.
23438         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
23439         debug_generic_stmt calls, reset it back afterwards.
23441         PR c/35017
23442         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
23443         static decls.
23444         * c-typeck.c (build_external_ref): Don't pedwarn about
23445         static vars in current function's scope.
23447 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
23449         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
23451 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
23453         PR c/35002
23454         * ipa-struct-reorg.c: Fix spelling.
23455         * params.def: Ditto.
23457 2008-01-29  Richard Guenther  <rguenther@suse.de>
23459         PR middle-end/35006
23460         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
23461         field.
23462         * tree-inline.c (remap_type): Increment remapping_type_depth
23463         around remapping types.
23464         (copy_body_r): Only add referenced variables if they are referenced
23465         from code, not types.
23467 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
23469         PR c++/34055
23470         PR c++/34103
23471         PR c++/34219
23472         PR c++/34606
23473         PR c++/34753
23474         PR c++/34754
23475         PR c++/34755
23476         PR c++/34919
23477         PR c++/34961
23478         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
23479         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
23481 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
23483         PR target/34412
23484         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
23485         pointer for tiny stack.
23487 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
23489         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
23491 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
23493         * config/vx-common.h: Fix typo in comment.
23495 2008-01-28  Ian Lance Taylor  <iant@google.com>
23497         PR c++/34862
23498         PR c++/33407
23499         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
23500         coalesce pointers if they have different DECL_NO_TBAA_P values.
23501         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
23502         between variables with different DECL_NO_TBAA_P values.
23504 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
23506         PR 31535
23507         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
23508         are not legitimate small data references on SPE targets.
23510 2008-01-28  David Daney  <ddaney@avtrex.com>
23512         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
23514 2008-01-28  David Daney  <ddaney@avtrex.com>
23516         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
23518 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
23520         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
23521         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
23522         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
23523         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
23524         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
23525         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
23526         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
23527         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
23529 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
23531         * basic-block.h (condjump_equiv_p): Fix comment.
23533 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
23535         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
23536         print_generic_stmt_indented): Fix comment.
23538 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
23540         * configure.ac (__stack_chk_fail): Add detecion for availability
23541         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
23542         * configure: Regenerate.
23544 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
23546         PR middle-end/34688
23547         * final.c (output_addr_const): Handle TRUNCATE.
23549 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
23551         PR target/34711
23552         * tree-ssa-loop-ivopts.c (comp_cost): New type.
23553         (zero_cost, infinite_cost): New constants.
23554         (struct cost_pair): Change type of cost to comp_cost.
23555         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
23556         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
23557         New functions.
23558         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
23559         split_address_cost, ptr_difference_cost, difference_cost,
23560         get_computation_cost_at, get_computation_cost,
23561         determine_use_iv_cost_generic, determine_use_iv_cost_address,
23562         determine_use_iv_cost_condition, determine_use_iv_costs,
23563         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
23564         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
23565         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
23566         Change type of cost to comp_cost.
23567         (determine_iv_cost): Increase cost of non-original ivs, instead
23568         of decreasing the cost of original ones.
23569         (get_address_cost): Indicate the complexity of the addressing mode
23570         in comp_cost.
23571         (try_add_cand_for): Prefer using ivs not specific to some object.
23572         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
23574 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
23575             Janis Johnson  <janis187@us.ibm.com>
23577         PR target/34814
23578         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
23579         (TARGET_INSTANTIATE_DECLS): Likewise.
23580         * target.h (expand_to_rtl_hook): New target hook.
23581         (instantiate_decls): Likewise.
23582         * function.c (instantiate_decl): Make non-static.  Rename to...
23583         (instantiate_decl_rtl): ... this.
23584         (instantiate_expr): Use instantiate_decl_rtl.
23585         (instantiate_decls_1): Likewise.
23586         (instantiate_decls): Likewise.
23587         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
23588         * function.h (instantiate_decl_rtl): Add prototype.
23589         * cfgexpand.c (target.h): New include.
23590         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
23591         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
23592         (TARGET_INSTANTIATE_DECLS): Likewise.
23593         (TARGET_INITIALIZER): New target hooks added.
23594         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
23595         New prototype.
23596         * config/rs6000/rs6000.c (tree-flow.h): New include.
23597         (machine_function): Add sdmode_stack_slot field.
23598         (rs6000_alloc_sdmode_stack_slot): New function.
23599         (rs6000_instantiate_decls): Likewise.
23600         (rs6000_secondary_memory_needed_rtx): Likewise.
23601         (rs6000_check_sdmode): Likewise.
23602         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
23603         (TARGET_INSTANTIATE_DECLS): Likewise.
23604         (rs6000_hard_regno_mode_ok): Allow SDmode.
23605         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
23606         (rs6000_emit_move): Handle SDmode.
23607         (function_arg_advance): Likewise.
23608         (function_arg): Likewise.
23609         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
23610         SDmode var args for 32-bit compiles.
23611         (rs6000_secondary_reload_class): Handle SDmode.
23612         (rs6000_output_function_epilogue): Likewise.
23613         (rs6000_function_value): Simplify if statement.
23614         (rs6000_libcall_value): Likewise.
23615         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
23616         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
23617         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
23618         (movsd_hardfloat): New define_insn.
23619         (movsd_softfloat): Likewise.
23620         (movsd_store): Likewise.
23621         (movsd_load): Likewise.
23622         (extendsddd2): Likewise.
23623         (extendsdtd2): Likewise.
23624         (truncddsd2): Likewise.
23625         (movdd_hardfloat64): Fixup comment.
23626         (UNSPEC_MOVSD_LOAD): New constant.
23627         (UNSPEC_MOVSD_STORE): Likewise.
23629 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
23631         PR c++/34965
23632         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
23633         TRUTH_XOR_EXPR.
23634         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
23635         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
23636         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
23637         and TRUTH_XOR_EXPR.
23639 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
23641         PR target/34794
23642         * config.gcc: Separate AIX 5.3 from AIX 6.1.
23643         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
23644         __LONGDOUBLE128 too.
23645         * config/rs6000/aix61.h: New file.
23647 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
23649         PR rtl-optimization/34959
23650         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
23651         popcount and parity rtxes the same mode as their operand.
23652         Truncate or extend the result to the return value's mode
23653         if necessary.
23655 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
23657         PR target/34981
23658         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
23659         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
23660         to GOT_VERSION_REGNUM.
23661         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
23662         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
23663         * config/mips/mips.c (mips_emit_call_insn): New function.
23664         (mips_call_tls_get_addr): Call mips_expand_call directly.
23665         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
23666         emit_call_insn.
23667         (mips16_build_call_stub): Likewise.  Return the call insn or null.
23668         (mips_expand_call): Update the call to mips16_build_call_stub
23669         accordingly and a remove redundant condition.  Assert that MIPS16
23670         stubs do not use lazy binding.  Use mips_emit_call_insn and return
23671         the call insn.
23672         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
23673         TARGET_USE_GOT.
23674         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
23675         (mips_avoid_hazard): Remove hazard_set handling.
23676         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
23677         (UNSPEC_RESTORE_GP): ...this.
23678         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
23679         (FAKE_CALL_REGNO): Rename to...
23680         (GOT_VERSION_REGNUM): ...this.
23681         (type): Add "ghost" value.  Add an associated insn reservation.
23682         (hazard_set): Remove.
23683         (exception_receiver): Rename to...
23684         (restore_gp): ...this and update the unspec identifier accordingly.
23685         (exception_receiver, nonlocal_got_receiver): New expanders.
23686         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
23687         FAKE_CALL_REGNO.  Remove hazard_set attribute.
23688         (set_got_version, update_got_version): New patterns.
23690 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
23692         PR target/34970
23693         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
23695 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
23697         PR other/31955
23698         * doc/install.texi2html: Generate gcc-vers.texi.
23700 2008-01-25  DJ Delorie  <dj@redhat.com>
23702         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
23704 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
23706         * config/c4x: Remove directory.
23707         * config.gcc (crx-*, mt-*): Mark obsolete.
23708         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
23709         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
23710         sh-*-rtemscoff*): Remove cases.
23711         * defaults.h (C4X_FLOAT_FORMAT): Remove.
23712         * real.c (encode_c4x_single, decode_c4x_single,
23713         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
23714         c4x_extended_format): Remove.
23715         * real.h (c4x_single_format, c4x_extended_format): Remove.
23716         * doc/extend.texi (interrupt, naked): Remove mention of attributes
23717         on C4x.
23718         (Pragmas): Remove comment about c4x pragmas.
23719         * doc/install.texi (c4x): Remove target-specific instructions.
23720         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
23721         * doc/md.texi (Machine Constraints): Remove C4x documentation.
23722         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
23723         refer to C4x source files as examples.
23724         (C4X_FLOAT_FORMAT): Remove documentation.
23726 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
23728         * config/bfin/bfin.c (override_options): Reorder tests so that
23729         flag_pic gets enabled for -msep-data.
23731 2008-01-25  Richard Guenther  <rguenther@suse.de>
23733         PR middle-end/32244
23734         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
23735         to its bitfield precision if required.
23737 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
23739         PR middle-end/33880
23740         * tree-nested.c (walk_omp_for): New function.
23741         (convert_nonlocal_reference, convert_local_reference): Call
23742         walk_omp_for on OMP_FOR.
23743         (convert_call_expr): Call walk_body on OMP_FOR's
23744         OMP_FOR_PRE_INIT_BODY.
23746 2008-01-25  Richard Guenther  <rguenther@suse.de>
23748         PR tree-optimization/34966
23749         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
23750         default defs and PHI_NODEs we have to insert after the
23751         defining statement.
23753 2008-01-24  Nick Clifton  <nickc@redhat.com>
23755         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
23756         Provide a default definition.
23757         (LIBGCC2_UNITS_PER_WORD): Likewise.
23759         * config/stormy16/stormy16.c: Include df.h for the prototype
23760         for df_regs_ever_live_p.
23761         (xstormy16_expand_builtin_va_start): Convert the stack offset
23762         into a component_ref and then use POINTER_PLUS_EXPR to add it
23763         to the incoming_virtual_args_rtx.
23764         (xstormy16_gimplify_va_arg_expr): Rename to
23765         xstormy16_gimplify_va_arg_expr.
23766         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
23767         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
23768         xstormy16_gimplify_va_arg_expr.
23769         Fix up some formatting issues.
23771         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
23772         Move to predicates.md.
23773         (xs_hi_general_operand): Likewise.
23774         (xs_hi_nonmemory_operand): Likewise.
23775         * config/stormy16/predicates.md:
23776         (xstormy16_carry_plus_operand): New predicate.
23777         (xs_hi_general_operand): New predicate.
23778         (xs_hi_nonmemory_operand): New predicate.
23779         * config/stormy16/stormy16-protos.h:
23780         (xstormy16_carry_plus_operand): Delete prototype.
23781         (xs_hi_general_operand): Likewise.
23782         (xs_hi_nonmemory_operand): Likewise.
23784         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
23785         modifiers as they are no longer needed and they can trigger
23786         reload spill failures.
23788         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
23789         with a match_operand in order to help reload.
23791         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
23792         constraint with 'e' for the 8th alternative as this version of
23793         the mov.w instruction only accepts the lower 8 registers.
23795 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
23797         PR target/34856
23798         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
23799         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
23800         vector elements.
23802 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
23804         PR middle-end/33333
23805         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
23807 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
23809         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
23810         New functions.
23811         (remove_structure): Update allocations list before removing structure.
23813 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
23815         * ipa-struct-reorg.c (is_safe_cond_expr,
23816         create_new_stmts_for_cond_expr): Use integer_zerop function,
23817         that recognize not only zero-pointer, but zero-integer too.
23819 2008-01-25  Ben Elliston  <bje@au.ibm.com>
23821         PR other/22232
23822         * fixproto: Escape "." in sed expression that strips leading "./".
23824 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
23826         PR driver/34904
23827         * gcc.c (SWITCH_OK): Removed.
23828         (SWITCH_LIVE): Changed to bit.
23829         (SWITCH_FALSE): Likewise.
23830         (SWITCH_IGNORE): Likewise.
23831         (switchstr): Change live_cond to unsigned int.
23832         (process_command): Replace SWITCH_OK with 0.
23833         (do_self_spec): Likewise.
23834         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
23835         (give_switch): Likewise.
23836         (used_arg): Likewise.
23837         (do_spec_1): Set the SWITCH_IGNORE bit.
23838         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
23839         bits.  Set the SWITCH_LIVE bit.
23841 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
23843         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
23845 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
23847         PR tree-optimization/34472
23848         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
23849         parameter to a "bool *" and set *DATA to false if there is
23850         an unsafe access.  Do not delete the structure here.
23851         (check_cond_exprs): Delete it here instead.
23852         (check_cond_exprs, exclude_cold_structs): Do not increase
23853         I when removing a structure.
23855 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
23857         PR target/34856
23858         * config/i386/i386.c (ix86_expand_vector_init): Consider only
23859         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
23861 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
23863         PR middle-end/34934
23864         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
23865         a fixed vector for stack.
23867 2008-01-24  Ben Elliston  <bje@au.ibm.com>
23869         PR c++/25701
23870         * doc/gcc.texi (Software development): Add a direntry for g++.
23872 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
23874         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
23875         stale and straggling -fforce-addr comments above.
23877         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
23878         define.
23879         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
23880         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
23882 2008-01-23  Michael Matz  <matz@suse.de>
23884         PR debug/34895
23885         * dwarf2out.c (force_type_die): Use modified_type_die instead of
23886         gen_type_die.
23888 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
23890         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
23891         malloc result type.
23893 2008-01-23 Anatoly Sokolov <aesok@post.ru>
23895         * config/avr/avr.c (avr_current_arch): New variable.
23896         (avr_arch_types): Add 'avr31' and 'avr51' entries.
23897         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
23898         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
23899         (avr_override_options): Init 'avr_current_arch'.
23900         (base_arch_s): Move from here...
23901         * config/avr/avr.h (base_arch_s): ... here. Add new members
23902         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
23903         'mega' to 'have_jmp_call'.
23904         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
23905         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
23906         macros.
23907         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
23908         architectures.
23909         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
23910         MULTILIB_MATCHES): Ditto.
23912 2008-01-23  Richard Guenther  <rguenther@suse.de>
23914         PR middle-end/31529
23915         * cgraphunit.c (cgraph_reset_node): Always mark the node
23916         not reachable if it is not queued already.
23918 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
23920         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
23921         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
23922         (cputype_selected): New static variable.
23923         (bfin_handle_option): Set it if -mcpu is used.
23924         (override_option): Select default set of workarounds if no cpu type
23925         selected on the command line.
23926         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
23928         From  Michael Frysinger  <michael.frysinger@analog.com>
23929         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
23930         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
23932         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
23933         for bf547, bf523, bf524, and bf526.
23934         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
23935         bf526.
23936         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
23937         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
23938         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
23939         __ADSPBF547__ and __ADSPBF54x__ for bf547.
23940         * doc/invoke.texi (Blackfin Options): Document that
23941         -mcpu now accept bf547, bf523, bf524, and bf526.
23943 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
23945         PR rtl-optimization/34628
23946         * combine.c (try_combine): Stop and undo after the first combination
23947         if an autoincrement side-effect on the first insn has effectively
23948         been lost.
23950 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
23952         PR target/34529
23953         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
23954         Offset addresses are not valid for Altivec or paired float modes.
23956 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
23958         PR c++/34607
23959         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
23960         if DECL_INITIAL (decl) is error_mark_node.
23962         PR c++/34914
23963         * c-common.c (handle_vector_size_attribute): Only allow
23964         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
23965         the same way as pointer, array etc. types.
23966         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
23968         PR c++/34917
23969         * tree.c (build_type_attribute_qual_variant): Call
23970         build_qualified_type if attributes are equal, but quals are not.
23972 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23974         PR 32102
23975         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
23976         * flags.h (warn_strict_aliasing): Remove.
23977         (warn_strict_overflow): Remove.
23978         * opts.c (warn_strict_aliasing): Remove.
23979         (warn_strict_overflow): Remove.
23980         * c-opts.c (c_common_handle_option): -Wall only sets
23981         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
23982         (c_common_post_options): Give default values to -Wstrict-aliasing
23983         and -Wstrict-overflow if they are uninitialized.
23984         * common.opt (Wstrict-aliasing): Specify Var and Init.
23985         (Wstrict-overflow): Likewise.
23987 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
23989         PR rtl-optimization/26854
23990         PR rtl-optimization/34400
23991         PR rtl-optimization/34884
23992         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
23993         DF_RD->gen.
23994         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
23995         (df_rd_bb_info.expanded_lr_out): Deleted
23996         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
23997         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
23998         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
23999         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
24000         Removed code to allocate, initialize or free expanded_lr_out.
24001         (df_rd_bb_local_compute_process_def): Restructured to make more
24002         understandable.
24003         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
24004         sets if the sets are being trimmed.
24006 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
24008         PR bootstrap/32287
24009         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
24010         (as_vers): Likewise.
24011         * configure: Regenerated.
24013 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24015         PR middle-end/33092
24016         * tree-pass.h (pass_build_alias): New pass.
24017         * tree-ssa-alias.c (gate_build_alias): New.
24018         (pass_build_alias): New.
24019         * passes.c (init_optimization_passes): Add pass_build_alias after
24020         pass_create_structure_vars.
24022 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
24024         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
24025         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
24026         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
24027         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
24028         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
24029         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
24030         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
24031         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
24032         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
24033         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
24034         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
24035         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
24036         * config/s390/s390.md (FP_ALL): New mode iterator.
24037         (_d): New mode attribute.
24038         ("*signbit<mode>2>"): Changed mode of first operand.
24039         ("isinf<mode>2"): Changed mode of first operand.
24040         ("*TDC_insn"): Adaptation for DFP modes.
24042 2008-01-22  Ben Elliston  <bje@au.ibm.com>
24044         * tree.c (check_qualified_type): Improve function description.
24046 2008-01-21  Jason Merrill  <jason@redhat.com>
24048         PR c++/34196
24049         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
24050         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
24051         if it is set.
24053 2008-01-21  DJ Delorie  <dj@redhat.com>
24055         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
24056         return zero.
24058 2008-01-21  Richard Guenther  <rguenther@suse.de>
24060         PR middle-end/34856
24061         * tree-cfg.c (verify_expr): Allow all invariant expressions
24062         instead of just constant class ones as reference argument.
24063         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
24064         like any other constant.
24065         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
24067 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
24069         * regmove.c (fixup_match_1): Update call crossed frequencies.
24071 2008-01-21  Richard Guenther  <rguenther@suse.de>
24073         PR c/34885
24074         * tree-inline.c (setup_one_parameter): Deal with mismatched
24075         types using a VIEW_CONVERT_EXPR.
24077 2008-01-21  Alon Dayan  <alond@il.ibm.com>
24078             Olga Golovanevsky  <olga@il.ibm.com>
24080         PR tree-optimization/34701
24081         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
24082         when the structure size is not a power of 2.
24084 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
24086         * doc/install.texi: Add doc for --enable-checking=df.
24088 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
24090         PR rtl-optimization/34808
24091         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
24093 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
24095         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
24096         input.
24098 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
24100         PR rtl-optimization/26854
24101         PR rtl-optimization/34400
24102         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
24103         DF_RD->gen.
24104         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
24105         (df_rd_bb_info.expanded_lr_out): New.
24106         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
24107         * loop_iv.c (iv_analysis_loop_init): Ditto.
24108         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
24109         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
24110         Added code to allocate, initialize or free expanded_lr_out.
24111         (df_rd_bb_local_compute_process_def): Restructured to make
24112         more understandable.
24113         (df_rd_confluence_n): Add code to do nothing with fake edges and
24114         code to no apply invalidate_by_call sets if the sets are being trimmed.
24115         (df_lr_local_finalize): Renamed to df_lr_finalize.
24116         (df_live_local_finalize): Renamed to df_live_finalize.
24118 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
24120         PR target/34831
24121         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
24122         deciding whether to use reciprocal instructions.
24124 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
24126         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
24127         dwarf2out_note_section_used if cold_text_section is NULL.
24129 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
24131         PR gcov-profile/34610
24132         * tree-cfg.c (make_edges): Mark both outgoing edges from
24133         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
24134         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
24135         from OMP_FOR and OMP_CONTINUE outgoing edges.
24137         * tree-profile.c (tree_profiling): Return early if
24138         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
24139         at the end.
24140         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
24141         from cfun to child_cfun.
24142         * function.h (struct function): Add after_tree_profile bit.
24144 2008-01-19 Anatoly Sokolov <aesok@post.ru>
24146         * config/avr/avr.S (_exit): Disable interrupt.
24148 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
24149             Steven Bosscher  <stevenb.gcc@gmail.com>
24151         PR rtl-optimization/26854
24152         PR rtl-optimization/34400
24153         * df-problems.c (df_live_scratch): New scratch bitmap.
24154         (df_live_alloc): Allocate df_live_scratch when doing df_live.
24155         (df_live_reset): Clear the proper bitmaps.
24156         (df_live_bb_local_compute): Only process the artificial defs once
24157         since the order is not important.
24158         (df_live_init): Init the df_live sets only with the variables
24159         found live by df_lr.
24160         (df_live_transfer_function): Use the df_lr sets to prune the
24161         df_live sets as they are being computed.
24162         (df_live_free): Free df_live_scratch.
24164 2008-01-18  Ian Lance Taylor  <iant@google.com>
24166         * common.opt: Add fmerge-debug-strings.
24167         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
24168         flag_merge_debug_strings rather than flag_merge_constants.
24169         * doc/invoke.texi (Option Summary): Mention
24170         -fmerge-debug-strings.
24171         (Debugging Options): Document -fmerge-debug-strings.
24173 2008-01-18  Ian Lance Taylor  <iant@google.com>
24175         PR c++/33407
24176         * tree.h (DECL_IS_OPERATOR_NEW): Define.
24177         (struct tree_function_decl): Add new field operator_new_flag.
24178         * tree-inline.c (expand_call_inline): When inlining a call to
24179         operator new, force the return value to go into a variable, and
24180         set DECL_NO_TBAA_P on that variable.
24181         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
24183 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
24185         PR debug/34484
24186         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
24187         DWARF2_DEBUGGING_INFO.
24188         (dwarf2out_note_section_used): Ditto.  Add prototype.
24189         (have_multiple_function_sections, text_section_used,
24190         cold_text_section_used, *cold_text_sections): Move declarations
24191         before their uses.
24193 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
24195         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
24196         field and add signal_ra.
24197         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
24198         assignments to frame state pc.  Move end of stack check after
24199         MD_FALLBACK_FRAME_STATE_FOR.
24200         (uw_update_context_1): Use frame state signal_regs if set, instead
24201         of checking signal_frame flag.
24202         (uw_update_context): Use frame state signal_ra if set.
24203         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
24204         * config/xtensa/linux-unwind.h: New file.
24206 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
24208         * modulo-sched.c (get_sched_window): Fix comment typo.
24210 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
24212         PR tree-optimization/34648
24213         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
24215 2008-01-17  Anatoly Sokolov <aesok@post.ru>
24217         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
24218         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
24220 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
24222         PR rtl-optimization/34400
24223         * df-core.c (df_worklist_dataflow_overeager,
24224         df_worklist_dataflow_doublequeue): New functions.
24225         (df_worklist_dataflow): Two different worklist solvers.
24226         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
24227         New param.
24229 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
24231         PR testsuite/34821
24232         * doc/invoke.texi: Document the dependence on pthread for fopenmp
24233         and ftree-parallelize-loops.
24235 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
24237         PR rtl-optimization/34826
24238         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
24240 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
24242         * global.c (find_reg): Mark the eh regs as used if necessary.
24243         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
24244         * ra.h (struct allocno): no_eh_reg field added.  Changed
24245         no_stack_reg type to bitfield.
24247 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
24249         * tree.c (substitute_in_expr): Add missing 'break'.
24251 2008-01-17  Richard Guenther  <rguenther@suse.de>
24253         PR tree-optimization/34825
24254         * tree-ssa-math-opts.c (is_division_by): Do not recognize
24255         x / x as division to handle.
24257 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24259         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
24260         "-pthread" is specified.
24261         * pa-hpux11.h (LIB_SPEC): Likewise.
24263 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
24264             Peter Bergner  <bergner@vnet.ibm.com>
24266         PR rtl-optimization/33796
24267         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
24269 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24271         PR libgfortran/34699
24272         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
24273         static links.
24274         * pa-hpux10.h (LINK_SPEC): Likewise.
24275         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
24277 2008-01-16  Richard Guenther  <rguenther@suse.de>
24279         PR middle-end/32628
24280         * fold-const.c (fold_convert_const_int_from_int): Do not
24281         set overflow if that occured only because of a sign extension
24282         change when converting from/to a sizetype with the same
24283         precision and signedness.
24285 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
24287         PR debug/34249
24288         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
24289         location address to the correct place.  Update copyright year.
24291 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
24293         * lambda-code.c (lambda_transform_legal_p): Handle the case of
24294         no dependences in the dependence_relations vector.
24296 2008-01-16  Jan Hubicka  <jh@suse.cz>
24298         PR rtl-optimization/31396
24299         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
24300         * cfg.c (dump_reg_info): Print it.
24301         * regs.h (struct reg_info_t): add freq_calls_crossed.
24302         (REG_FREQ_CALLS_CROSSED): New macro.
24303         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
24304         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
24305         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
24306         regmove_optimize): Update call crossed frequencies.
24307         * local-alloc.c (struct qty): Add freq_calls_crossed.
24308         (alloc_qty): Copute freq_calls_crossed.
24309         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
24310         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
24311         * ra.h (struct allocno): Add freq_calls_crossed.
24313 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
24315         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
24316         libgomp when compiling with ftree-parallelize-loops.
24317         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
24319 2008-01-16  Richard Guenther  <rguenther@suse.de>
24321         PR tree-optimization/34769
24322         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
24323         * tree.c (int_cst_value): Instead make this function more
24324         permissive in what it accepts as valid input.  Document this
24325         function always sign-extends the value.
24327 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
24328             Richard Guenther  <rguenther@suse.de>
24330         PR c/34668
24331         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
24332         (gimple_fold_indirect_ref_rhs): ... this.
24333         (gimple_fold_indirect_ref): New function with foldings
24334         that preserve lvalueness.
24335         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
24336         * tree-flow.h (gimple_fold_indirect_ref): Declare.
24337         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
24338         to fold an INDIRECT_REF, fall back to the old use of
24339         fold_indirect_ref_1.
24341 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
24343         * tree-data-ref.c (subscript_dependence_tester_1): Call
24344         free_conflict_function.
24345         (compute_self_dependence): Same.
24347 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
24349         PR debug/34249
24350         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
24351         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
24352         function global.
24353         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
24354         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
24355         for DWARF2_UNWIND_INFO targets.
24357 2008-01-16  Richard Guenther  <rguenther@suse.de>
24359         PR c/34768
24360         * c-typeck.c (common_pointer_type): Do not merge inconsistent
24361         type qualifiers for function types.
24363 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
24365         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
24366         loop_iterator li from previous commit.
24368 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
24370         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
24372 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
24374         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
24375         (parallelize_loops): Don't parallelize irreducible components.
24377 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24379         PR c++/24924
24380         * c-opts (c_common_post_options): Do not enable CPP
24381         flag_pedantic_errors by default.
24383 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
24385         PR rtl-optimization/31944
24386         * cse.c (remove_pseudo_from_table): New function.
24387         (merge_equiv_classes): Use above function to remove pseudo-registers.
24388         (invalidate): Likewise.
24390 2008-01-13  Richard Guenther  <rguenther@suse.de>
24392         PR middle-end/34601
24393         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
24394         instead of TYPE_MODE to deal with calls from expand_one_error_var.
24396 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
24398         * gcse.c (cprop_jump): Call validate_unshare_change instead of
24399         validate_change to unshare the source of the PC set.
24401 2008-01-12  Jan Hubicka  <jh@suse.cz>
24403         PR middle-end/32135
24404         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
24405         references above array bounds.  This might trigger bounds checks for
24406         pointers to arrays.
24408 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
24410         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
24411         new_replaceable_dependencies.
24413 2008-01-12  Doug Kwan  <dougkwan@google.com>
24415         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
24416         instead of OPT_Wreturn_type in warning due to ignored return type
24417         qualifiers.
24418         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
24419         options included in -Wextra.
24420         * c.opt: New option -Wignored_qualifiers.
24421         * doc/invoke.texi (Warning Options, -Wextra): Add new option
24422         -Wignore_qualifiers.
24423         (-Wignored-qualifiers): Document.
24424         (-Wreturn-type): Remove description of functionality now handled
24425         by -Wignored-qualifiers.
24427 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
24429         PR ada/33788
24430         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
24431         NOP_EXPR if it is between integral types with the same precision.
24433 2008-01-12  Jan Hubicka  <jh@suse.cz>
24435         PR other/28023
24436         * invoke.texi (max-inline-recursive-depth): Fix default value.
24438 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
24440         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
24441         correct type.
24443 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
24445         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
24447 2008-01-11  James E. Wilson  <wilson@specifix.com>
24449         PR target/26015
24450         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
24452 2008-01-11  Anatoly Sokolov <aesok@post.ru>
24454         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
24455         save/restore frame pointer register and don't use 'call-prologues'
24456         optimization in function with "OS_task" attribute.
24458 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
24460         PR middle-end/31309
24461         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
24462         when copying to memory.
24464 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
24466         PR rtl-optimization/30905
24467         * cfgcleanup.c: Include dce.h
24468         (crossjumps_occured): New global variable.
24469         (try_crossjump_bb): Exit loop after finding a fallthru edge.
24470         If something changed, set crossjumps_occured to true.
24471         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
24472         Don't add/remove fake edges to exit here...
24473         (cleanup_cfg): ...but do it here, when crossjumping.
24474         Run a fast DCE when successful crossjumps occured in the latest
24475         iteration of try_optimize_cfg.
24477 2008-01-11  Richard Guenther  <rguenther@suse.de>
24479         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
24480         (struct vn_unary_op_s): Likewise.
24481         (vn_reference_insert): Free old reference on hash collision.
24483 2008-01-10  Raksit Ashok  <raksit@google.com>
24485         PR rtl-optimization/27971
24486         * combine.c (find_split_point): Split PLUS expressions which are
24487         inside a MEM rtx, and whose first operand is complex.
24489 2008-01-10  DJ Delorie  <dj@redhat.com>
24491         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
24492         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
24493         (m32c_hard_regno_ok): Call the underlying function.
24495 2008-01-10  Richard Guenther  <rguenther@suse.de>
24497         PR middle-end/34683
24498         * tree-cfg.c (tree_merge_blocks): Do not go through the
24499         full-blown folding and stmt updating path if we just deal
24500         with virtual operands.
24501         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
24502         test for abnormal SSA_NAMEs.
24504 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
24506         PR middle-end/34641
24507         * reload.c (push_reload): Add assertions.  All constants from
24508         reg_equiv_constant should have been used for replacing the respective
24509         pseudo earlier.
24510         (find_reloads_address): Invoke find_reloads_address_part for
24511         constant taken from the reg_equiv_constant array.
24513 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
24515         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
24516         field (valnum) the first in the struct.  Replace bools with
24517         unit bit fields.
24519 2008-01-10  Richard Guenther  <rguenther@suse.de>
24521         PR tree-optimization/34651
24522         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
24523         types and ordering for masking and converting.
24525 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
24527         PR tree-optimization/34017
24528         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
24529         also for PHI_NODE expressions.
24531 2008-01-09  Jan Hubicka  <jh@suse.cz>
24533         PR tree-optimization/34708
24534         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
24535         based on number of case labels.
24536         (init_inline_once): Remove switch_cost.
24537         * tree-inline.h (eni_weights_d): Remove switch_cost.
24539 2008-01-09  Richard Guenther  <rguenther@suse.de>
24540         Andrew Pinski  <andrew_pinski@playstation.sony.com>
24542         PR middle-end/30132
24543         * gimplify.c (gimplify_cond_expr): Do not create an addressable
24544         temporary if an rvalue is ok or an lvalue is not required.
24546 2008-01-09  Richard Guenther  <rguenther@suse.de>
24548         PR middle-end/34458
24549         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
24550         adjust return type.
24552 2008-01-09  Richard Guenther  <rguenther@suse.de>
24554         PR middle-end/34679
24555         * tree.c (host_integerp): Check for sizetype only if the
24556         type is an integer type.
24558 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
24560         PR debug/26364
24561         * opts.c (decode_options): Disable inlining of functions called
24562         once if not in unit-at-a-time mode.
24564 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
24566         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
24568 2008-01-08  Richard Guenther  <rguenther@suse.de>
24570         PR middle-end/31863
24571         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
24572         out early if the result will be unused.
24574 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
24576         PR target/34709
24577         Revert:
24579         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
24580         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
24581         for TARGET_RECIP.
24583 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
24585         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
24586         for vectorization tuned.
24588 2008-01-08  Richard Guenther  <rguenther@suse.de>
24590         PR tree-optimization/34683
24591         * tree-ssa-operands.c (operand_build_cmp): Export.
24592         * tree-ssa-operands.h (operand_build_cmp): Declare.
24593         * tree-vn.c (vuses_compare): Remove.
24594         (sort_vuses): Use operand_build_cmp.
24595         (sort_vuses_heap): Likewise.
24596         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
24597         to re-use old VEC if available.  Do not sort already sorted VUSEs.
24598         (vdefs_to_vec): Do not sort already sorted VDEFs.
24600 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
24602         PR middle-end/34694
24603         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
24605 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
24607         PR target/34702
24608         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
24609         limitations of reciprocal sequences on x86 targets.
24611 2008-01-08  Richard Guenther  <rguenther@suse.de>
24613         PR tree-optimization/34683
24614         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
24616 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
24618         PR target/34622
24619         * config/darwin.c (darwin_mergeable_string_section): Don't use
24620         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
24622 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
24624         PR target/34682
24625         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
24626         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
24627         predicates of op0 and op1 to register_operand.
24628         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
24629         expander using X87MODEF mode iterator.  Change predicates of
24630         op0 and op1 to register_operand.
24631         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
24632         corresponding patterns and macroize using MODEF macro.  Change
24633         predicates of op0 and op1 to register_operand and remove
24634         "m" constraint. Disparage "r" alternative with "!".
24635         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
24636         macroize using X87MODEF macro.  Change predicates of op0 and op1
24637         to register_operand and remove "m" constraint.  Disparage "r"
24638         alternative with "!".
24639         (absneg splitter with memory operands): Remove.
24640         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
24641         patterns and macroize using X87MODEF mode iterator.
24642         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
24643         Change predicate of op1 to register_operand.
24644         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
24645         for memory operands.
24647 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
24649         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
24651 2008-01-07  Richard Guenther  <rguenther@suse.de>
24653         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
24654         fields.
24656 2008-01-07  Richard Guenther  <rguenther@suse.de>
24658         PR tree-optimization/34683
24659         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
24660         VOPs of the needed size to save memory.  Use VEC_quick_push
24661         to save compile-time.
24662         (vdefs_to_vec): Likewise.
24664 2008-01-07  Sa Liu  <saliu@de.ibm.com>
24666         * config/spu/spu.md (divdf3): Genetate inline code for double
24667         division.  The implementation doesn't handle INF or NAN, therefore it
24668         only applies when -ffinite-math-only is given.
24670 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
24672         PR libstdc++/34680
24673         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
24674         * doc/cpp.texi ([Common Predefined Macros]): Document.
24676 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
24678         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
24679         order to use commutative addition instead of subtraction.
24681 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
24682             Mircea Namolaru  <namolaru@il.ibm.com>
24683             Vladimir Yanovsky  <yanov@il.ibm.com>
24684             Revital Eres  <eres@il.ibm.com>
24686         PR tree-optimization/34263
24687         * tree-outof-ssa.c (process_single_block_loop_latch,
24688         contains_tree_r): New functions.
24689         (analyze_edges_for_bb): Call process_single_block_loop_latch
24690         function to empty single-basic-block latch block if possible.
24692 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
24694         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
24695         for TARGET_RECIP.
24696         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
24698 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
24700         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
24702 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
24704         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
24706 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
24708         PR tree-optimization/34618
24709         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
24710         flag from T.
24712 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
24714         PR target/34673
24715         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
24716         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
24717         Update copyright year.
24719         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
24720         Update copyright year.
24721         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
24722         using NR fixup.
24724 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
24726         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
24727         edge does not point to current bb before changing need_assert.
24729 2008-01-04  Richard Guenther  <rguenther@suse.de>
24731         PR middle-end/34029
24732         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
24733         for verifying purposes if they are is_gimple_min_invariant.
24735 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
24737         PR tree-optimization/34448
24738         PR tree-optimization/34465
24739         * gimplify.c (gimplify_init_constructor): Add new parameter
24740         notify_temp_creation.  Use it.
24741         (gimplify_modify_expr_rhs): Take volatiles into account when
24742         optimizing constructors.
24743         Do not optimize constructors if gimplify_init_constructor will dump to
24744         memory.
24745         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
24746         * gcc.c-torture/compile/pr34448.c: New.
24748 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
24750         PR gcov-profile/34609
24751         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
24752         return_slot if result is TREE_ADDRESSABLE.
24754 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
24756         * config/mips/mips.md (sqrt_condition): Tweak comment.
24757         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
24759 2008-01-03  Tom Tromey  <tromey@redhat.com>
24761         PR c/34457
24762         * c-common.c (c_type_hash): Handle VLAs.
24764 2008-01-03  Jan Hubicka  <jh@suse.cz>
24766         PR tree-optimization/31081
24767         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
24768         0 when inlining and not inlining to first basic block.
24769         (remap_decl): When var is initialized to 0, don't set default_def.
24770         (expand_call_inline): Set entry_bb.
24771         * tree-inline.h (copy_body_data): Add entry_bb.
24773 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
24775         PR c++/34619
24776         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
24777         before returning.
24779         PR tree-optimization/29484
24780         * tree-inline.c (inline_forbidden_p_2): New function.
24781         (inline_forbidden_p): Disallow inlining if some static var
24782         has an address of a local LABEL_DECL in its initializer.
24783         * doc/extend.texi (Labels as Values): Document &&foo behaviour
24784         vs. inlining.
24786 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
24788         PR tree-optimization/34635
24789         * tree-data-ref.c (add_other_self_distances): Make sure that the
24790         evolution step is constant.
24792 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
24794         PR middle-end/34608
24795         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
24797 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
24799         * tree-sra.c (scalarize_init): Insert the generate_element_init
24800         statements after the generate_element_zero statements.
24802 2008-01-02  Richard Guenther  <rguenther@suse.de>
24804         PR middle-end/34093
24805         PR middle-end/31976
24806         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
24807         for very large number of operands instead of ICEing.
24809 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
24811         PR target/34013
24812         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
24813         while stack probing.
24815 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
24817         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
24818         in C++0x mode.
24820 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
24822         PR libmudflap/26442
24823         * tree-mudflap.c (mx_register_decls): Guard warning by
24824         !DECL_ARTIFICIAL check.
24826 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
24828         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
24829         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
24830         sse5_perm<mode>): Fix constraints.