2008-08-24 Jeff Law <law@redhat.com>
[official-gcc.git] / gcc / ChangeLog
blobacc2f610d7397bd3dbcf6e47de57f03f009d6fef
1 2008-08-24  Jeff Law  <law@redhat.com>
2             Vladimir Makarov  <vmakarov@redhat.com>
4         * ira.c (setup_reg_class_intersect_union): Prefer smallest class
5         when ignoring unavailable registers.
7 2008-08-24  Jeff Law  <law@redhat.com>
8             Vladimir Makarov  <vmakarov@redhat.com>
10         * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
11         FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
13         * ira.c (setup_eliminable_regset): Check stack_realign_needed.
15 2008-08-1  Vladimir Makarov  <vmakarov@redhat.com>
17         * ira-conflicts.c (process_regs_for_copy): Don't add copy for
18         conflicting allocnos.
19         (propagate_allocno_copy_info, propagate_copy_info): Remove.
20         (propagate_copies): New.
21         (collected_conflict_allocnos): New.
22         (remove_conflict_allocno_copies): Remove.
23         (build_allocno_conflicts): Add parameter.  Build conflicts only
24         for one allocno. Check cap too.  Don't free conflict table row.
25         (build_conflicts): New.
26         (ira_build_conflicts): Build conflicts before adding copies.  Free
27         conflict bit table rows.
29         * ira-color.c (color_pass): Check cap.  Process caps only once.
30         Remove propagation code.
31         (move_spill_restore): Check caps and border allocnos.
33         * ira-lives.c (propagate_new_allocno_info, propagate_new_info):
34         Remove.
35         (ira_create_allocno_live_ranges): Don't propagate info of new
36         allocnos.
38         * ira-emit.c (not_modified_p, update_costs): Check caps.
40         * ira-build.c (allocnos_bitmap): Remove.
41         (create_cap_allocno): Set up all cap attributes.
42         (propagate_info_to_cap): Remove.
43         (create_loop_allocnos): Create allocnos in parent for border
44         allocnos if there is no one.
45         (propagate_allocno_info): New.
46         (create_allocnos): Don't propagate allocno info.
47         (remove_unnecessary_allocnos): Accumulate all allocno info.
48         (setup_min_max_allocno_live_range_point): Set up min/max for caps
49         too.
50         (create_loop_tree_node_caps): Remove.
51         (create_caps): New.
52         (propagate_info_to_loop_tree_node_caps): Remove.
53         (ira_flattening): Check cap.  Stop decrease call info after
54         reaching allocno which is destination of removed store.  Check
55         allocno nrefs and freq.
56         (calculate_high_pressure_loops): Remove.
57         (check_allocno_creation): New.
58         (ira_build): Call propagate_allocno_info, call_caps, and
59         check_allocno_creation.  Move
60         ira_tune_allocno_costs_and_cover_classes before
61         setup_min_max_allocno_live_range_point.
63         * ira.c: Update comments about IRA.
64         (ira_print_disposition): Add comment.
66         * ira-costs.c (total_costs): Rename to allocno_costs.
67         (total_costs): New.
68         (print_costs): Print accumulated costs too.
69         (find_allocno_class_costs): Check border allocnos for propagation
70         costs.  Setup non-accumulated costs for allocnos.
71         (process_bb_node_for_hard_reg_moves): Don't propagate costs.
72         (ira_costs): Add allocation/freeing allocno_costs.
74         * common.opt (fira-propagate-cost): Remove.
76         * doc/invoke.texi (-fira-propagate-cost): Remove.
77         
78 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
80         PR middle-end/36450
81         * caller-save.c (insert_restore): Replace
82         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
83         (insert_save): Likewise.
85 2008-08-22  Anatoly Sokolov  <aesok@post.ru>
87         PR target/11259
88         * config/avr/avr.md (UNSPEC_SWAP): New constants.
89         (*swap): New insn pattern.
90         (*ashlqi3): Rename from ashlqi3 insn pattern.
91         (ashlqi3): New expanders.
92         (*lshrqi3): Rename from lshrqi3 insn pattern.
93         (lshrqi3): New expanders.       
94         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
95         lshrqi3_const5, lshrqi3_const6): New splitters.
96         (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
97         lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
98         peephole2 patterns.
100 2008-08-22  Richard Guenther  <rguenther@suse.de>
102         PR tree-optimization/37078
103         * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
104         [+INF, +INF] ranges.
106 2008-08-22  Richard Guenther  <rguenther@suse.de>
108         PR tree-optimization/37143
109         * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
110         a conversion statement instead of a copy.
112 2008-08-22  Uros Bizjak  <ubizjak@gmail.com>
114         PR target/37184
115         * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
116         CCCmode, CCOmode and CCSmode destination modes.
118         PR target/37191
119         * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
120         from different units in a single alternative.
121         (*vec_extractv2sf_1): Ditto.
122         (*vec_extractv2si_0): Ditto.
123         (*vec_extractv2si_1): Ditto.
124         * config/i386/sse.md (sse2_storehpd): Ditto.
125         (sse2_storelpd): Ditto.
126         (sse2_loadhpd): Ditto.
127         (sse2_loadlpd): Ditto.
129         PR target/37197
130         * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
131         (popcountsi2): Ditto.
132         (clzdi2_abm): Ditto.
133         (popcountdi2): Ditto.
134         (clzhi2_abm): Ditto.
135         (popcounthi2): Ditto.
137 2008-08-22  Richard Guenther  <rguenther@suse.de>
139         PR middle-end/36548
140         PR middle-end/37125
141         * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
142         if the multiplication does not overflow.
144 2008-08-21  Nathan Sidwell  <nathan@codesourcery.com>
146         * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
148 2008-08-21  Richard Henderson  <rth@redhat.com>
150         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
151         spurrious comma from test.
152         * configure: Rebuild.
154 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
156         PR 30457
157         * builtins.c (fold_builtin_next_arg): Add warning about undefined
158         behaviour.
159         
160 2008-08-21  Aldy Hernandez  <aldyh@redhat.com>
162         * c-tree.h (grokfield): New argument.
163         * c-decl.c (grokfield): Handle new location argument.
164         * c-parser.c (c_parser_struct_declaration): Pass location to
165         grokfield.
167 2008-08-21  Richard Guenther  <rguenther@suse.de>
169         * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
171 2008-08-21  Jan Hubicka  <jh@suse.cz>
173         * cgraph.c (first_cgraph_function_insertion_hook): New variable.
174         (cgraph_add_function_insertion_hook,
175         cgraph_remove_function_insertion_hook,
176         cgraph_call_function_insertion_hooks): New functions.
177         * cgraph.h (cgraph_add_function_insertion_hook,
178         cgraph_remove_function_insertion_hook,
179         cgraph_call_function_insertion_hooks): Declare.
180         * ipa-reference.c (function_insertion_hook_holder): New variable.
181         (check_operand, look_for_address_of): When checking late, do not care
182         about module bitmaps.
183         (add_new_function): New function.
184         (generate_summary): Register hooks; zero module bitmaps.
185         (propagate): Unregister hooks.
186         * ipa-pure-const.c (function_insertion_hook_holder): New variable.
187         (add_new_function): New function.
188         (generate_summary): Register hook.
189         (propagate): Remove hook.
191         * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
193         * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
194         * ipa-cp.c (ipcp_update_cloned_node): New function.
195         (build_const_val): Handle functions correctly; bring type logic
196         into sync with tree-inline.c
197         (ipcp_init_stage):  Take care of computing stuff needed by
198         indirect inlining; update clones.
199         (ipcp_generate_summary): Break out of ipcp_driver.
200         (ipcp_driver): Do only execution and transformation.
201         (pass_ipa_cp): Make IPA_PASS.
202         * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
203         offset to address.
204         * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
205         ipcp, some info is already available.
206         * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
207         * tree-inline.c (remap_ssa_name): Unshare expression.
209 2008-08-21  Richard Guenther  <rguenther@suse.de>
211         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
212         a PHI ask VN if it is already available.
213         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
214         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
216 2008-08-21  Richard Guenther  <rguenther@suse.de>
218         PR middle-end/36817
219         * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
220         makes sure to produce a result of the correct type.
222 2008-08-21  Jan Hubicka  <jh@suse.cz>
223         Backport from LTO branch:
225         2008-05-05  Kenneth Zadeck <zadeck@naturalbridge.com>
226                     Jan Hubicka  <jh@suse.cz>
227         
228         * ipa-pure-const.c
229         (init_state, finish_state, set_function_state, generate_summary):
230         New functions.
231         (scan_stmt): Renamed from scan_function.  Changed to keep state in
232         local static vars rather than cgraph aux field.
233         (propagate): Renamed from static_execute. Changed to keep state in
234         local static vars rather than cgraph aux field.
235         (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
236         * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
238         2008-07-15  Kenneth Zadeck <zadeck@naturalbridge.com>
240         * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
241         * ipa-reference.c (init_function_info, generate_summary, 
242         propagate): New functions.
243         (analyze_function):  Call init_function_info.
244         (static_execute): Stripped into generate_summary and propagate.
245         (pass_ipa_reference): Made into ipa_opt_pass.
247 2008-08-21  Richard Guenther  <rguenther@suse.de>
249         PR tree-optimization/37181
250         * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
251         folding result.
252         (extract_range_from_unary_expr): Likewise.
254 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
256         * diagnostic.c (pedwarn_at): Rename as pedwarn.
257         (pedwarn): Delete.
258         * toplev.h (pedwarn_at): Likewise.
259         * builtins.c: Update all calls to pedwarn.
260         * c-lex.c: Likewise.
261         * toplev.c: Likewise.
262         * c-tree.h: Likewise.
263         * c-decl.c: Likewise.
264         * c-errors.c: Likewise.
265         * c-typeck.c: Likewise.
266         * c-common.c: Likewise.
267         * c-parser.c: Likewise.
269 2008-08-20  Joseph Myers  <joseph@codesourcery.com>
271         PR target/31070
272         * config/sparc/sparc.c (function_arg_slotno): Handle structure
273         with MODE_VECTOR_INT mode.
275 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
277         PR middle-end/179
278         * tree-ssa.c (warn_uninit): Do not warn for variables that can be
279         initialized outside the current module.
280         (warn_uninitialized_var): Ignore left-hand side when walking the
281         trees. Ignore address expressions. Examine VUSE operands in gimple
282         statements with a variable declaration on the right-hand side.
284 2008-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
286         PR bootstrap/37155
287         * rtlanal.c (subreg_offset_representable_p): Revert last change.
289 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
291         PR 35701
292         * c-common.c (conversion_warning): Do not warn if applying bit-and
293         operator to unsigned constant that fits in the target type.
295 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
297         PR c++/35602
298         * c-common.c (conversion_warning): Do not warn for artificial
299         expressions.
301 2008-08-20  Richard Guenther  <rguenther@suse.de>
303         * tree-vrp.c (op_with_constant_singleton_value_range): New function.
304         (extract_range_from_binary_expr): Fall back to constant propagation.
305         (extract_range_from_unary_expr): Likewise.
307 2008-08-20  Richard Guenther  <rguenther@suse.de>
309         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
310         with TREE_THIS_VOLATILE on shared nodes.
311         (fold_stmt_r): Likewise.
313 2008-08-20  Jakub Jelinek  <jakub@redhat.com>
315         PR c/37171
316         * c-parser.c (c_parser_attributes): For keywords use canonical
317         spelling for attr_name.
319 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
321         * value-prof.c (check_counter): Revert wrong call to error.
322         
323 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
325         * profile.c: Update calls to inform.
326         * value-prof.c: Update calls to inform.
327         
328 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
330         * diagnostic.c (inform): Add an explicit location_t parameter.
331         * toplev.h (inform): Update declaration.
332         * builtins.c: Update all calls to inform.
333         * c-common.c: Likewise.
334         * c-decl.c: Likewise.
335         * c-opts.c: Likewise.
336         * c-pch.c: Likewise.
337         * c-pragma.c: Likewise.
338         * c-typeck.c: Likewise.
339         * coverage.c: Likewise.
340         * opts.c: Likewise.
341         * toplev.c: Likewise.
342         * tree-cfg.c: Likewise.
343         * tree-ssa.c: Likewise.
345 2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>
347         PR target/37169
348         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
349         V2DI mode, for SSE4.1, use movq instead of vector set if the
350         second element is zero and inter-unit moves are OK.
352 2008-08-20  Richard Guenther  <rguenther@suse.de>
354         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
355         properly handle conversion/copy chains after tuplification.
357 2008-08-20  Richard Guenther  <rguenther@suse.de>
359         * passes.c (init_optimization_passes): Move the second
360         forwprop pass before alias computation.  Remove the second
361         DCE pass.  Remove the first dominator and phi copy/const
362         prop passes.
364 2008-08-20  Nick Clifton  <nickc@redhat.com>
366         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
367         support of this feature.  Do not assume that a sufficiently new
368         assembler will support the feature regardless of the target type.
369         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
370         * configure: Regenerate.
372 2008-08-20  Richard Guenther  <rguenther@suse.de>
374         * tree-vrp.c (found_in_subgraph): Remove.
375         (live): New global static.
376         (live_on_edge): New function.
377         (blocks_visited): Remove.
378         (register_edge_assert_for_2): Use live_on_edge.
379         (find_conditional_asserts): Remove code dealing with
380         found_in_subgraph.  Do not walk the CFG.
381         (find_switch_asserts): Likewise.
382         (find_assert_locations_1): Renamed from find_assert_locations.
383         Move finding assert locations for conditional and switch
384         statements first.  Update live bitmap.  Do not walk the CFG.
385         (find_assert_locations): New function.
386         (insert_range_assertions): Remove entry of CFG walk.
387         Adjust call to find_assert_locations.
388         * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
389         that only can appear because of fake exit edges but assert we
390         never try to insert on those.
391         (fini_pre): Do not remove fake exit edges here...
392         (execute_pre): ...but here, before committing edge inserts.
394 2008-08-19  Richard Guenther  <rguenther@suse.de>
396         * passes.c (init_optimization_passes): Exchange store-ccp
397         with a ccp pass.
399 2008-08-19  Rafael Espindola  <espindola@google.com>
401         * varasm.c (weak_decls): Move earlier in the file.
402         (assemble_external): Add weak decls to the weak_decls list.
403         (declare_weak): Don't add decls to the weak_decls list.
405 2008-08-19  H.J. Lu  <hongjiu.lu@intel.com>
407         PR target/37157
408         * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
409         before (sse2_shufpd_<mode>).
411 2008-08-19  Jakub Jelinek  <jakub@redhat.com>
413         PR debug/37156
414         * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
415         * tree.c (block_nonartificial_location): Likewise.
417 2008-08-19  Richard Guenther  <rguenther@suse.de>
419         PR tree-optimization/35972
420         PR tree-optimization/23094
421         * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
422         parameter.
423         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
424         handle MISALIGNED_INDIRECT_REF.
425         (get_ref_from_reference_ops): New helper.
426         (vn_reference_lookup_pieces): Walk the use-def chain using the
427         alias-oracle if requested.
428         * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
429         walking the use-def chain.
430         (compute_avail): But not here.
431         (create_component_ref_by_pieces_1): Properly handle
432         MISALIGNED_INDIRECT_REF.
433         (do_regular_insertion): Handle fully redundant
434         expressions after PHI-translation also for SSA_NAME values, not
435         only constants.  Correctly use edoubleprime for that.
437 2008-08-19  Ira Rosen  <irar@il.ibm.com>
439         * tree-vectorizer.c (supportable_widening_operation): Support
440         multi-step conversion, return the number of steps in such conversion
441         and the required intermediate types.
442         (supportable_narrowing_operation): Likewise.
443         * tree-vectorizer.h (vect_pow2): New function.
444         (supportable_widening_operation): Change argument types.
445         (supportable_narrowing_operation): Likewise.
446         (vectorizable_type_promotion): Add an argument.
447         (vectorizable_type_demotion): Likewise.
448         * tree-vect-analyze.c (vect_analyze_operations): Call 
449         vectorizable_type_promotion and vectorizable_type_demotion with
450         additional argument.
451         (vect_get_and_check_slp_defs): Detect patterns.
452         (vect_build_slp_tree): Add an argument, don't fail in case of multiple
453         types. 
454         (vect_analyze_slp_instance): Don't fail in case of multiple types. Call
455         vect_build_slp_tree with correct arguments. Calculate unrolling factor
456         according to the smallest type in the loop.
457         (vect_detect_hybrid_slp_stmts): Include statements from patterns.
458         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call 
459         supportable_widening_operation with correct arguments. 
460         * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector 
461         operands lists according to the number of vector statements in left
462         or right node, if exists.
463         (vect_gen_widened_results_half): Remove unused argument.
464         (vectorizable_conversion): Call supportable_widening_operation, 
465         supportable_narrowing_operation, and vect_gen_widened_results_half
466         with correct arguments. 
467         (vectorizable_assignment): Change documentation, support multiple
468         types in SLP. 
469         (vectorizable_operation): Likewise.
470         (vect_get_loop_based_defs): New function.
471         (vect_create_vectorized_demotion_stmts): Likewise.
472         (vectorizable_type_demotion): Support loop-aware SLP and general
473         multi-step conversion. Call vect_get_loop_based_defs and
474         vect_create_vectorized_demotion_stmts for transformation.
475         (vect_create_vectorized_promotion_stmts): New function.
476         (vectorizable_type_promotion): Support loop-aware SLP and general
477         multi-step conversion. Call vect_create_vectorized_promotion_stmts
478         for transformation.     
479         (vectorizable_store): Change documentation, support multiple
480         types in SLP. 
481         (vectorizable_load): Likewise.
482         (vect_transform_stmt): Pass SLP_NODE to 
483         vectorizable_type_promotion and vectorizable_type_demotion.
484         (vect_schedule_slp_instance): Move here the calculation of number
485         of vectorized statements for each node from...
486         (vect_schedule_slp): ... here.
487         (vect_transform_loop): Call vect_schedule_slp without the last
488         argument.
490 2008-08-19  Dorit Nuzman  <dorit@il.ibm.com>
492         PR bootstrap/37152
493         * tree-vect-transform.c (vect_create_epilog_for_reduction): Change = 
494         to == in assert statement.
495         (vectorizable_reduction): Fix typo.
497 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
499         PR bootstrap/37153
500         * value-prof.c (check_counter): Dereference pointer to overall
501         count when printing it.
503 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
505         * profile.h: Really add it.
507 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
509         * mcf.c: Really add it.
511 2008-08-18  Paul Yuan  <yingbo.com@gmail.com>
512             Vinodha Ramasamy  <vinodha@google.com>
514         * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
515         count_scale.
516         * value-prof.c (check_counter): Fix the counter if
517         flag_profile_correction is true.
518         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
519         tree_mod_subtract_transform):
520         Follow check_counter parameter change.
521         * common.opt (fprofile-correction): New option.
522         * mcf.c: New file.
523         * profile.h: Likewise.
524         * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
525         (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
526         is_inconsistent, set_bb_counts, read_profile_edge_counts): New
527         functions.
528         (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
529         flag_profile_correction is set.
531 2008-08-18  Richard Sandiford  <rdsandiford@googlemail.com>
533         * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
535 2008-08-18  Tomas Bily  <tbily@suse.cz>
537         * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
538         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
539         CONVERT_EXPR_P.
540         * tree-data-ref.c (split_constant_offset_1): Likewise.
541         * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
542         * tree-sra.c (sra_walk_expr): Likewise.
543         * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
544         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
545         * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
546         * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
547         Likewise.
548         * gimple.c (gimple_assign_unary_nop_p): Likewise.
549         * tree-vect-transform.c (vectorizable_type_demotion)
550         (vectorizable_type_promotion): Likewise.
551         * tree-inline.c (expand_call_inline): 
552         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
553         (forward_propagate_addr_expr_1, forward_propagate_comparison)
554         (tree_ssa_forward_propagate_single_use_vars): Likewise.
555         * expr.c (expand_expr_real_1): Likewise.
556         * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
557         (gimple_assign_unary_useless_conversion_p): Likewise.
558         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
559         * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
560         * fold-const.c (fold_unary): Likewise.
561         * tree.h (CONVERT_EXPR_P): Likewise.
562         * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
563         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
564         * tree-vrp.c: 
565         (register_edge_assert_for_2, extract_range_from_unary_expr)
566         (register_edge_assert_for_1): Likewise.
567         
568 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
570         * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
571         dconst_third_ptr, dconst_sqrt2_ptr): Declare.
572         (enum real_value_const): Delete.
573         (get_real_const): Delete.
574         * real.c (get_real_const): Delete.
575         (dconst_e_ptr): Define.
576         (dconst_third_ptr): Define.
577         (dconst_sqrt2_ptr): Define.
578         * builtins.c: Update all callers.
580 2008-08-18  Richard Guenther  <rguenther@suse.de>
582         * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
583         statement iterator after statement removal.
585 2008-08-18  Andreas Tobler  <a.tobler@schweiz.org>
587         * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
588         (detect_processor_freebsd): Likewise.
589         (host_detect_local_cpu): Call newly added functions for FreeBSD.
591 2008-08-18  Richard Guenther  <rguenther@suse.de>
593         * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
594         and loads have the correct types.
596 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
598         PR cpp/7263
599         * c-opts.c (cpp_opts): Remove static.
600         * c-parser.c (cpp_opts): Declare it extern.
601         (disable_extension_diagnostics): Handle cpp options.
602         (enable_extension_diagnostics): Likewise.
604 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
606         * diagnostics.c (permerror_at): Rename as permerror.
607         (permerror): Delete.
608         * toplev.h: Likewise.
610 2008-08-18  Richard Guenther  <rguenther@suse.de>
612         * passes.c (init_optimization_passes): Remove cleanup_cfg1,
613         sdse1 and addressables2 passes.  Replace dce1 with cddce1.
614         Move call_cdce before build_alias.  Move copyrename2,
615         cunrolli and ccp2 beafore build_alias.  Re-add addressable2
616         right after final inlining.
617         * tree-cfg.c (build_gimple_cfg): Do not dump function here.
618         (pass_build_cfg): But instead via TODO_dump_func.
620 2008-08-18  Richard Guenther  <rguenther@suse.de>
622         * tree-sra.c (generate_element_init_1): Deal with NULL constructor
623         element index.
624         (scalarize_init): If we failed to generate some initializers
625         do not generate zeros for not instantiated members.  Instead
626         rely on the copy out.
627         * tree-ssa-operands.c (get_addr_dereference_operands): Warn
628         about missing flow-sensitive alias info only if we have
629         aliases computed.
631 2008-08-17  Nick Clifton  <nickc@redhat.com>
633         * doc/extend.texi (Function Attributes): Fix typo in description
634         if hot function attribute.
636 2008-08-17  Daniel Jacobowitz  <dan@codesourcery.com>
637             Richard Sandiford  <rdsandiford@googlemail.com>
639         * doc/install.texi (--with-mips-plt): Document.
640         * doc/invoke.texi (-mplt, -mno-plt): Document.
641         * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
642         and handle ${with_mips_plt}.
643         * config/mips/mips.opt (mplt): New option.
644         * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
645         (TARGET_ABICALLS_PIC2): Likewise.
646         (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
647         (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
648         (ASM_SPEC): Use !mabi=* instead of !mabi*.
649         (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
650         to decide whether to output ".option picX" directives.
651         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
652         Pass -call_nonpic rather than -KPIC for -mplt.
653         (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
654         on the command line.  Also remove it when -mabi=64 is used without
655         -msym32.
656         * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
657         * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
658         TARGET_ABICALLS_PIC0.
659         (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
660         TARGET_ABICALLS.
661         (mips16_build_function_stub): Only output ".option pic" directives
662         and PIC stubs if TARGET_ABICALLS_PIC2.  Call through $25 instead of $1.
663         (mips16_build_call_stub): Fix comment and remove redundant
664         ".set at"/"set .noat" directives.
665         (mips_function_rodata_section): Use the default behaviour for
666         TARGET_ABSOLUTE_ABICALLS.
667         (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
668         (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
669         (mips_restore_gp): Do nothing if the current function doesn't use
670         a global pointer.
671         (mips_expand_prologue): Only save $gp if the current function uses it.
672         Use a normal move for TARGET_ABICALLS_PIC0.
673         (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
675 2008-08-17  Richard Sandiford  <rdsandiford@googlemail.com>
677         * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
678         of function when handling GLOBAL_POINTER_REGNUM.
680 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
682         PR ada/20548
683         * common.opt (-fstack-check): Do not declare the variable here.
684         (-fstack-check=): New option variant.
685         * doc/invoke.texi (Code Gen Options): Document it.
686         * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
687         (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
688         (STACK_CHECK_STATIC_BUILTIN): New macro.
689         * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
690         * opts.c: Include expr.h.
691         (common_handle_option) <OPT_fold_stack_check_>: New case.
692         <OPT_fstack_check>: Likewise.
693         * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
694         consistently in the test for variable-sized types.  Adjust for
695         new behaviour of flag_stack_check.
696         * explow.c: Include except.h.
697         (allocate_dynamic_stack_space): Do not take into account
698         STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
699         * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
700         for variable-sized parameters.  Treat all parameters whose size is
701         greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
702         stack checking is enabled.
703         * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
704         size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
705         if generic stack checking is enabled.
706         (expand_function_end): Adjust for new behaviour of flag_stack_check.
707         * reload1.c (reload): Likewise.
708         * stmt.c (expand_decl): Assert that all automatic variables have
709         fixed size at this point and remove dead code.
710         * flags.h (stack_check_type): New enumeration type.
711         (flag_stack_check): Declare.
712         * toplev.c (flag_stack_check): New global variable.
713         * Makefile.in (opts.o): Add dependency on EXPR_H.
714         (explow.o): Add dependency on except.h.
716 2008-08-16  Andy Hutchinson  <hutchinsonandy@aim.com>
718         * config/avr/avr.c (avr_override_options): Reduce value of 
719         PARAM_INLINE_CALL_COST.
721 2008-08-15  Eric Botcazou  <ebotcazou@adacore.com>
723         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
724         to BLKmode, try to fetch an inner memory reference.  Use 'mode' in
725         lieu of TYPE_MODE (type) throughout.
727 2008-08-15  Joseph Myers  <joseph@codesourcery.com>
729         * config/arm/arm.c (add_minipool_backward_ref): Check for
730         8-byte-aligned entries in second case of forcing insertion after a
731         particular entry.  Change third case to avoid inserting
732         non-8-byte-aligned entries before 8-byte-aligned ones.
734 2008-08-15  Richard Guenther  <rguenther@suse.de>
736         * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
737         strip components for unknown size accesses.
739 2008-08-15  Wolfgang Gellerich  <gellerich@de.ibm.com>
741         * config/s390/2097.md New file.
742         * config/s390/s390.md ("z10prop" attribute): Define none,
743         z10_super, z10_super_E1, z10_super_A1, z10_super_c,
744         z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
745         z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
746         possible values and apply them to insns as appropriate.
747         ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
748         ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
749         fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
750         fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible
751         values.
752         ("bfp" mode attribute): Removed.  Every occurence replaced
753         with <mode>.
754         * config/s390/s390.c (struct "z10_cost"): Updated entries.
755         * config/s390/2084.md (insn_reservation "x_itof"): Updated
756           type attribute.
758 2008-08-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
760         PR c/28152
761         * c-parser.c (c_lex_one_token): Do not store the canonical spelling
762         for keywords.
763         
764 2008-08-14  Dorit Nuzman  <dorit@il.ibm.com>
766         * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
767         additional argument. Support reduction when duplication is needed due
768         to data-types of different sizes in the loop.
769         (get_initial_def_for_induction): Fix printout.
770         (vect_get_vec_def_for_stmt_copy): Support case where the
771         vec_stmt_for_operand is a phi node.
772         (vectorizable_reduction): Support reduction when duplication is needed 
773         due to data-types of different sizes in the loop.
774         (vectorizable_call): Remove restriction to not vectorize in case we 
775         have data-types of different sizes in the loop.
776         (vectorizable_conversion): Likewise.
777         (vectorizable_operation): Likewise.
778         (vectorizable_type_demotion): Likewise.
779         (vectorizable_type_promotion): Likewise.
780         (vectorizable_induction): Add restriction to not vectorize in case 
781         we have data-types of different sizes in the loop.
783 2008-08-14  Christophe Saout  <christophe@saout.de>
784             Uros Bizjak  <ubizjak@gmail.com>
786         PR target/37101
787         * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
788         (*vec_concatv2di_rex64_sse4_1): Ditto.
789         (*vec_concatv2di_rex64_sse): Ditto.
791 2008-08-14  Jakub Jelinek  <jakub@redhat.com>
793         PR middle-end/37103
794         * fold-const.c (fold_widened_comparison): Do not allow
795         sign changes that change the result even if shorter type
796         is wider than arg1_unw's type.
798 2008-08-13  Kazu Hirata  <kazu@codesourcery.com>
800         * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
801         Skip if the multilib testing specifies -march that does not
802         agree with the one specified in the testcase.
804 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
806         * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
807         zero extend SImode values being converted to TFmode before passing
808         to libcalls.
810 2008-08-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
812         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
813         __PPU__ when targeting the Cell/B.E. PPU processor.
815 2008-08-13  Eric Botcazou  <ebotcazou@adacore.com>
817         * gimple.h (gimple_call_set_chain): Accept SSA variables.
818         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
819         Rematerialize the static chain, if any.
820         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
821         static chain.
823 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
825         * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
826         (new_loc_descr): Likewise.
827         (add_loc_descr): Likewise.
828         (size_of_loc_descr): Likewise.
829         (size_of_locs): Likewise.
830         (output_loc_operands): Likewise.
831         (output_loc_sequence): Likewise.
832         (new_reg_loc_descr): New.
833         (build_cfa_loc): Use it.
834         (build_cfa_aligned_loc): Likewise.
835         (one_reg_loc_descriptor): Likewise.
836         (based_loc_descr): Likewise.
838 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
840         PR 30551
841         * doc/invoke.texi (Wmain): Update.
842         * c-decl.c (start_decl): warn_main is only 0 or 1.
843         (start_function): Likewise. Fix formatting.
844         (finish_function): Delete redundant warning.
845         * c.opt (Wmain): Add Var(warn_main) and Init(-1).
846         * c-opts (c_common_handle_option): -Wall only has effect if
847         warn_main is uninitialized. OPT_Wmain is automatically
848         handled. -pedantic also enables Wmain.
849         (c_common_post_options): Handle all logic for Wmain here.
850         * c-common.c (warn_main): Delete.
851         (check_main_parameter_types): Make pedwarns conditional on
852         OPT_Wmain.
853         * c-common.h (warn_main): Delete.
855 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
857         PR middle-end/36701
858         * expr.c (emit_group_store): Allocate stack temp with the
859         largest alignment when copying from register to stack.
861 2008-08-13  Richard Guenther  <rguenther@suse.de>
863         * tree.h (maybe_fold_offset_to_address): Declare.
864         * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
865         (ccp_fold): Handle pointer conversions the same as fold_stmt.
866         Likewise for POINTER_PLUS_EXPR.
867         (maybe_fold_offset_to_reference): Enable disabled code.
868         (maybe_fold_offset_to_address): New function.
869         (fold_stmt_r): Use it.
870         (fold_gimple_assign): Likewise.
871         * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
872         (gimplify_expr): Likewise.
874 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
876         * toplev.h (pedwarn_at): Fix declaration.
877         
878 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
880         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
881         LINK_SPEC): Use %R in -Y P argument.
883 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
885         PR c/15236
886         * diagnostic.c (pedwarn_at): New.
887         * toplev.h (pedwarn_at): Declare.
888         * c-tree.h (build_enumerator): Update declaration.
889         * c-decl.c (finish_enum): Update comment.
890         (build_enumerator): Take a location parameter. Give a pedwarn but do
891         not perform any conversion.
892         * c-parser.c (c_parser_enum_specifier): Set correct location for
893         enumerator.
895 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
897         PR 35635
898         * c-common.c (conversion_warning): Use a switch. Ignore boolean
899         expressions except for conversions to signed:1 bitfields. Handle
900         COND_EXPR with constant operands.
901         
902 2008-08-13  Richard Guenther  <rguenther@suse.de>
904         PR tree-optimization/15255
905         * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
906         (struct oecount_s): New struct and VEC types.
907         (cvec): New global.
908         (oecount_hash): New function.
909         (oecount_eq): Likewise.
910         (oecount_cmp): Likewise.
911         (zero_one_operation): New function.
912         (build_and_add_sum): Likewise.
913         (undistribute_ops_list): Perform un-distribution of multiplication
914         and division on the chain of summands.
915         (should_break_up_subtract): Also break up subtracts for factors.
916         (reassociate_bb): Delete dead visited statements.
917         Call undistribute_ops_list.  Re-sort and optimize if it did something.
918         * passes.c (init_optimization_passes): Move DSE before
919         reassociation.
920         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
921         PHI nodes.
923 2008-08-12  Janis Johnson  <janis187@us.ibm.com>
925         * doc/invoke.texi (-fipa-pta): Say the option is experimental.
927         * doc/invoke.texi: Revert unintended checkin.
929 2008-08-12  Nathan Froyd  <froydnj@codesourcery.com>
931         PR libgomp/26165
932         * gcc.c (include_spec_function): Tweak call to find_a_file.
934 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
936         PR middle-end/37014
937         * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
938         and TRUTH_ORIF_EXPR.
939         * dojump.c (do_jump): Likewise.
941         PR tree-optimization/37084
942         * tree-inline.c (copy_bb): Call gimple_regimplify_operands
943         if id->regimplify, don't assume stmt is a cast assignment.
945 2008-08-12  Anatoly Sokolov  <aesok@post.ru>
947         * final.c (final_scan_insn): Use app_enable/app_disable functions.
949 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
951         PR bootstrap/37097
952         * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
953         by last change.
955 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
957         * defaults.h (TARGET_FLOAT_FORMAT): Remove.
958         (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
960         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
961         * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
962         * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
963         * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
964         * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
966         * doc/tm.texi (Storage Layout): Remove documentation for
967         TARGET_FLOAT_FORMAT.
969         * simplify-rtx.c (simplify_binary_operation_1): Replace
970         TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
972 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
974         * real.h (struct real_format): New member has_sign_dependent_rounding.
975         * real.c (ieee_single_format, mips_single_format, motorola_single_format,
976         spu_single_format, ieee_double_format, mips_double_format,
977         motorola_double_format, ieee_extended_motorola_format,
978         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
979         ieee_extended_intel_96_round_53_format, ibm_extended_format,
980         mips_extended_format, ieee_quad_format, mips_quad_format,
981         vax_f_format, vax_d_format, vax_g_format): Initialize it.
982         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
984         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
985         MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
986         * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
987         MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
988         (ROUND_TOWARDS_ZERO): Likewise.
990         * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
991         (FLOAT_MODE_FORMAT): New macro.
992         (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
993         (MODE_COMPOSITE_P): ... this new macro.
994         (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
995         MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
996         * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
998         * flags.h: Include "real.h".
1000         * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
1001         REAL_MODE_FORMAT_COMPOSITE_P.
1002         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
1004         * doc/tm.texi (Storage Layout): Remove documentation of
1005         MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
1006         MODE_HAS_SIGN_DEPENDENT_ROUNDING.  Update documentation of
1007         ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
1008         they only apply to libgcc2.a.
1010 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1012         * config/spu/float_disf.c: New file.
1013         * config/spu/float_unsdisf.c: New file.
1014         * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
1015         (LIB2FUNCS_EXCLUDE): Define.
1017 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1018             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
1020         * real.h (struct real_format): New member round_towards_zero.
1021         * real.c (round_for_format): Respect fmt->round_towards_zero.
1022         (ieee_single_format, mips_single_format, motorola_single_format,
1023         spu_single_format, ieee_double_format, mips_double_format,
1024         motorola_double_format, ieee_extended_motorola_format,
1025         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
1026         ieee_extended_intel_96_round_53_format, ibm_extended_format,
1027         mips_extended_format, ieee_quad_format, mips_quad_format,
1028         vax_f_format, vax_d_format, vax_g_format): Initialize it.
1029         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
1031         * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
1032         real_format to choose rounding mode when calling MPFR functions.
1033         (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
1034         (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
1036         * real.h (real_to_decimal_for_mode): Add prototype.
1037         * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
1038         Respect target rounding mode when generating decimal representation.
1039         (real_to_decimal): New stub for backwards compatibility.
1040         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
1041         real_to_decimal_for_mode instead of real_to_decimal.
1043         * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
1045 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1046             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
1048         * real.c (spu_single_format): New variable.
1049         * real.h (spu_single_format): Declare.
1051         * config/spu/spu.c (spu_override_options): Install SFmode format.
1052         (spu_split_immediate): Use integer mode to operate on pieces of
1053         floating-point values in all cases.
1055         * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
1056         ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
1057         ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
1059 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1061         * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
1063 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1065         * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
1067 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
1069         PR c++/36688
1070         * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
1071         on the VAR_DECL instead of TYPE_READONLY on its type.
1073 2008-08-12  Ira Rosen  <irar@il.ibm.com>
1075         * tree-vectorizer.c: Depend on langhooks.h.
1076         (supportable_widening_operation): Add two arguments. Support double
1077         type conversions.
1078         (supportable_narrowing_operation): Likewise.
1079         * tree-vectorizer.h (supportable_widening_operation): Add two 
1080         arguments.
1081         (supportable_narrowing_operation): Likewise.
1082         * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
1083         supportable_widening_operation with correct arguments.
1084         * tree-vect-transform.c (vectorizable_conversion): Likewise.
1085         (vectorizable_type_demotion): Support double type conversions.
1086         (vectorizable_type_promotion): Likewise.
1087         * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
1089 2008-08-11  Michael Matz  <matz@suse.de>
1091         * i386/i386.c (override_options): Move initialisation from
1092         flag_schedule_insns_after_reload to here from ...
1093         (optimization_options): ... here.
1095 2008-08-11  Jakub Jelinek  <jakub@redhat.com>
1097         PR rtl-optimization/36998
1098         * dwarf2out.c (compute_barrier_args_size_1,
1099         compute_barrier_args_size): Temporarily remove assertions.
1101 2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1103         PR middle-end/20644
1104         * tree-ssa.c (struct walk_data): Add new flag
1105         warn_possibly_uninitialized.
1106         (warn_uninitialized_var): Use it.
1107         (warn_uninitialized_vars): New.
1108         (execute_early_warn_uninitialized): Call it.
1109         (execute_late_warn_uninitialized): Likewise.
1111 2008-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1113         PR middle-end/36238
1114         * reload1.c (gen_reload): Guard calls to get_secondary_mem
1115         for memory subregs.
1117 2008-08-09  Jan Hubicka  <jh@suse.cz>
1119         PR target/37055
1120         * optabs.c (maybe_emit_unop_insn): Remove produced code if
1121         expansion failed.
1122         (expand_fix): Be prepared for expansion to fail.
1123         (expand_sfix_optab): Remove instructions if expansion failed.
1125 2008-08-09  Anatoly Sokolov  <aesok@post.ru>
1127         * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
1128         avr31 architecture.
1129         * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
1130         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1132 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
1134         * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
1135         mips/t-libgcc-mips16 to tmake_file.
1136         * config/mips/mips-protos.h (mips_call_type): New enum.
1137         (mips_pic_base_register, mips_got_load): Declare.
1138         (mips_restore_gp): Take an rtx argument.
1139         (mips_use_pic_fn_addr_reg_p): Declare.
1140         (mips_expand_call): Replace the sibcall_p argument with
1141         a mips_call_type argument.  Add a lazy_p parameter.
1142         (mips_split_call): Declare.
1143         * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
1144         (MIPS16_PIC_TEMP): Likewise.
1145         (reg_class): Delete M16_NA_REGS.
1146         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
1147         (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
1148         (mips_split_hi_p): Declare.
1149         * config/mips/mips.c (mips_split_hi_p): New array.
1150         (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
1151         (mips_got_symbol_type_p): New function.
1152         (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
1153         (mips16_stub_function_p): New function.
1154         (mips16_local_function_p): Likewise.
1155         (mips_use_pic_fn_addr_reg_p): Likewise.
1156         (mips_cannot_force_const_mem): Return false for HIGHs.
1157         Extend CONST_INT and symbolic handling to MIPS16, using
1158         mips_symbol_insns to check that the base symbol type is a
1159         legitimate constant.  Reject GOT-based constants if
1160         TARGET_MIPS16_PCREL_LOADS.
1161         (mips_const_insns): Check targetm.cannot_force_const_mem when
1162         decomposing a symbolic base and a large offset.
1163         (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
1164         When calling a function that needs $25 from MIPS16 code,
1165         move the target address into $25 separately and add a USE
1166         to the call insn.
1167         (mips16_gp_pseudo_reg): Insert the initializer immediately
1168         before the first real insn.
1169         (mips_pic_base_register, mips_got_load): New functions.
1170         (mips_split_symbol): Generalize the name of the LO_SUM_OUT
1171         parameter to LOW_OUT.  Say that it can be any valid SET_SRC
1172         when splitting a load-address operation.  Split SYMBOL_GOT_DISP
1173         constants and highs of SYMBOL_GOT_PAGE_OFST constants.
1174         (mips_call_tls_get_addr): Update the call to mips_expand_call,
1175         also passing NULL_RTX rather than const0_rtx as the aux argument.
1176         (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
1177         instead of TARGET_EXPLICIT_RELOCS.
1178         (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
1179         (mips_load_call_address): Replace the sibcall_p argument with
1180         a mips_call_type argument.  Use mips_got_load.
1181         (mips16_local_alias): New structure.
1182         (mips16_local_aliases): New variable.
1183         (mips16_local_aliases_hash): New function.
1184         (mips16_local_aliases_eq): Likewise.
1185         (mips16_local_alias): Likewise.
1186         (mips16_stub_function): Likewise.
1187         (mips16_build_function_stub): Create a local alias for the target
1188         function.  Handle TARGET_ABICALLS.  For PIC abicalls, emit a
1189         .cpload directive and an R_MIPS_NONE relocation for the target
1190         function, then load the alias rather than the function itself.
1191         Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
1192         (mips16_copy_fpr_return_value): Use mips16_stub_function and
1193         mips_expand_call.  Set SYMBOL_REF_BIND_NOW on the symbol.
1194         (mips16_build_call_stub): Replace the FN parameter with an
1195         FN_PTR parameter.  Force the address into a register if it
1196         isn't a call_insn_operand; don't rely on the caller to do this.
1197         If a call to a locally-defined and locally-binding MIPS16
1198         function must be made indirectly, redirect the call to the
1199         function's local alias.  Use mips16_stub_function_p,
1200         mips16_stub_function, mips_expand_call and use_reg.
1201         Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
1202         Use explicit %hi and %lo accesses where possible.
1203         Use MIPS_CALL to generate the correct code form of a
1204         jal instruction.  Add clobbers of $18 instead of uses.
1205         Update the call to mips_emit_call_insn.
1206         (mips_expand_call): Replace the SIBCALL_P argument with a
1207         mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
1208         Take a LAZY_P parameter.  Call mips16_build_call_stub first,
1209         allowing it to modify the call address.  Update the calls to
1210         mips_load_call_address and mips_emit_call_insn.
1211         (mips_split_call): New function.
1212         (mips_init_relocs): Clear mips_split_hi_p.  Only use %gp_rel if
1213         !TARGET_MIPS16.  Split SYMBOL_GOT_DISP, and the high parts of
1214         SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
1215         (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
1216         (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
1217         if TARGET_MIPS16.
1218         (mips_cprestore_slot): New function.
1219         (mips_restore_gp): Take a TEMP parameter.  Handle TARGET_MIPS16
1220         and use mips_cprestore_slot.
1221         (mips_output_function_prologue): Handle TARGET_MIPS16 for
1222         LOADGP_OLDABI.
1223         (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
1224         then use a copygp_mips16 instruction to set up $28.
1225         (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
1226         (mips16_lay_out_constants): Call split_all_insns_noflow.
1227         (mips_reorg_process_insns): Explicitly set all_noreorder_p to
1228         false if TARGET_MIPS16.
1229         (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
1230         (mips_output_mi_thunk): Use mips_got_symbol_type_p.  Use the
1231         mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
1232         (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
1233         MIPS16 code.  Allow MIPS16 o32 PIC.
1234         (mips_override_options): Allow MIPS16 o32 PIC.
1235         * config/mips/mips.md: Lower CONST_GP_P moves into register moves
1236         after reload if TARGET_USE_GOT.
1237         (UNSPEC_COPYGP): New constant.
1238         (length): Use a default length of 8 for MIPS16 GOT loads.
1239         (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
1240         (*got_page<mode>): Check mips_split_hi_p.
1241         (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
1242         (unspec_got<mode>, unspec_call<mode>): New expanders.
1243         (load_got<mode>, load_call<mode>): Remove the length attributes.
1244         Use a got attribute instead of a type attribute.
1245         (copygp_mips16): New insn.
1246         (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
1247         (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
1248         (sibcall, sibcall_value, call, call_value): Update the calls
1249         to mips_expand_call.
1250         (call_internal, call_value_internal): Use mips_split_call.
1251         (call_value_multiple_internal): Likewise.
1252         (call_split): Move after call_internal (the insn it is split from).
1253         (call_internal_direct, call_value_internal_direct): Turn into
1254         define_insn_and_splits.  Split if TARGET_SPLIT_CALLS.
1255         (call_direct_split, call_value_direct_split): New patterns.
1256         * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
1257         and use M16_REGS instead of M16_NA_REGS.
1258         * config/mips/predicates.md (const_call_insn_operand): Replace
1259         the TARGET_ABSOLUTE_ABICALLS-based check with a more general
1260         mips_use_pic_fn_addr_reg_p check.
1261         (move_operand): Reject HIGHs if mips_split_hi_p.
1262         * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
1263         (__mips16_floatunsisf): Inline __mips16_floatsisf.
1264         (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
1265         * config/mips/libgcc-mips16.ver: New file.
1266         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
1267         $(srcdir)/config/mips/libgcc-mips16.ver.
1269 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
1271         * config/mips/mips.c (mips_unspec_address_offset): Move earlier in file.
1272         (mips_unspec_address, mips_unspec_offset_high): Likewise.
1273         (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
1274         (mips16_cfun_returns_in_fpr_p): Likewise.
1276 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
1278         * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
1279         * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
1280         rather than 4 to PC.
1282 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
1284         * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
1285         (FUNCTION_PROFILER): Save the static chain pointer into $2
1286         beforehand and restore it aftewards.
1287         (TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
1288         address directly into $25 and call the function through $25;
1289         do not clobber $3.  Pad the DImode version to cover the space
1290         left by the deleted $25 <- $3 move.
1291         (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
1292         the removal of the $25 <- $3 move.
1293         (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
1294         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
1296 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
1297             Daniel Jacobowitz  <dan@codesourcery.com>
1299         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
1300         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
1301         (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
1302         * config/mips/mips.c (mips_start_function_definition): New function.
1303         (mips_end_function_definition): Likewise.
1304         (mips_output_function_prologue): Use mips_start_function_definition.
1305         (mips_output_function_epilogue): Use mips_end_function_definition.
1306         (build_mips16_function_stub): Use mips_start_function_definition
1307         and mips_end_function_definition.
1308         (build_mips16_call_stub): Likewise.
1310 2008-08-09  Richard Guenther  <rguenther@suse.de>
1312         * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
1313         * gimple.h (gimple_call_fn): Adjust comment.
1314         (gimple_call_set_fndecl): New function.
1315         (gimple_call_fndecl): Adjust for GIMPLE_CALL no
1316         longer having bare FUNCTION_DECL operand.
1317         (gimple_call_return_type): Likewise.
1318         * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
1320         * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
1321         (gimple_mod_pow2): Likewise.
1322         (gimple_mod_subtract): Likewise.
1323         (gimple_ic): Likewise.
1324         (gimple_stringop_fixed_value): Likewise.
1325         (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
1326         longer having bare FUNCTION_DECL operand.
1327         * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
1328         * omp-low.c (optimize_omp_library_calls): Likewise.
1329         * cgraphunit.c (update_call_expr): Likewise.
1330         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
1331         (execute_convert_to_rsqrt): Likewise.
1332         * cfgexpand.c (gimple_to_tree): Simplify.
1333         (release_stmt_tree): Fix for GIMPLE_CALL no longer having
1334         bare FUNCTION_DECL operand.
1335         * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
1336         (convert_gimple_call): Use gimple_call_fndecl.
1337         * c-common.c (c_warn_unused_result): Likewise.
1339 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1341         PR c/17880
1342         * c-typeck.c (digest_init): Call verify_sequence_points from here.
1343         (c_finish_return): Likewise.
1344         (c_start_case): Likewise.
1345         * c-common.c (warn_for_collisions_1): Use explicit location in
1346         warning.
1347         * c-parser.c (c_parser_condition): New. Call
1348         verify_sequence_points.
1349         (c_parser_paren_condition): Call c_parser_condition.
1350         (c_parser_for_statement): Call c_parser_condition.
1352 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1354         PR 36901
1355         * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.  
1356         * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
1357         Moved from diagnostic.h
1358         (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
1359         DK_PERMERROR.
1360         (emit_diagnostic): New.
1361         (warning0, pedwarn0): Delete.
1362         (warning, warning_at, pedwarn, permerror): Return bool.  
1363         * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
1364         Moved to diagnostic.c.
1365         (struct diagnostic_context): Use correct type for
1366         classify_diagnostic.
1367         (diagnostic_report_diagnostic): Update declaration.
1368         (emit_diagnostic): Declare.
1369         * errors.c (warning): Return bool.  
1370         * errors.h (warning): Update declaration.
1371         * toplev.h (warning0, pedwarn0): Delete.
1372         (warning, warning_at, pedwarn, permerror): Return bool.
1373         * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
1374         * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
1375         inform. Update all calls.
1376         (diagnose_mismatched_decls): Check return value of warning/pedwarn
1377         before giving informative note.
1378         (implicit_decl_warning): Likewise.  
1379         * c-typeck.c (build_function_call): Likewise.  
1380         * tree-sssa.c (warn_uninit): Likewise.  
1381         * builtins.c (gimplify_va_arg_expr): Likewise.
1383 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1385         PR 7651
1386         * doc/invoke.texi (-Wextra): Move warning from here...
1387         (-Wuninitialized): ... to here.
1388         
1389 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1391         PR 28875
1392         * flags.h (set_Wunused): Delete
1393         * toplev.c (process_options): Handle Wunused flags here.
1394         * opts.c (maybe_warn_unused_parameter): Delete.
1395         (common_handle_option): Replace set_Wunused by warn_unused.
1396         (set_Wextra): Do not handle Wunused-parameter here.
1397         (set_Wunused): Delete.
1398         * c-opts.c (c_common_handle_option): Replace set_Wunused by
1399         warn_unused.
1400         * common.opt (Wunused): Add Var and Init.
1401         (Wunused-function): Likewise.
1402         (Wunused-label): Likewise.
1403         (Wunused-parameter): Likewise.
1404         (Wunused-value): Likewise.
1405         (Wunused-variable): Likewise.
1406         
1407 2008-08-08  Peter Bergner  <bergner@vnet.ibm.com>
1409         * doc/invoke.texi: Add cpu_type power7.
1410         * config.in (HAVE_AS_VSX): New.
1411         * config.gcc: Add cpu_type power7.
1412         * configure.ac (HAVE_AS_VSX): Check for assembler support of the
1413         VSX instructions.
1414         * configure: Regenerate.
1415         * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
1416         power5.
1417         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
1418         (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
1419         (EXTRA_SPECS): Add asm_cpu_power7 spec string.
1421 2008-08-08  Dorit Nuzman  <dorit@il.ibm.com>
1423         * tree-vect-transform.c (vectorizable_conversion): Pass the integral
1424         type to vectorize.builtin_conversion.
1425         (vectorizable_conversion): Likewise.
1426         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
1427         integral type as input.
1428         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
1429         FIX_TRUNC_EXPR.
1430         (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
1431         and ALTIVEC_BUILTIN_VCTSXS.
1432         (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
1433         formatting. 
1435 2008-08-08  Richard Guenther  <rguenther@suse.de>
1437         * tree-ssa-ccp.c (likely_value): Calls are not all varying.
1438         (surely_varying_stmt_p): Calls are varying only if they are
1439         non-builtin and not indirect or have no result.
1440         (ccp_fold): Re-instantiate code before the tuples merge.
1442 2008-08-08  Richard Guenther  <rguenther@suse.de>
1444         PR tree-optimization/37056
1445         * gimple.h (gimple_assign_rhs_class): New helper function.
1446         * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
1447         unary operations properly.
1449 2008-08-07  Jan Hubicka  <jh@suse.cz>
1451         * i386.h (ix86_size_cost): Declare.
1452         (ix86_cur_cost): New function macro.
1453         * i386.md (peepholes expanding size and splitters): Predicate by
1454         optimize_insn_for_speed_p.
1455         (peepholes reduce size and splitters): Predicate by
1456         optimize_insn_for_size_p.
1457         * i386.c (ix86_size_cost): Rename from ...
1458         (size_cost): This one.
1459         (override_options): Update.
1460         (decide_alg): Likewise.
1461         (ix86_expand_clear): Use RTL profile.
1462         (ix86_pad_returns): Use RTL profile.
1464 2008-08-07  Jan Hubicka  <jh@suse.cz>
1466         * recog.c (split_all_insns): Set RTL profile
1467         (peephole2_optimize): Likewise.
1468         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1469         * combine.c (combine_instructions): Likewise.
1471 2008-08-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1473         * c-common.c (c_common_reswords): Also warn about keyword "bool".
1475 2008-08-07  Bob Wilson  <bob.wilson@acm.org>
1476         
1477         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
1478         value in a6 after the set_frame_ptr insn.
1479         
1480 2008-08-07  Richard Henderson  <rth@redhat.com>
1482         PR debug/37033
1483         * gcc.c (cpp_options): Pass along -g*.
1485 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
1487         * config/arm/arm.c (output_move_neon): Update comment describing
1488         big-endian vector layout.
1489         (arm_assemble_integer): Do not handle big-endian NEON vectors
1490         specially.
1491         * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
1492         neon_vget_lane<mode>_sext_internal,
1493         neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
1494         element indices for big-endian.
1496 2008-08-07  Richard Henderson  <rth@redhat.com>
1498         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
1499         * configure, config.in: Rebuild.
1500         * debug.h (dwarf2out_do_cfi_asm): Declare.
1501         * c-cppbuiltin.c (c_cpp_builtins): Use it.
1502         * dwarf2out.c (dwarf2out_do_cfi_asm): New.
1503         (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
1504         dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
1506 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
1508         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
1509         movv2si_internal): Combine into mov<mode>_internal.
1510         (movv2si_internal_2): Remove.
1512 2008-08-07  Jan Hubicka  <jh@suse.cz>
1514         PR target/37048
1515         * i386.md (single stringop patterns): Enable unconditionally. 
1517 2008-08-07  H.J. Lu  <hongjiu.lu@intel.com>
1519         PR target/36992
1520         * config/i386/emmintrin.h (_mm_move_epi64): Use
1521         __builtin_ia32_movq128.
1523         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
1524         (bdesc_args): Add IX86_BUILTIN_MOVQ128.
1526         * config/i386/sse.md (sse2_movq128): New.
1528         * doc/extend.texi: Document __builtin_ia32_movq128.
1530 2008-08-07  Richard Guenther  <rguenther@suse.de>
1532         PR middle-end/37042
1533         * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
1534         pointers can access anything.
1536 2008-08-06  Jan Hubicka  <jh@suse.cz>
1538         * optabs.c (emit_unop_insn): Break out to ...
1539         (maybe_emit_unop_insn): ... this one.
1540         (expand_sfix_optab): Use maybe variant.
1541         * optabs.h (maybe_emit_unop_insn): Declare.
1543         * i386.md (mov0 patterns): Enable by default.
1544         (FP conversion expanders): Disable expansion of code expanding
1545         sequences when instruction should be optimized for size.
1546         (single strinop patterns): Enable when optimizing for size.
1547         (string expanders): Disable expanding of code expanding sequences
1548         when optimizning instruction for size.
1549         * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
1550         per BB basis.
1551         (ix86_fp_comparison_sahf_cost): Likewise.
1552         (ix86_expand_branch): Likewise.
1553         (ix86_expand_ashl_const): Likewise.
1554         (ix86_split_ashl): Likewise.
1555         (ix86_expand_strlen): Likewise.
1556         (ix86_emit_fp_unordered_jump): Likewie.
1558 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1560         * c-common.c: Fix typo.
1561         (c_common_reswords): Activate more C++ keyword warnings.
1563         * matrix-reorg.c (compute_offset): Avoid C++ keywords.
1565 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1567         PR 26785
1568         * diagnostic.c (permerror_at): New.
1569         * toplev.h (permerror_at): Declare.
1570         
1571 2008-08-06  Victor Kaplansky  <victork@il.ibm.com>
1572             Ira Rosen  <irar@il.ibm.com>
1574         * tree-vect-transform.c (vect_model_simple_cost): Return
1575         immediately if stmt is pure SLP.
1576         (vect_model_store_cost): Ditto.
1577         (vect_model_load_cost): Ditto.
1578         (vectorizable_store): Remove PURE_SLP check before call
1579         to vect_model_store_cost.
1580         (vect_model_store_cost): When checking whether stmt describe
1581         strided access, add a check that it is not slp_node.
1583 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1585         PR 8715
1586         * c-common.c (warn_for_sign_compare): New. Handle separately the
1587         case that 'constant' is zero.
1588         * c-typeck.c (build_binary_op): Move code to c-common.c
1589         
1590 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1592         * config/alpha/alpha.c (alpha_preferred_reload_class,
1593         alpha_secondary_reload, alpha_emit_set_const_1, function_value,
1594         alpha_output_mi_thunk_osf): Avoid C++ keywords.
1595         * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
1596         * config/arm/arm.md: Likewise.
1597         * config/avr/avr-protos.h (preferred_reload_class,
1598         test_hard_reg_class, avr_simplify_comparison_p,
1599         out_shift_with_cnt, class_max_nregs): Likewise.
1600         * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
1601         output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
1602         preferred_reload_class, test_hard_reg_class): Likewise.
1603         * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
1604         bfin_memory_move_cost, bfin_secondary_reload,
1605         bfin_output_mi_thunk): Likewise.
1606         * config/crx/crx.c (crx_secondary_reload_class,
1607         crx_memory_move_cost): Likewise.
1608         * config/frv/frv-protos.h (frv_secondary_reload_class,
1609         frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
1610         * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
1611         frv_secondary_reload_class, frv_class_likely_spilled_p,
1612         frv_class_max_nregs): Likewise.
1613         * config/h8300/h8300.c (h8300_classify_operand,
1614         h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
1615         Likewise.
1616         * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
1617         * config/ia64/ia64.c (ia64_preferred_reload_class,
1618         ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
1619         * config/iq2000/iq2000.c (gen_int_relational): Likewise.
1620         * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
1621         Likewise.
1622         * config/m68hc11/m68hc11.c (preferred_reload_class,
1623         m68hc11_memory_move_cost): Likewise.
1624         * config/mcore/mcore.c (mcore_secondary_reload_class,
1625         mcore_reload_class): Likewise.
1626         * config/mips/mips.c (mips_hard_regno_mode_ok_p,
1627         mips_class_max_nregs, mips_cannot_change_mode_class,
1628         mips_preferred_reload_class, mips_secondary_reload_class,
1629         mips_output_mi_thunk): Likewise.
1630         * config/mmix/mmix.c (mmix_preferred_reload_class,
1631         mmix_preferred_output_reload_class, mmix_secondary_reload_class):
1632         Likewise.
1633         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
1634         Likewise.
1635         * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
1636         pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
1637         * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
1638         * config/rs6000/rs6000.c (paired_expand_vector_init,
1639         rs6000_secondary_reload_class, rs6000_output_mi_thunk,
1640         compare_section_name, rs6000_memory_move_cost): Likewise.
1641         * config/s390/s390.c (s390_emit_compare_and_swap,
1642         s390_preferred_reload_class, s390_secondary_reload,
1643         legitimize_pic_address, legitimize_tls_address,
1644         legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
1645         s390_class_max_nregs): Likewise.
1646         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
1647         * config/s390/s390.md: Likewise.
1648         * config/score/score-protos.h (score_secondary_reload_class,
1649         score_preferred_reload_class): Likewise.
1650         * config/score/score.c (score_preferred_reload_class,
1651         score_secondary_reload_class): Likewise.
1652         * config/score/score3.c (score3_output_mi_thunk,
1653         score3_preferred_reload_class, score3_secondary_reload_class,
1654         score3_hard_regno_mode_ok): Likewise.
1655         * config/score/score3.h (score3_preferred_reload_class,
1656         score3_secondary_reload_class): Likewise.
1657         * config/score/score7.c (score7_output_mi_thunk,
1658         score7_preferred_reload_class, score7_secondary_reload_class,
1659         score7_hard_regno_mode_ok): Likewise.
1660         * config/score/score7.h (score7_preferred_reload_class,
1661         score7_secondary_reload_class): Likewise.
1662         * config/sh/sh.c (prepare_move_operands, output_far_jump,
1663         output_branchy_insn, add_constant, gen_block_redirect,
1664         sh_insn_length_adjustment, sh_cannot_change_mode_class,
1665         sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload):
1666         Likewise.
1667         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1668         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
1669         xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
1670         xstormy16_preferred_reload_class): Likewise.
1671         * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
1672         xtensa_expand_atomic, override_options,
1673         xtensa_preferred_reload_class, xtensa_secondary_reload_class):
1674         Likewise.
1675         * reorg.c (try_merge_delay_insns): Likewise.
1676         * tree.c (merge_dllimport_decl_attributes): Likewise.
1678         * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
1680 2008-08-06  Michael Matz  <matz@suse.de>
1682         * Makefile.in (write_entries_to_file): Quote words.
1683         * gengtype.c: (read_input_line): Skip over leading white-space.
1685 2008-08-06  Marc Gauthier  <marc@tensilica.com>
1687         * config.gcc: Match more processor names for Xtensa.
1688         * configure.ac: Likewise.
1689         * doc/install.texi (Specific): Likewise.
1690         * configure: Regenerate.
1692 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1694         * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
1695         * calls.c (avoid_likely_spilled_reg): Likewise.
1696         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
1697         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
1698         * config/i386/i386.c (ix86_expand_special_args_builtin,
1699         ix86_secondary_reload): Likewise.
1700         * except.c (struct eh_region, gen_eh_region_catch,
1701         remove_unreachable_regions, duplicate_eh_regions,
1702         assign_filter_values, build_post_landing_pads,
1703         sjlj_find_directly_reachable_regions, remove_eh_handler,
1704         reachable_next_level, foreach_reachable_handler,
1705         can_throw_internal_1, can_throw_external_1,
1706         collect_one_action_chain): Likewise.
1707         * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
1708         * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
1709         * function.c (update_temp_slot_address, instantiate_new_reg,
1710         instantiate_virtual_regs_in_rtx,
1711         instantiate_virtual_regs_in_insn): Likewise.
1712         * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
1713         * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
1714         gimplify_cleanup_point_expr): Likewise.
1715         * ipa-cp.c (ipcp_lattice_changed): Likewise.
1716         * passes.c (next_pass_1): Likewise.
1717         * print-tree.c (print_node_brief, print_node): Likewise.
1718         * profile.c (branch_prob): Likewise.
1719         * tree-dump.c (dump_register): Likewise.
1720         * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
1721         Likewise.
1722         * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
1723         copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
1724         copy_edges_for_bb, copy_cfg_body, copy_tree_r,
1725         copy_arguments_for_versioning, copy_static_chain): Likewise.
1726         * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
1727         add_new_name_mapping, register_new_name_mapping): Likewise.
1728         * tree-mudflap.c (mf_xform_derefs): Likewise.
1729         * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
1730         get_init_expr, combine_chains): Likewise.
1731         * tree-pretty-print.c (dump_generic_node): Likewise.
1732         * tree-ssa-structalias.c (create_variable_info_for): Likewise.
1733         * tree-vrp.c (simplify_cond_using_ranges): Likewise.
1734         * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
1735         * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
1737 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1739         PR middle-end/37010
1740         * calls.c (expand_call): Use the biggest preferred stack
1741         boundary.
1743 2008-08-06  Michael Matz  <matz@suse.de>
1745         PR target/36613
1746         * reload.c (push_reload): Merge in,out,in_reg,out_reg members
1747         for reused reload, instead of overwriting them.
1749 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1751         PR middle-end/37009
1752         * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
1753         for incoming stack boundary.
1755         * function.c (assign_parm_find_entry_rtl): Update
1756         parm_stack_boundary.
1758         * function.h (rtl_data): Add parm_stack_boundary.
1760         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
1761         parm_stack_boundary for incoming stack boundary.
1763 2008-08-06  Joseph Myers  <joseph@codesourcery.com>
1765         * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
1766         for unrepresentable subregs or treat them as equal to other regs
1767         or subregs with the same register number.
1769 2008-08-06  Aldy Hernandez  <aldyh@redhat.com>
1771         PR middle-end/35432
1772         * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
1773         if want_value.
1775 2008-08-06  Jan Hubicka  <jh@suse.cz>
1777         * predict.c (maybe_hot_frequency_p): When profile is absent, all
1778         frequencies might be hot.
1780 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
1782         * reload.c (find_reloads): Force constants into literal pool
1783         also if they are wrapped in a SUBREG.
1785 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
1787         PR target/35659
1788         * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
1789         * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
1790         Don't allow predicated instructions for data speculation.
1791         * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
1792         declaration.
1794 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
1796         * haifa-sched.c (extend_global): Split to extend_global_data and
1797         extend_region_data.  Update all uses.
1798         (extend_all): Rename to extend_block_data.
1800 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
1802         * sched-rgn.c (new_ready): Check if instruction can be
1803         speculatively scheduled before attempting speculation.
1804         (debug_rgn_dependencies): Remove wrongful assert.
1806 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
1808         * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
1809         
1810 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
1811         
1812         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
1813         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
1814         va_size, and type_size.
1815         
1816 2008-08-04  Jason Merrill  <jason@redhat.com>
1818         PR c++/37016
1819         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
1820         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
1822 2008-08-05  Richard Henderson  <rth@redhat.com>
1824         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
1825         * configure: Rebuild.
1827 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1829         PR tree-opt/37024
1830         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
1831         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
1832         is a conversion.
1834 2008-08-05  Richard Henderson  <rth@redhat.com>
1836         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
1837         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
1838         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
1839         * common.opt (fdwarf2-cfi-asm): New.
1840         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
1841         * config.in, configure: Rebuild.
1842         * dwarf2asm.c (dw2_asm_output_data_raw): New.
1843         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
1844         (dw2_force_const_mem): Externalize.
1845         * dwarf2asm.h: Update.
1846         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
1847         generate a real label.
1848         (output_cfi_directive): New.
1849         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
1850         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
1851         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
1852         and .cfi_lsda.
1853         (dwarf2out_end_epilogue): Emit .cfi_endproc.
1854         (output_loc_operands_raw, output_loc_sequence_raw): New.
1855         (output_cfa_loc_raw): New.
1856         
1857 2008-08-05  Paul Brook  <paul@codesourcery.com>
1859         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
1860         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
1861         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
1862         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
1863         * config/arm/arm.h (TARGET_VFPD32): Define.
1864         (TARGET_VFP3): Use TARGET_VFPD32.
1865         (fputype): Add FPUTYPE_VFP3D16.
1866         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
1867         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
1868         * config/arm/arm-cores.def: Add cortex-r4f.
1869         * config/arm/arm-tune.md: Regenerate.
1871 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1873         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
1874         Reword some comments throughout the file.
1876         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
1877         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
1878         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
1879         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
1881         (MFC_START_ENABLE): Remove PPU-only define.
1882         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
1883         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
1885         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
1886         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
1887         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
1888         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
1889         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
1890         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
1891         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
1893         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
1894         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
1895         (mfc_sdcrt, mfc_sdcrtst): Likewise.
1896         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
1898         (spu_read_machine_status): Fix typo.
1900 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1902         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
1903         SUBREG of multi-word hard register.
1904         * config/spu/spu.c (valid_subreg): Likewise.
1905         (adjust_operand): Handle SUBREGs of multi-word hard registers.
1907 2008-08-04  Richard Guenther  <rguenther@suse.de>
1909         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
1910         the candidate with the stripped base if that base is different
1911         from the original base even for offset zero.
1913 2008-08-04  Richard Guenther  <rguenther@suse.de>
1915         PR middle-end/36691
1916         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
1917         check for no_overflow.
1919 2008-08-04  Richard Guenther  <rguenther@suse.de>
1921         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
1923 2008-08-04  Paul Brook  <paul@codesourcery.com>
1925         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
1926         (arm_order_regs_for_local_alloc): New function.
1927         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
1928         prototype.
1929         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
1931 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
1933         PR target/37012
1934         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
1935         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
1936         (ix86_expand_epilogue): Likewise.
1938 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
1940         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
1941         in comments.
1943 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
1945         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
1946         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
1947         (*movv2sf_internal_rex64): Ditto.
1949 2008-08-03  Jan Hubicka  <jh@suse.cz>
1951         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
1952         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
1953         * expmed.c (expand_smod_pow2): Likewise.
1955 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
1957         PR target/36992
1958         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
1959         alternative 0 of operand 1.
1960         (*vec_concatv2di_rex64_sse): Ditto.
1961         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
1962         of operand 1.
1963         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
1964         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
1965         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
1966         (*movv2sf_internal_rex64): Ditto.
1968 2008-08-02  Richard Guenther  <rguenther@suse.de>
1970         PR target/35252
1971         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
1972         (ssedoublesizemode): New mode attribute.
1973         (sse_shufps): Call gen_sse_shufps_v4sf.
1974         (sse_shufps_1): Macroize.
1975         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
1976         (sse2_shufpd_1): Macroize.
1977         (vec_extract_odd, vec_extract_even): New expanders.
1978         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
1979         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
1980         * i386.c (ix86_expand_vector_init_one_nonzero): Call
1981         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
1982         (ix86_expand_vector_set): Likewise.
1983         (ix86_expand_reduc_v4sf): Likewise.
1985 2008-08-01  Doug Kwan  <dougkwan@google.com>
1987         * matrix-reorg.c: Re-enable all code.
1988         (struct malloc_call_data): Change CALL_STMT to gimple type.
1989         (collect_data_for_malloc_call): Tuplify.
1990         (struct access_site_info): Change STMT to gimple type.
1991         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
1992         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
1993         (struct free_info): Change STMT to gimple type.
1994         (struct matrix_access_phi_node):  Change PHI to gimple type.
1995         (get_inner_of_cast_expr): Remove.
1996         (may_flatten_matrices_1): Tuplify.
1997         (may_flatten_matrices): Ditto.
1998         (mark_min_matrix_escape_level): Ditto.
1999         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
2000         (ssa_accessed_in_call_rhs): New
2001         (ssa_accessed_in_assign_rhs): New
2002         (record_access_alloc_site_info): Tuplify.
2003         (add_allocation_site): Ditto.
2004         (analyze_matrix_allocation_site): Ditto.
2005         (analyze_transpose): Ditto.
2006         (get_index_from_offset): Ditto.
2007         (update_type_size): Ditto.
2008         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
2009         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
2010         (analyze_accesses_for_phi_node): Tuplify.
2011         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
2012         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
2013         (analyze_matrix_accesses): Tuplify.
2014         (check_var_data): New call-back type for check_var_notmodified_p.
2015         (check_var_notmodified_p): Tuplify and use call-back struct to
2016         return statement found.
2017         (can_calculate_expr_before_stmt): Factor out statement related code
2018         into ...
2019         (can_calculate_stmt_before_stmt): New.
2020         (check_allocation_function): Tuplify.
2021         (find_sites_in_func): Ditto.
2022         (record_all_accesses_in_func): Ditto.
2023         (transform_access_sites): Ditto.
2024         (transform_allocation_sites): Ditto.
2025         (matrix_reorg): Re-enable.
2026         (gate_matrix_reorg): Re-enable.
2028 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
2030         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
2031         for labels for which it hasn't been set yet.  If it has been set,
2032         stop walking insns and continue with next worklist item.
2033         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
2034         if the only BARRIER is at the very end of a function.
2036 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2038         * cfgexpand.c (expand_stack_alignment): Assert that
2039         stack_realign_drap and drap_rtx must match.
2041         * function.c (instantiate_new_reg): If DRAP is used to realign
2042         stack, replace virtual_incoming_args_rtx with internal arg
2043         pointer.
2045 2008-08-01  Richard Guenther  <rguenther@suse.de>
2047         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
2048         loop information only if we initialized it.
2049         (execute_pre): Call fini_pre with in_fre.
2050         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
2051         if we do not unroll because we hit max-completely-peeled-insns.
2052         Use our estimation for consistency, do allow shrinking.
2054 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
2056         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
2057         with MIN_STACK_BOUNDARY.
2058         (ix86_update_stack_boundary): Likewise.
2059         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
2060         STACK_BOUNDARY.
2062         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
2063         (MIN_STACK_BOUNDARY): This.
2065 2008-08-01  Richard Guenther  <rguenther@suse.de>
2067         PR middle-end/36997
2068         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
2070 2008-08-01  Richard Guenther  <rguenther@suse.de>
2072         PR tree-optimization/36988
2073         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
2074         do not matter if that doesn't change volatile qualification.
2076 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
2078         * configure.ac: Do not generate libada-mk.  Do not subst
2079         host_cc_for_libada.
2080         * libada-mk.in: Remove.
2081         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
2082         * configure: Regenerate.
2084 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
2086         * tree-pass.h: Added comment about not dumping passes with name
2087         starting with star in struct opt_pass.
2088         * passes.c (register_dump_files_1): Don't do dump for a pass with
2089         name starting with star.
2090         * doc/passes.texi (Pass manager): Mention pass names and special
2091         meaning of star prefix to avoid dump.
2093 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
2095         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
2096         to MIPS64r2.
2097         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
2098         (ISA_MIPS64R2): New macro.
2099         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
2100         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
2101         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
2102         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
2103         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
2104         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
2105         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
2106         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
2107         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
2108         Move up to keep list alphabetically sorted.
2109         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
2110         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
2111         processor.
2112         * doc/invoke.texi (MIPS Options): Add -mips64r2.
2113         (-march=@var{arch}): Add mips64r2.
2115 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2117         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
2119 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
2121         * expr.c (expand_assignment): Check for complete type.
2123 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2125         PR debug/36977
2126         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
2128         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
2129         for stack alignment.
2131         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
2133 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
2135         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
2136         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
2138 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
2140         PR rtl-optimization/36419
2141         * dwarf2out.c (barrier_args_size): New variable.
2142         (compute_barrier_args_size, compute_barrier_args_size_1): New
2143         functions.
2144         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
2145         if not called yet in the current function, use barrier_args_size
2146         array to find the new args_size value.
2147         (dwarf2out_frame_debug): Free and clear barrier_args_size.
2149 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2151         PR debug/36980
2152         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
2153         rule 19.
2155 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
2157         PR debug/36976
2158         * dwarf2out.c (dwarf2out_args_size_adjust): New.
2159         (dwarf2out_stack_adjust): Use it.
2160         (dwarf2out_frame_debug_expr): Likewise.
2162 2008-07-31  Richard Guenther  <rguenther@suse.de>
2164         PR tree-optimization/36978
2165         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
2166         the generated condition.
2168 2008-07-31  Richard Guenther  <rguenther@suse.de>
2170         * passes.c (init_optimization_passes): Always call
2171         pass_early_warn_uninitialized.
2172         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
2173         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
2174         * doc/passes.texi (Warn for uninitialized variables): Adjust.
2176 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
2178         PR c/36970
2179         * builtins.c (maybe_emit_free_warning): New function.
2180         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
2181         maybe_emit_free_warning for BUILT_IN_FREE.
2183         PR debug/36278
2184         * dwarf2out.c (get_context_die): New function.
2185         (force_decl_die, force_type_die): Use it.
2186         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
2187         returns NULL, force generation of DW_TAG_typedef and put that into
2188         DW_AT_import.
2190         PR preprocessor/36649
2191         * c-pch.c (c_common_read_pch): Save and restore
2192         line_table->trace_includes across PCH restore.
2194 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
2196         PR ada/36554
2197         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
2199 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
2201         PR 36974
2202         * final.c (call_from_call_insn): Handle COND_EXEC.
2204 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
2206         * builtins.c (std_gimplify_va_arg_expr): Replace
2207         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
2208         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
2210 2008-07-30  Joey Ye  <joey.ye@intel.com>
2211             H.J. Lu  <hongjiu.lu@intel.com>
2213         * builtins.c (expand_builtin_setjmp_receiver): Replace
2214         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
2215         (expand_builtin_apply_args_1): Likewise.
2216         (expand_builtin_longjmp): Need DRAP for stack alignment.
2217         (expand_builtin_apply): Likewise.
2219         * caller-save.c (setup_save_areas): Call assign_stack_local_1
2220         instead of assign_stack_local to allow alignment reduction.
2222         * calls.c (emit_call_1): Need DRAP for stack alignment if
2223         return pops.
2224         (expand_call): Replace virtual_incoming_args_rtx with
2225         crtl->args.internal_arg_pointer.
2226         * stmt.c (expand_nl_goto_receiver): Likewise.
2228         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
2229         alignment and store to stack_alignment_estimated and
2230         max_used_stack_slot_alignment.
2231         (expand_one_var): Likewise.
2232         (expand_stack_alignment): New function.
2233         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
2234         and stack_alignment_estimated fields in rtl_data.  Call
2235         expand_stack_alignment at end.
2237         * defaults.h (INCOMING_STACK_BOUNDARY): New.
2238         (MAX_STACK_ALIGNMENT): Likewise.
2239         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
2240         (SUPPORTS_STACK_ALIGNMENT): Likewise.
2242         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
2243         stack alignment when generating virtual registers.
2245         * function.c (assign_stack_local): Renamed to ...
2246         (assign_stack_local_1): This.  Add a parameter to indicate
2247         if it is OK to reduce alignment.
2248         (assign_stack_local): Use it.
2249         (instantiate_new_reg): Instantiate virtual incoming args rtx
2250         to vDRAP if stack realignment and DRAP is needed.
2251         (assign_parms): Collect parameter/return type alignment and
2252         contribute to stack_alignment_estimated.
2253         (locate_and_pad_parm): Likewise.
2254         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
2255         with crtl->args.internal_arg_pointer.
2257         * function.h (rtl_data): Add new field drap_reg,
2258         max_used_stack_slot_alignment, stack_alignment_estimated,
2259         stack_realign_needed, need_drap, stack_realign_processed and
2260         stack_realign_finalized.
2261         (stack_realign_fp): New macro.
2262         (stack_realign_drap): Likewise.
2264         * global.c (compute_regsets): Frame pointer is needed when
2265         stack is realigned.  Can eliminate frame pointer when stack is
2266         realigned and dynamic realigned argument pointer isn't used.
2268         * reload1.c (update_eliminables):  Frame pointer is needed
2269         when stack is realigned.
2270         (init_elim_table): Can eliminate frame pointer when stack is
2271         realigned and dynamic realigned argument pointer isn't used.
2273         * rtl.h (assign_stack_local_1): Declare new funtion.
2275         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
2276         (TARGET_GET_DRAP_RTX): Likewise.
2277         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
2278         TARGET_GET_DRAP_RTX.
2280         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
2282         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
2283         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
2285 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
2286             H.J. Lu  <hongjiu.lu@intel.com>
2288         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
2289         vdrap_reg, stack_realign and drap_reg_saved.
2290         (add_cfi): Don't allow redefining CFA when DRAP is used.
2291         (reg_save): Handle stack alignment.
2292         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
2293         alignment.  Don't generate DWARF information for (set fp sp)
2294         when DRAP is used.
2295         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
2296         to INVALID_REGNUM.
2297         (int_loc_descriptor): Move prototype forward.  Also define if
2298         DWARF2_UNWIND_INFO is true.
2299         (output_cfa_loc): Handle DW_CFA_expression.
2300         (build_cfa_aligned_loc): New.
2301         (based_loc_descr): Update assert for stack realign.  For local
2302         variables, use sp+offset when stack is aligned without drap and
2303         fp+offset when stack is aligned with drap.  For arguments, use
2304         cfa+offset when drap is used to align stack.
2306 2008-07-30  Joey Ye  <joey.ye@intel.com>
2307             H.J. Lu  <hongjiu.lu@intel.com>
2309         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
2310         Break long line.
2311         (ix86_gen_andsp): New.
2312         (ix86_user_incoming_stack_boundary): Likewise.
2313         (ix86_default_incoming_stack_boundary): Likewise.
2314         (ix86_incoming_stack_boundary): Likewise.
2315         (ix86_can_eliminate): Likewise.
2316         (find_drap_reg): Likewise.
2317         (ix86_update_stack_boundary): Likewise.
2318         (ix86_get_drap_rtx): Likewise.
2319         (ix86_finalize_stack_realign_flags): Likewise.
2320         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
2321         (TARGET_GET_DRAP_RTX): Likewise.
2322         (override_options): Overide option value for new options.
2323         (ix86_function_ok_for_sibcall): Remove check for
2324         force_align_arg_pointer.
2325         (ix86_handle_cconv_attribute): Likewise.
2326         (ix86_function_regparm): Likewise.
2327         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
2328         (ix86_va_start): Replace virtual_incoming_args_rtx with
2329         crtl->args.internal_arg_pointer.
2330         (ix86_select_alt_pic_regnum): Check DRAP register.
2331         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
2332         (ix86_compute_frame_layout): Compute frame layout wrt stack
2333         realignment.
2334         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
2335         (ix86_expand_prologue): Decide if stack realignment is needed
2336         and generate prologue code accordingly.
2337         (ix86_expand_epilogue): Generate epilogue code wrt stack
2338         realignment is really needed or not.
2339         
2340         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
2341         (ABI_STACK_BOUNDARY): Likewise.
2342         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
2343         (STACK_REALIGN_DEFAULT): Likewise.
2344         (INCOMING_STACK_BOUNDARY): Likewise.
2345         (MAX_STACK_ALIGNMENT): Likewise.
2346         (ix86_incoming_stack_boundary): Likewise.
2347         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
2348         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
2349         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
2350         (machine_function): Remove force_align_arg_pointer.
2352         * config/i386/i386.md (BX_REG): New.
2353         (R13_REG): Likewise.
2355         * config/i386/i386.opt (mforce_drap): New.
2356         (mincoming-stack-boundary): Likewise.
2357         (mstackrealign): Add Init(-1).
2359         * config/i386/i386-protos.h (ix86_can_eliminate): New
2361 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
2363         * doc/extend.texi: Update force_align_arg_pointer.
2365         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
2366         -mstackrealign.
2368         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
2369         (INCOMING_STACK_BOUNDARY): Likewise.
2370         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
2371         (TARGET_GET_DRAP_RTX): Likewise.
2373 2008-07-30  Andreas Schwab  <schwab@suse.de>
2375         PR rtl-optimization/36929
2376         * dse.c (replace_inc_dec): Use emit_insn_before instead of
2377         add_insn_before and fix argument order.
2378         (replace_inc_dec_mem): Handle NULL rtx.
2380 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
2382         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
2383         function.
2384         (arm_compute_initial_elimination_offset): Use it.
2385         (arm_compute_save_reg_mask): Include static chain save slot when
2386         calculating alignment.
2387         (arm_get_frame_offsets): Ditto.
2388         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
2389         that we can use to decrement the stack when the stack decrement
2390         could be too big for an immediate value in a single insn.
2391         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
2393 2008-07-30  Richard Guenther  <rguenther@suse.de>
2395         PR tree-optimization/36967
2396         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
2397         Release defs of statements we remove.
2399 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
2401         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
2402         instead of NULL_RTVEC.
2404 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
2406         PR target/35866
2408         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
2409         vector modes.
2411 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
2413         * final.c (call_from_call_insn): New.
2414         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
2416 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
2418         * configure.ac: Substitute ADA_CFLAGS.
2419         * configure: Regenerate.
2420         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
2421         * Makefile.in: Remove mention of X_* variables.
2422         * config/pa/x-ada-hpux10: Remove.
2423         * config/pa/x-ada: Remove.
2425         * doc/fragments.texi: Update.
2427 2008-07-30  Olivier Hainque  <hainque@adacore.com>
2429         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
2430         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
2431         __dso_handle explicitly here.
2433 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2435         PR 34389
2436         * c-typeck.c (build_binary_op): Encapsulate code into...
2437         * c-common.c (shorten_binary_op): ...this new function.
2438         (conversion_warning): Use the new function. Handle non-negative
2439         constant in bitwise-and.
2440         * c-common.h (shorten_binary_op): Declare.
2442 2008-07-30  Olivier Hainque  <hainque@adacore.com>
2444         * scan.c (make_sstring_space): Add explicit conversions of
2445         allocator's return value.
2446         * fix-header.c (recognized_function): Likewise.
2448 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2450         * doc/cpp.texi: Update to GFDL 1.2.
2451         * doc/gcc.texi: Do not list GPL as Invariant Section.
2452         * doc/gccint.texi: Likewise.  Update copyright years.
2453         * doc/install.texi: Update copyright years.
2455 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
2457         PR target/36955
2458         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
2459         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
2461 2008-07-29  Jan Hubicka  <jh@suse.cz>
2463         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
2464         (grokdeclarator): Likewise.
2465         * langhooks.c (lhd_warn_unused_global_decl): Use
2466         DECL_DECLARED_INLINE_P.
2467         * print-tree.c (print_node): Remove DECL_INLINE check.
2469 2008-07-29  Richard Guenther  <rguenther@suse.de>
2471         PR tree-optimization/36945
2472         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
2473         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
2474         Record invariant addresses un-decomposed.
2475         (copy_reference_ops_from_call): Record reference call
2476         arguments properly.  Simplify.
2477         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
2478         helper split out from ...
2479         (create_component_ref_by_pieces): ... here.  Simplify.
2480         Prepare for recursive invocation for call arguments.
2481         (create_expression_by_pieces): Adjust call to
2482         create_component_ref_by_pieces.
2483         (compute_avail): Process operand 2 of reference ops.
2485 2008-07-29  Richard Guenther  <rguenther@suse.de>
2487         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
2489 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
2491         * c-format.c (check_format_types): Revert unwanted checkin.
2493 2008-07-29  Jan Hubicka  <jh@suse.cz>
2495         * flags.h (flag_really_no_inline): Remove.
2496         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
2497         * toplev.c (flag_really_no_inline): Remove.
2498         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
2499         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
2500         (cgraph_decide_inlining_incrementally): Likewise.
2501         (compute_inline_parameters): Likewise.
2502         * opts.c (decode_options): Simplify.
2503         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
2504         * common.opt (finline): Initialize to 1.
2505         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
2507 2008-07-29  Jan Hubicka  <jh@suse.cz>
2509         * predict.c (always_optimize_for_size_p): New function.
2510         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
2511         optimize_edge_for_size_p, optimize_edge_for_speed_p,
2512         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
2513         functions.
2514         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
2515         * function.c (prepare_function_start): Set default profile.
2516         * function.h (rtl_data): Add maybe_hot_insn_p.
2517         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
2518         (construct_exit_block): Likewise.
2519         (tree_expand_cfg): Likewise.
2520         * basic-block.h
2521         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
2522         optimize_edge_for_size_p, optimize_edge_for_speed_p,
2523         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
2524         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
2525         Declare.
2527 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2529         PR 34985
2530         * c-decl.c (merge_decls): Merge USED flags.
2532 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
2534         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
2535         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
2536         next_stack, lab_false and lab_over trees.
2538 2008-07-28  Richard Guenther  <rguenther@suse.de>
2540         PR tree-optimization/36957
2541         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
2542         (useless_type_conversion_p): Remove.
2543         (types_compatible_p): Remove.
2544         * gimple.h (tree_ssa_useless_type_conversion): Declare.
2545         (useless_type_conversion_p): Declare.
2546         (types_compatible_p): Declare.
2547         (gimple_expr_type): Return the base type only if it is
2548         trivially convertible to the subtype.
2550 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
2552         * configure.ac: Use the m4_do macro to concatenate the warnings into
2553         one string in ACX_PROG_CC_WARNING_OPTS,
2554         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
2555         * configure: Regenerate.
2557 2008-07-28  Richard Guenther  <rguenther@suse.de>
2559         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
2560         (insert_fake_stores): Remove.
2561         (realify_fake_stores): Likewise.
2562         (execute_pre): Remove dead code.
2563         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
2564         (find_func_aliases): Deal with it here instead.
2565         Re-enable gcc_unreachable call.
2567 2008-07-28  Richard Guenther  <rguenther@suse.de>
2569         Merge from gimple-tuples-branch.
2571         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
2572         * gimple.def: New file.
2573         * gsstruct.def: Likewise.
2574         * gimple-iterator.c: Likewise.
2575         * gimple-pretty-print.c: Likewise.
2576         * tree-gimple.c: Removed.  Merged into ...
2577         * gimple.c: ... here.  New file.
2578         * tree-gimple.h: Removed.  Merged into ...
2579         * gimple.h: ... here.  New file.
2581         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
2582         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
2583         --enable-checking=gimple flag.
2584         * config.in: Likewise.
2585         * configure: Regenerated.
2587         * tree-ssa-operands.h: Tuplified.
2588         * tree-vrp.c: Likewise.
2589         * tree-loop-linear.c: Likewise.
2590         * tree-into-ssa.c: Likewise.
2591         * tree-ssa-loop-im.c: Likewise.
2592         * tree-dump.c: Likewise.
2593         * tree-complex.c: Likewise.
2594         * cgraphbuild.c: Likewise.
2595         * tree-ssa-threadupdate.c: Likewise.
2596         * tree-ssa-loop-niter.c: Likewise.
2597         * tree-pretty-print.c: Likewise.
2598         * tracer.c: Likewise.
2599         * gengtype.c: Likewise.
2600         * tree-loop-distribution.c: Likewise.
2601         * tree-ssa-loop-unswitch.c: Likewise.
2602         * cgraph.c: Likewise.
2603         * cgraph.h: Likewise.
2604         * tree-ssa-loop-manip.c: Likewise.
2605         * value-prof.c: Likewise.
2606         * tree-ssa-loop-ch.c: Likewise.
2607         * tree-tailcall.c: Likewise.
2608         * value-prof.h: Likewise.
2609         * tree.c: Likewise.
2610         * tree.h: Likewise.
2611         * tree-pass.h: Likewise.
2612         * ipa-cp.c: Likewise.
2613         * tree-scalar-evolution.c: Likewise.
2614         * tree-scalar-evolution.h: Likewise.
2615         * target.h: Likewise.
2616         * lambda-mat.c: Likewise.
2617         * tree-phinodes.c: Likewise.
2618         * diagnostic.h: Likewise.
2619         * builtins.c: Likewise.
2620         * tree-ssa-alias-warnings.c: Likewise.
2621         * cfghooks.c: Likewise.
2622         * fold-const.c: Likewise.
2623         * cfghooks.h: Likewise.
2624         * omp-low.c: Likewise.
2625         * tree-ssa-dse.c: Likewise.
2626         * ipa-reference.c: Likewise.
2627         * tree-ssa-uncprop.c: Likewise.
2628         * toplev.c: Likewise.
2629         * tree-gimple.c: Likewise.
2630         * tree-gimple.h: Likewise.
2631         * tree-chrec.c: Likewise.
2632         * tree-chrec.h: Likewise.
2633         * tree-ssa-sccvn.c: Likewise.
2634         * tree-ssa-sccvn.h: Likewise.
2635         * cgraphunit.c: Likewise.
2636         * tree-ssa-copyrename.c: Likewise.
2637         * tree-ssa-ccp.c: Likewise.
2638         * tree-ssa-loop-ivopts.c: Likewise.
2639         * tree-nomudflap.c: Likewise.
2640         * tree-call-cdce.c: Likewise.
2641         * ipa-pure-const.c: Likewise.
2642         * c-format.c: Likewise.
2643         * tree-stdarg.c: Likewise.
2644         * tree-ssa-math-opts.c: Likewise.
2645         * tree-ssa-dom.c: Likewise.
2646         * tree-nrv.c: Likewise.
2647         * tree-ssa-propagate.c: Likewise.
2648         * ipa-utils.c: Likewise.
2649         * tree-ssa-propagate.h: Likewise.
2650         * tree-ssa-alias.c: Likewise.
2651         * gimple-low.c: Likewise.
2652         * tree-ssa-sink.c: Likewise.
2653         * ipa-inline.c: Likewise.
2654         * c-semantics.c: Likewise.
2655         * dwarf2out.c: Likewise.
2656         * expr.c: Likewise.
2657         * tree-ssa-loop-ivcanon.c: Likewise.
2658         * predict.c: Likewise.
2659         * tree-ssa-loop.c: Likewise.
2660         * tree-parloops.c: Likewise.
2661         * tree-ssa-address.c: Likewise.
2662         * tree-ssa-ifcombine.c: Likewise.
2663         * matrix-reorg.c: Likewise.
2664         * c-decl.c: Likewise.
2665         * tree-eh.c: Likewise.
2666         * c-pretty-print.c: Likewise.
2667         * lambda-trans.c: Likewise.
2668         * function.c: Likewise.
2669         * langhooks.c: Likewise.
2670         * ebitmap.h: Likewise.
2671         * tree-vectorizer.c: Likewise.
2672         * function.h: Likewise.
2673         * langhooks.h: Likewise.
2674         * tree-vectorizer.h: Likewise.
2675         * ipa-type-escape.c: Likewise.
2676         * ipa-type-escape.h: Likewise.
2677         * domwalk.c: Likewise.
2678         * tree-if-conv.c: Likewise.
2679         * profile.c: Likewise.
2680         * domwalk.h: Likewise.
2681         * tree-data-ref.c: Likewise.
2682         * tree-data-ref.h: Likewise.
2683         * tree-flow-inline.h: Likewise.
2684         * tree-affine.c: Likewise.
2685         * tree-vect-analyze.c: Likewise.
2686         * c-typeck.c: Likewise.
2687         * gimplify.c: Likewise.
2688         * coretypes.h: Likewise.
2689         * tree-ssa-phiopt.c: Likewise.
2690         * calls.c: Likewise.
2691         * tree-ssa-coalesce.c: Likewise.
2692         * tree.def: Likewise.
2693         * tree-dfa.c: Likewise.
2694         * except.c: Likewise.
2695         * except.h: Likewise.
2696         * cfgexpand.c: Likewise.
2697         * tree-cfgcleanup.c: Likewise.
2698         * tree-ssa-pre.c: Likewise.
2699         * tree-ssa-live.c: Likewise.
2700         * tree-sra.c: Likewise.
2701         * tree-ssa-live.h: Likewise.
2702         * tree-predcom.c: Likewise.
2703         * lambda.h: Likewise.
2704         * tree-mudflap.c: Likewise.
2705         * ipa-prop.c: Likewise.
2706         * print-tree.c: Likewise.
2707         * tree-ssa-copy.c: Likewise.
2708         * ipa-prop.h: Likewise.
2709         * tree-ssa-forwprop.c: Likewise.
2710         * ggc-page.c: Likewise.
2711         * c-omp.c: Likewise.
2712         * tree-ssa-dce.c: Likewise.
2713         * tree-vect-patterns.c: Likewise.
2714         * tree-ssa-ter.c: Likewise.
2715         * tree-nested.c: Likewise.
2716         * tree-ssa.c: Likewise.
2717         * lambda-code.c: Likewise.
2718         * tree-ssa-loop-prefetch.c: Likewise.
2719         * tree-inline.c: Likewise.
2720         * tree-inline.h: Likewise.
2721         * tree-iterator.c: Likewise.
2722         * tree-optimize.c: Likewise.
2723         * tree-ssa-phiprop.c: Likewise.
2724         * tree-vect-transform.c: Likewise.
2725         * tree-object-size.c: Likewise.
2726         * tree-outof-ssa.c: Likewise.
2727         * cfgloop.c: Likewise.
2728         * system.h: Likewise.
2729         * tree-profile.c: Likewise.
2730         * cfgloop.h: Likewise.
2731         * c-gimplify.c: Likewise.
2732         * c-common.c: Likewise.
2733         * tree-vect-generic.c: Likewise.
2734         * tree-flow.h: Likewise.
2735         * c-common.h: Likewise.
2736         * basic-block.h: Likewise.
2737         * tree-ssa-structalias.c: Likewise.
2738         * tree-switch-conversion.c: Likewise.
2739         * tree-ssa-structalias.h: Likewise.
2740         * tree-cfg.c: Likewise.
2741         * passes.c: Likewise.
2742         * ipa-struct-reorg.c: Likewise.
2743         * ipa-struct-reorg.h: Likewise.
2744         * tree-ssa-reassoc.c: Likewise.
2745         * cfgrtl.c: Likewise.
2746         * varpool.c: Likewise.
2747         * stmt.c: Likewise.
2748         * tree-ssanames.c: Likewise.
2749         * tree-ssa-threadedge.c: Likewise.
2750         * langhooks-def.h: Likewise.
2751         * tree-ssa-operands.c: Likewise.
2752         * config/alpha/alpha.c: Likewise.
2753         * config/frv/frv.c: Likewise.
2754         * config/s390/s390.c: Likewise.
2755         * config/m32c/m32c.c: Likewise.
2756         * config/m32c/m32c-protos.h: Likewise.
2757         * config/spu/spu.c: Likewise.
2758         * config/sparc/sparc.c: Likewise.
2759         * config/i386/i386.c: Likewise.
2760         * config/sh/sh.c: Likewise.
2761         * config/xtensa/xtensa.c: Likewise.
2762         * config/stormy16/stormy16.c: Likewise.
2763         * config/ia64/ia64.c: Likewise.
2764         * config/rs6000/rs6000.c: Likewise.
2765         * config/pa/pa.c: Likewise.
2766         * config/mips/mips.c: Likewise.
2768 2008-07-28  Simon Baldwin  <simonb@google.com>
2770         * c-pragma.c (handle_pragma_message): New function.
2771         (init_pragma): Register handle_pragma_message.
2772         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
2773         documentation.
2775 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
2777         PR tree-optimization/35252
2778         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
2779         REALPART_EXPR to be considered as same load operation.
2781 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
2783         PR tree-optimization/36830
2784         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
2785         (expressions_equal_p): Return false if only one operand is null.
2787 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
2789         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
2790         version requirements.
2792 2008-07-26  Olivier Hainque  <hainque@adacore.com>
2794         * collect2.c (symkind): New enum.  Symbol kinds we care about.
2795         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
2796         code and head comment accordingly.
2797         (scan_prog_file): Use symkind names instead of bare integers.
2799 2008-07-25  Jan Hubicka  <jh@suse.cz>
2801         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
2802         DECL_INLINE.
2803         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
2804         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
2805         * dojump.c (clear_pending_stack_adjust): Likewise.
2806         * print-tree.c (print_node): Ignore DECL_INLINE.
2807         * tree-inline.c (inlinable_function_p): Likewise.
2809 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
2811         * doc/extend.texi (hot attribute): Document that the hot attribute
2812         turns on -O3 for some ports.
2813         (cold attribute): Document that the cold attribute turns on -Os
2814         for some ports
2816         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
2817         reflect function specific option support.
2819         * target.h (struct target_option_hooks): Add fields to say whether
2820         the cold attribute implies -Os and the hot attribute implies -O3.
2822         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
2823         By default, do not turn on -Os for cold functions.
2824         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
2825         not turn on -O3 for hot functions.
2827         * c-common.c (handle_hot_attribute): Use target hook to determine
2828         if hot functions should enable -O3.
2829         (handle_cold_attribute): Use target hook to determine if cold
2830         functions should enable -Os.
2832         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
2833         (override_options): Move disable scheduling to
2834         optimization_options.
2835         (optimization_options): Disable scheduling here, not
2836         override_options.
2837         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
2838         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
2840         * config/ia64/ia64.c (ia64_override_options): Move setting
2841         scheduling flags to ia64_optimization_options.
2842         (ia64_optimization_options): Disable scheduling options here, and
2843         not in ia64_override_options.
2844         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
2845         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
2847 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
2849         PR target/36936
2850         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
2852 2008-07-25  Martin Jambor  <mjambor@suse.cz>
2854         PR tree-optimization/36926
2855         * ipa-prop.c (ipa_analyze_call_uses): Call
2856         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
2858 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
2860         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
2861         movv2si_internal): Add mem = reg alternative.
2863 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
2865         PR bootstrap/36918
2866         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
2867         DEFAULT_PCC_STRUCT_RETURN to 127.
2869 2008-07-24  Jan Hubicka  <jh@suse.cz>
2871         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
2872         (build_cgraph_edges): Likewise.
2873         * cgraph.c (cgraph_node): Do not update assembler hash.
2874         (cgraph_remove_node): Drop non-unit-at-a-time code.
2875         * tree-pass.h (pass_O0_always_inline): Remove.
2876         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
2877         * toplev.c (process_options): Flag unit-at-a-time does not imply
2878         no section anchors.
2879         * cgraphunit.c: Update comments.
2880         (decide_is_function_needed): Drop non-unit-at-a-time mode.
2881         (cgraph_assemble_pending_functions): Remove.
2882         (cgraph_reset_node): Drop non-unit-at-a-time code.
2883         (cgraph_finalize_function): Likewise.
2884         (cgraph_analyze_function): Likewise.
2885         (cgraph_finalize_compilation_unit): Likewise.
2886         (cgraph_expand_function): Likewise.
2887         (cgraph_optimize): Likesise.
2888         (save_inline_function_body): Likewise.
2889         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
2890         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
2891         * ipa-inline.c: Update comments.
2892         (enum inlining_mode): remove INLINE_SPEED.
2893         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
2894         (cgraph_mark_inline_edge): Likewise.
2895         (try_inline): Likewise.
2896         (cgraph_decide_inlining_incrementally): Likewise.
2897         (cgraph_gate_inlining): Remove.
2898         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
2899         (cgraph_gate_early_inlining): Likewise.
2900         (gate_inline_passes): Remove.
2901         (pass_inline_parameters, pass_ipa_inline): Remove gates.
2902         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
2903         pass_O0_always_inline): Remove.
2904         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
2905         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
2906         * opts.c (no_unit_at_a_time_default): Remove.
2907         (decode_options): Remove flag_unit_at_a_time reset and warning.
2908         * opts.h (no_unit_at_a_time_default): Remove.
2909         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
2910         early in GNU dialect.
2911         (merge_decls): Update comment; drop unit-at-a-time check.
2912         (finish_decl): Likewise.
2913         (grok_declaration): Remove flag_inline_trees code.
2914         (finish_functions): Return on function returning non-void on all
2915         statics.
2916         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
2917         * cfgexpand.c (expand_one_static_var): Remove.
2918         (expand_one_var): Remove expand_one_static_var call.
2919         (expand_used_vars_for_block): Remove flag_unit_a_time check.
2920         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
2921         and flag_unit_at_a-time compatibility checks.
2922         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
2923         * tree-inline.c (flag_inline_trees): Remove.
2924         (inlinable_function_p): Don't check it.
2925         (expand_call_inline): Remove non-unit-at-a-time code.
2926         * tree-inline.h (flag_inline_trees): Remove.
2927         * tree-optimize.c (execute_early_local_optimizations): Remove
2928         unit-at-a-time checks.
2929         (tree_rest_of_compilation): Likewise.
2930         * combine.c (setup_incoming_promotions): Likewise.
2931         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
2932         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
2933         * passes.c (pass_inline_parameters): Update comments; remove
2934         O0_alwaysinline pass.
2935         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
2936         (execute_one_pass): Likewise.
2937         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
2938         (ix86_function_sseregparm): Likewise.
2939         * arm.c (arm_function_in_section_p): Likewise.
2940         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
2941         * varpool.c: Update comments.
2942         (decide_is_variable_needed): Remove unit-at-a-time checks.
2943         (varpool_finalize_decl): Likewise.
2945 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
2947         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
2948         to 2 instead of -1.
2949         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
2951 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
2953         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
2954         imp symbol extension.
2956         2008-07-23  Ian Lance Taylor  <iant@google.com>
2958         * tree-vrp.c (infer_value_range): Ignore asm statements when
2959         looking for memory accesses for -fdelete-null-pointer-checks.
2961 2008-07-24  Ben Elliston  <bje@au.ibm.com>
2963         * config/spu/spu-c.c (__vector_keyword): New variable.
2964         (vector_keyword): Likewise.
2965         (spu_categorize_keyword): New function.
2966         (spu_macro_to_expand): Likewise.
2967         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
2968         compiling an ISO C dialect.
2970 2008-07-24  Ben Elliston  <bje@au.ibm.com>
2972         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
2973         conventional usage.
2975 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2977         * configure: Regenerate.
2978         * configure.ac: Require texinfo 4.7.
2979         * doc/install.texi: Document texinfo 4.7 requirement.
2981 2008-07-23  Martin Jambor  <mjambor@suse.cz>
2983         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
2984         rather than for DECL_SAVED_TREE.
2985         * ipa-prop.c: Include diagnostic.h.
2986         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
2987         thoroughly.
2988         (ipa_detect_param_modifications): Function rewritten from scratch.
2989         (ipa_compute_jump_functions): Changed accesses to modification flags.
2990         (ipa_free_node_params_substructures): Update flags destruction.
2991         (ipa_node_duplication_hook): Update flags duplication.
2992         (ipa_print_all_params_modified): Updated flag access.
2993         * ipa-prop.h (struct ipa_param_flags): New structure.
2994         (struct ipa_node_params): New field modification_analysis_done,
2995         modified_flags changed into param_flags.
2996         (ipa_is_ith_param_modified): Changed to use new flags.
2997         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
2999         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
3000         ipa-cp.c and split into two functions.
3001         (ipa_print_node_jump_functions): New function.
3002         (compute_scalar_jump_functions): New function.
3003         (type_like_member_ptr_p): New function.
3004         (compute_pass_through_member_ptrs): New function.
3005         (fill_member_ptr_cst_jump_function): New function.
3006         (determine_cst_member_ptr): New function.
3007         (compute_cst_member_ptr_arguments): New function.
3008         (ipa_compute_jump_functions): Complete rewrite.
3009         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
3010         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
3011         (struct ipa_member_ptr_cst): New structure.
3012         (union jump_func_value): New field member_cst.
3013         * ipa-cp.c (ipcp_lat_is_insertable): New function.
3014         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
3015         jump function types.
3016         (ipcp_print_all_lattices): Slight fprintf rearrangement.
3017         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
3018         instead of ipcp_print_all_jump_functions.
3019         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
3020         only for replacable scalars.
3022         * doc/invoke.texi (Optimize options): Add description of
3023         -findirect-inlining.
3024         * common.opt (flag_indirect_inlining): New flag.
3025         * opts.c (decode_options): Set flag_indirect_inlining when
3026         optimize >= 3.
3028         * ipa-inline.c: Include ipa-prop.h.
3029         (inline_indirect_intraprocedural_analysis): New function.
3030         (inline_generate_summary): Allocate parameter and argument info
3031         structures, call inline_indirect_intraprocedural_analysis on each
3032         node when doing indirect inlining and deallocate indirect inlining
3033         data structures in the end.
3034         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
3035         (free_all_ipa_structures_after_iinln): New function.
3036         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
3037         done.
3038         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
3040         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
3041         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
3042         of computing the frequency separately.
3043         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
3044         of computing the frequency separately.
3045         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
3046         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
3047         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
3048         (ipa_get_stmt_member_ptr_load_param): New function.
3049         (ipa_is_ssa_with_stmt_def): New function.
3050         (ipa_note_param_call): New function.
3051         (ipa_analyze_call_uses): New function.
3052         (ipa_analyze_stmt_uses): New function.
3053         (ipa_analyze_params_uses): New function.
3054         (ipa_free_node_params_substructures): Also free the param_calls linked
3055         list.
3056         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
3057         (ipa_print_node_param_flags): New function.
3058         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
3059         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
3060         * ipa-prop.h (struct ipa_param_flags): New field called.
3061         (struct ipa_param_call_note): New structure.
3062         (struct ipa_node_params): New fields param_calls and
3063         uses_analysis_done.
3064         (ipa_is_ith_param_called): New function.
3065         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
3066         ipa_analyze_params_uses and dump parameter flags.
3068         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
3069         ipa_propagate_indirect_call_infos if performing indirect inlining,
3070         pass a new parameter new_edges to it.
3071         (add_new_edges_to_heap): New fucntion.
3072         (cgraph_decide_inlining_of_small_functions): New vector
3073         new_indirect_edges for newly found indirect edges , call
3074         ipa_propagate_indirect_call_infos after inlining.
3075         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
3076         inlining if performing indirect inlining.  Call
3077         free_all_ipa_structures_after_iinln when doing so too.
3078         (inline_generate_summary): Do not call
3079         free_all_ipa_structures_after_iinln here.
3080         * ipa-prop.c (update_jump_functions_after_inlining): New function.
3081         (print_edge_addition_message): New function.
3082         (update_call_notes_after_inlining): New function.
3083         (propagate_info_to_inlined_callees): New function.
3084         (ipa_propagate_indirect_call_infos): New function.
3085         * ipa-prop.h: Include cgraph.h
3086         (struct ipa_param_call_note): Fields reordered, new field processed.
3087         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
3088         flag indirect_call.
3089         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
3090         rediscovered call statements.
3091         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
3092         (dump_cgraph_node): Dump also the indirect_call flag.
3093         (cgraph_clone_edge): Copy also the indirect_call flag.
3094         * tree-inline.c (copy_bb): Do not check for fndecls from call
3095         expressions, check for edge availability when moving clones.
3096         (get_indirect_callee_fndecl): New function.
3097         (expand_call_inline): If callee declaration is not apprent from
3098         the statement, try calling get_indirect_callee_fndecl.  Do not
3099         issue warnings or call sorry when not inlinings an indirect edge.
3100         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
3102         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
3103         bit more frandly to matching.
3104         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
3105         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
3106         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
3108 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
3110         PR 36907
3111         * opth-gen.awk: Suppress function specific features when building
3112         target libraries.
3113         * optc-gen.awk: Ditto.
3115 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3117         PR 35058
3118         * diagnostic.c (pedwarn): Add opt parameter.
3119         (pedwarn0): New.
3120         * c-tree.h (pedwarn_init): Add opt parameter.
3121         (pedwarn_c90): Likewise.
3122         (pedwarn_c99): Likewise.
3123         * c-errors.c (pedwarn_c99): Likewise.
3124         (pedwarn_c90): Likewise.
3125         * toplev.h (pedwarn): Update declaration.
3126         (pedwarn0): Declare.
3127         * c-lex.c: All calls to pedwarn changed.
3128         * builtins.c: All calls to pedwarn changed.
3129         * toplev.c: All calls to pedwarn changed.
3130         * c-decl.c: All calls to pedwarn changed.
3131         * c-typeck.c: All calls to pedwarn changed.
3132         * c-common.c: All calls to pedwarn changed.
3133         * c-parser.c: All calls to pedwarn changed.
3135 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
3136             Karthik Kumar  <karthikkumar@gmail.com>
3138         * attribs.c (file scope): Include c-common.h.
3139         (decl_attributes): Add support for #pragma GCC optimize and
3140         #pragma GCC option.
3142         * targhooks.c (default_can_inline_p): New function that is the
3143         default for the TARGET_CAN_INLINE_P target hook.
3145         * targhooks.h (default_can_inline_p): Add declaration.
3147         * tree.c (cl_optimization_node): New static tree for building
3148         OPTIMIZATION_NODE tree.
3149         (cl_target_option_node): New static tree for building
3150         TARGET_OPTION_NODE tree.
3151         (cl_option_hash_table): New hash table for hashing
3152         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
3153         (cl_option_hash_hash): New function to provide the hash value for
3154         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
3155         (cl_option_hash_eq): New function to provide an equality test for
3156         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
3157         (tree_code_size): Add support for OPTIMIZATION_NODE and
3158         TARGET_OPTION_NODE trees.
3159         (tree_code_structure): Add support for OPTIMIZATION_NODE and
3160         TARGET_OPTION_NODE trees.
3161         (build_optimization_node): Build a tree that has all of the
3162         current optimization options.
3163         (build_target_option_node): Build a tree that has the target
3164         options that might be changed on a per function basis.
3166         * tree.h (file scope): Include options.h.
3167         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
3168         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
3169         (TREE_OPTIMIZATION): Ditto.
3170         (TREE_TARGET_SPECIFIC): Ditto.
3171         (struct tree_function_decl): Add fields for remembering the
3172         current optimization options and target specific options.
3173         (struct tree_optimization_option): New tree variant that remembers
3174         the optimization options.
3175         (struct tree_target_option): New tree variant that remembers the
3176         target specific flags that might change for compiling a particular
3177         function.
3178         (union tree_node): Include tree_optimization_option and
3179         tree_target_option fields.
3180         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
3181         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
3182         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
3183         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
3184         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
3185         optimization and target options.
3186         (optimization_default_node): New macro to refer to global_trees
3187         field.
3188         (optimization_current_node): Ditto.
3189         (optimization_cold_node): Ditto.
3190         (optimization_hot_node): Ditto.
3191         (target_option_default_node): Ditto.
3192         (target_option_current_node): Ditto.
3193         (current_option_pragma): Ditto.
3194         (current_optimize_pragma): Ditto.
3196         * target.h (struct gcc_target): Add valid_option_attribute_p,
3197         target_option_save, target_option_restore, target_option_print,
3198         target_option_pragma_parse, and can_inline_p hooks.
3200         * toplev.h (parse_optimize_options): Add declaration.
3201         (fast_math_flags_struct_set_p): Ditto.
3203         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
3204         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
3205         optimize is used.
3207         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
3208         tree_can_inline_p hook to see if one function can inline another.
3209         (cgraph_decide_inlining): Ditto.
3210         (cgraph_decide_inlining_incrementally): Ditto.
3212         * opts.c (decode_options): Add support for running multiple times
3213         to allow functions with different target or optimization options
3214         than was specified on the command line.
3215         (fast_math_flags_struct_set_p): New function that is similar to
3216         fast_math_flags_set_p, except it uses the values in the
3217         cl_optimization structure instead of global variables.
3219         * optc-gen.awk: Add support for TargetSave to allow a back end to
3220         declare new fields that need to be saved when using function
3221         specific options.  Include flags.h and target.h in the options.c
3222         source.  Add support for Save to indicate which options can be set
3223         for individual functions.  Generate cl_optimize_save,
3224         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
3225         cl_target_option_restore, cl_target_option_print functions to
3226         allow functions to use different optimization or target options.
3228         * opt-functions.awk (var_type_struct): Return the type used for
3229         storing the field in a structure.
3231         * opth-gen.awk: Add support for TargetSave to allow a back end to
3232         declare new fields that need to be saved when using function
3233         specific options.  Add support for Save to indicate which options
3234         can be set for individual functions.  Only generate one extern for
3235         Mask fields.  Generate cl_optimization and cl_target_option
3236         structures to remember optimization and target options.
3238         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
3239         collecting new tree nodes.
3240         (TS_TARGET_OPTION): Ditto.
3242         * c-decl.c (merge_decls): Merge function specific target and
3243         optimization options.
3245         * function.c (invoke_set_current_function_hook): If the function
3246         uses different optimization options, change the global variables
3247         to reflect this.
3249         * coretypes.h (struct cl_optimization): Add forward reference.
3250         (struct cl_target_option): Ditto.
3252         * c-pragma.c (option_stack): New static vector to remember the
3253         current #pragma GCC option stack.
3254         (handle_pragma_option): New function to support #pragma GCC option
3255         to change target options.
3256         (optimize_stack): New static vector to remember the current
3257         #pragma GCC optimize stack.
3258         (handle_pragma_optimize): New function to support #pragma GCC
3259         optimize to change optimization options.
3260         (init_pragma): Add support for #pragma GCC optimize and #pragma
3261         GCC option.
3263         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
3264         optimization options.
3265         (TARGET_OPTION_NODE): New tree code for remembering certain target
3266         options.
3268         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
3269         TARGET_OPTION_NODE trees.
3271         * common.opt (-O): Add Optimization flag.
3272         (-Os): Ditto.
3273         (-fmath-errno): Ditto.
3274         (-falign-functions): Add UInteger flag to make sure flag gets full
3275         int in cl_optimization structure.
3276         (-falign-jumps): Ditto.
3277         (-falign-labels): Ditto.
3278         (-falign-loops): Ditto.
3279         (-fsched-stalled-insns): Ditto.
3280         (-fsched-stalled-insns-dep): Ditto.
3282         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
3283         definition.
3284         (TARGET_OPTION_SAVE): Ditto.
3285         (TARGET_OPTION_RESTORE): Ditto.
3286         (TARGET_OPTION_PRINT): Ditto.
3287         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
3288         (TARGET_CAN_INLINE_P): Ditto.
3289         (TARGET_INITIALIZER): Add new hooks.
3291         * tree-inline.c (tree_can_inline_p): New function to determine
3292         whether one function can inline another.  Check if the functions
3293         use compatible optimization options, and also call the backend
3294         can_inline_p hook.
3296         * tree-inline.h (tree_can_inline_p): Add declaration.
3298         * c-common.c (c_common_attribute): Add support for option and
3299         optimize attributes.
3300         (handle_option_attribute): Add support for the option attribute to
3301         allow the user to specify different target options for compiling a
3302         specific function.
3303         (handle_optimize_attribute): Add support for the optimize
3304         attribute to allow the user to specify different optimization
3305         options for compiling a specific function.
3306         (handle_hot_attribute): Turn on -O3 optimization for this one
3307         function if it isn't the default optimization level.
3308         (handle_cold_attribute): Turn on -Os optimization for this one
3309         function if it insn't the default optimization.
3310         (const_char_p): New const char * typedef.
3311         (optimize_args): New static vector to remember the optimization
3312         arguments.
3313         (parse_optimize_options): New function to set up the optimization
3314         arguments from either the optimize attribute or #pragma GCC optimize.
3316         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
3317         (builtin_define_std): Ditto.
3319         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
3320         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
3321         (x86_64-*-*): Ditto.
3323         * Makefile.in (TREE_H): Add options.h.
3324         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
3326         * doc/extend.texi (option attribute): Document new attribute.
3327         (optimize attribute): Ditto.
3328         (hot attribute): Document hot attribute sets -O3.
3329         (cold attribute): Document cold attribute sets -Os.
3330         (#pragma GCC option): Document new pragma.
3331         (#pragma GCC optimize): Ditto.
3333         * doc/options.texi (TargetSave): Document TargetSave syntax.
3334         (UInteger): Document UInteger must be used for certain flags.
3335         (Save): Document Save option to create target specific options
3336         that can be saved/restored on a function specific context.
3338         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
3339         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
3341         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
3342         (TARGET_OPTION_SAVE): Ditto.
3343         (TARGET_OPTION_RESTORE): Ditto.
3344         (TARGET_OPTION_PRINT): Ditto.
3345         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
3346         (TARGET_CAN_INLINE_P): Ditto.
3348         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
3349         -mfpmath=sse,387.
3350         (-mfpmath=both): Ditto.
3352 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
3353             Karthik Kumar  <karthikkumar@gmail.com>
3355         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
3356         (TARGET_POPCNT): Ditto.
3357         (TARGET_SAHF): Ditto.
3358         (TARGET_AES): Ditto.
3359         (TARGET_PCLMUL): Ditto.
3360         (TARGET_CMPXCHG16B): Ditto.
3361         (TARGET_RECIP): Move switch into target_flags.
3362         (TARGET_FUSED_MADD): Ditto.
3363         (ix86_arch_features): Make an unsigned char type.
3364         (ix86_tune_features): Ditto.
3365         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
3366         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
3367         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
3369         * config/i386/i386.opt (arch): New TargetSave field to define
3370         fields that need to be saved for function specific option support.
3371         (tune): Ditto.
3372         (fpmath): Ditto.
3373         (branch_cost): Ditto.
3374         (ix86_isa_flags_explicit): Ditto.
3375         (tune_defaulted): Ditto.
3376         (arch_specified): Ditto.
3377         (-m128-long-double): Add Save flag to save option for target
3378         specific option support.
3379         (-m80387): Ditto.
3380         (-maccumulate-outgoing-args): Ditto.
3381         (-malign-double): Ditto.
3382         (-malign-stringops): Ditto.
3383         (-mfancy-math-387): Ditto.
3384         (-mhard-float): Ditto.
3385         (-mieee-fp): Ditto.
3386         (-minline-all-stringops): Ditto.
3387         (-minline-stringops-dynamically): Ditto.
3388         (-mms-bitfields): Ditto.
3389         (-mno-align-stringops): Ditto.
3390         (-mno-fancy-math-387): Ditto.
3391         (-mno-push-args): Ditto.
3392         (-mno-red-zone): Ditto.
3393         (-mpush-args): Ditto.
3394         (-mred-zone): Ditto.
3395         (-mrtd): Ditto.
3396         (-msseregparm): Ditto.
3397         (-mstack-arg-probe): Ditto.
3398         (-m32): Ditto.
3399         (-m64): Ditto.
3400         (-mmmx): Ditto.
3401         (-m3dnow): Ditto.
3402         (-m3dnowa): Ditto.
3403         (-msse): Ditto.
3404         (-msse2): Ditto.
3405         (-msse3): Ditto.
3406         (-msse4.1): Ditto.
3407         (-msse4.2): Ditto.
3408         (-msse4): Ditto.
3409         (-mno-sse4): Ditto.
3410         (-msse4a): Ditto.
3411         (-msse5): Ditto.
3412         (-mrecip): Move flag into target_flags.
3413         (-mcld): Ditto.
3414         (-mno-fused-madd): Ditto.
3415         (-mfused-madd): Ditto.
3416         (-mabm): Move flag into ix86_isa_flags.
3417         (-mcx16): Ditto.
3418         (-mpopcnt): Ditto.
3419         (-msahf): Ditto.
3420         (-maes): Ditto.
3421         (-mpclmul): Ditto.
3423         * config/i386/i386-c.c: New file for #pragma support.
3424         (ix86_target_macros_internal): New function to #define or #undef
3425         target macros based when the user uses the #pragma GCC option to
3426         change target options.
3427         (ix86_pragma_option_parse): New function to add #pragma GCC option
3428         support.
3429         (ix86_target_macros): Move defining the target macros here from
3430         TARGET_CPU_CPP_BUILTINS in i386.h.
3431         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
3432         defined, initialize any subtarget #pragmas.
3434         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
3435         REGISTER_TARGET_PRAGMAS.
3437         * config/i386/t-i386: New file for x86 dependencies.
3438         (i386.o): Make dependencies mirror the include files used.
3439         (i386-c.o): New file, add dependencies.
3441         * config/i386/i386-protos.h (override_options): Add bool argument.
3442         (ix86_valid_option_attribute_tree): Add declaration.
3443         (ix86_target_macros): Ditto.
3444         (ix86_register_macros): Ditto.
3446         * config/i386/i386.c (ix86_tune_features): Move initialization of
3447         the target masks to initial_ix86_tune_features to allow functions
3448         to have different target options.  Make type unsigned char,
3449         instead of unsigned int.
3450         (initial_ix86_tune_features): New static vector to hold processor
3451         masks for the tune variables.
3452         (ix86_arch_features): Move initialization of the target masks to
3453         initial_ix86_arch_features to allow functions to have different
3454         target options.  Make type unsigned char, instead of unsigned int.
3455         (initial_ix86_arch_features): New static vector to hold processor
3456         masks for the arch variables.
3457         (enum ix86_function_specific_strings): New enum to describe the
3458         string options used for attribute((option(...))).
3459         (ix86_target_string): New function to return a string that
3460         describes the target options.
3461         (ix86_debug_options): New function to print the current options in
3462         the debugger.
3463         (ix86_function_specific_save): New function hook to save the
3464         function specific global variables in the cl_target_option structure.
3465         (ix86_function_specific_restore): New function hook to restore the
3466         function specific variables from the cl_target_option structure to
3467         the global variables.
3468         (ix86_function_specific_print): New function hook to print the
3469         target specific options in the cl_target_option structure.
3470         (ix86_valid_option_attribute_p): New function hook to validate
3471         attribute((option(...))) arguments.
3472         (ix86_valid_option_attribute_tree): New function that is common
3473         code between attribute((option(...))) and #pragma GCC option
3474         support that parses the options and returns a tree holding the options.
3475         (ix86_valid_option_attribute_inner_p): New helper function for
3476         ix86_valid_option_attribute_tree.
3477         (ix86_can_inline_p): New function hook to decide if one function
3478         can inline another on a target specific basis.
3479         (ix86_set_current_function); New function hook to switch target
3480         options if the user used attribute((option(...))) or #pragma GCC
3481         option.
3482         (ix86_tune_defaulted): Move to static file scope from
3483         override_options.
3484         (ix86_arch_specified): Ditto.
3485         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
3486         ix86_isa_flags.
3487         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
3488         (OPTION_MASK_ISA_ABM_SET): Ditto.
3489         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
3490         (OPTION_MASK_ISA_CX16_SET): Ditto.
3491         (OPTION_MASK_ISA_SAHF_SET): Ditto.
3492         (OPTION_MASK_ISA_AES_UNSET): Ditto.
3493         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
3494         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
3495         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
3496         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
3497         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
3498         (struct ptt): Move to static file scope from override_options.
3499         (processor_target_table): Ditto.
3500         (cpu_names): Ditto.
3501         (ix86_handle_option): Add support for options that are now isa options.
3502         (override_options): Add support for declaring functions that
3503         support different target options than were specified on the
3504         command line.  Move struct ptt, processor_target_table, cpu_names,
3505         ix86_tune_defaulted, ix86_arch_specified to static file scope.
3506         Add bool argument.  Fix up error messages so the appropriate error
3507         is given for either command line or attribute.
3508         (ix86_previous_fndecl): New static to remember previous function
3509         declaration to see if we need to change target options.
3510         (ix86_builtins_isa): New array to record the ISA of each builtin
3511         function.
3512         (def_builtin): Always create the builtin function, even if the
3513         current ISA doesn't support it.
3514         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
3515         tests for those builtins.
3516         (ix86_init_builtins): Remove TARGET_MMX test for calling
3517         ix86_init_mmx_sse_builtins.
3518         (ix86_expand_builtin): If the current ISA doesn't support a given
3519         builtin, signal an error.
3520         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
3521         (TARGET_SET_CURRENT_FUNCTION): Ditto.
3522         (TARGET_OPTION_SAVE): Ditto.
3523         (TARGET_OPTION_RESTORE): Ditto.
3524         (TARGET_OPTION_PRINT): Ditto.
3525         (TARGET_CAN_INLINE_P): Ditto.
3527 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
3529         * c-typeck.c (build_external_ref): Don't call assemble_external.
3530         * final.c (output_operand): Call assemble_external.
3532 2008-07-21  DJ Delorie  <dj@redhat.com>
3534         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
3535         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
3537 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3539         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
3540         original insn and splitter contents into ...
3541         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
3542         flag_unsafe_math_optimizations.  Add dummy scratch register.
3543         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
3544         !flag_unsafe_math_optimizations.  Returns number with next
3545         highest magnitude if this is still less or equal to the true
3546         quotient in magnitude.
3548 2008-07-21  Rafael Avila de Espindola  <espindola@google.com>
3550         * Makefile.in: Replace toplev.h with TOPLEV_H.
3551         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
3552         * c-lex.c (fe_file_change): Don't set in_system_header.
3553         * c-parser.c (c_token): Remove in_system_header.
3554         (c_lex_one_token): Don't set in_system_header.
3555         (c_parser_set_source_position_from_token): Don't set in_system_header.
3556         * diagnostic.c (diagnostic_report_diagnostic): Use location from
3557         diagnostic_info.
3558         (warning_at): New.
3559         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
3560         * flags.h (in_system_header): Remove.
3561         * function.c (saved_in_system_header): Remove.
3562         (push_cfun): Don't set in_system_header.
3563         (pop_cfun): Don't set in_system_header.
3564         (push_struct_function): Don't set in_system_header.
3565         * input.h (expanded_location): Add sysp.
3566         (in_system_header_at): New.
3567         (in_system_header): New.
3568         * toplev.c (in_system_header): Remove.
3569         * toplev.h: Include input.h
3570         (warning_at): New.
3571         * tree-cfg.c (execute_warn_function_return): Call warning_at.
3572         * tree-ssa.c (warn_uninit): Call warning_at.
3573         (warn_uninitialized_var): Update calls to warn_uninit.
3574         (warn_uninitialized_phi): Update calls to warn_uninit.
3575         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
3576         (expand_location): Initialize xloc.sysp.
3577         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
3578         (tree_decl_with_vis): Remove in_system_header_flag.
3580 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
3582         PR target/36822
3583         * recog.c (asm_operand_ok): Change the order of the extra
3584         memory constraint checks.
3586 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3588         PR tree-opt/36879
3589         * tree-switch-conversion.c (build_one_array): Call
3590         varpool_mark_needed_node and varpool_finalize_decl
3591         instead of assemble_variable.
3593 2008-07-19  Jan Hubicka  <jh@suse.cz>
3595         * cgraph.c (cgraph_add_new_function): Do early local passes.
3596         * tree-nrv.c (gate_pass_return_slot): New gate.
3597         (pass_nrv): Add the gate.
3598         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
3599         functions.
3600         (coalesce_ssa_name): Coalesce SSA names.
3601         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
3602         not optimizing so unused user vars remains visible.
3603         * common.opt (flag_tree_ter): Always enable by default.
3604         * tree-ssa-ter.c: Include flags.h
3605         (is_replaceable_p): Check that locations match; when aliasing is missing
3606         be conservative about loads.
3607         * tree-optimize.c (gate_init_datastructures): Remove.
3608         (pass_init_datastructures): New.
3609         * passes.c: Reorder passes so we always go into SSA.
3611 2008-07-19  Jan Hubicka  <jh@suse.cz>
3613         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
3614         * doc/invoke.texi (--combine): Likewise.
3615         (-finline-functions-called-once): Update levels when enabled.
3616         (-funit-at-a-time): Document new behaviour.
3617         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
3618         -fno-section-anchors when disabled explicitly.
3619         (inline params): They are not ignored now.
3620         (precompiled headers): Remove unit-at-a-time as being incompatible.
3621         * opts.c (decode_options): Handle unit-at-a-time as alias;
3622         imply -fno-section-anchors when toplevel reorder is disabled
3623         explicitly.
3624         * common.opt (ftoplevel-reorder): Set default value to 2.
3625         (funit-at-a-time): Set default value to 1.
3626         * config/rs6000/rs6000.c (optimization_options): Set section anchors
3627         to 2.
3629 2008-07-19  Jan Hubicka  <jh@suse.cz>
3631         * builtins.c (expand_builtin_int_roundingfn,
3632         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
3633         it is not useful.
3635 2008-07-19  Richard Guenther  <rguenther@suse.de>
3637         PR bootstrap/36864
3638         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
3639         * tree-ssa-sccvn.c (get_constant_value_id): New function.
3640         * tree-ssa-pre.c (get_expr_value_id): For newly created
3641         constant value-ids make sure to add the expression to its
3642         expression-set.
3644 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
3646         PR middle-end/36877
3647         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
3648         return value of the builtin is ignored.
3650 2008-07-19  Olivier Hainque  <hainque@adacore.com>
3652         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
3653         bits, a C conformant malloc implementation has to provide.
3654         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
3656 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
3658         PR target/36780
3659         PR target/36827
3660         * reload.c (find_reloads_subreg_address): Only reload address if
3661         reloaded == 0, not for reloaded != 1.
3663         Revert:
3664         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
3665         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
3666         (m32c_legitimate_address_p): Handle "++rii" addresses created by
3667         m32c_legitimize_reload_address.
3669         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3670         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
3671         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
3673 2008-07-19  Olivier Hainque  <hainque@adacore.com>
3675         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
3676         argument, saying whether nested array are to be collapsed
3677         into a single array type DIE with multiple subscripts.
3678         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
3679         issues, centralize the nested array types collapsing control and
3680         disable the transformation for Ada.
3682 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
3684         PR target/36786
3685         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
3686         x86_64_shift_adj.
3687         (x86_64_shift_adj_2): New expander.
3688         (x86_64_shift_adj_3): Ditto.
3689         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
3690         to split TImode operands.
3691         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
3692         (ix86_split_lshr): Ditto.
3694 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
3696         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
3697         and __CHAR32_TYPE__.
3698         * c-typeck.c (digest_init): Support char16_t and char32_t.
3699         (set_nonincremental_init_from_string): Idem.
3701 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
3703         PR middle-end/36859
3704         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
3705         PREFERRED_STACK_BOUNDARY.
3706         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
3708 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
3710         PR middle-end/36858
3711         * function.c (locate_and_pad_parm): Cap boundary earlier.
3713 2008-07-17  Julian Brown  <julian@codesourcery.com>
3715         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
3716         no-op for targets which don't use DLLs.
3718 2008-07-17  Martin Jambor  <mjambor@suse.cz>
3720         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
3721         that nodes are relevant by examining the node->analyzed flag.
3722         (ipcp_init_stage): Check which nodes are relevant, assert that the
3723         relevant ones are also required.
3724         (ipcp_propagate_stage): Check on the side arrays are properly
3725         allocated.
3726         (ipcp_print_all_jump_functions): Make sure not to touch any node
3727         that is not analyzed or an edge that does not have a corresponding
3728         entry in the on-the-side vectors.
3729         (ipcp_function_scale_print): Likewise.
3730         (ipcp_update_callgraph): Check that the node is relevant.
3731         (ipcp_insert_stage): Check that the node is relevant.  Check there is
3732         an info for every node and edge.
3733         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
3734         (ipa_print_all_tree_maps): Likewise and a new variable info.
3735         (ipa_print_all_params_modified): Likewise.
3736         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
3738 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
3740         PR target/25343
3741         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
3743 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
3745         PR rtl-optimization/36753
3746         * fwprop.c (use_killed_between): Don't shortcut
3747         single-definition global registers.
3749 2008-07-16  Jan Hubicka  <jh@suse.cz>
3751         * cgraph.h (varpool_empty_needed_queue): Declare.
3752         * cgraphunit.c (output_in_order): Mark all variables as needed;
3753         empty the queue.
3754         * varpool.c (varpool_assemble_node): Update debug queue.
3755         (varpool_assemble_pending_decls): Don't do it here.
3756         (varpool_empty_needed_queue):  New function.
3758 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3760         * recog.c (peephole2_optimize): Fix formatting.
3762 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3764         * c-pch.c (get_ident): Avoid C++ keywords.
3765         * combine-stack-adj.c (single_set_for_csa): Likewise.
3766         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
3767         output_asm_insn): Likewise.
3768         * reload.c (push_secondary_reload, find_reusable_reload,
3769         push_reload, combine_reloads, find_reloads,
3770         debug_reload_to_stream): Likewise.
3771         * reload.h (struct reload): Likewise.
3772         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
3773         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
3774         emit_output_reload_insns): Likewise.
3775         * targhooks.c (default_secondary_reload): Likewise.
3776         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
3778 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3780         * recog.c (validate_change_1, validate_change,
3781         validate_unshare_change, validate_replace_rtx_1, struct
3782         funny_match, constrain_operands, peephole2_optimize): Avoid C++
3783         keywords.
3784         * reload.c (push_secondary_reload, secondary_reload_class,
3785         scratch_reload_class, find_valid_class, find_reusable_reload,
3786         push_reload, find_dummy_reload, find_reloads_address_1,
3787         find_reloads_address_part, find_equiv_reg): Likewise.
3788         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
3789         choose_reload_regs): Likewise.
3790         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
3791         Likewise.
3792         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
3793         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
3794         * sched-rgn.c (concat_INSN_LIST): Likewise.
3795         * stor-layout.c (mode_for_size, mode_for_size_tree,
3796         smallest_mode_for_size): Likewise.
3798 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3800         * cfg.c (dump_reg_info): Avoid C++ keywords.
3801         * dwarf2asm.c (dw2_force_const_mem,
3802         dw2_asm_output_encoded_addr_rtx): Likewise.
3803         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
3804         * expmed.c (expand_shift): Likewise.
3805         * global.c (find_reg): Likewise.
3806         * graph.c (draw_edge): Likewise.
3807         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
3808         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
3809         widen_clz, widen_bswap, expand_parity, expand_unop,
3810         emit_cmp_and_jump_insn_1): Likewise.
3811         * postreload.c (reload_cse_simplify_operands): Likewise.
3812         * ra.h (add_neighbor): Likewise.
3813         * reg-stack.c (remove_regno_note, change_stack): Likewise.
3814         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
3815         record_reg_classes, copy_cost, record_address_regs,
3816         invalid_mode_change_p): Likewise.
3817         * regrename.c (regrename_optimize, scan_rtx_reg,
3818         dump_def_use_chain, find_oldest_value_reg,
3819         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
3821 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
3823         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
3824         MASK_POWERPC64 for power4 in previous commit.
3826 2008-07-16  Olivier Hainque  <hainque@adacore.com>
3828         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
3829         instead of bare conversion to cast const-ness away.
3831 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
3833         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
3834         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
3835         * config/xtensa/xtensa.c (xtensa_function_value): New function.
3836         (TARGET_FUNCTION_VALUE): Define.
3838 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
3840         * config/rs6000/rs6000.c (processor_target_table): Add
3841         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
3843 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
3845         PR target/36827
3846         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
3847         (m32c_legitimate_address_p): Handle "++rii" addresses created by
3848         m32c_legitimize_reload_address.
3850 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
3852         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
3853         DECL_IN_SYSTEM_HEADER in sync.
3855 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
3857         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
3858         * tree-ssa-pre.c (pre_expr_eq): Ditto
3859         (get_constant_for_value_id): Take a type as an argument.
3860         (fully_constant_expression): Pass in type.
3861         (find_or_generate_expression): Short circuit constant case.
3862         (create_expression_by_pieces): Remove special casing of
3863         pointer_plus.
3864         (do_regular_insertion): Short circuit constant case.
3865         (do_partial_partial_insertion): Ditto.
3867 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3869         PR target/36782
3870         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
3872 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
3874         * config/xtensa/libgcc-xtensa.ver: New file.
3875         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
3877 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3879         * df-problems.c (df_set_note): Avoid C++ keywords.
3880         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
3881         * dse.c (record_store, remove_useless_values): Likewise.
3882         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
3883         gen_reg_rtx_offset, operand_subword, change_address_1,
3884         change_address, adjust_address_1, offset_address,
3885         widen_memory_access, emit_copy_of_insn_after): Likewise.
3886         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
3887         * fwprop.c (should_replace_address, propagate_rtx_1,
3888         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
3889         Likewise.
3890         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
3891         gcse_emit_move_after, update_ld_motion_stores): Likewise.
3892         * lcm.c (compute_insert_delete, pre_edge_lcm,
3893         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
3894         * lower-subreg.c (resolve_reg_notes): Likewise.
3895         * mode-switching.c (optimize_mode_switching): Likewise.
3897 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3899         * bt-load.c (add_btr_def, migrate_btr_def,
3900         branch_target_load_optimize): Avoid C++ keywords.
3901         * caller-save.c (insert_restore, insert_save, insert_one_insn):
3902         Likewise.
3903         * combine.c (subst, simplify_set, make_extraction,
3904         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
3905         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
3906         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
3908 2008-07-15  Richard Guenther  <rguenther@suse.de>
3910         PR middle-end/36369
3911         * c-common.c (strict_aliasing_warning): Do not warn for
3912         TYPE_REF_CAN_ALIAS_ALL pointers.
3913         (c_common_get_alias_set): may_alias types are not special.
3914         * tree.c (build_pointer_type_for_mode): Look up the may_alias
3915         attribute and set can_ref_all accordingly.
3916         (build_reference_type_for_mode): Likewise.
3917         * doc/extend.texi (may_alias): Clarify.
3919 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3921         PR target/36780
3922         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
3923         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
3925 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3927         PR target/31568
3928         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
3929         gcc_assert, instead call output_operand_lossage.
3931 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
3933         * builtins.c (std_canonical_va_list): Treat structure based
3934         va_list types.
3936 2008-07-15  Ben Elliston  <bje@au.ibm.com>
3938         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
3940 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
3942         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
3943         is set.
3945 2008-07-14  Jan Hubicka  <jh@suse.cz>
3947         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
3948         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
3949         fix predicates and constraints.
3950         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
3951         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
3953 2008-07-14  Doug Kwan  <dougkwan@google.com>
3955         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
3956         additional option file arm/eabi.opt.
3957         * config/arm/eabi.h (File): New configuration file for EABI targets.
3958         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
3959         SUBSUBTARGET_EXTRA_SPECS.
3960         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
3961         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
3962         from STARTFILE_SPEC so that it can be referenced in an override.
3963         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
3964         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
3965         can be referenced in an override.
3966         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
3967         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
3968         so that it can be referenced in an override.
3969         (LINK_SPEC): Use BPABI_LINK_SPEC.
3970         * config/arm/eabi.opt (File): New.
3972 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3974         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
3975         (FIXED_VALUE_H): New variable.
3976         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
3977         input.h, fixed-value.h.
3978         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
3979         (BASIC_BLOCK_H): Use $(BITMAP_H).
3980         (FUNCTION_H): Add varray.h.
3981         (IPA_REFERENCE_H): Use $(BITMAP_H).
3982         (CGRAPH_H): Add $(BASIC_BLOCK_H).
3983         (DF_H): Use $(BITMAP_H).
3984         (GGC_H): Add statistics.h.
3985         (INSN_ADDR_H): New.
3986         (INSN_ATTR_H): Use it.
3987         (SYSTEM_H): Add safe-ctype.h, filenames.h.
3988         (INPUT_H): New.
3989         (SYMTAB_H): Add $(OBSTACK_H).
3990         (CPP_INTERNAL_H): New.
3991         (TREE_DUMP_H): Add tree-pass.h.
3992         (TREE_FLOW_H): Use $(BITMAP_H)
3993         (PRETTY_PRINT_H): Use $(INPUT_H).
3994         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
3995         (GSTAB_H): New.
3996         (BITMAP_H): New.
3997         (many object files): Fix lots of header dependencies throughout.
3999 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4001         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
4002         New macros.
4003         (s-gtyp-input): Use them to write tmp-gi.list.
4004         (echo_to_gi.list): Remove.
4006 2008-07-14  Richard Guenther  <rguenther@suse.de>
4008         * tree-ssa-sccvn.c (pre_info): Remove.
4009         (switch_to_PRE_table): Likewise.
4010         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
4011         (set_hashtable_value_ids): Do not create value-ids for the
4012         optimistic tables.
4013         (run_scc_vn): Remove double test.  Remove bogus special-case
4014         in value-number printing.
4015         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
4016         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
4017         SSA_NAME_VALUE.
4018         * tree-flow-inline.h (get_value_handle): Remove.
4019         * tree-flow.h (get_value_handle): Remove.
4021 2008-07-14  Martin Jambor  <mjambor@suse.cz>
4023         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
4024         in which we generate arithmetics is not a subrange.
4026 2008-07-14  Martin Jambor  <mjambor@suse.cz>
4028         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
4030 2008-07-14  Richard Guenther  <rguenther@suse.de>
4032         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
4034 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
4036         PR target/36745
4037         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
4038         reload for symbol refs moved to r0 with -fPIC.
4039         (legitimize_pic_address): Use the target register as temporary
4040         reg if possible.
4041         (emit_symbolic_move): Adjust comment.
4042         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
4043         New expanders.
4045 2008-07-14  Ben Elliston  <bje@au.ibm.com>
4047         * c-common.h (C_CPP_HASHNODE): New macro.
4048         * coretypes.h (struct cpp_token): Forward declare.
4049         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
4050         the context-sensitive keyword method.
4051         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
4052         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
4053         expand_bool_pixel): New.
4054         (altivec_categorize_keyword): New function.
4055         (init_vector_keywords): New function.
4056         (rs6000_macro_to_expand): Likewise.
4057         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
4058         compiling an ISO C dialect.
4060 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
4062         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
4063         (create_expression_by_pieces): Fix typo.
4064         (do_regular_insertion): Use debug counter here too.
4066 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
4068         PR target/35492.
4069         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
4070         CONST_OK_FOR_LETTER_P.  All port-local users changed.
4071         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
4072         implement Kp matching power-of-two.
4073         (CONSTRAINT_LEN): Define to match.
4074         * config/cris/cris.md: Replace all use of constraint K with Kc.
4075         ("*btst*): Use Kp for operand 0 of last alternative.
4077 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4079         PR testsuite/36440
4080         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
4081         and quad formats.
4083 2008-07-13  Jan Hubicka  <jh@suse.cz>
4085         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
4086         to be mangled too.
4088 2008-07-13  Richard Guenther  <rguenther@suse.de>
4090         PR middle-end/36811
4091         * langhooks.c (lhd_print_error_function): Deal with recursive
4092         BLOCK trees.
4094 2008-07-12  Jan Hubicka  <jh@suse.cz>
4096         * cgraph.c (assembler_name_hash): New static var.
4097         (hash_node_by_assembler_name, eq_assembler_name): New.
4098         (cgraph_node_for_asm): Use hashtable.
4099         (cgraph_remove_node): Maintain hashtable.
4100         (change_decl_assembler_name): Sanity check that names are not changing
4101         after aliasing was processed.
4102         * cgraph.h (varpoon_node): Add next GGC marker.
4103         * tree.c (decl_assembler_name_equal): Constify.
4104         (decl_assembler_name_hash): New.
4105         * tree.h (decl_assembler_name_equal): Constify.
4106         (decl_assembler_name_hash): Update.
4108 2008-07-12  David Daney  <ddaney@avtrex.com>
4110         * config/mips/driver-native.c (host_detect_local_cpu): Handle
4111         sb1 and r5000 cpus.
4113 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
4115         * doc/md.texi: Document the MIPS "v" constraint.
4116         * config/mips/mips.h (reg_class): Revert last change.
4117         (REG_CLASS_NAMES): Likewise.
4118         (REG_CLASS_CONTENTS): Likewise.
4119         * config/mips/mips.c (mips_regno_to_class): Likewise.
4120         * config/mips/constraints.md (v): Likewise, but add documentation.
4121         Add a comment to say that this constraint should not be used in
4122         gcc code.
4124 2008-07-11  DJ Delorie  <dj@redhat.com>
4126         * config/h8300/h8300.md (length): Fix branch offset limit.
4128 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
4130         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
4131         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
4132         (avr_hard_regno_scratch_ok): New function.
4133         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
4134         * config/avr/avr.md (all peepholes that request a scratch register):
4135         Remove avr_peep2_scratch_safe use.
4137 2008-07-11  Tom Tromey  <tromey@redhat.com>
4138             Ian Lance Taylor  <iant@google.com>
4140         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
4141         (struct c_common_resword): Define.
4142         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
4143         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
4144         (c_common_reswords, num_c_common_reswords): Declare.
4145         * c-common.c (c_common_reswords): New global const array.
4146         (num_c_common_reswords): New const int.
4147         * c-parser.c (struct resword, reswords): Don't define.
4148         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
4149         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
4150         than reswords.  If warning about C++ keywords, give them a special
4151         RID code.
4152         (c_lex_one_token): Warn about C++ keywords.  Call
4153         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
4154         (c_parser_external_declaration): Look for RID_xxx rather than
4155         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
4156         (c_parser_statement_after_labels): Likewise.
4157         (c_parser_objc_class_instance_variables): Likewise.
4158         (c_parser_objc_class_declaration): Likewise.
4159         (c_parser_objc_try_catch_statement): Likewise.
4160         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
4161         (declspecs_add_type): Likewise.
4163 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
4165         * ggc-page.c (alloc_page):
4166         Substituting xmalloc, xcalloc with
4167         XNEWVEC and XCNEWVAR macros which add the
4168         needed casts.
4170 2008-07-11  Richard Guenther  <rguenther@suse.de>
4172         PR tree-optimization/36765
4173         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
4174         aliases from HEAP vars to SMTs.
4176 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4178         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
4179         * configure.ac (loose_warn): Move -Wc++-compat from here...
4180         (strict_warn): ...to here.
4181         * configure: Regenerate.
4183 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
4185         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
4186         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
4187         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
4188         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
4189         excluding more specific h8300-*-* and sh-*-* targets.
4191 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
4193         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
4194         (eliminate): Ditto.
4195         (execute_pre): Call loop_optimizer_finalize in early exit.
4197 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
4199         PR middle-end/36790
4200         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
4201         uids in the bitmap, not just VAR_DECL uids.
4203         PR rtl-optimization/36419
4204         * combine-stack-adj.c (adjust_frame_related_expr): New function.
4205         (combine_stack_adjustments_for_block): Call it if needed.  Delete
4206         correct insn.
4207         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
4208         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
4209         prologue sp adjustment.
4211 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
4213         PR other/28322
4214         * opts.c (print_ignored_options): Report postponed diagnostics for
4215         unknown -Wno-* options as warnings, not errors.
4216         (postpone_unknown_option_error): Renamed to...
4217         (postpone_unknown_option_warning): ... this.
4219 2008-07-09  Doug Kwan  <dougkwan@google.com>
4221         Revert:
4222         2008-07-08  Doug Kwan  <dougkwan@google.com>
4224         * config/arm/arm.opt (mandroid): New option.
4225         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
4226         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
4227         (CC1_SPEC): Same.
4228         (CC1PLUS_SPEC): Same.
4229         (LIB_SPEC): Same.
4230         (STARTFILE_SPEC): Same.
4231         (ENDFILE_SPEC): Same.
4232         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
4233         used.
4235 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
4237         PR target/35802
4238         * config/mips/mips.h (reg_class): Remove V1_REG.
4239         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
4240         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
4241         instead of V1_REGS.
4242         (mips_get_tp): New function.
4243         (mips_legitimize_tls_address): Use it.
4244         * config/mips/constraints.md (v): Delete.
4245         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
4246         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
4247         After reload, split into a move and ...
4248         (*tls_get_tp_<mode>_split): ...this new instruction.
4250 2008-07-09  David Daney  <ddaney@avtrex.com>
4252         * config/mips/driver-native.c: Include coretypes.h and tm.h.
4254 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
4256         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
4257         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
4258         Add c argument.
4259         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
4260         htab_delete should be called.  Don't free c.
4261         (lookup_tmp_var): Create temp_htab lazily.
4262         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
4263         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
4264         callers.
4265         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
4266         lower_omp_ordered, lower_omp_critical, lower_omp_for,
4267         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
4268         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
4269         * tree-sra.c (generate_element_init): Likewise.
4270         * tree-mudflap.c (execute_mudflap_function_ops,
4271         execute_mudflap_function_decls): Likewise.
4272         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
4273         * tree-gimple.h (struct gimplify_ctx): New type.
4274         (push_gimplify_context): Adjust prototype.
4276 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
4278         * tree-ssa-pre.c (phi_translate_1): Update placement of
4279         add_to_value calls.
4281 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
4283         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
4284         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
4285         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
4286         * targhooks.c (default_hard_regno_scratch_ok): New function.
4287         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
4288         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
4289         * recog.c:  Include "target.h".
4290         (peep2_find_free_register): Add check for global regs. Add target
4291         specific check.
4292         * Makefile.in (recog.o): Depend on target.h.
4294 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
4296         * config/sh/sh.c (sh_canonical_va_list_type): New.
4297         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
4299 2008-07-09  Raksit Ashok <raksit@google.com>
4301         * doc/invoke.texi (Option Summary): Mention new option
4302         -Wdisallowed-function-list=...
4303         (Warning Options): Document -Wdisallowed-function-list=...
4304         * common.opt (Wdisallowed-function-list=): New flag.
4305         * flags.h (warn_disallowed_functions): External definition of new
4306         boolean warning flag.
4307         (warn_if_disallowed_function_p): Declare new function.
4308         * opts.c (warning_disallowed_functions): New static variable.
4309         (warn_disallowed_functions): New boolean warning flag.
4310         (warn_if_disallowed_function_p): New function.
4311         (add_comma_separated_to_vector): Rename
4312         add_instrument_functions_exclude_list to this.
4313         (common_handle_option): Handle new option. Rename calls to
4314         add_instrument_functions_exclude_list into calls to
4315         add_comma_separated_to_vector.
4316         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
4317         based on flag warn_disallowed_functions.
4319 2008-07-09  Christian Bruel  <christian.bruel@st.com>
4321         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
4322          instead of get_attr_length.
4324 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4326         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
4327         keywords.
4328         * genemit.c (gen_insn): Likewise.
4329         * gengtype.c (note_def_vec): Likewise.
4330         * gengtype.h (note_def_vec): Likewise.
4331         * genoutput.c (struct data, output_insn_data, process_template,
4332         gen_expand, gen_split, note_constraint): Likewise.
4333         * genrecog.c (new_decision, add_to_sequence, factor_tests,
4334         make_insn_sequence): Likewise.
4335         * gensupport.c (record_insn_name): Likewise.
4337 2008-07-08  Doug Kwan  <dougkwan@google.com>
4339         * config/arm/arm.opt (mandroid): New option.
4340         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
4341         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
4342         (CC1_SPEC): Same.
4343         (CC1PLUS_SPEC): Same.
4344         (LIB_SPEC): Same.
4345         (STARTFILE_SPEC): Same.
4346         (ENDFILE_SPEC): Same.
4347         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
4348         used.
4350 2008-07-08  Raksit Ashok  <raksit@google.com>
4352         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
4353         (set_storage_via_setmem): Fix expected_align parameter.
4354         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
4355         missing from the list.
4356         * doc/md.texi (movmem): Explicitly state that expected alignment is
4357         to be expressed in bytes.
4358         (setmem): Explicitly state that expected alignment is to be expressed
4359         in bytes.
4361 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
4363         * reload.c (find_reloads_subreg_address): Do not require validity
4364         of address in original mode before reloading address.
4366 2008-07-07  Tianwei Sheng  <tianweis@google.com>
4368         * df-core.c (df_remove_problem): Adjust the access to avoid out of
4369         bounds array access.
4371 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
4373         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
4375 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
4377         Fix PR tree-optimization/23455
4378         Fix PR tree-optimization/35286
4379         Fix PR tree-optimization/35287
4380         * Makefile.in (OBJS-common): Remove tree-vn.o.
4381         (tree-vn.o): Remove.
4382         * dbgcnt.def: Add treepre_insert debug counter.
4383         * gcc/tree-flow.h (add_to_value): Updated for other changes.
4384         (debug_value_expressions): Ditto.
4385         (print_value_expressions): Ditto.
4386         * tree-pretty-print.c (dump_generic_node): Updated for
4387         VALUE_HANDLE removal.
4388         * tree-ssa-dom.c (record_equality): Ditto.
4389         (cprop_operand): Ditto.
4390         (lookup_avail_expr): Ditto.
4391         * tree-ssa-threadedge.c
4392         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
4393         (simplify_control_stmt_condition): Ditto.
4394         * tree.c (tree_code_size): Ditto.
4395         (tree_node_structure): Ditto.
4396         (iterative_hash_expr): Ditto.
4397         * tree.def: Ditto.
4398         * tree.h (VALUE_HANDLE_ID): Ditto.
4399         (VALUE_HANDLE_EXPR_SET): Ditto.
4400         (struct tree_value_handle): Ditto.
4401         (union tree_node): Ditto.
4402         * treestruct.def: Ditto.
4403         * tree-vn.c: Removed.
4404         * tree-ssa-pre.c: Rewritten entirely.
4405         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
4406         (constant_value_ids): Ditto.
4407         (vn_nary_op_t): Moved to header.
4408         (vn_phi_t): Ditto.
4409         (vn_reference_op_t): Ditto
4410         (vn_reference_t): Ditto.
4411         (next_value_id): New variable.
4412         (VN_INFO): Add an assert.
4413         (vn_constant_eq): New function.
4414         (vn_constant_hash): Ditto.
4415         (get_or_alloc_constant_value_id): Ditto.
4416         (value_id_constant_p): Ditto.
4417         (vn_reference_compute_hash): De-staticify.
4418         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
4419         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
4420         (valueize_refs): Update opcode if it changes from ssa name to constant.
4421         (vn_reference_lookup_1): Add new argument.
4422         (vn_reference_lookup):  Ditto.
4423         (vn_reference_lookup_pieces): New function.
4424         (vn_reference_insert): Add return type. Modify to deal with value ids.
4425         (vn_reference_insert_pieces):  New function.
4426         (vn_nary_op_compute_hash): De-staticify.
4427         (vn_nary_op_eq): Ditto.
4428         (vn_nary_op_lookup_pieces): New function.
4429         (vn_nary_op_lookup): Add new argument.
4430         (vn_nary_op_insert_pieces): New function.
4431         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
4432         (vn_phi_insert): Ditto.
4433         (visit_unary_op): Update for callee changes.
4434         (visit_binary_op): Ditto.
4435         (visit_reference_op_load): Ditto.
4436         (visit_reference_op_store): Ditto.
4437         (init_scc_vn): Init next_value_id, constant_to_value_id and
4438         constant_value_ids.
4439         (free_scc_vn): Free them.
4440         (set_hashtable_value_ids): New function.
4441         (run_scc_vn): Use it.
4442         (get_max_value_id): New function.
4443         (get_next_value_id): Ditto.
4444         (expressions_equal_p): Moved from tree-vn.c
4445         (sort_vuses): Ditto.
4446         (sort_vuses_heap): Ditto.
4447         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
4448         above).
4449         * tree.c (iterative_hash_hashval_t): Made non-static
4450         * tree.h (iterative_hash_hashval_t): Declare it.
4452 2008-07-08  Martin Jambor  <mjambor@suse.cz>
4454         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
4455         instead of ipa_create_node_params.
4456         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
4457         ipa_check_create_edge_args, free them with
4458         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
4460         * ipa-prop.c: Include flags.h and tree-inline.h.
4461         (ipa_node_params_vector): New variable.
4462         (ipa_edge_args_vector): New variable.
4463         (edge_removal_hook_holder): New variable.
4464         (node_removal_hook_holder): New variable.
4465         (edge_duplication_hook_holder): New variable.
4466         (node_duplication_hook_holder): New variable.
4467         (ipa_detect_param_modifications): Check for presence of modified flags.
4468         (ipa_compute_jump_functions): Check for presence of jump functions.
4469         (ipa_free_edge_args_substructures): New function.
4470         (ipa_create_node_params): Removed.
4471         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
4472         (ipa_free_node_params_substructures): New function.
4473         (ipa_free_all_node_params): Changed to deallocate the on-the-side
4474         vector.
4475         (ipa_edge_removal_hook): New function.
4476         (ipa_node_removal_hook): New function.
4477         (duplicate_array): New function.
4478         (ipa_edge_duplication_hook): New function.
4479         (ipa_node_duplication_hook): New function.
4480         (ipa_register_cgraph_hooks): New function.
4481         (ipa_unregister_cgraph_hooks): New function.
4482         (free_all_ipa_structures_after_ipa_cp): New function.
4484         * ipa-prop.h: Include vec.h.
4485         (ipa_node_params_t): New typedef with vector types for it.
4486         (ipa_edge_args_t):  New typedef with vector types for it.
4487         (IPA_NODE_REF): Changed to access an on-the-side vector.
4488         (IPA_EDGE_REF): Changed to access an on-the-side vector.
4489         (ipa_check_create_node_params): New function.
4490         (ipa_check_create_edge_args): New function.
4492         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
4493         all users.
4495 2008-07-07  Tom Tromey  <tromey@redhat.com>
4497         * configure, config.in: Rebuilt.
4498         * configure.ac: Don't check for scandir or alphasort.
4500 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
4502         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
4503         types immediately after creating them.
4505 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
4507         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
4509 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
4511         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
4512         dump_constraint_graph.
4513         (dump_constraint_edge): New function.
4514         (dump_constraint_graph): New function.
4515         (debug_constraint_graph): New function.
4516         (dump_constraint): Removed useless comparison.
4517         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
4518         (dump_constraint_graph): Declare.
4519         (debug_constraint_graph): Declare.
4520         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
4522 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
4524         * config/i386/i386.c (is_va_list_char_pointer): New.
4525         (ix86_va_start): Replace compare with ms_va_list_type_node
4526         by is_va_list_char_pointer.
4527         (ix86_gimplify_va_arg): Likewise.
4529 2008-07-07  Martin Jambor  <mjambor@suse.cz>
4531         * cgraph.c (cgraph_edge_max_uid): New variable.
4532         (struct cgraph_edge_hook_list): New type.
4533         (struct cgraph_node_hook_list): New type.
4534         (struct cgraph_2edge_hook_list): New type.
4535         (struct cgraph_2node_hook_list): New type.
4536         (first_cgraph_edge_removal_hook): New variable.
4537         (first_cgraph_node_removal_hook): New variable.
4538         (first_cgraph_edge_duplicated_hook): New variable.
4539         (first_cgraph_node_duplicated_hook): New variable.
4540         (cgraph_add_edge_removal_hook): New function.
4541         (cgraph_remove_edge_removal_hook): New function.
4542         (cgraph_call_edge_removal_hooks):  New function.
4543         (cgraph_add_node_removal_hook):  New function.
4544         (cgraph_remove_node_removal_hook):  New function.
4545         (cgraph_call_node_removal_hooks):  New function.
4546         (cgraph_add_edge_duplication_hook):  New function.
4547         (cgraph_remove_edge_duplication_hook):  New function.
4548         (cgraph_call_edge_duplication_hooks):  New function.
4549         (cgraph_add_node_duplication_hook):  New function.
4550         (cgraph_remove_node_duplication_hook):  New function.
4551         (cgraph_call_node_duplication_hooks):  New function.
4552         (cgraph_create_edge): Assign to edge uid.
4553         (cgraph_remove_edge): Call edge removal hooks.
4554         (cgraph_node_remove_callees): Call edge removal hooks.
4555         (cgraph_node_remove_callers): Call edge removal hooks.
4556         (cgraph_remove_node): Call node removal hooks.
4557         (cgraph_clone_edge): Call edge duplication hooks.
4558         (cgraph_clone_node): Call node duplication hooks.
4560         * cgraph.h (cgraph_edge): New field uid.
4561         (cgraph_edge_hook): New type.
4562         (cgraph_node_hook): New type.
4563         (cgraph_2edge_hook): New type.
4564         (cgraph_2node_hook): New type.
4566 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
4568         * config.in: Regenerate.
4570 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
4572         * gcc.c (print_sysroot): New.
4573         (option_map, display_help, process_command): Handle the
4574         -print-sysroot option.
4575         (main): Print the sysroot if requested.
4576         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
4578 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4580         PR target/34780
4581         * unwind-pe.h (size_of_encoded_value): add attribute unused.
4583 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
4585         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
4586         (assign_parm_setup_block_p): Also check mode of entry_parm.
4588 2008-07-07  Richard Guenther  <rguenther@suse.de>
4590         * tree-ssa-structalias.h (set_used_smts): Remove.
4591         * tree-ssa-structalias.c (used_smts): Likewise.
4592         (set_used_smts): Likewise.
4593         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
4594         call to set_used_smts.
4596 2008-07-07  Richard Guenther  <rguenther@suse.de>
4598         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
4599         (new_var_info): Set it to false.
4600         (solution_set_add): Correctly handle pointers outside a var and
4601         inside a field.
4602         (type_safe): Treat variables with is_full_var properly.
4603         (do_sd_constraint): Likewise.
4604         (do_ds_constraint): Likewise.
4605         (process_constraint): Remove zeroing offset for !use_field_sensitive.
4606         (get_constraint_for_ptr_offset): New function.
4607         (get_constraint_for_component_ref): For addresses at least include
4608         the last field of the variable.  Handle is_full_vars properly.
4609         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
4610         (handle_ptr_arith): Remove.
4611         (find_func_aliases): Simplify assignment handling.
4612         (create_function_info_for): For parameter and result varinfos set
4613         is_full_var flag.
4614         (create_variable_info_for): Set is_full_var flag whenever we
4615         just created a single varinfo for a decl.
4616         (init_alias_vars): Initialize use_field_sensitive from
4617         max-fields-for-field-sensitive parameter.
4619 2008-07-07  Richard Guenther  <rguenther@suse.de>
4621         PR tree-optimization/36713
4622         * tree-flow-inline.h (is_call_used): New function.
4623         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
4624         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
4625         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
4627 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
4629         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
4631 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
4633         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
4635 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
4636             Nathan Sidwell  <nathan@codesourcery.com>
4638         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
4639         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
4640         tmake_file.
4641         * config/m68k/t-linux: New.
4642         * doc/install.texi: Document m68k-*-linux is now multilibbed by
4643         default.
4645 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
4647         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
4648         * config/m68k/m68k-devices.def: Remove multilibs that only differ
4649         by MAC/EMAC.
4651 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4653         * gcc.c (execute): Fix -Wc++-compat warning.
4655 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
4657         PR target/36720
4658         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
4659         constant for little endian.
4661 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
4663         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
4664         mips_base_mips16 instead of TARGET_MIPS16.
4665         (mips_base_mips16): Declare.
4666         * config/mips/mips.c (mips_base_mips16): Make global.
4667         (was_mips16_p): Remove GTY marker.
4668         (was_mips16_pch_p): New variable.
4669         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
4670         (mips_override_options): Force to non-MIPS16 mode initially.
4671         Do not complain about MIPS16 PIC incompatibilities here.
4672         Only allow -mgpopt if -mexplicit-relocs is in force for
4673         non-MIPS16 code.
4675 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
4677         * configure.ac: Check for caddr_t, define to char * if not defined.
4678         * configure: Regenerate.
4679         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
4680         (mmap_gt_pch_use_address): Likewise.
4681         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
4683 2008-07-06  Richard Guenther  <rguenther@suse.de>
4685         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
4686         (new_var_info): Deal with it.
4687         (solution_set_add): Likewise.
4688         (bitpos_of_field): Make signed, fix.
4689         (struct fieldoff): Remove type and decl fields.  Make size field
4690         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
4691         flags.
4692         (fieldoff_compare): Deal with it.
4693         (push_fields_onto_fieldstack): Remove has_union argument, glob
4694         adjacent non-pointer fields together.
4695         (create_function_info_for): Do not set has_union.
4696         (create_variable_info_for): Simplify.
4698 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
4700         * config.gcc (extra_headers): Add cross-stdarg.h for target
4701         x86_64-*-* and i?86-*-*.
4702         * config/i386/cross-stdarg.h: New.
4703         * builtins.c (std_fn_abi_va_list): New.
4704         (std_canonical_va_list_type): New.
4705         (stabilize_va_list): Replace va_list_type_node use by
4706         mtarget.canonical_va_list_type.
4707         (gimplify_va_arg_expr): Likewise.
4708         (expand_builtin_va_copy): Replace va_list_type_node use by
4709         mtarget.fn_abi_va_list.
4710         * tree-sra.c (is_va_list_type): New helper.
4711         (decl_can_be_decomposed_p): Replace
4712         va_list_type_node use by is_va_list_type.
4713         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
4714         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4715         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
4716         * config/i386/i386-protos.h (ix86_get_valist_type): New.
4717         (ix86_enum_va_list): New.
4718         * config/i386/i386.c (sysv_va_list_type_node): New.
4719         (ms_va_list_type_node): New.
4720         (ix86_function_type_abi): Remove sorry.
4721         (ix86_build_builtin_va_list_abi): New.
4722         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
4723         for 64-bit targets.
4724         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
4725         (ix86_init_builtins_va_builtins_abi): New.
4726         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
4727         for 64-bit targets.
4728         (ix86_handle_abi_attribute): New.
4729         (attribute_spec): Add sysv_abi and ms_abi.
4730         (ix86_fn_abi_va_list): New.
4731         (ix86_canonical_va_list_type): New.
4732         (ix86_enum_va_list): New.
4733         (TARGET_FN_ABI_VA_LIST): New.
4734         (TARGET_CANONICAL_VA_LIST_TYPE): New.
4735         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
4736         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
4737         (TARGET_CANONICAL_VA_LIST_TYPE): New.
4738         (TARGET_ENUM_VA_LIST): New.
4739         * expr.h (std_fn_abi_va_list): New.
4740         (std_canonical_va_list_type): New.
4741         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
4742         (TARGET_CANONICAL_VA_LIST_TYPE): New.
4743         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
4744         TARGET_CANONICAL_VA_LIST_TYPE.
4745         * target.h (struct gcc_target): Add fn_abi_va_list hook
4746         and canonical_va_list_type hook.
4748 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4750         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
4751         integral and pointer types.
4753 2008-07-04  Roger Sayle  <roger@eyesopen.com>
4755         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
4756         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
4758 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
4760         PR target/36684
4761         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
4763 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
4765         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
4766         build_gimple_modify_stmt.
4767         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
4768         gimple operand.  Use fold_build* instead of build*.
4770 2008-07-04  Richard Guenther  <rguenther@suse.de>
4772         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
4773         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
4774         properly to compute the reachability set if we do field-sensitive PTA.
4775         * invoke.texi (max-fields-for-field-sensitive): Document default.
4776         * opts.c (decode_options): Set max-fields-for-field-sensitive to
4777         100 for optimize >= 2.
4779 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4781         * ggc-zone.c (lookup_page_table_if_allocated,
4782         set_page_table_entry, zone_find_object_size, alloc_small_page,
4783         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
4784         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
4785         -Wc++-compat and/or -Wcast-qual warnings.
4787 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
4789         PR target/36634
4790         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
4791         pic_offset_table_rtx to be marked as used here.
4792         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
4793         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
4794         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
4795         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
4796         !TARGET_SECURE_PLT.
4798 2008-07-15  Vladimir Makarov  <vmakarov@redhat.com>
4800         * caller-save.c (calculate_local_save_info): Clear save_in,
4801         restore_out, free_in.
4803 2008-07-14  Vladimir Makarov  <vmakarov@redhat.com>
4805         * reload.h (struct insn): Add comment for live_throughout.
4807         * global.c (pseudo_for_reload_consideration_p): New function.
4808         (build_insn_chain): Use it.
4810 2008-07-14  Vladimir Makarov  <vmakarov@redhat.com>
4812         * ira-conflicts.c (propagate_modified_regnos): Move to
4813         ira-build.c.
4814         (ira_build_conflicts): Don't call propagate_modified_regnos.
4816         * ira-int.h (ira_allocno): Remove calls_crossed_start.
4817         (ALLOCNO_CALLS_CROSSED_START, ira_regno_calls,
4818         ira_add_regno_call): Remove.
4819         (ira_allocate_and_accumulate_costs): New function.
4821         * ira-lives.c (process_bb_node_lives): Don't call
4822         ira_add_regno_call.  Do't use ALLOCNO_CALLS_CROSSED_START.
4824         * ira-build.c (more_one_region_p): New function.
4825         (ira_regno_calls, regno_calls_num, initiate_calls, expand_calls,
4826         compress_calls, ira_add_regno_call, finish_calls): Remove.
4827         (ira_create_allocno, propagate_info_to_cap): Don't set up
4828         ALLOCNO_CALLS_CROSSED_START.
4829         (propagate_modified_regnos): Move from ira-conflicts.c.
4830         (create_allocnos): Call propagate_modified_regnos.
4831         (merge_ranges, change_allocno_in_range_list): Move before
4832         low_pressure_loop_node_p.
4833         (low_pressure_loop_node_p, loop_node_to_be_removed_p,
4834         removed_loop_vec, children_vec,
4835         remove_uneccesary_loop_nodes_from_loop_tree,
4836         remove_unnecessary_allocnos, remove_unnecessary_regions): New.
4837         (ira_flattening): Don't process allocno calls.
4838         (ira_build): Don't call initiate_calls and finish_calls.  Call
4839         remove_unnecessary_regions.  Use more_one_region_p.
4841         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Split
4842         SPEC_OR_GEN_REGS onto GENERAL_REGS and SPECIAL_REGS.
4843         
4844 2008-07-08  Vladimir Makarov  <vmakarov@redhat.com>
4846         * ira-build.c (ira_flattening): Rename
4847         new_allocnos_p to new_pseudos_p.  Remove renamed_p.  Use
4848         new_pseudos_p instead of renamed_p.
4850         * ira-lives.c (max_point): Fix a typo in the comment.
4852         * ira-int.h (max_point): Ditto.
4854 2008-07-07  Vladimir Makarov  <vmakarov@redhat.com>
4856         * ira-color.c, ira-conflics.c, ira-lives.c, ira-emit.c,
4857         ira-build.c (IRA_ALLOCNO_TOTAL_CONFLICT_HARD_REGS,
4858         IRA_ALLOCNO_TOTAL_NO_STACK_REG_P): Rename to
4859         IRA_ALLOCNO_TOTAL_CONFLICT_HARD_REGS,
4860         IRA_ALLOCNO_TOTAL_NO_STACK_REG_P.
4862         * ira-int.h: Ditto.  Fix comment for max_point.
4864         * reload1.c (reload): Add comment for ira_sort_insn_chain.
4865         
4866 2008-07-07  Vladimir Makarov  <vmakarov@redhat.com>
4867         PR target/36663
4869         * caller-saves.c (free_con_fun_n): Use liveness info.
4871 2008-07-07  Vladimir Makarov  <vmakarov@redhat.com>
4872         PR target/36673
4874         * caller-saves.c (restore_con_fun_n, save_con_fun_n): Clear the
4875         result if mode or pseudo is different.
4877 2008-07-07  Vladimir Makarov  <vmakarov@redhat.com>
4878         PR target/36672
4879         
4880         * ira.c (chain_insn_order): New variable.
4881         (chain_freq_compare, chain_bb_compare): Use it.
4882         (ira_sort_insn_chain): Set it up.
4884 2008-07-03  Vladimir Makarov  <vmakarov@redhat.com>
4886         * doc/invoke.texi (-fira-ipra): Remove.
4887         
4888         * regrename.c (copyprop_hardreg_forward_1): Remove
4889         get_call_invalidated_used_regs.
4891         * postreload-gcse.c (record_opr_changes): Ditto.
4893         * postreload.c (reload_combine, reload_cse_move2add): Ditto.
4895         * rtlanal.c (reg_set_between_p): Ditto.
4897         * gcse.c (compute_hash_table_work, compute_store_table): Ditto.
4899         * cselib.c (cselib_process_insn): Ditto.
4901         * loop-iv.c (simplify_using_assignment): Ditto.
4902         
4903         * sched-deps.c (sched_analyze): Ditto.
4904         
4905         * combine.c (record_dead_and_set_regs): Ditto.
4907         * resource.c (mark_set_resources, mark_target_live_regs): Ditto.
4909         * var-tracking.c (compute_bb_dataflow, emit_notes_in_bb): Ditto.
4911         * reload1.c (reload): Ditto.
4912         
4913         * caller-save.c (setup_save_areas, calculate_local_save_info,
4914         save_call_clobbered_regs): Ditto.
4916         * cse.c (invalidate_for_call): Remove parameter.  Remove
4917         get_call_invalidated_used_regs.
4918         (cse_insn): Don't pass insn to invalidate_for_call.
4920         * ira-lives.c (process_bb_node_lives): Remove updating
4921         call_used_regs.
4922         
4923         * function.c (cgraph.h): Remove #include.
4924         (get_call, get_call_invalidated_used_regs): Remove.
4925         
4926         * final.c (update_regs_ever_live): Remove.
4927         (rest_of_handle_final): Remove updating call_used_regs.
4929         * toplev.h (flag_ira_ipra): Remove.
4930         
4931         * common.opt (fira-ipra): Remove.
4933         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Remove
4934         coder for IPRA.
4935         
4936         * ira-color.c (ira_collect_pseudo_call_clobbered_regs): Remove.
4938         * ira.h (ira_collect_pseudo_call_clobbered_regs): Ditto.
4939         
4940         * function.h (hard-reg-set.h): Remove.
4941         (struct emit_status): Remove call_used_regs.
4942         (get_call_invalidated_used_regs): Remove.
4943         
4944         * Makefile.in (FUNCTION_H): Remove hard-reg-set.h.
4946         * gengtype.c (main): Remove HARD_REG_SET.
4948         * cgraph.c (cgraph_create_node): Remove setting
4949         function_used_regs.
4951         * cgraph.h (struct cgraph_node): Remove function_used_regs.
4953         * ira-build.c (ira_build): Remove resetting call_used_regs.
4954         
4955 2008-07-03  Vladimir Makarov  <vmakarov@redhat.com>
4957         * ira.h, ira-int.h, ira-conflicts.c, ira-color.c, ira-lives.c,
4958         ira-emit.c, ira-build.c, ira.c, ira-costs.c: Add prefix ira_ to
4959         external variables, functions, common types, and macros.
4961         * toplev.c (init_ira_once, init_ira, finish_ira_once): Rename to
4962         ira_init_once, ira_init, ira_finish_once.
4964         * caller-save.c: Add prefix ira_ to
4965         collect_pseudo_call_clobbered_regs.
4967         * reload1.c: Add prefix ira_ to sort_insn_chain,
4968         mark_memory_move_deletion, better_spill_reload_regno_p,
4969         reuse_stack_slot, mark_new_stack_slot, mark_allocation_change,
4970         reassign_pseudos, mark_allocation_change.
4972 2008-07-03  Vladimir Makarov  <vmakarov@redhat.com>
4974         * ira-color.c (reassign_conflict_allocnos): Check nrefs first.
4976         * ira.c (ira.c): Exclude unprofitable allocno from reassigning.
4978         * reload1.c (find_reg): Move dump file check from
4979         EXECUTE_IF_SET_IN_REG_SET.
4981 2008-06-26  Vladimir Makarov  <vmakarov@redhat.com>
4983         * caller-save.c (make_global_save_analysis): Add entry and exit
4984         blocks to all_blocks.
4985         (save_call_clobbered_regs): Initialize bb_info for entry/exit
4986         blocks.
4987         
4988 2008-06-26  Kenneth Zadeck <zadeck@naturalbridge.com>
4990         * ira-conflicts.c ira-color.c ira-lives.c ira-emit.c ira-build.c
4991         ira.c ira-costs.c : Fix comments.
4993 2008-06-11  Vladimir Makarov  <vmakarov@redhat.com>
4995         * caller-save.c (restore_con_fun_n, save_con_fun_n): Use loop
4996         mentioned_regs instead of clearing all result.
4998 2008-06-11  Vladimir Makarov  <vmakarov@redhat.com>
5000         * doc/tm.texi (IRA_HARD_REGNO_ADD_COST_MULTIPLIER,
5001         IRA_COVER_CLASSES): Fix macro descriptions.
5002         
5003         * doc/invoke.texi (fira): Fix the description.
5004         
5005         * flags.h (ira_algorithm): Fix formatting.
5006         
5007         * ira-conflicts.c: Remove all forward prototypes of static
5008         functions.  Use type bool and true and false for boolean values.
5009         Change father to parent.
5010         (get_dup_num): Remove equiv_const.  More comments.
5011         (process_regs_for_copy, process_reg_shuffles): New functions.
5012         (add_insn_allocno_copies): Use them.
5014         * ira-int.h: Use type bool and true and false for boolean values.
5015         Change father to parent.
5017         * ira-color.c: Remove all forward prototypes of static
5018         functions.  Use type bool and true and false for boolean values.
5019         Change father to parent.
5021         * ira-lives.c: Remove all forward prototypes of static
5022         functions.  Use type bool and true and false for boolean values.
5023         Change father to parent.
5025         * ira-emit.c: Ditto.
5027         * ira.c: Ditto.
5029         * ira-costs.c: Remove all forward prototypes of static
5030         functions.  Use type bool and true and false for boolean values.
5031         Change father to parent.
5034         * ira-build.c: Remove all forward prototypes of static functions
5035         except for find_allocno_copy.  Use type bool and true and false
5036         for boolean values.  Change father to parent.
5038         * ira.h: Use type bool for boolean values.
5040         * reload1.c (reload): Pass false instead of FALSE.
5041         
5042 2008-06-10  Vladimir Makarov  <vmakarov@redhat.com>
5043         PR target/36450
5044         * caller-save.c (insert_restore, insert_save):  Don't require
5045         alignment more than PREFERRED_STACK_BOUNDARY in asserts.
5047 2008-06-10  Vladimir Makarov  <vmakarov@redhat.com>
5049         * ira-int.h (allocno_copy):  Change comments.
5050         
5051         * ira-conflicts.c (build_conflict_bit_table): Use cast in printf
5052         for %ld.
5054 2008-06-10  Vladimir Makarov  <vmakarov@redhat.com>
5056         * common.opt (fira-move-spills): Remove.
5058         * caller-save.c: Add more comments.
5059         (save_call_clobbered_regs): Remove flag_ira_move_spills.
5061         * doc/invoke.texi (-fno-ira-move-spills): Remove.
5063 2008-06-06  Vladimir Makarov  <vmakarov@redhat.com>
5065         * ira-build.c (ira_flattening): Check first info propagation.
5067         * config/alpha/alpha.h (IRA_COVER_CLASSES): New.
5069 2008-06-03  Vladimir Makarov  <vmakarov@redhat.com>
5071         * caller-saves.c (mark_referenced_regs): Add new parameter.
5072         Process increments/decrements.
5073         (set_regs): Rename to modified_regs.
5074         (calculate_local_save_info, save_call_clobbered_regs): Pass the
5075         new parameter value to mark_referenced_regs.
5077         * ira-costs.c (find_allocno_class_costs): Always use important
5078         classes.
5080         * reload1.c (reload): Clear changed_allocation_pseudos at the end
5081         of reload.
5082         
5083 2008-06-03  Steve Chamberlain <steve.chamberlain@gmail.com>
5085         * ira-build.c (allocno_range_compare_func): Stabilize sort.
5087 2008-05-30  Vladimir Makarov  <vmakarov@redhat.com>
5088         Merge 132243:136204 from trunk
5089         * ira.c (setup_eliminable_regset): Use cfun.
5090         (ira): Set up DF_VERIFY_SCHEDULED.
5091         
5092         * ira-lives.c (process_bb_node_lives): Use cfun.
5093         
5094         * ira_build (ira_build): Use crtl.
5095         
5096         * local-alloc.c (update_equiv_regs): Rescan equivalent insn.
5098         * final (rest_of_handle_final): Use crtl.
5099         
5100         * caller-save.c (save_call_clobbered_regs): Initialize save.
5102 2008-05-29  Andy Hutchinson   <hutchinsonandy@aim.com>
5104         * config/avr/avr.h (IRA_COVER_CLASSES): New macro
5106         * reload1.c (find_reg): Process registers in register allocation
5107         order.
5109 2008-05-29  Vladimir Makarov  <vmakarov@redhat.com>
5111         * Makefile.in (caller-save.o): Add CFGLOOP_H.
5113         * ira.c (ira): Call flow_loops_find after the allocation before
5114         the reload.
5116         * global.c (print_insn_chain): Print bitmap saved.
5118         * reload.h (insn_chain): Add members saved and saved_pseudo_regno.
5120         * reload1.c (changed_allocation_pseudos): New bitmap.
5121         (init_reload): Initiate the bitmap.
5122         (new_insn_chain): Initiate bitmap saved.
5123         (order_regs_for_reload): Check bitmap saved.
5124         (find_reg): Check bitmap saved to find register.
5125         (delete_caller_save_insns): Print about removing caller-save insn.
5126         Invalidate reload register taken from saved registers.
5127         Recalculate used_spill_regs.
5128         (finish_spills): Check bitmap saved.  Set up
5129         changed_allocation_pseudos.  Remove sanity check.
5131         * caller-save.c (cfgloop.h): Add the header.
5132         (set_regs): New variable.
5133         (bb_info): Remove members empty_save_in_p, kill, gen.  Add members
5134         empty_save_out_p, empty_restore_in_p, save_kill, save_gen,
5135         restore_kill, restore_gen, free_gen, restore_in, restore_out,
5136         free_in, free_out, live_at_end, restore_here, restore_in_mode,
5137         restore_out_mode, save_in_pseudo, save_out_pseudo,
5138         restore_in_pseudo, restore_out_pseudo.
5139         (loop_info): New structure.
5140         (LOOP_INFO): New macro.
5141         (calculate_local_save_info): Add calculation of new bb_info
5142         members for local info.
5143         (restore_trans_fun, restore_con_fun_0, restore_con_fun_n,
5144         calculate_restore_in_out, calculate_restore_here, free_trans_fun,
5145         free_con_fun_0, free_con_fun_n, calculate_free_in_out): New
5146         functions.
5147         (make_global_save_analysis): Add calculation of new bb_info
5148         members for global info.
5149         (print_hard_reg_set_and_mode): Rename to
5150         print_annotated_hard_reg_set.  Print pseudo regnos too.
5151         (print_save_data): Add printing new bb_info members.
5152         (set_hard_reg_saved): New parameters from_saved_pseudo,
5153         save_pseudo.  Set them up.
5154         (save_call_clobbered_regs): Rewrite.
5155         (mark_referenced_regs): Set up set_regs.
5156         (insert_restore, insert_save): New parameter save_pseudo.  Use it
5157         for setting save_pseudo_regno and for debugging output.
5159         * ira-conflicts.c (build_conflict_bit_table): Check min/max.
5161         * ira-build.c (conflict_vector_profitable_p): Ditto.
5162         (clear_allocno_conflicts): Check that conflict allocno array size.
5163         
5164 2008-05-21  Vladimir Makarov  <vmakarov@redhat.com>
5166         * ira.c (setup_preferred_alternate_classes): Remove.
5167         (setup_preferred_alternate_classes_for_new_pseudos): New.
5168         (setup_preferred_alternate_classes): Set memory cost for NO_REGS
5169         to minimal one.
5170         (ira): Remove setup_preferred_alternate_classes.  Call
5171         setup_preferred_alternate_classes_for_new_pseudos.
5173         * ira-costs.c (record_reg_classes): Don't decrease frequency for
5174         allows_mem.
5175         (record_operand_costs): Use memcpy instead of memmove.
5176         (print_costs): Use regno instead of allocno number in
5177         invalid_mode_change_p.
5178         (find_allocno_class_costs): Set up preferred and alternative
5179         classes.
5180         
5181 2008-05-18  Vladimir Makarov  <vmakarov@redhat.com>
5182         PR tree-optimization/26854
5184         * timevar.def (TV_RELOAD): New timer.
5186         * ira.c (ira): Use TV_IRA and TV_RELOAD.
5187         (pass_ira): Remove TV_IRA.
5189         * Makefile.in (ira-color.o): Add SPLAY_TREE_H.
5191         * ira-conflicts.c (DEF_VEC_P, DEF_ALLOCC_P): Move to ira-int.h.
5193         * ira-int.h (DEF_VEC_P, DEF_ALLOCC_P): Move from ira-conflicts.c and
5194         ira-color.c.
5195         (struct allocno): New bitfield splay_removed_p.
5196         (ALLOCNO_MAY_BE_SPILLED_P): New macro.
5198         * ira-color.c (splay-tree.h): Add the header.
5199         (allocno_spill_priority_compare, splay_tree_allocate,
5200         splay_tree_free): New functions.
5201         (DEF_VEC_P, DEF_ALLOCC_P): Move to ira-int.h.
5202         (sorted_allocnos_for_spilling): Rename to allocnos_for_spilling.
5203         (splay_tree_node_pool, removed_splay_allocno_vec,
5204         uncolorable_allocnos_num, uncolorable_allocnos_splay_tree): New
5205         global variables.
5206         (add_allocno_to_bucket, add_allocno_to_ordered_bucket,
5207         delete_allocno_from_bucket): Update uncolorable_allocnos_num.
5208         (USE_SPLAY_P): New macro.
5209         (push_allocno_to_stack): Remove allocno from the splay tree.
5210         (push_allocnos_to_stack): Use the splay trees.
5211         (do_coloring): Create and finish splay_tree_node_pool.
5212         Move allocation/deallocation of allocnos_for_spilling to here...
5213         (initiate_ira_assign, finish_ira_assign): Move
5214         allocnos_for_spilling from here...
5215         (ira_color): Allocate/deallocate removed_splay_allocno_vec.
5217         * ira-build.c (DEF_VEC_P, DEF_ALLOCC_P): Move to ira-int.h.
5218         (create_allocno): Initiate ALLOCNO_SPLAY_REMOVED_P.
5219         
5220 2008-05-12  Vladimir Makarov  <vmakarov@redhat.com>
5222         * Makefile.in (ira-build.o): Add sparseset.h.
5223         
5224         * ira-build.c (sparseset.h): Add.
5225         (remove_wrong_conflicts, change_allocno_conflicts,
5226         check_and_add_conflicts, add_conflict_with_underlying_allocnos):
5227         Remove.
5228         (finish_loop_tree_node, clear_allocno_conflicts,
5229         change_allocno_in_range_list): New functions.
5230         (allocnos_bitmap): New variable.
5231         (finish_loop_tree_nodes): Use finish_loop_tree_node.
5232         (initiate_allocnos): Initiate allocno conflict id by its allocno
5233         number.
5234         (conflict_vector_profitable_p): Use allocno min/max attributes.
5235         (temp_change_bit_vec): Remove.
5236         (finish_allocno): Nullify the corresponding element in allocnos
5237         and conflict_id_allocno_map.
5238         (local_allocnos_bitmap): Remove.
5239         (create_loop_tree_node_caps): Use local_allocnos_bitmap instead of
5240         local_allocnos_bitmap.
5241         (regno_top_level_allocno_map): Move to ira_flattening.
5242         (ira_flattening): Rewriting conflict rebuilding.
5243         (ira_build): Allocate/free allocnos_bitmap.  Move
5244         create_allocno_live_ranges before creation of allocno caps.
5246         * ira-lives.c (propagate_new_allocno_info, propagate_new_info):
5247         New functions.
5248         (create_allocno_live_ranges): Call propagate_new_info.
5250         * ira-color.c (ira_fast_allocation): Collect allocnos for sorting.
5252         * ira-conflicts.c (propagate_allocno_info): Rename to
5253         propagate_allocno_copy_info.  Propagate only copies.
5254         (propagate_info): Rename to propagate_copy_info.
5256 2008-05-10  Richard Sandiford  <rsandifo@nildram.co.uk>
5258         * toplev.c (backend_init_target): Move init_ira call from here...
5259         (lang_dependent_init_target): ...to here.
5261 2008-05-10  Richard Sandiford  <rsandifo@nildram.co.uk>
5263         * ira.c (setup_class_subset_and_memory_move_costs): Don't calculate
5264         memory move costs for NO_REGS.
5266 2008-05-08  Vladimir Makarov  <vmakarov@redhat.com>
5268         * ira-int.h (loop_tree_node): New members subloops and
5269         subloop_next.
5270         
5271         * ira-conflicts.c (propagate_modified_regnos): Check that it is a
5272         loop node.
5273         (ira_build_conflicts): Use TRUE for traverse_loop_tree.
5274         
5275         * ira-color.c (color_pass): Check that it is a
5276         loop node.  Use subloops and subloop_next for traversing.
5277         (move_spill_restore): Ditto.
5278         (coalesced_pseudo_reg_freq_compare,
5279         coalesced_pseudo_reg_slot_compare, pseudo_reg_compare): Don't
5280         discard const.
5281         
5282         * ira-lives.c (create_allocno_live_ranges): Use TRUE for
5283         traverse_loop_tree.
5284         
5285         * ira-emit.c (ira_emit): Ditto.
5287         * ira-build.c (add_loop_to_tree): Set up subloops and
5288         subloop_next.
5289         (setup_loop_tree_level): Use subloops and subloop_next for
5290         traversing.
5291         (form_loop_tree): Initialize subloops and subloop_next.
5292         (traverse_loop_tree): Change 1st parameter semantics.  Rewrite the
5293         function.
5294         (create_loop_tree_node_caps): Check that it is a loop node.
5295         (check_and_add_conflicts): Check allocno loop nodes.
5296         (add_conflict_with_underlying_allocnos): Use subloops and
5297         subloop_next for traversing.
5298         
5299         * ira.c (chain_freq_compare, chain_bb_compare): Don't discard
5300         const.
5301         (ira): Call regstat functions second time only if new pseudos are
5302         created.
5304         * ira-costs.c (find_allocno_class_costs): Use TRUE for
5305         traverse_loop_tree.
5306         (setup_allocno_cover_class_and_costs): Ditto.
5308 2008-05-06  Vladimir Makarov  <vmakarov@redhat.com>
5310         PR rtl-optimization/36028
5311         * caller-save.c (setup_save_areas): Adjust reused stack slot.
5313 2008-05-05  Kaz Kojima  <kkojima@gcc.gnu.org>
5315         * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
5316         STACK_REGS is defined.
5318 2008-05-05  Vladimir Makarov  <vmakarov@redhat.com>
5320         * ira-color.c (allocno_assign_compare_func): Remove.
5321         (ira_fast_allocation): Rewrite.
5323 2008-05-02  Vladimir Makarov  <vmakarov@redhat.com>
5325         * ira-conflicts.c (print_conflicts): Exclude non-allocatable hard
5326         regs and hard regs from different cover classes.
5327         (ira_build_conflicts): Build conflicts only for optimization mode.
5329         * cfgloopanal.c (estimate_reg_pressure_cost): Decrease cost only
5330         for optimization mode.
5332         * caller-save.c (caller-save.c, calculate_local_save_info,
5333         save_call_clobbered_regs): Do save/restore placement optimization
5334         and sharing stack slots only for optimization mode.
5336         * ira-int.h (set_allocno_cover_class, ira_fast_allocation): New
5337         prototypes.
5339         * ira-color.c (assign_hard_reg): Clear conflicting_regs.
5340         (allocno_assign_compare_func, allocno_assign_compare_func): New
5341         functions.
5343         * global.c (build_insn_chain): Add spilled pseudos only in
5344         optimization mode.
5346         * ira-emit.c (modify_move_list): Use set_allocno_cover_class.
5348         * alias.c (nonoverlapping_memrefs_p): Check addresses only in
5349         optimization mode.
5351         * ira-build.c (create_allocno): Initialize
5352         ALLOCNO_CONFLICT_HARD_REGS and ALLOCNO_TOTAL_CONFLICT_HARD_REGS by
5353         non-allocatable hard reg set.
5354         (set_allocno_cover_class): New function.
5355         (create_cap_allocno): Use set_allocno_cover_class.
5356         (ira_build): Call create_loop_tree_node_caps,
5357         propagate_info_to_loop_tree_node_caps, and
5358         propagate_info_to_loop_tree_node_caps only in optimization mode.
5359         * ira.c (setup_reg_renumber): Add optimize to ira_assert.
5360         (ira): Call find_reg_equiv_invariant_const, ira_color,
5361         sort_insn_chain, and fix_reg_equiv_init only in optimization mode.
5362         Call ira_fast_allocation for -O0.  Use right argument for reload.
5364         * ira-costs.c (find_allocno_class_costs): Use important_classes
5365         only for optimization mode.
5366         (setup_allocno_cover_class_and_costs): Use
5367         set_allocno_cover_class.  Initialize cost vectors only in
5368         optimization mode.  Call process_bb_node_for_hard_reg_moves only
5369         in optimization mode.
5371         * reload1.c (compute_use_by_pseudos): Add optimize to ira_assert.
5372         (reload): Sort pseudo-registers only optimization mode.  Restore
5373         original order for insn chain only in optimization mode.
5374         (calculate_needs_all_insns): Call mark_memory_move_deletion only
5375         in optimization mode.
5376         (count_pseudo, count_spilled_pseudo): Check spilled pseudos only
5377         in optimization mode.
5378         (alter_reg): Share stack slots only in optimization mode.
5379         (finish_spills): Check spilled pseudos only in optimization mode.
5380         (emit_input_reload_insns, delete_output_reload): Call
5381         mark_allocation_change only in optimization mode.
5382         
5383 2008-05-01  Vladimir Makarov  <vmakarov@redhat.com>
5385         * ira-int.h (IRA_BB_NODE_BY_INDEX, IRA_LOOP_NODE_BY_INDEX): Use
5386         gcc_unreachable instead of exit.
5387         (struct allocno): New members min, max, and conflict_id.
5388         (ALLOCNO_MIN, ALLOCNO_MAX, ALLOCNO_CONFLICT_ID): New macros.
5389         (conflict_id_allocno_map):
5390         (SET_ALLOCNO_SET_BIT, CLEAR_ALLOCNO_SET_BIT,
5391         TEST_ALLOCNO_SET_BIT): Add two new parameters.  Add versions for
5392         checking.
5393         (allocno_set_iterator): Add new member start_val.
5394         (allocno_set_iter_init): Add two new parameters.  Set up
5395         start_val.
5396         (allocno_set_iter_cond): Use start_val.
5397         (FOR_EACH_ALLOCNO_IN_SET): Add two new parameters.
5398         (allocno_set_words): Remove.
5399         (allocno_conflict_iterator): Add new member base_conflict_id.
5400         (allocno_conflict_iter_init): Set up base_conflict_id.  Use
5401         ALLOCNO_MIN and ALLOCNO_MAX.
5402         (allocno_conflict_iter_cond): Use conflict_id_allocno_map and
5403         base_conflict_id.
5405         * ira-lives.c: Include sparseset.h.
5406         (allocno_set_words, SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE,
5407         TEST_ALLOCNO_LIVE, allocnos_live_bitmap): Remove.
5408         (allocnos_live): Define as sparseset.
5409         (make_regno_born, clear_allocno_live, mark_reg_store,
5410         mark_reg_death, process_single_reg_class_operands,
5411         process_bb_node_lives, create_allocno_live_ranges): Don't use
5412         allocnos_live_bitmap.  Use allocnos_live as sparseset.
5414         * Makefile.in (ira-conflicts.o, ira-lives.o): Add sparseset.h
5416         * ira-conflicts.c: Add sparseset.h header.
5417         (mirror_conflicts): Remove.
5418         (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE, TEST_ALLOCNO_LIVE): Remove.
5419         (allocnos_live): Remove.
5420         (CONFLICT_P): Remove
5421         (CONFLICT_ALLOCNO_P): New.
5422         (build_conflict_bit_table): Use sparseset.  Use FOR_EACH_ALLOCNO.
5423         Allocate bits for [min..max] range.  Report conflict bit table
5424         sizes.  Setup conflicts for both allocnos.
5425         (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for copy vectors.
5426         (remove_conflict_allocno_copies): Use CONFLICT_ALLOCNO_P.  Rename
5427         conflict_allocno_copy_varray to conflict_allocno_copy_vec and make
5428         it VEC.
5429         (build_allocno_conflicts): Use two new arguments for
5430         FOR_EACH_ALLOCNO_IN_SET.  Use conflict_id_allocno_map.  Modify
5431         calculation of ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE.  Use two new
5432         arguments for SET_ALLOCNO_SET_BIT.
5433         (ira_build_conflicts): Don't call mirror_conflicts.
5435         * ira-color.c (varray.h): Remove.
5436         (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for
5437         allocno vectors.
5438         (allocno_stack_varray): Rename to allocno_stack_vec.  Make it a
5439         VEC.
5440         (assign_hard_reg, push_allocno_to_stack, pop_allocnos_from_stack,
5441         ira_color): Use allocno_stack_vec as VEC.
5442         
5443         * ira-build.c (setup_min_max_allocno_live_range_point,
5444         allocno_range_compare_func, sort_conflict_id_allocno_map,
5445         setup_min_max_conflict_allocno_ids): New function.
5446         (conflict_id_allocno_map, conflict_id_allocno_map_vec): New global
5447         variable.
5448         (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for allocno vectors.
5449         (allocno_varray): Rename to allocno_vec and make it a VEC.
5450         (initiate_allocnos): Initiate conflict_id_allocno_map_vec.  Use
5451         allocno_vec as a VEC.
5452         (create_allocno): Initiate min, max, and conflict_id_allocno.
5453         Update conflict_id_allocno_map.  Use allocno_vec as a VEC.
5454         (allocate_allocno_conflict_bit_vec): Use ALLOCNO_MIN and
5455         ALLOCNO_MAX.
5456         (add_to_allocno_conflicts): Ditto.
5457         (remove_wrong_conflicts): Ditto.  Use conflict_id_allocno_map.
5458         (change_allocno_conflicts): Ditto.  Use add_to_allocno_conflicts
5459         instead of SET_ALLOCNO_SET_BIT.
5460         (finish_allocnos): Free conflict_id_allocno_map_vec.  Use
5461         allocno_vec as a VEC.
5462         (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for copy vectors.
5463         (copy_varray): Rename to copy_vec and make it a VEC.
5464         (initiate_copies, create_copy, finish_copies): Use copy_vec as
5465         a VEC.
5466         (ira_build): Call setup_min_max_allocno_live_range_point,
5467         sort_conflict_id_allocno_map, and
5468         setup_min_max_conflict_allocno_ids.
5469         
5470         * ira-emit.c (move_t): New typedef.
5471         (DEF_VEC_P, DEF_VEC_ALLOC_P): Definitions for move vectors.
5472         (move_varray): Rename it to move_vec and make it a VEC.
5473         (emit_move_list, add_range_and_copies_from_move_list): Use move_t.
5474         (traverse_moves, ira_emit): Ditto.  Use move_vec as a VEC.
5475         (modify_move_list): Ditto.  Set up conflict_id, min, and max for
5476         the new allocno.
5477         
5478 2008-04-10  Vladimir Makarov  <vmakarov@redhat.com>
5480         * reload1.c (substitute, gen_reload_chain_without_interm_reg_p):
5481         New functions.
5482         (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
5484 2008-04-09  Vladimir Makarov  <vmakarov@redhat.com>
5486         * ira.c (ira): Move allocate_initial_values after initializing reg
5487         info.
5489 2008-04-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5491         * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
5493 2008-04-08  Vladimir Makarov  <vmakarov@redhat.com>
5495         * ira-color.c (assign_hard_reg): Add debug printing.
5496         
5497         * ira-lives.c (mark_reg_store, mark_reg_death,
5498         process_bb_node_lives): Ignore hard regno of class NO_REGS.
5500         * ira.c: Fix typos in comments.
5502 2008-04-07  Vladimir Makarov  <vmakarov@redhat.com>
5504         * cfgloopanal.c (estimate_reg_pressure_cost): Decrease register
5505         pressure cost for IRA regional allocation.
5507         * ira.c:  Add IRA overview.
5509 2008-04-06  Vladimir Makarov  <vmakarov@redhat.com>
5511         * ira-int.h (reg_class_intersect, reg_class_union): Add comments.
5512         
5513         * hard-reg-set.h (reg_class_subclasses): New external definition.
5515         * ira.c (setup_reg_class_intersect_union): Define for classes
5516         containing no hard registers available for allocation.
5518         * regclass.c (reg_class_subclasses): Make it external.
5520         * config/sh/sh.h (IRA_COVER_CLASSES): Add TARGET_REGS.
5521         
5522 2008-04-05  Vladimir Makarov  <vmakarov@redhat.com>
5524         * toplev.c (backend_init_target): Move init_ira after
5525         init_fake_stack_mems.
5527         * config/sh/sh.c (sh_secondary_reload): Remove check of x on null.
5529 2008-04-04  Bernd Schmidt  <bernd.schmidt@analog.com>
5531         * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
5533 2008-04-04  Kaz Kojima  <kkojima@gcc.gnu.org>
5535         * config/sh/sh.h (IRA_COVER_CLASSES): Define.
5536         * config/sh/sh.c (sh_secondary_reload): Return NO_REGS for
5537         null rtl.
5538         * config/sh/sh.md (movsicc_true+3): Check if emit returns
5539         a barrier.
5540         * final.c (update_regs_ever_live): Check null rtl.
5541         
5542 2008-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5544         * reload1.c: Remove spaces before [.
5545         
5546         * ira-conflicts.c, ira-int.h, ira-color.c, ira-lives.c,
5547         ira-emit.c, ira-build.c, ira.c, ira.h, ira-costs.c: Ditto.  Use
5548         GPL3.
5549         
5550         * caller-save.c: Ditto.
5551         (set_up_bb_rts_numbers, rpost_cmp): Remove.
5552         (save_trans_fun, save_con_fun_0, save_con_fun_n): New functions.
5553         (struct bb_info): Remove member rts_number.
5554         (calculate_local_save_info): Setup empty_save_in_p for abnormal
5555         edges.
5556         (all_blocks): New variable.
5557         (calculate_save_in_out): Use df_simple_dataflow.
5558         (make_global_save_analysis): Allocate/setup/free all_blocks.
5559                 
5560 2008-04-04  Vladimir Makarov  <vmakarov@redhat.com>
5562         * ira-costs.c: Use GPL3 in the header.
5563         (find_allocno_class_costs): Use all important
5564         classes on the 1st iteration.
5566 2008-04-03  Vladimir Makarov  <vmakarov@redhat.com>
5568         PR rtl-optimization/35817
5569         * ira-costs.c (ira-costs.c): Check have_regs_of_mode.
5571 2008-04-02  Vladimir Makarov  <vmakarov@redhat.com>
5573         * ira-color.c (start_allocno_priorities): Permit zero allocno
5574         nref.
5576 2008-03-31  Vladimir Makarov  <vmakarov@redhat.com>
5578         * ira-color.c (push_allocnos_to_stack): Don't use double.  Use
5579         const as the secondary heuristic.
5581         * ira-emit.c (set_allocno_reg): Change cap reg too.  Process all
5582         loop parents.
5583         
5584         * doc/invoke.texi (-fira-coalescing): Change to -fira-coalesce.
5586         * toplev.h (flag_lower_subreg): Remove.
5588         * global.c (build_insn_chain): Remove the prototype.
5590         * alias.c (value_addr_p): Change comment.
5592         * emit-rtl.c (gen_lowpart_common): Remove CONCATN.
5594         * simplify-rtx.c (simplify_subreg): Ditto.
5596         * common.opt (flower-subreg): Remove.
5598         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Fix last
5599         merge.
5601 2008-03-29  Vladimir Makarov  <vmakarov@redhat.com>
5603         * ira-lives (process_single_reg_class_operands): Fix typo in
5604         setting up cover_class.
5606 2008-03-28  Vladimir Makarov  <vmakarov@redhat.com>
5608         * ira-conflicts.c, global.c, regmove.c, function.c,
5609         ira-emit.c, alias.c, reload1.c: Add comments, fix comments.
5611         * reload.h: Add 2008 to the Copyright.
5612         
5613         * caller-save.c: Add comments.
5614         (reg_save_code, reg_restore_code, initiate_saved_hard_regs,
5615         new_saved_hard_reg, finish_saved_hard_regs,
5616         saved_hard_reg_compare_func, calculate_local_save_info,
5617         set_up_bb_rts_numbers, rpost_cmp, calculate_save_in_out,
5618         calculate_save_here, make_global_save_analysis,
5619         print_hard_reg_set_and_mode, print_hard_reg_set, print_save_data,
5620         set_hard_reg_saved, add_stored_regs): Add prototypes.
5621         
5622         * df-scan.c (df_get_call_refs): Use
5623         get_call_invalidated_used_regs.
5625         * ira-int.h: Add comments.
5626         (loop_tree_node): Rename inner to children.
5627         (ira_allocate_regset, ira_free_regset): Remove.
5628         (reassign_conflict_allocnos): Remove one parameter.
5630         * ira-color.c: Add comments.
5631         (setup_curr_costs): Rename to update_curr_costs.
5632         (allocno_cost_compare_func, print_coalesced_allocno,
5633         allocno_reload_assign): Add prototypes.
5634         (reassign_conflict_allocnos): Remove one parameter.
5636         * ira-lives.c: Add comments.
5637         (make_regno_dead, make_regno_born_and_dead,
5638         create_start_finish_chains, print_allocno_live_ranges,
5639         print_live_ranges): Add protoypes.
5641         * ira-build.c: Add comments.
5642         (copy_allocno_live_range_list): Make it static.
5644         * ira.c: Add comments.
5645         (setup_cover_classes): Rename to
5646         setup_cover_and_important_classes.
5647         (free_register_move_costs, chain_freq_compare, chain_bb_compare,
5648         ira): New prototypes.
5649         (mode_inner_mode, setup_inner_mode, ira_allocate_regset,
5650         ira_free_regset): Remove.
5652         * ira.h: Add comments.
5653         (SECONDARY_INPUT_RELOAD_CLASS,
5654         SECONDARY_OUTPUT_RELOAD_CLASS, HAVE_SECONDARY_RELOADS,
5655         MEMORY_MOVE_COST, reg_equiv_memory_loc_varray, reg_equiv_constant,
5656         reg_equiv_memory_loc, reg_equiv_address, reg_equiv_mem, ira):
5657         Remove.
5658         
5659         * ira-costs.c: Add comments.
5660         (find_allocno_class_costs): Make common class a cover class.
5661         
5662 2008-03-20  Vladimir Makarov  <vmakarov@redhat.com>
5664         * ira-int.h (allocno): Rename conflict_allocno_vec and
5665         conflict_allocno_vec_size into conflict_allocno_array and
5666         conflict_allocno_array_size.  Remove conflict_allocnos_num.
5667         Rename total_conflict_allocnos_num into conflict_allocnos_num New
5668         members child_renamed_p and conflict_vec_p.
5669         (ALLOCNO_CONFLICT_ALLOCNO_VEC): Rename to
5670         ALLOCNO_CONFLICT_ALLOCNO_ARRAY.
5671         (ALLOCNO_CONFLICT_ALLOCNO_VEC_SIZE): Rename to
5672         ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE.
5673         (ALLOCNO_CHILD_RENAMED_P, ALLOCNO_CONFLICT_VEC_P): New macros.
5674         (EXECUTE_IF_SET_IN_ALLOCNO_SET): Change to
5675         FOR_EACH_ALLOCNO_IN_SET.
5676         (allocno_set_iterator): New typedef.
5677         (allocno_set_iter_init, allocno_set_iter_cond,
5678         allocno_set_iter_next): New functions.
5679         (conflict_vector_profitable_p, allocate_allocno_conflict_vec): New
5680         prototypes.
5681         (allocno_iterator): New typedef.
5682         (allocno_iter_init, allocno_iter_cond): New functions.
5683         (FOR_EACH_ALLOCNO): New macro.
5684         (copy_iterator): New typedef.
5685         (copy_iter_init, copy_iter_cond): New functions.
5686         (FOR_EACH_COPY): New macro.
5687         (allocno_conflict_iterator): New typedef.
5688         (allocno_conflict_iter_init, allocno_conflict_iter_cond,
5689         allocno_conflict_iter_next): New functions.
5690         (conflict_vector_profitable_p, allocate_allocno_conflict_vec): New
5691         prototypes.
5692         (FOR_EACH_ALLOCNO_CONFLICT): New macro.
5694         * ira-conflicts.c (conflicts): Change type.
5695         (CONFLICT_P): Use one more index for conflicts.
5696         (build_conflict_bit_table): Change allocation and initialization
5697         of conflicts.
5698         (mirror_conflicts): Rewrite.
5699         (remove_conflict_allocno_copies): Use FOR_EACH_ALLOCNO.
5700         (build_allocno_conflict_vects): Rename to build_allocno_conflicts.
5701         Rewrite it.
5702         (print_conflicts): Use FOR_EACH_ALLOCNO, don't print star.
5703         (ira_build_conflicts): Use FOR_EACH_ALLOCNO.
5705         * ira-color.c (assign_hard_reg): Use FOR_EACH_ALLOCNO_CONFLICT.
5706         Use min_full_cost for finding register profitability.
5707         (push_allocno_to_stack): Use FOR_EACH_ALLOCNO_CONFLICT.
5708         (setup_allocno_left_conflicts_num, coalesced_allocno_conflict_p):
5709         Ditto.
5710         (move_spill_restore): Use FOR_EACH_ALLOCNO.
5711         (reassign_conflict_allocnos): Ditto.  Use
5712         FOR_EACH_ALLOCNO_CONFLICT.
5713         (sort_regnos_for_alter_reg): Use FOR_EACH_ALLOCNO.
5714         (reassign_pseudos): Use FOR_EACH_ALLOCNO_CONFLICT.
5716         * ira-lives.c (make_regno_born, clear_allocno_live,
5717         mark_reg_death, process_single_reg_class_operands,
5718         process_bb_node_lives): Use FOR_EACH_ALLOCNO_IN_SET.
5719         (create_start_finish_chains, print_live_ranges): Use
5720         FOR_EACH_ALLOCNO.
5722         * ira-emit.c (set_allocno_reg): Set up ALLOCNO_CHILD_RENAMED_P.
5723         (set_allocno_somewhere_renamed_p): Use
5724         ALLOCNO_CONFLICT_ALLOCNO_ARRAY.
5725         (ira_emit): Use FOR_EACH_ALLOCNO.
5727         * ira.c (setup_reg_renumber, setup_allocno_assignment_flags,
5728         calculate_allocation_cost, check_allocation,
5729         print_redundant_copies, setup_preferred_alternate_classes): Use
5730         FOR_EACH_ALLOCNO.
5732         * ira-costs.c (print_costs, setup_allocno_cover_class_and_costs,
5733         ira_costs, tune_allocno_costs_and_cover_classes): Use
5734         FOR_EACH_ALLOCNO.
5736         * ira-build.c (check_allocno_conflict_vec): Remove.
5737         (add_to_allocno_conflict_vec): Rename to
5738         allocate_allocno_conflicts.  Rewrite.
5739         (allocate_allocno_conflict_bit_vec, allocate_allocno_conflicts,
5740         remove_wrong_conflicts, change_allocno_conflicts): New functions.
5741         (rebuild_regno_allocno_maps): Use FOR_EACH_ALLOCNO.
5742         (create_allocno): Initialize ALLOCNO_CHILD_RENAMED_P and
5743         ALLOCNO_CONFLICT_VEC_P.
5744         (conflict_vector_profitable_p): New function.
5745         (compress_allocno_conflict_vec): Use
5746         ALLOCNO_CONFLICT_ALLOCNO_ARRAY and don't use
5747         ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM.
5748         (compress_conflict_vecs): Use FOR_EACH_ALLOCNO.  Check
5749         ALLOCNO_CONFLICT_VEC_P.
5750         (propagate_info_to_cap): Use FOR_EACH_ALLOCNO_CONFLICT.
5751         (finish_allocnos): Use FOR_EACH_ALLOCNO.
5752         (finish_copies): Use FOR_EACH_COPY.
5753         (check_and_add_conflicts): Change second parameter.  Use
5754         add_to_allocno_conflicts instead of add_to_allocno_conflict_vec.
5755         (temp_change_bit_vec): New variable.
5756         (ira_flattening): Use FOR_EACH_ALLOCNO and FOR_EACH_COPY.  Use
5757         remove_wrong_conflicts, change_allocno_conflicts.  Allocate and
5758         free temp_change_bit_vec.  Nullify `allocnos' elements for removed
5759         allocnos.  Check ALLOCNO_CHILD_RENAMED_P for removing obsolete
5760         conflicts.  Don't compress and enumerate allocnos and copies.
5761         Nullify `copies' elements for removed copies.  Use
5762         add_to_allocno_conflicts instead of add_to_allocno_conflict_vec.
5763         (ira_build): Use FOR_EACH_ALLOCNO.
5764         
5765 2008-03-18  Vladimir Makarov  <vmakarov@redhat.com>
5767         * common.opt (fira-algorithm): Fix description
5769         * ira-int.h (allocno): Remove best_class.
5770         (ALLOCNO_BEST_CLASS): Remove.
5771         (strict_class_subset_p): Remove.
5772         
5773         * ira-color.c (get_coalesced_allocnos_best_class_and_freq): Rename
5774         to get_coalesced_allocnos_attributes.  Change prototype.
5775         Calculate available regs.
5776         (bucket_allocno_compare_func, sort_bucket): New functions.
5777         (sorted_allocnos_for_spilling): New variable.
5778         (assign_hard_reg): Don't add prohibited_class_mode_regs to
5779         conflicting_regs.  Use it in loop for finding the best hard
5780         register.
5781         (add_allocno_to_ordered_bucket): Use bucket_allocno_compare_func.
5782         (push_only_colorable): Call sort_bucket.
5783         (push_allocnos_to_stack): Use sorted_allocnos_for_spilling instead
5784         of sorted_allocnos.
5785         (put_allocno_into_bucket): Use add_allocno_to_bucket instead of
5786         add_allocno_to_ordered_bucket.
5787         (initiate_ira_assign): Allocate sorted_allocnos_for_spilling.
5788         (finish_ira_assign): Free sorted_allocnos_for_spilling.
5790         * ira-emit.c (modify_move_list): Remove setting ALLOCNO_BEST_CLASS
5791         up.
5792         
5793         * ira-build.c (create_allocno, create_cap_allocno): Ditto.
5794         
5795         * ira.c (strict_class_subset_p): Remove.
5796         (setup_class_subset_and_memory_move_costs): Remove setting
5797         strict_class_subset_p up.
5798         
5799         * ira-costs.c (setup_allocno_cover_class_and_costs): Remove
5800         setting ALLOCNO_BEST_CLASS up.
5801         
5802 2008-03-12  Vladimir Makarov  <vmakarov@redhat.com>
5804         * ira-int.h (allocno_pool, copy_pool, allocno_live_range_pool):
5805         Remove external definitions.
5806         (free_allocno_updated_costs, allocate_cost_vector,
5807         free_cost_vector): New prototypes.
5808         (allocate_and_set_costs, allocate_and_copy_costs,
5809         allocate_and_set_or_copy_costs): Change prototypes.  Use
5810         allocate_cost_vector instead of ira_allocate.
5812         * ira-conflicts.c (add_insn_allocno_copies): Pass register class
5813         to allocate_and_set_costs.
5815         * ira-color.c (update_copy_costs_1): Pass register class to
5816         allocate_and_set_or_copy_costs.
5817         (assign_hard_reg): Pass register class to allocate_and_copy_costs.
5818         Free updated costs.
5819         (pop_allocnos_from_stack, color_allocnos): Check updated costs.
5820         (color_pass): Pass register class to allocate_and_set_costs.  Free
5821         updated costs.
5822         (move_spill_restore): Check reg equivalences.
5823         (setup_curr_costs): Pass register class to
5824         allocate_and_set_or_copy_costs.
5825         (reassign_conflict_allocnos, allocno_reload_assign): Check updated
5826         costs.
5827         (calculate_spill_cost): Use REG_N_REFS after checking regno.
5829         * ira-lives.c (process_single_reg_class_operands): Pass register
5830         class to allocate_and_set_costs.
5832         * ira-build.c (allocno_pool, allocno_live_range_pool): New
5833         variables.
5834         (initiate_allocnos): Initiate the pools.
5835         (free_allocno_updated_costs): New function.
5836         (finish_allocno): Use free_cost_vector.  Free the pools.
5837         (copy_pool): New variable.
5838         (initiate_copies): Initiate the pool.
5839         (cost_vector_pool): New variable.
5840         (initiate_cost_vectors, allocate_cost_vector, free_cost_vector,
5841         finish_cost_vectors): New functions.
5842         (ira_flattening): Call free_allocno_updated_costs.  Check updated
5843         costs.
5844         (ira_build): Call initiate_cost_vectors.
5845         (ira_destroy): Call finish_cost_vectors.
5847         * ira.c (find_reg_equiv_invariant_const): Check read only memory.
5848         (setup_reg_renumber, setup_allocno_assignment_flags): Call
5849         free_allocno_updated_costs.
5850         (ira): Remove initializations and freeing allocno_pool, copy_pool,
5851         and allocno_live_range_pool.  Call generate_setjmp_warnings.
5853         * ira-costs.c (process_bb_node_for_hard_reg_moves,
5854         tune_allocno_costs_and_cover_classes): Pass register class to
5855         allocate_and_set_costs.
5857         * caller-save.c (save_slots_num, save_slots): New variables.
5858         (init_save_areas): Initiate save_slots_num.
5859         (setup_save_areas): Use stack slots from the previous reload
5860         iteration independetly what slot was used on the previous pass.
5861         
5862 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
5864         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
5865         Remove commutativity hint.
5867 2008-03-06  Vladimir Makarov  <vmakarov@redhat.com>
5869         * ira.h (sort_regnos_for_alter_reg): Add parameter.
5870         
5871         * reload1.c (reload): Pass additional argument to
5872         sort_regnos_for_alter_reg.
5874         * ira-int.h (reg_equiv_len): New global variable.
5876         * ira-emit.c (change_loop): Add assertion.
5878         * ira.c (reg_equiv_len): New global variable.
5879         (setup_reg_renumber): Use reg_equiv_len in assertion.
5880         (ira): Initialize reg_equiv_len and spilled_reg_stack_slots.
5882         * ira-color.c (coalesced_pseudo_reg_compare): Rename to
5883         coalesced_pseudo_reg_freq_compare.
5884         (coalesced_pseudo_reg_slot_compare,
5885         setup_coalesced_allocno_costs_and_nums,
5886         collect_spilled_coalesced_allocnos, coalesce_spill_slots): New
5887         functions.
5888         (coalesced_allocno_conflict_p): Add new parameter.  Use live
5889         ranges to find conflicts for the reload.
5890         (coalesce_allocnos): Don't coalesce allocnos with equivalences.
5891         (color_pass): Check reg_quiv_len.
5892         (regno_max_ref_width): New variable.
5893         (sort_regnos_for_alter_reg): Add secondary coalescing spilled
5894         allocnos.  Assign stack slot numbers.  Use costs instead of
5895         frequencies.
5896         (mark_allocation_change): Set up allocno hard regno.
5897         (allocno_reload_assign): Ditto.
5898         (reuse_stack_slot): Use stack slot numbers.
5899         (mark_new_stack_slot): Set up allocno slot number.
5901         * doc/passes.texi: Add more info about IRA.
5902         
5903 2008-03-03  Vladimir Makarov  <vmakarov@redhat.com>
5905         * ira-conflicts.c (allocno_conflict_p): Rename to
5906         allocno_live_ranges_intersect_p.
5907         (allocno_reg_conflict_p): Rename to
5908         pseudo_live_ranges_intersect_p.
5910         * ira-lives.c (high_pressure_start_point): New variable.
5911         (update_allocno_pressure_excess_length): New function.
5912         (make_regno_dead): Call it.
5913         (set_allocno_live): Udpate high_pressure_start_point.
5914         (clear_allocno_live, mark_reg_store, mark_reg_death): Ditto.
5915         (process_bb_node_lives): Initialize high_pressure_start_point.
5916         Consider only allocatable hard regs for liveness.
5917         
5918         * ira-costs.c (record_reg_classes): Multiply cost by frequency.
5919         Use half frequency when memory is allowed.  Remove check for
5920         prefferred small register classes of pseudo-registers.
5921         (scan_one_insn): Continue processing operands for moves of
5922         pseudo-registers with equivalence.  Don't multiply cost by
5923         frequency.
5924         (init_ira_costs): Use bigger initial cost value.
5925         
5926         * ira-int.h: Ditto.
5927         (allocno): New members somewhere_renamed_p and
5928         excess_pressure_points_num.
5929         (ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_EXCESS_PRESSURE_POINTS_NUM):
5930         New macros.
5931         (allocno_reg_conflict_p): Rename to
5932         pseudo_live_ranges_intersect_p.
5933         (allocno_conflict_p): Rename to allocno_live_ranges_intersect_p.
5935         * ira.h (sort_regnos_for_alter_reg, better_spill_reload_regno_p):
5936         New function prototypes.
5937         
5938         * ira-color.c (merge_allocnos): Remove mode check.
5939         (coalesce_allocnos): Add parameter and modify to use it for
5940         coalescing spilled allocnos.
5941         (color_allocnos): Pass parameter to coalesce_allocnos.
5942         (regno_coalesced_allocno_freq, regno_coalesced_allocno_num): New
5943         variables.
5944         (coalesced_pseudo_reg_compare, calculate_spill_cost,
5945         sort_regnos_for_alter_reg, better_spill_reload_regno_p): New
5946         functions.
5947         (mark_allocation_change, allocno_reload_assign, reassign_pseudos
5948         ): Use ALLOCNO_MEMORY_COST instead of ALLOCNO_UPDATED_MEMORY_COST.
5949         (reuse_stack_slot): Use pseudo_live_ranges_intersect_p instead of
5950         allocno_reg_conflict_p.
5951         
5952         * ira-emit.c (set_allocno_somewhere_renamed_p): New function.
5953         (renamed_regno_bitmap): New static variable.
5954         (change_loop): Check register pressure for creating new pseudo.
5955         Set up ALLOCNO_SOMEWHERE_RENAMED_P and renamed_regno_bitmap.
5956         (ira_emit): Allocate/deallocate renamed_regno_bitmap.
5957         Call set_allocno_somewhere_renamed_p.
5959         * ira-build.c (ira_loops): Move to ira.c.
5960         (create_allocno): Initialize ALLOCNO_SOMEWHERE_RENAMED_P and
5961         ALLOCNO_MEMORY_COST.
5962         (create_cap_allocno): Set up ALLOCNO_MEMORY_COST.
5963         (check_and_add_conflicts): Use allocno_live_ranges_intersect_p
5964         instead of allocno_conflict_p.
5965         (ira_flattening): Check conflicts of allocno renamed somewhere
5966         locally.  Update ALLOCNO_EXCESS_PRESSURE_POINTS_NUM.
5967         (ira_build): Move code for finding loops to ira.c.
5968         (ira_destroy): Move code for freeing loops to ira.c.
5970         * ira.c (setup_reg_class_intersect_union): Fix calculation of
5971         reg_class_union.
5972         (calculate_allocation_cost): Use ALLOCNO_MEMORY_COST instead of
5973         ALLOCNO_UPDATED_MEMORY_COST.
5974         (ira_loops): Move from ira-build.c.
5975         (ira): Move code for finding and freeing loops from ira-build.c.
5976         Don't use regional RA when there are too many loops.
5978         * reload1.c (pseudo_reg_compare): Remove.
5979         (reload): Use sort_regnos_for_alter_reg.
5980         (hard_regno_to_pseudo_regno): New variable.
5981         (count_pseudo): Set up hard_regno_to_pseudo_regno.
5982         (order_regs_for_reload): Initialize hard_regno_to_pseudo_regno.
5983         (count_spilled_pseudo): Update hard_regno_to_pseudo_regno.
5984         (find_reg): Use better_spill_reload_regno_p.  Check
5985         hard_regno_to_pseudo_regno.
5987         * cfgloopanal.c: Include params.h.
5988         (estimate_reg_pressure_cost): Check number of loops.
5990         * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
5992         * params.h (IRA_MAX_LOOPS_NUM): New macro.
5994         * Makefile.in (cfgloopanal.o): Add PARAMS_H.
5995         
5996         * doc/invoke.texi (ira-max-loops-num): Describe.
5997         
5998 2008-02-20  Vladimir Makarov  <vmakarov@redhat.com>
6000         * ira.h, ira-emit.c: Add year 2008 to the copyright.
6001         
6002         * ira-int.h: Ditto.
6003         (struct copy): Rename move_insn to insn.
6004         (initiate_ira_assign, finish_ira_assign, debug_allocno_copies):
6005         New function prototypes.
6006         
6007         * ira-build.c: Add year 2008 to the copyright.  Rename member
6008         move_insn of the copies to insn.
6009         (find_allocno_copy): New function.
6010         (propagate_info_to_cap, add_allocno_copy): Use it.
6011         (print_allocno_copies, debug_allocno_copies): New functions.
6012         
6013         * ira-conflicts.c: Add year 2008 to the copyright.  Rename member
6014         move_insn of the copies to insn.
6016         * ira.c: Ditto.
6017         (setup_reg_class_intersect_union): Fix reg_class_union for cover
6018         classes.
6019         (ira): Call initiate_ira_assign and finish_ira_assign.  Remove
6020         setting reload_completed up.
6021         
6022         * ira-costs.c: Add year 2008 to the copyright.
6023         (ira_costs): Check modes of registers.
6025         * ira-lives.c: Add year 2008 to the copyright.
6026         (mark_reg_store, mark_reg_death, process_bb_node_lives): Don't use
6027         REG_N_REFS.
6028         (process_single_reg_class_operands): Check that the hard reg
6029         belongs to the cover class.
6031         * ira-color.c: Add year 2008 to the copyright.  Rename member
6032         move_insn of the copies to insn.
6033         (initiate_cost_update, finish_cost_update, update_copy_costs_1):
6034         New functions.
6035         (allocno_update_cost_check, update_cost_check): New static
6036         variables.
6037         (update_copy_costs): Increment update_cost_check.  Call
6038         update_copy_costs_1.
6039         (coalesce_allocnos): Don't coalesce already assigned allocnos or
6040         copies with null insn.
6041         (color_pass): Check loop tree node of the subloop allocno.
6042         (finish_allocno_priorities): Remove.
6043         (do_coloring): Move allocation/deallocation of
6044         consideration_allocno_bitmap into initiate_cost_update and
6045         finish_cost_update.
6046         (reassign_conflict_allocnos): Remove allocation/deallocation of
6047         sorted_allocnos.  Remove call of finish_allocno_priorities.
6048         (reassign_pseudos): Remove allocation/deallocation of
6049         consideration_allocno_bitmap and sorted_allocnos.  Remove call of
6050         finish_allocno_priorities.
6051         (initiate_ira_assign, finish_ira_assign): New fucntions.
6052         (ira_color): Remove allocation/deallocation of sorted_allocnos.
6053         Call initiate_ira_assign and finish_ira_assign.
6054         
6055         * postreload.c (gate_handle_postreload): Don't do post reload
6056         optimizations unless the reload is completed.
6057         
6058         * cfgloopanal.c (estimate_reg_pressure_cost): Return zero if we
6059         use regional RA.
6061         * recog.c (peep2_free_reg_search_ofs): New static variable.
6062         (peep2_find_free_register): Remove search_ofs.  Use
6063         peep2_free_reg_search_ofs instead of it.
6064         (peephole2_optimize): Reset peep2_free_reg_search_ofs.
6065         
6066 2008-01-10  Vladimir Makarov  <vmakarov@redhat.com>
6068         * reload1.c (compute_use_by_pseudos): Permits spilled registers in
6069         FROM.
6070         (temp_pseudo_reg_arr): New variable.
6071         (reload): Use instead temp_pseudo_reg_arr of pseudo_regs.  Move
6072         freeing to the function end.  Don't clear spilled_pseudos for IRA.
6073         Restore original insn chain for IRA.
6074         (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
6075         (count_pseudo, count_spilled_pseudo): Check spilled pseudos.
6076         (alter_reg): Set up spilled_pseudos.
6077         (finish_spills): Set up pseudo_previous_regs only for spilled
6078         pseudos.  Call reassign_pseudos once for all spilled pseudos,
6079         pass more arguments.  Don't clear live_throughout and dead_or_set
6080         for spilled pseudos.
6082 2008-01-10  Vladimir Makarov  <vmakarov@redhat.com>
6084         * reload1.c (compute_use_by_pseudos): Permits spilled registers in
6085         FROM.
6086         (temp_pseudo_reg_arr): New variable.
6087         (reload): Use instead temp_pseudo_reg_arr of pseudo_regs.  Move
6088         freeing to the function end.  Don't clear spilled_pseudos for IRA.
6089         Restore original insn chain for IRA.
6090         (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
6091         (count_pseudo, count_spilled_pseudo): Check spilled pseudos.
6092         (alter_reg): Set up spilled_pseudos.
6093         (finish_spills): Set up pseudo_previous_regs only for spilled
6094         pseudos.  Call reassign_pseudos once for all spilled pseudos,
6095         pass more arguments.  Don't clear live_throughout and dead_or_set
6096         for spilled pseudos.
6098         * global.c (reg_becomes_live, build_insn_chain): Don't ignore
6099         spilled pseudos for IRA.
6100         
6101         * caller-save.c (calculate_local_save_info,
6102         save_call_clobbered_regs): Ignore spilled pseudos for IRA.
6103         
6104         * toplev.c (backend_init_target): Call init_ira.
6105         (backend_init): Move call of init_ira_once before
6106         backend_init_target.
6107         
6108         * ira.h (init_ira, sort_insn_chain, mark_memory_move_deletion):
6109         New function prototypes.
6110         (retry_ira_color): Rename to reassign_pseudos.  Change
6111         signature.
6113         * ira-int.h (allocno): New member dont_reassign_p.
6114         (ALLOCNO_DONT_REASSIGN_P): New macro.
6115         (memory_move_cost): Change element type.
6116         (register_move_cost): Change type.
6117         (register_may_move_in_cost, register_may_move_out_cost,
6118         reg_class_intersect): New arrays.
6119         (important_class_nums): Fix element type.
6120         (hard_reg_not_in_set_p): Make it static inline.
6121         (init_register_move_cost, init_ira_costs): New function
6122         prototypes.
6123         (allocno_conflict_index): Remove.
6124         (allocate_and_set_costs, allocate_and_copy_costs,
6125         allocate_and_set_or_copy_costs): New static inline functions.
6126         
6127         * ira-build.c (compress_allocno_conflict_vec,
6128         compress_conflict_vecs): New functions.
6129         (allocno_conflict_index): Remove.
6130         (allocno_conflict_check, curr_allocno_conflict_check_tick): New
6131         variables.
6132         (propagate_info_to_cap): Use allocate_and_copy_costs.
6133         (check_and_add_conflicts): Don't call allocno_conflict_index.
6134         (ira_flattening): Add some assertions.  Check that cost vectors
6135         have been allocated.  Don't call allocno_conflict_index.  Call
6136         compress_conflict_vecs.
6138         * ira.c (memory_move_cost, register_move_cost): Change types.
6139         (register_may_move_in_cost, register_may_move_out_cost,
6140         strict_class_subset_p): New variables.
6141         (setup_class_subset_and_move_costs): Rename to
6142         setup_class_subset_and_memory_move_costs.  Remove
6143         register_move_cost setup.  Don't consider no_unit_alloc_regs.  Add
6144         strict_class_subset_p setup.
6145         (setup_reg_class_intersect): Rename to
6146         setup_reg_class_intersect_union.  Don't consider
6147         no_unit_alloc_regs.  Add reg_class_union setup.
6148         (hard_reg_not_in_set_p): Move to ira-int.h.
6149         (setup_reg_subclasses): Use no_unit_alloc_regs instead of
6150         fixed_reg_set.  Don't consider no_unit_alloc_regs.
6151         (important_class_nums): Fix element type.
6152         (setup_cover_classes): Use no_unit_alloc_regs instead of
6153         fixed_reg_set.  Don't consider no_unit_alloc_regs.
6154         (setup_class_translate): Ditto.
6155         (reg_class_union): New variable.
6156         (init_register_move_cost, free_register_move_costs): New
6157         functions.
6158         (init_ira_once): Initialize register_move_cost,
6159         register_may_move_in_cost, register_may_move_out_cost.  Move some
6160         code to init_ira.
6161         (init_ira): New function.  Move some code from init_ira_once.
6162         Call free_register_move_costs and init_ira_costs.
6163         (calculate_allocation_cost): Check allocation of allocno hard reg
6164         cost vector.
6165         (basic_block_order_nums): New variable.
6166         (chain_freq_compare, chain_bb_compare, sort_insn_chain): New
6167         functions.
6168         (ira): Call sort_insn_chain.
6170         * ira-color.c (allocno_coalesced_p): New variable.
6171         (update_copy_costs): Use allocate_and_set_or_copy_costs.
6172         (assign_hard_reg): Clear and use
6173         processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
6174         Use allocate_and_copy_costs.  Use allocno cover class cost if the
6175         hard register cost vector is not allocated.
6176         (get_coalesced_allocnos_best_class_and_freq): Use
6177         reg_class_intersect instead of reg_class_subintersect.
6178         (add_allocno_to_ordered_bucket): Use strict_class_subset_p.
6179         (push_allocno_to_stack): Clear and use
6180         processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
6181         (setup_allocno_left_conflicts_num): Don't setup
6182         ALLOCNO_UPDATED_HARD_REG_COSTS and
6183         ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.  Clear and use
6184         processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
6185         (put_allocno_into_bucket): Don't setup
6186         ALLOCNO_UPDATED_HARD_REG_COSTS and
6187         ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.
6188         (coalesced_allocno_conflict_p): Clear and use
6189         processed_coalesced_allocno_bitmap only if allocno_coalesced_p.
6190         (coalesce_allocnos): Setup allocno_coalesced_p.
6191         (color_allocnos): Add processing reg class NO_REGS.
6192         (color_pass): Propagate assignment of spilled allocno not
6193         mentioned in the subregion for the mixed algorithm.  Use
6194         allocate_and_set_costs.
6195         (move_spill_restore, mark_allocation_change): Check unallocated
6196         hard reg cost vectors.
6197         (setup_curr_costs): Don't setup ALLOCNO_UPDATED_HARD_REG_COSTS and
6198         ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.  Use
6199         allocate_and_set_or_copy_costs.
6200         (mark_memory_move_deletion, allocno_reload_assign,
6201         pseudo_reg_compare, reassign_pseudos): New functions.
6202         (retry_ira_color): Remove.
6203         
6204         * ira-conflicts.c (add_insn_allocno_copies): Use
6205         allocate_and_set_costs.
6206         (allocno_conflict_p): Simplify the code.
6207         
6208         * ira-costs.c: Rename reg_class_subunion to reg_class_union
6209         everywhere.
6210         (cost_classes, cost_classes_num, cost_class_nums,
6211         max_struct_costs_size): New variables.
6212         (copy_cost): Use init_register_move_cost instead of
6213         init_move_cost.
6214         (record_reg_classes): Ditto.  Use cost_classes and
6215         cost_classes_num instead of important_classes and
6216         important_classes_num.  Use register_may_move_{in,out}_cost
6217         instead of may_move_{in,out}_cost.  Check reg class intersection
6218         for alt_cost.
6219         (record_address_regs): Use init_register_move_cost instead of
6220         init_move_cost.  Use cost_classes and cost_classes_num instead of
6221         important_classes and important_classes_num.  Use
6222         register_may_move_in_cost instead of may_move_in_cost.
6223         (scan_one_insn): Use cost_classes_num instead of
6224         important_classes_num.
6225         (print_costs): Use cost_classes and cost_classes_num instead of
6226         important_classes and important_classes_num.
6227         (find_allocno_class_costs): Initialize cost_classes and
6228         cost_class_nums.  Use cost_classes and cost_classes_num instead of
6229         important_classes and important_classes_num.
6230         (process_bb_node_for_hard_reg_moves): Use allocate_and_set_costs.
6231         (setup_allocno_cover_class_and_costs): Use cost_classes and
6232         cost_classes_num instead of important_classes and
6233         important_classes_num.
6234         (init_ira_costs_once): Move some code to init_ira_costs.  Initiate
6235         cost_classes.
6236         (free_ira_costs: New function.  Move some code from
6237         finish_ira_costs_once.
6238         (init_ira_costs): New function.  Move some code from
6239         init_ira_costs_once.  Use max_struct_costs_size instead of
6240         struct_costs_size.  Call free_ira_costs.  Allocate cost_classes.
6241         (finish_ira_costs_once): Move some code to finish_ira_costs.  Call
6242         free_ira_costs.
6243         (ira_costs): Use max_struct_costs_size instead of
6244         struct_costs_size.  Use allocate_and_set_costs.
6246         * ira-emit.c (modify_move_list): Remove allocation of hard reg
6247         cost vectors.
6249         * ira-lives.c (process_single_reg_class_operands): Add new
6250         parameter freq.  Calculate costs basing on the frequency.
6251         (process_bb_node_lives): Pass the frequency to
6252         process_single_reg_class_operands.
6253         
6254 2007-12-17  Vladimir Makarov  <vmakarov@redhat.com>
6256         * doc/invoke.texi (fira-algoirthm): Remove prioirity coloring.
6257         Make mixed the default.
6259         * flags.h (ira_algorithm): Remove IRA_ALGORITHM_PRIORITY.
6261         * ira-color.c (priority_coloring):  Remove.
6262         (do_coloring): Don't call priority_coloring.
6264         * opts.c (common_handle_option): Remove priority coloring option.
6266         * toplev.c (flag_ira_algorithm): Assign IRA_ALGORITHM_MIXED.
6267         
6268         * ira-build.c (check_and_add_conflicts, ira_flattening): Increase
6269         threshold for internal_flag_ira_verbose.
6270         
6271 2007-12-17  Vladimir Makarov  <vmakarov@redhat.com>
6273         * common.opt (fira-assign-after-call-split, fira-biased-coloring,
6274         fira-split-around-calls): Remove.
6275         (fdump-simple-rtl, fira-verbose): New options.
6276         (fira, fira-coalesce): Initiate by 0.
6278         * opts.c (common_handle_option):  Process flag_ira_verbose.
6280         * flags.h (flag_ira_verbose): New external definition.
6282         * toplev.h (flag_ira_assign_after_call_split,
6283         flag_ira_biased_coloring, flag_ira_split_around_calls):  Remove.
6285         * toplev.c (flag_ira_verbose): New external declaration.
6286         (finalize): Call finish_ira_once.
6288         * print-rtl.c (flag_simple):  Rename to flag_dump_simple_rtl.
6290         * doc/invoke.texi (-fno-ira-assign-after-call-split,
6291         -fira-biased-coloring, -fno-ira-split-around-calls):  Remove.
6292         (-fdump-simple-rtl, -fira-verbose): New options.
6294         * caller-save.c (insert_restore, insert_save): Use
6295         adjust_address_nv instead of adjust_address.  Check the mode by
6296         reg_save_code.
6298         * ira-call.c: Remove file.
6300         * ira-lives.c: New file.
6302         * Makefile.in (ira-live.o): Add
6303         (ira-call.o): Remove.
6304         (IRA_INT_H): Add alloc-pool.h.
6306         * ira.h (finish_ira_once): New external definition.
6308         * ira-int.h (internal_flag_ira_verbose, alloc_pool allocno_pool,
6309         copy_pool, allocno_live_range_pool, ira_loop_tree_height,
6310         max_point, start_point_ranges, finish_point_ranges,
6311         prohibited_mode_move_regs, important_class_nums,
6312         ira_curr_regno_allocno_map, allocno_set_words): New external
6313         definitions.
6314         (loop_tree_node_t, allocno_live_range_t): New typedefs.  Use them
6315         everywhere.
6316         (ira_loop_tree_node): Rename to loop_tree_node.
6317         (loop_tree_node): New member level.
6318         (allocno_live_range): New structure.
6319         (allocno): New members nrefs, live_ranges,
6320         total_conflict_hard_regs, conflict_allocnos_num,
6321         total_conflict_allocnos_num, mem_optimized_dest,
6322         mem_optimized_dest_p, total_no_stack_reg_p.  Remove members
6323         conflict_allocno_vec_active_size and original_memory_cost.  Rename
6324         member curr_hard_reg_costs to updated_hard_reg_costs.
6325         (ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM,
6326         ALLOCNO_TOTAL_CONFLICT_HARD_REGS, ALLOCNO_CONFLICT_ALLOCNOS_NUM,
6327         ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM, ALLOCNO_NREFS,
6328         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6329         ALLOCNO_TOTAL_NO_STACK_REG_P, ALLOCNO_LIVE_RANGES): New access
6330         macros.
6331         (ALLOCNO_CONFLICT_ALLOCNO_VEC_ACTIVE_SIZE,
6332         ALLOCNO_ORIGINAL_MEMORY_COST): Remove.
6333         (ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS): Rename to
6334         ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.
6335         (allocno_copy): New member loop_tree_node.
6336         (INT_BITS, INT_TYPE, EXECUTE_IF_SET_IN_ALLOCNO_SET): Move from
6337         ira-conflicts.c.
6338         (SET_ALLOCNO_SET_BIT, CLEAR_ALLOCNO_SET_BIT,
6339         TEST_ALLOCNO_SET_BIT): New macros.
6340         (ira_reallocate, allocno_conflict_index, add_allocno_conflict,
6341         create_allocno_live_range, finish_allocno_live_range,
6342         add_allocno_copy_to_list, swap_allocno_copy_ends_if_necessary,
6343         remove_allocno_copy_from_list, add_allocno_copy, ira_flattening,
6344         finish_ira_costs_once, rebuild_start_finish_chains,
6345         print_live_range_list, debug_live_range_list,
6346         debug_allocno_live_ranges, debug_live_ranges,
6347         create_allocno_live_ranges, finish_allocno_live_ranges,
6348         allocno_conflict_p, loop_edge_freq): New external function
6349         definitions.
6350         (hard_reg_in_set_p, original_regno_call_crossed_p,
6351         ira_max_regno_before, ira_max_regno_call_before): Remove.
6352         (traverse_loop_tree): Add new parameter type.
6353         (create_copy): Ditto.
6354         (debug_conflicts, ira_emit, add_allocno_copy): Add parameter.
6355         (debug_ira_call_data, split_around_calls, get_around_calls_regno):
6356         Remove.
6357         
6358         * ira.c (setup_prohibited_mode_move_regs): New function.
6359         (internal_flag_ira_verbose, allocno_pool, copy_pool,
6360         allocno_live_range_pool, important_class_nums): New external
6361         variables.
6362         (IRA_NO_OBSTACK): Uncomment it.
6363         (ira_reallocate): New function.
6364         (setup_cover_classes): Set up important_class_nums.
6365         (finish_ira_once): New function.
6366         (prohibited_mode_move_regs,
6367         prohibited_mode_move_regs_initialized_p): New global variables.
6368         (setup_prohibited_mode_move_regs): New function.
6369         (setup_reg_renumber): Remove parameters.
6370         (setup_allocno_assignment_from_reg_renumber): Rename to
6371         setup_allocno_assignment_flags.  Set up ALLOCNO_ASSIGNED_P.
6372         (calculate_allocation_cost): Use ALLOCNO_UPDATED_MEMORY_COST.
6373         (ira_max_regno_before, ira_max_regno_call_before): Remove.
6374         (ira): Set up internal_flag_ira_verbose.  Call
6375         setup_prohibited_mode_move_regs.  Create and destroy allocno,
6376         copy, and live range pools.  Remove original_regno_call_crossed_p.
6377         Report major passes.  Use argument for ira_emit.  Call
6378         ira_flattening and df_analyze.  Remove live range splitting around
6379         calls.
6380         
6381         * ira-build.c (setup_loop_tree_level, rebuild_regno_allocno_maps,
6382         expand_calls, compress_calls, allocno_conflict_index,
6383         add_to_allocno_conflict_vec, propagate_info_to_cap,
6384         copy_allocno_live_range, copy_allocno_live_range_list,
6385         finish_allocno, finish_copy,
6386         propagate_info_to_loop_tree_node_caps, merge_ranges,
6387         common_loop_tree_node_dominator, check_and_add_conflicts,
6388         add_conflict_with_underlying_allocnos, ira_flattening): New
6389         functions.
6390         (check_coalesced_allocnos): Remove.
6391         (ira_loop_tree_height): New external variable.
6392         (form_loop_tree): Call setup_loop_tree_level.
6393         (initiate_calls): Allocate a bit more.  (create_allocno): Use
6394         pool_alloc.  Set up ALLOCNO_TOTAL_CONFLICT_ALLOCNOS_NUM,
6395         ALLOCNO_TOTAL_CONFLICT_HARD_REGS, ALLOCNO_NREFS,
6396         ALLOCNO_TOTAL_NO_STACK_REG_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6397         ALLOCNO_MEM_OPTIMIZED_DEST_P, ALLOCNO_UPDATED_MEMORY_COST, and
6398         ALLOCNO_LIVE_RANGES.  Rename
6399         ALLOCNO_CONFLICT_ALLOCNO_VEC_ACTIVE_SIZE,
6400         ALLOCNO_CURR_HARD_REG_COSTS, and
6401         ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS to
6402         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_UPDATED_HARD_REG_COSTS, and
6403         ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS.
6404         (add_allocno_conflict): Make it external.  Use
6405         add_to_allocno_conflict_vec.
6406         (create_cap_allocno): Move part of code to propagate_info_to_cap.
6407         (finish_allocnos): Use finish_allocno.
6408         (add_allocno_copy_to_list, remove_allocno_copy_from_list,
6409         swap_allocno_copy_ends_if_necessary, add_allocno_copy): Move from
6410         ira-conflicts.c.  Make them external.
6411         (create_copy): Use pool_alloc.  Add parameter loop_tree_node.
6412         (finish_copies): Use finish_copy.
6413         (ira_curr_regno_allocno_map): New external variable.
6414         (traverse_loop_tree): Add parameter bb_first_p.
6415         (create_insn_allocnos): Update ALLOCNO_NREFS.
6416         (create_loop_tree_node_allocnos): Traverse loop tree nodes with
6417         BBs first.  Update ALLOCNO_NREFS.
6418         (create_loop_tree_node_caps): Move part of code to
6419         propagate_info_to_loop_tree_node_cap.
6420         (regno_top_level_allocno_map): New global variable.
6421         (ira_build): Create caps before build conflicts.  Call
6422         create_allocno_live_ranges.  Propagate info to caps.  Report
6423         statistics.
6424         (ira_destroy): Call finish_allocno_live_ranges.
6426         * ira-conflicts.c (set_allocno_live, clear_allocno_live,
6427         record_regno_conflict, mark_reg_store, mark_reg_clobber,
6428         mark_reg_conflicts, mark_reg_death): Remove.
6429         (add_insn_allocno_copies, add_copies): New functions.
6430         (add_allocno_copy_to_list, remove_allocno_copy_from_list,
6431         swap_allocno_copy_ends_if_necessary, add_allocno_copy): Remove.
6432         (add_allocno_copies): Rename to add_insn_allocno_copies.  Use
6433         ira_curr_regno_allocno_map and add_insn_allocno_copies.
6434         (single_reg_class, single_reg_operand_class,
6435         process_single_reg_class_operands, process_bb_node_for_conflicts):
6436         Remove.
6437         (INT_BITS, INT_TYPE, EXECUTE_IF_SET_IN_ALLOCNO_SET): Move to
6438         ira-int.h.
6439         (allocnos_live_bitmap, SET_ALLOCNO_CONFLICT_ROW,
6440         CLEAR_ALLOCNO_CONFLICT_ROW, TEST_ALLOCNO_CONFLICT_ROW): Remove.
6441         (SET_ALLOCNO_LIVE, CLEAR_ALLOCNO_LIVE, TEST_ALLOCNO_LIVE):
6442         Use {SET, CLEAR, TEST}_ALLOCNO_SET_BIT.
6443         (allocno_row_words, hard_regs_live, curr_bb_node,
6444         curr_regno_allocno_map, curr_reg_pressure): Remove.
6445         (CONFLICTP): Rename to CONFLICT_P.
6446         (regs_set): Remove.
6447         (propagate_allocno_info): Use ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
6448         Set up ALLOCNO_CALLS_CROSSED_START.
6449         (allocno_conflict_p): New function.
6450         (allocno_reg_conflict_p): Use allocno_conflict_p.
6451         (build_allocno_conflict_vects): Divide original and propagated
6452         conflicts.
6453         (print_hard_reg_set): New function.
6454         (print_conflicts): Use print_hard_reg_set.  Set up mark for the
6455         start of propagated conflicts.
6456         (debug_conflicts): Add parameter.
6457         (ira_build_conflicts): Call add_copies.  Set up
6458         ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
6460         * ira-costs.c (struct costs): Make cost allocated dynamically.
6461         (struct_costs_size, temp_cots, op_costs, this_op_costs): New
6462         variables.
6463         (costs): Rename to total_costs.
6464         (COSTS_OF_ALLOCNO): New macro.
6465         (curr_regno_allocno_map): Remove.  Use ira_curr_regno_allocno_map
6466         instead.
6467         (record_reg_classes): Check NO_REGS in allocno_pref.
6468         (record_address_regs): Use COSTS_OF_ALLOCNO.
6469         (scan_one_insn): Ditto.
6470         (print_costs): Ditto.
6471         (find_allocno_class_costs): Ditto.  Pass additional argument to
6472         traverse_loop_tree.  Set up NO_REGS if memory is cheaper.
6473         (setup_allocno_cover_class_and_costs): Use
6474         ALLOCNO_UPDATED_MEMORY_COST instead of
6475         ALLOCNO_ORIGINAL_MEMORY_COST, ALLOCNO_UPDATED_HARD_REG_COSTS
6476         instead of ALLOCNO_CURR_HARD_REG_COSTS, and
6477         ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS instead of
6478         ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS.  Pass additional argument to
6479         traverse_loop_tree.
6480         (init_ira_costs_once): Allocate init_cost, op_costs,
6481         this_op_costs, temp_costs.
6482         (finish_ira_costs_once): New function.
6483         
6484         * ira-color.c: Use ALLOCNO_UPDATED_MEMORY_COST instead of
6485         ALLOCNO_ORIGINAL_MEMORY_COST, ALLOCNO_UPDATED_HARD_REG_COSTS
6486         instead of ALLOCNO_CURR_HARD_REG_COSTS, and
6487         ALLOCNO_UPDATED_CONFLICT_HARD_REG_COSTS instead of
6488         ALLOCNO_CURR_CONFLICT_HARD_REG_COSTS.  Use
6489         ALLOCNO_TOTAL_CONFLICT_HARD_REGS instead of
6490         ALLOCNO_CONFLICT_HARD_REGS.
6491         (processed_allocno_bitmap): Rename into
6492         processed_coalesced_allocno_bitmap.
6493         (allocno_cost_compare_func): Use ALLOCNO_UPDATED_MEMORY_COST
6494         instead of ALLOCNO_MEMORY_COST.
6495         (assign_hard_reg): Remove biased coloring.
6496         (add_allocno_to_ordered_bucket): Check cover class first.
6497         (loop_edge_freq): Make it external.
6498         (setup_allocno_left_conflicts_num): Check that conflicting
6499         allocnos of one class.
6500         (allocno_conflict_p): Rename to coalesced_allocno_conflict_p.
6501         (color_pass): Check pressure in the loop (not in subloops) for
6502         mixed algorithm.
6503         (allocno_priorities): New variable.
6504         (start_allocno_priorities, finish_allocno_priorities): New
6505         functions.
6506         (allocno_priority_compare_func): Use allocno_priorities.
6507         (priority_coloring): Call start_allocno_priorities and
6508         finish_allocno_priorities.
6509         (do_coloring): Pass additional argument to traverse_loop_tree.
6510         
6511         * ira-emit.c (struct move): Add member insn.
6512         (create_move): Initialize member insn.
6513         (generate_edge_moves): Set up ALLOCNO_MEM_OPTIMIZED_DEST and
6514         ALLOCNO_MEM_OPTIMIZED_DEST_P.
6515         (change_loop): Check prohibited_mode_move_regs.
6516         (curr_jump_map, can_move_through_p): Remove.
6517         (unify_moves): Don't move through jump.
6518         (modify_move_list): Set up attributes for new allocno used for
6519         breaking dependency loops.
6520         (emit_move_list): Set up insn codes.
6521         (update_costs, add_range_and_copies_from_move_list,
6522         add_ranges_and_copies): New functions.
6523         (ira_emit): Add a parameter.  Call add_ranges_and_copies.
6524         
6525 2007-10-09  Vladimir Makarov  <vmakarov@redhat.com>
6527         * toplev.h (flag_ira_coalesce): New external variable.
6529         * ira-int.h (allocno): New members first_coalesced_allocno,
6530         next_coalesced_allocno.
6531         (ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO):
6532         New macros.
6533         (reg_class_subintersect): New external variable.
6535         * ira-color.c (processed_allocno_bitmap): New variable.
6536         (allocno_cost_compare_func, print_coalesced_allocno): New
6537         functions.
6538         (assign_hard_reg): Process coalesced allocnos.
6539         (get_coalesced_allocnos_best_class_and_freq): New function.
6540         (add_allocno_to_ordered_bucket): Use the function.
6541         (push_allocno_to_stack, push_allocnos_to_stack): Process coalesced
6542         allocnos.
6543         (remove_allocno_from_bucket_and_push, pop_allocnos_from_stack):
6544         Use print_coalesced_allocno.
6545         (setup_allocno_available_regs_num,
6546         setup_allocno_left_conflicts_num): Process coalesced allocnos.
6547         (copy_freq_compare_func, allocno_conflict_p, coalesce_allocnos):
6548         New functions.
6549         (color_allocnos): Allocate/free processed_allocno_bitmap.  Call
6550         coalesce_allocnos.
6551         (priority_coloring): Allocate/free processed_allocno_bitmap.
6553         * ira-build.c (check_coalesced_allocnos): New function.
6554         (create_allocno): Initiate next_coalesced_allocno,
6555         first_coalesced_allocno.
6556         (create_cap_allocno): Check  next_coalesced_allocno,
6557         first_coalesced_allocno.
6559         * common.opt (fira-coalesce): New option.
6561         * ira.c (setup_reg_class_intersect): New function.
6562         (reg_class_subintersect): New global variable.
6563         (init_ira_once): Call setup_reg_class_intersect.
6565         * doc/invoke.texi (-fira-coalescing): New option.
6566         
6567 2007-09-20  Vladimir Makarov  <vmakarov@redhat.com>
6569         * ira-build.c (create_allocno): Initialize ALLOCNO_BEST_CLASS.
6571         * ira-color.c (add_allocno_to_ordered_bucket): Use
6572         ALLOCNO_BEST_CLASS.
6574         * ira-costs.c (setup_allocno_cover_class_and_costs): Initialize
6575         ALLOCNO_BEST_CLASS.
6577         * ira-int.h (allocno): New member best_class.
6578         (ALLOCNO_BEST_CLASS): New macro.
6579         
6580 2007-09-19  Vladimir Makarov  <vmakarov@redhat.com>
6582         * ira-int.h (allocno): Remove calls_crosed.  Add
6583         calls_crossed_start.
6584         (ALLOCNO_CALLS_CROSSED): Remove.
6585         (ALLOCNO_CALLS_CROSSED_START): Add.
6586         (build_df): Remove.
6587         (regno_calls, add_regno_call): New.
6588         
6589         * ira-build.c (initiate_calls, finish_calls, add_regno_call): New
6590         functions.
6591         (regno_calls, regno_calls_num): New globals.
6592         (build_df): Remove.
6593         (add_loop_to_tree): Use loop_outer.
6594         (form_loop_tree): Ditto.
6595         (initiate_allocnos, create_cap_allocno): Remove
6596         ALLOCNO_CALLS_CROSSED.  Add ALLOCNO_CALLS_CROSSED_START.
6597         (finish_allocnos): Remove ALLOCNO_CALLS_CROSSED.
6598         (create_bb_allocnos, create_loop_allocnos): Use DF_LR_{IN,OUT}
6599         instead of DF_UPWARD_LIVE_{IN,OUT}.
6600         (ira_build): Remove adding df problems and call of
6601         free_dominance_info.  Call initiate_calls.
6602         (ira_destroy): Add free_dominance_info and finish_calls.  Remove
6603         df_finish.
6605         * ira-emit.c (change_regs): Return the result.
6606         (generate_edge_moves): Use DF_LR_{IN,OUT} instead of
6607         DF_UPWARD_LIVE_{IN,OUT}.
6608         (change_loop): Call df_insn_rescan and df_note_rescan if there is
6609         a change.
6610         (can_move_through_p): Use hard_reg_set_equal_p instead of
6611         GO_IF_HARD_REG_EQUAL.
6613         * ira-costs.c (copy_cost, record_reg_classes,
6614         record_address_regs): Call init_move_cost if it is necessary.
6615         (tune_allocno_costs_and_cover_classes): Use regno_calls and
6616         ALLOCNO_CALLS_CROSSED_START instead of ALLOCNO_CALLS_CROSSED.
6618         * ira-conflicts.c (n_regs_set): Remove.
6619         (regs_set): Make it a vector.
6620         (mark_reg_store, mark_reg_clobber): Change 2nd parameter type.
6621         (process_bb_node_for_conflicts): Use DF_LR_IN instead of
6622         DF_UPWARD_LIVE_IN.  Call add_regno_call.  Initialize
6623         ALLOCNO_CALLS_CROSSED_START.  Remove ALLOCNO_CALLS_CROSSED.
6624         (build_conflict_bit_table): Initialize and finalize regs_set.
6625         (propagate_allocno_info): Remove ALLOCNO_CALLS_CROSSED.
6626         Initialzie ALLOCNO_CALLS_CROSSED_START.
6627         
6628         * ira-color.c (setup_allocno_available_regs_num,
6629         setup_allocno_left_conflicts_num): New functions.
6630         (update_allocno_avaialable_regs): Remove.
6631         (sorted_allocnos, allocno_stack_varray): Move upper.
6632         (assign_hard_reg): Use hard_reg_set_subset_p instead of
6633         GO_IF_HARD_REG_SUBSET.
6634         (loop_edge_freq): Use DF_LR_{IN,OUT} instead of
6635         DF_UPWARD_LIVE_{IN,OUT}.
6636         (put_allocno_into_bucket): Call setup_allocno_available_regs_num
6637         and setup_allocno_left_conflicts_num.
6638         (print_loop_title): Use loop_depth.
6639         (allocno_priority_compare_func): Remove REG_N_REFS and
6640         REG_LIVE_LENGTH.
6641         (retry_ira_color): Use SET_REGNO.  Use ALLOCNO_CALLS_CROSSED_NUM
6642         instead of ALLOCNO_CALLS_CROSSED.
6643         (collect_pseudo_call_clobbered_regs):  Use regno_calls and
6644         ALLOCNO_CALLS_CROSSED_START instead of ALLOCNO_CALLS_CROSSED.
6646         * ira-call.c (init_ira_call_data): Add argument to
6647         post_order_compute.
6648         (n_regs_set): Remove.
6649         (regs_set): Make it a vector.
6650         (mark_reg_store, mark_reg_clobber): Change 2nd parameter type.
6651         (mark_referenced_regs): Check null x.
6652         (put_save_restore_and_calculate_local_info): Initialize and
6653         finalize regs_set.  Use DF_LR_{IN,OUT} instead of
6654         DF_UPWARD_LIVE_{IN,OUT}.  Use loop_outer.
6655         (do_init_nothing): Remove.
6656         (save_trans_fun, save_con_fun_0, restore_trans_fun,
6657         restore_con_fun_0): Remove 1st parameter.
6658         (save_con_fun_n, restore_con_fun_n): Ditto.  Use
6659         df_simple_dataflow instead of df_analyze_problem.
6660         (put_save_restore): Use DF_LR_IN instead of DF_UPWARD_LIVE_IN.
6661         Call mark_all_referenced_regs for all insn.  Use bitmap progress.
6662         (get_move_insn): New function.
6663         (put_save_restore_and_calculate_local_info, put_save_restore): Use
6664         the function.
6666         * ira.c (insn_contains_asm_1, insn_contains_asm,
6667         compute_regs_asm_clobbered, expand_reg_info): New functions.
6668         (setup_class_subset_and_move_costs): Use hard_reg_set_subset_p
6669         instead of GO_IF_HARD_REG_SUBSET.
6670         (setup_reg_subclasses, setup_class_translate): Ditto. Use
6671         hard_reg_set_equal_p instead of GO_IF_HARD_REG_EQUAL.
6672         (setup_eliminable_regset): Call compute_regs_asm_clobbered.  Use
6673         df_set_regs_ever_live instead of regs_ever_live.
6674         (setup_reg_renumber): Check reg_equiv_const and
6675         reg_equiv_invariant_p.
6676         (ira): Remove no_new_pseudos. Add df-problems and analyze.  Call
6677         regstat_init_n_sets_and_refs and regstat_compute_ri.  Remove
6678         delete_unreachable_blocks.  Use expand_reg_info.  Move
6679         setup_preferred_alternate_classes upper.  Remove life_analysis.
6680         Prepare df-insfrastructure for reload.
6682         * regclass.c (setup_reg_classes): Don't use reg_pref_buffer.
6684         * function.[ch] (get_call_invalidated_used_regs): Change 1st
6685         parameter type.
6686         
6687         * gengtype.c (main): Add HARD_REG_SET.
6689         * alias.c (value_addr_p): New function.
6690         (nonoverlapping_memrefs_p): Use it.
6692         * caller-save.c (init_caller_save): Use DF_LR_TOP for IRA instead
6693         of global_live_at_start.
6694         
6695 2007-05-04  Vladimir Makarov  <vmakarov@redhat.com>
6697         * ira-conflicts.c: Change pseudo to allocno.
6698         * ira-color.c: Ditto.
6699         * ira-emit.c: Ditto.
6700         * ira-build.c: Ditto.
6701         * ira.c: Ditto.
6702         (important_classes_num, important_classes): New variables.
6703         (setup_cover_classes): Set up the variable values.
6704         * ira-costs.c: Ditto.
6705         (record_reg_classes, record_address_regs, scan_one_insn,
6706         find_pseudo_class_costs):  Process only important classes.
6707         * ira-call.c: Ditto.  Add comments about placement optimization.
6708         * ira-int.h: Ditto.
6709         (allocno) Use one bit field for boolean members.
6710         (important_classes_num, important_classes): New external
6711         definitions.
6713 2007-03-16  Vladimir Makarov  <vmakarov@redhat.com>
6715         * flags.h (ira_algorithm): Add IRA_ALGORITHM_MIXED.
6717         * opts.c (common_handle_option): Set up IRA_ALGORITHM_MIXED from
6718         the option argument.
6719         
6720         * common.opt (fira-assign-after-call-split, fira-propagate-cost,
6721         fira-split-around-calls): New options.
6722         (fira-ipra): Switch off by default.
6723         
6724         * doc/invoke.texi (-fira-algorithm): Add mixed algorithm.
6725         (-fno-ira-ipra): Rename to -fira-ipra.
6726         (-fno-ira-assign-after-call-split, -fira-propagate-cost,
6727         -fno-ira-split-around-calls): Add new options.
6728         
6729         * ira-conflicts.c (curr_reg_pressure): New variable.
6730         (set_pseudo_live, clear_pseudo_live, mark_reg_store,
6731         mark_reg_death): Update reg pressure.
6732         (add_pseudo_copies): Decrease cost for copy with dead pseudo.
6733         (process_bb_node_for_conflicts): Propagate reg pressure.
6734         (build_conflict_bit_table): Call process_bb_node_for_conflicts in
6735         preorder.
6736         (ira_build_conflicts): Add new coloring algorithm.
6737         (ira_build_conflicts): Add flag_ira_split_around_calls.
6739         * ira-emit.c (change_loop): Print allocation on the region
6740         borders.  Use pseudo_cap_member instead of regno.
6741         (modify_move_list): Add parameter to create pseudo.
6742         (ira_emit): Use pseudo_cap_member instead of regno.
6743         
6744         * ira-build.c (create_loop_tree_nodes): Set up initial reg
6745         pressure.
6746         (create_pseudo): Add parameter.  Use the parameter value instead
6747         of regno.
6748         (print_expanded_pseudo): Use pseudo_cap_member instead of regno.
6749         (create_cap_pseudo, create_insn_pseudos, create_bb_pseudos,
6750         create_loop_pseudos): Add argument to create_pseudo call.
6751         (create_pseudos, ira_build): Process IRA_ALGORITHM_MIXED.
6752         (create_loop_tree_node_caps):  Create cap pseudo for all pseudos
6753         not having father pseudo.
6754         
6755         * final.c (rest_of_handle_final): Process INCOMING_REGNO.
6757         * toplev.h (flag_ira_assign_after_call_split,
6758         flag_ira_propagate_cost, flag_ira_split_around_calls): New flags.
6760         * caller-save.c (save_call_clobbered_regs): Move declaration
6761         this_insn_sets to the function start.
6762         
6763         * ira-int.h (ira_loop_tree_node): Add reg_pressure.
6764         (pseudo): More comments for regno and cap_member
6765         (original_regno_call_crossed_p, ira_max_regno_before,
6766         ira_max_regno_call_before): New external variables.
6767         (create_pseudo): Add parameter.
6768         (reassign_conflict_pseudos, debug_ira_call_data,
6769         split_around_calls, get_around_calls_regno): New function
6770         prototypes.
6772         * ira-color.c (assign_hard_reg): Set best_hard_regno and
6773         conflict_regs earlier.  Check register availability earlier.
6774         Ignore conflict and copy cost for PSEUDO_MAY_BE_SPILLED_P.
6775         (calculate_pseudo_spill_cost): Use pseudo_cap instead of regno.
6776         Check father pseudo instead of subloop pseudos.
6777         (pop_pseudos_from_stack): Set up PSEUDO_ASSIGNED_P for NO_REGS
6778         pseudo.
6779         (print_loop_title): Print reg pressure.
6780         (color_pass): Use PSEUDO_CAP_MEMBER instead of regno.  Add mixed
6781         coloring algorithm.
6782         (move_spill_restore): Use PSEUDO_CAP_MEMBER instead of regno.  Use
6783         subloop pseudos instead of father pseudo for cost calculation.
6784         (setup_curr_costs, reassign_conflict_pseudos): New functions.
6785         (retry_ira_color): Don't allocate call used registers when
6786         flag_caller_saves or flag_ira_split_around_calls.  Call
6787         setup_curr_cost.  Print about spilling pseudo split around calls.
6788         (reuse_stack_slot): Choose the slot with minimal memory-memory
6789         costs.
6791         * ira.c (setup_reg_renumber): Add 2 parameters.  Use cap_number
6792         instead of regno.  Initialize caller_save_needed.  Make assertion
6793         stricter.
6794         (setup_pseudo_assignment_from_reg_renumber): New function.
6795         (calculate_allocation_cost): Add assertion.
6796         (print_redundant_copies): Use cap_number instead of regno.
6797         (original_regno_call_crossed_p, ira_max_regno_before,
6798         ira_max_regno_call_before): New global variables.
6799         (ira): Process IRA_ALGORITHM_MIXED.  Set up
6800         ira_max_regno_call_before and ira_max_regno_before.  New arguments
6801         for setup_reg_renumber.  Reassign if pseudo changed its class.
6802         Split pseudos around the call if necessary.  Reassign if a pseudo
6803         is split.
6805         * ira.h: New year for Copyright.
6807         * ira-costs.c (reg_pref): Rename to pseudo_pref.
6808         (reg_pref_buffer): rename to pseudo_pref_buffer.
6809         (find_pseudo_class_costs): Initialize best_cost and best_class.
6810         Process IRA_ALGORITHM_MIXED.  Find best cover class for regno.
6811         (process_bb_node_for_hard_reg_moves): Process IRA_ALGORITHM_MIXED.
6813         * Makefile.in (ira-call.o): Add new file.
6815         * reload1.c (calculate_needs_all_insns): Remove unnecessary
6816         memory-memory move.
6818         * ira-call.c: New file.
6819         
6820 2007-02-09  Vladimir Makarov  <vmakarov@redhat.com>
6822         * common.opt (fipra): Rename to fira-ipra.  Make it default.
6823         (fira-move-spills, fira-share-save-slots, fira-share-spill-slots):
6824         New.
6825         * toplev.h (flag_ipra): Rename to flag_ira_ipra.
6826         (flag_ira_move_spills, flag_ira_share_save_slots,
6827         flag_ira_share_spill_slots): New external definitions.
6828         * doc/invoke.texi (-fipra): Rename to -fno-ira-ipra. 
6829         (-fno-ira-move-spills, -fno-ira-share-save-slots,
6830         -fno-ira-share-spill-slots): New options.
6831         * function.c (get_call_invalidated_used_regs): Rename flag_ipra to
6832         flag_ira_ipra.
6833         * ira-costs.c (tune_pseudo_costs_and_cover_classes): Ditto.
6834         * caller-save.c (setup_save_areas): Use flag_ira_share_save_slots.
6835         Rename flag_ipra to flag_ira_ipra.
6836         (flag_ira_share_save_slots): Use flag_ira_move_spills.
6837         * ira-color.c (assign_hard_reg): Skip pseudos with different cover
6838         class.
6839         (reuse_stack_slot): Use flag_ira_share_spill_slots.
6840         * config/arm/arm.h (IRA_COVER_CLASSES): New macro.
6841         
6842 2007-02-31  Vladimir Makarov  <vmakarov@redhat.com>
6844         * reload.h (debug_save_data): New definition.
6845         
6846         * caller-save.c (struct bb_info): New.
6847         (BB_INFO, BB_INFO_BY_INDEX): New macros.
6848         (calculate_local_save_info, set_up_bb_rts_numbers, rpost_cmp,
6849         calculate_save_in_out, calculate_save_here,
6850         make_global_save_analysis, print_hard_reg_set_and_mode,
6851         print_hard_reg_set, print_save_data, debug_save_data,
6852         set_hard_reg_saved): New functions.
6853         (save_call_clobbered_regs): Make global save analysis and use it
6854         to put save/restore code.
6855         (insert_one_insn): Check CODE_LABEL.
6857 2007-01-19  Vladimir Makarov  <vmakarov@redhat.com>
6859         * toplev.h (flag_ipra): New external definition.
6861         * common.opt (fipra): New option.
6863         * doc/invoke.texi (-fipra); Document the option.
6865         * cgraph.h (cgraph_node): New member function_used_regs.
6867         * cgraph.c (cgraph_create_node): Initialize function_used_regs.
6869         * final.c (update_regs_ever_live): New function.
6870         (rest_of_handle_final): Set up function_used_regs and
6871         call_used_regs.
6873         * ira-build.c (ira_build): Clear function call_used_regs.
6875         * function.h: Add hard-reg-set.h header.
6876         (emit_status): New member call_used_regs.
6877         (get_call_invalidated_used_regs): New definition.
6879         * function.c (get_call, get_call_invalidated_used_regs): New
6880         functions.
6882         * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
6883         (caller-save.o): Add dependence on output.h and ira.h
6885         * regrename.c (copyprop_hardreg_forward_1): Use function
6886         get_call_invalidated_used_regs.
6888         * ira-conflicts.c (process_bb_node_for_conflicts): Ditto.
6890         * postreload-gcse.c (record_opr_changes,
6891         reg_set_between_after_reload_p, reg_used_between_after_reload_p):
6892         Ditto.
6894         * postreload.c (reload_combine, reload_cse_move2add): Ditto.
6896         * rtlanal.c (reg_set_between_p): Ditto.
6898         * flow.c (propagate_one_insn): Ditto.
6900         * df-scan.c (df_insn_refs_record): Ditto.
6902         * gcse.c (compute_hash_table_work, compute_store_table): Ditto.
6904         * cselib.c (cselib_process_insn): Ditto.
6906         * loop-iv.c (simplify_using_assignment): Ditto.
6908         * sched-deps.c (sched_analyze): Ditto.
6910         * combine.c (record_dead_and_set_regs): Ditto.
6912         * resource.c (mark_set_resources, mark_set_resources): Ditto.
6914         * var-tracking.c (var-tracking.c): Ditto.
6916         * reload1.c (reload): Ditto.
6918         * cse.c (invalidate_for_call): Ditto.  Add parameter.
6919         (cse_insn): Pass the parameter.
6921         * ira.h (try_to_migrate): Remove the definition.
6922         (collect_pseudo_call_clobbered_regs): New external definition.
6924         * ira-color.c (collect_pseudo_call_clobbered_regs): New function.
6926         * ira-costs.c (tune_pseudo_costs_and_cover_classes): Add cost
6927         calculation when IPRA is used.
6929         * caller-save.c: Include headers output.h and ira.h.
6930         (saved_hard_reg): New structure.
6931         (hard_reg_map, hard_reg_map, all_saved_regs): New variables.
6932         (all_saved_regs, new_saved_hard_reg, finish_saved_hard_regs,
6933         saved_hard_reg_compare_func): New functions.
6934         (setup_save_areas): Add code for sharing stack slots.
6935         (save_call_clobbered_regs): Use function
6936         get_call_invalidated_used_regs.
6937         
6938 2007-01-12  Vladimir Makarov  <vmakarov@redhat.com>
6940         * doc/tm.texi (IRA_HARD_REGNO_ADD_COST_MULTIPLIER): New macro.
6942         * ira-conflicts.c (add_pseudo_copies): Add copy between output and
6943         died operand pseudos.
6945         * ira.c (setup_cover_classes, setup_class_translate): Define and
6946         call only when IRA_COVER_CLASSES is defined.
6947         (no_alloc_regs): Rename to no_unit_alloc_regs.
6948         (setup_eliminable_regset): Set up no_alloc_regs.
6950         * ira-costs.c (tune_pseudo_costs_and_cover_classes): Modify cost
6951         if IRA_HARD_REGNO_ADD_COST_MULTIPLIER is defined.
6953         * config/s390/s390.h (IRA_COVER_CLASSES,
6954         IRA_HARD_REGNO_ADD_COST_MULTIPLIER(regno)): Define.
6955         
6956 2006-12-22  Vladimir Makarov  <vmakarov@redhat.com>
6958         * rtl.h (setup_reg_classes): New function prototype.
6959         
6960         * regclass.c (setup_reg_classes): New function.
6962         * global.c (global_alloc): Dump information about register
6963         assigning.
6965         * ira-int.h (ira_build): Change prototype signature.
6967         * ira-color.c (pseudo_compare_func): Rename to
6968         pseudo_priority_compare_func.
6969         (priority_coloring): Dump information about register
6970         assigning.
6972         * ira-build.c (ira_build): Return true if we have loops for the
6973         allocation.
6975         * ira.c (setup_preferred_alternate_classes): New function.
6976         (ira): Use it instead of regclass.  Rebuild only if we have loops.
6978 2006-12-15  Vladimir Makarov  <vmakarov@redhat.com>
6980         * ira.h, ira-int.h, ira.c, ira-build.c, ira-costs.c
6981         ira-conflicts.c, ira-color.c, ira-emit.c: New files.
6983         * flags.h (ira_algorithm): New enumeration.
6984         (flag_ira_algorithm): New external variable declaration.
6986         * tree-pass.h (pass_ira): New external variable declaration.
6988         * toplev.c (ira.h): New include.
6989         (flag_ira_algorithm): New global variable.
6990         (backend_init): Call init_ira_once.
6992         * toplev.h (flag_ira, flag_ira_biased_coloring): New external
6993         variable declarations.
6995         * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
6996         may_move_out_cost): New external variable declarations.
6997         
6998         * caller-save.c (no_caller_save_reg_set): New global variable.
6999         (init_caller_save): Set up no_caller_save_reg_set.
7000         
7001         * global.c (eliminable_regset): Make it external.
7002         (gate_handle_global_alloc): New function.
7003         (pass_global_alloc): Add the gate function.
7005         * opts.c (decode_options):  Print the warning for -fira.
7006         (common_handle_option): Process -fira-algorithm option.
7008         * timevar.def (TV_IRA): New pass.
7010         * hard-reg-set.h (no_caller_save_reg_set): New external variable
7011         declaration.
7013         * regmove.c (regmove_optimize): Don't do replacement of output
7014         operands by input operands.
7015         (rest_of_handle_regmove): Don't do CFG cleanup for IRA.
7017         * local-alloc.c (update_equiv_regs): Make it external.  Return
7018         true if jump label rebuilding should be done.
7019         (gate_handle_local_alloc): New function.
7020         (pass_local_alloc): Add the gate function.
7022         * alias.c (stack_addr_p): New function.
7023         (nonoverlapping_memrefs_p): Add code for IRA.
7025         * common.opt (fira, fira-algorithm, fira-biased-coloring): New
7026         options.
7028         * regclass.c (contains_reg_of_mode, move_cost, may_move_in_cost,
7029         may_move_out_cost): Make the variables external.
7030         
7031         * rtl.h (eliminable_regset): New external variable declaration.
7032         (update_equiv_regs): New external function definition.
7034         * Makefile.in (IRA_INT_H): New definition.
7035         (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
7036         ira-conflicts.o, ira-color.o, and ira-emit.o.
7037         (reload1.o, toplev.o): Add dependence on ira.h.
7038         (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
7039         ira-emit.o): New entries.
7041         * passes.c (pass_ira): New pass.
7043         * reload1.c (alter_reg): Add a new parameter.
7044         (pseudo_reg_compare): New function.
7045         (reload): Sort pseudos for IRA.  Call alter_reg with the
7046         additional parameter.
7047         (count_spilled_pseudo): New variable freq.  Use it.
7048         (alter_reg): Add code for IRA.
7049         (eliminate_regs_1, finish_spills, emit_input_reload_insns,
7050         delete_output_reload): Use additional parameter for alter_reg.
7051         (finish_spills, emit_input_reload_insns, delete_output_reload):
7052         Call mark_allocation_change.
7053         (finish_spills): Call retry_ira_color.
7054         
7055         * doc/invoke.texi: Describe new options -fira,
7056         -fira-biased-coloring, and -fira-algorithm.
7057         
7058         * doc/passes.texi: Decribe IRA.
7060         * doc/tm.texi:  Decribe macro IRA_COVER_CLASSES.
7061         
7062         * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
7064         * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
7066         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
7068         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
7069         
7070         Richard Henderson  <rth@redhat.com>
7072         * tree-pass.h (pass_lower_subreg): New external definition.
7073         * toplev.h (flag_lower_subreg): New external definition.
7074         * rtl.def (CONCATN): New rtl expression.
7075         * dwarf2out.c (concatn_loc_descriptor): New function.
7076         (loc_descriptor): Process CONCATN.
7077         * timevar.def (TV_LOWER_SUBREG): New definition.
7078         * emit-rtl.c (gen_reg_rtx_offset): New function.
7079         (gen_lowpart_common): Process CONCATN.
7080         * simplify-rtx.c (simplify_subreg): Process CONCATN.
7081         * common.opt (flower-subreg): New options.
7082         * rtl.h (gen_reg_rtx_offset): New external definition.
7083         * Makefile.in (OBJS-common): Add lower-subreg.o.
7084         (lower-subreg.o): New entry.
7085         * passes.c (pass_lower_subreg): Add new pass.
7086         * lower-subreg.c: New file.
7087         
7088 2008-03-28  Rafael Espindola  <espindola@google.com>
7090         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
7091         (tree_binary_nonnegative_warnv_p): Make it public.
7092         (tree_single_nonnegative_warnv_p): Make it public.
7093         (tree_invalid_nonnegative_warnv_p): Make it public.
7094         (tree_unary_nonzero_warnv_p): Make it public.
7095         (tree_binary_nonzero_warnv_p): Make it public
7096         (tree_single_nonzero_warnv_p): Make it public.
7097         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
7098         (extract_range_from_binary_expr): Split the expr argument.
7099         (extract_range_from_unary_expr): Split the expr argument.
7100         (extract_range_from_comparison): Split the expr argument.
7101         (extract_range_from_expr): Use the new aux functions.
7102         (vrp_evaluate_conditional_warnv): Use
7103         vrp_evaluate_conditional_warnv_with_ops.
7104         * tree.h (tree_unary_nonzero_warnv_p): Declare.
7105         (tree_binary_nonzero_warnv_p): Declare.
7106         (tree_single_nonzero_warnv_p): Declare.
7107         (tree_expr_nonzero_warnv_p): Declare.
7108         (tree_unary_nonnegative_warnv_p): Declare.
7109         (tree_binary_nonnegative_warnv_p): Declare.
7110         (tree_single_nonnegative_warnv_p): Declare.
7111         (tree_invalid_nonnegative_warnv_p): Declare.
7113 2008-03-28  Richard Guenther  <rguenther@suse.de>
7115         PR tree-optimization/30317
7116         PR tree-optimization/30911
7117         PR tree-optimization/34793
7118         * tree-vrp.c (set_and_canonicalize_value_range): New function.
7119         (struct assert_locus_d): New member EXPR.
7120         (register_new_assert_for): Add EXPR parameter to support
7121         ASSERT_EXPR <name, expr OP limit>.
7122         (register_edge_assert_for_1): Adjust callers.
7123         (find_assert_locations): Likewise.
7124         (process_assert_insertions_for): Build condition from
7125         expression.
7126         (extract_range_from_assert): Handle ASSERT_EXPRs
7127         of the form ASSERT_EXPR <name, expr OP limit>.
7128         (register_edge_assert_for_2): New helper registering
7129         asserts for comparisons.  Recognize range tests of the form
7130         (unsigned)i - CST1 OP CST2.
7131         (register_edge_assert_for_1): Use it.
7132         (register_edge_assert_for): Likewise.
7133         (needs_overflow_infinity): Integer sub-types
7134         do not need overflow infinities.
7135         (vrp_val_is_max): The extreme values of integer sub-types
7136         are those of the base type.
7137         (vrp_val_is_min): Likewise.
7138         * tree.def (ASSERT_EXPR): Document extra allowed conditional
7139         expressions.
7141 2008-03-28  Nick Clifton  <nickc@redhat.com>
7143         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
7144         Return GENERAL_REGS for stack adjustment reloads.
7146 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7148         PR target/31334
7149         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
7150         const_vector when all the vectors are constant.
7152 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
7154         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
7155         comparisons.
7156         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
7157         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
7158         (scc_sf): New.
7159         (s<code>_sf): Use new scc_sf attribute for opcode names.
7161 2008-03-27  Tom Tromey  <tromey@redhat.com>
7163         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
7164         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
7165         config/spu/t-spu-elf, config/i386/t-interix,
7166         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
7167         config/i386/x-darwin, config/i386/x-mingw32,
7168         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
7169         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
7170         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
7171         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
7172         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
7173         config/rs6000/x-darwin, config/rs6000/t-rs6000,
7174         config/score/t-score-elf, config/arm/t-strongarm-pe,
7175         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
7176         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
7177         Revert automatic dependency patch.
7179 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7181         PR target/35657
7182         * config/i386/i386.c (ix86_function_arg_boundary): Align
7183         decimal floating point to its natural boundary.
7185 2008-03-27  Richard Guenther  <rguenther@suse.de>
7187         PR middle-end/35716
7188         * fold-const.c (fold_comparison): Restrict distinct decl
7189         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
7190         solely rely on operand_equal_p.
7192 2008-03-27  Richard Guenther  <rguenther@suse.de>
7194         PR c/32511
7195         * c-common.c (handle_weak_attribute): Reject combination of
7196         weak and inline.
7198 2008-03-27  Richard Guenther  <rguenther@suse.de>
7200         PR tree-optimization/32810
7201         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
7202         conversions from DECL_INITIAL.
7203         (fold_const_aggregate_ref): Likewise from constructor elements.
7205 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
7207         * tree-affine.h (aff_combination_expand): Declare.
7208         (get_inner_reference_aff): Likewise.
7209         * tree-affine.c (aff_combination_expand): Split out from
7210         tree_to_aff_combination_expand.
7211         (get_inner_reference_aff): New function.
7212         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
7213         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
7214         (struct lim_aux_data): sm_done field removed.
7215         (mem_ref_loc_p, mem_ref_locs_p): New types.
7216         (struct mem_ref): Added id, stored, accesses_in_loop,
7217         indep_loop, dep_loop, indep_ref, dep_ref fields.
7218         Removed is_stored, locs and next fields.
7219         (memory_accesses): New variable.
7220         (movement_possibility): Do not allow moving statements
7221         that store to memory.
7222         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
7223         New functions.
7224         (determine_max_movement): For statements with memory references,
7225         find the outermost loop in that the reference is independent.
7226         (move_computations_stmt): Mark the virtual operands for
7227         renaming.
7228         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
7229         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
7230         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
7231         add_vop_ref_mapping, create_vop_ref_mapping_loop,
7232         create_vop_ref_mapping, analyze_memory_references,
7233         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
7234         get_all_locs_in_loop, ref_always_accessed_p,
7235         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
7236         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
7237         store_motion_loop, store_motion): New functions.
7238         (struct vop_to_refs_elt): New type.
7239         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
7240         memref_hash, memref_eq, hoist_memory_references): Rewritten.
7241         (schedule_sm): Replaced by...
7242         (execute_sm): ... this.
7243         (determine_lsm_ref, hoist_memory_references,
7244         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
7245         find_more_ref_vops, free_mem_ref, free_mem_refs,
7246         determine_lsm_loop, determine_lsm): Removed.
7247         (tree_ssa_lim_finalize): Free data structures used by store
7248         motion.
7249         (tree_ssa_lim): Call analyze_memory_references.  Use
7250         store_motion instead of determine_lsm.
7252 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
7254         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
7255         rename tmake_file to m68hc11/t-m68hc11.
7256         (mcore): Set inhibit_libc to true.
7257         * config.host (alpha*-dec-*vms*): Set extra_programs.
7258         (interix3*): Don't use host_xmake_file.
7259         * configure.ac: Let config.gcc override inhibit_libc.
7260         * configure: Regenerate.
7262         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
7263         * config/t-openbsd-thread: Remove commented out lines.
7264         
7265         * config/x-interix: Remove.
7267         * config/m68hc11/t-m68hc11-gas: Rename to...
7268         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
7270         * config/mcore/t-mcore: Remove T_CFLAGS.
7271         * config/mcore/t-mcore-pe: Likewise.
7273 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
7275         * configure.ac: Replace custom __GNU_SOURCE test with
7276         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
7277         * aclocal.m4: Regenerate.
7278         * configure: Regenerate.
7279         * config.in: Regenerate.
7281 2008-03-27  Richard Guenther  <rguenther@suse.de>
7283         * fold-const.c (target.h): Include.
7284         (fold_comparison): Fold comparison of addresses of decls
7285         that bind locally or of constants.  Consolidate address folding code.
7286         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
7287         results from fold_binary_to_constant.
7288         (compare_values_warnv): Likewise.
7290 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
7292         PR middle-end/35429
7293         * fold-const.c (fold_truthop): Check for integeral types when folding
7294         a == 0 && b == 0 and a != 0 || b != 0 .
7296 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
7298         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
7300 2008-03-26  Andreas Schwab  <schwab@suse.de>
7302         * doc/invoke.texi: Fix use of @item vs. @itemx.
7304 2008-03-26  Tom Tromey  <tromey@redhat.com>
7306         * Makefile.in (build/gensupport.o, build/print-rtl.o,
7307         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
7308         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
7309         build/gencodes.o, build/genconditions.o, build/genconfig.o,
7310         build/genconstants.o, build/genemit.o, build/genextract.o,
7311         build/genflags.o, build/genmddeps.o, build/genopinit.o,
7312         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
7313         options.h.
7315 2008-03-26  Richard Guenther  <rguenther@suse.de>
7317         Revert
7318         2008-03-26  Richard Guenther  <rguenther@suse.de>
7320         * fold-const.c (target.h): Include.
7321         (fold_comparison): Fold comparison of addresses of two decls
7322         that bind locally.  Consolidate address folding code.
7324 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7326         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
7327         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
7328         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
7329         dconstsqrt2, dconstthird, dconste and/or dconst10.
7330         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
7331         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
7332         dconstsqrt2, dconste): Delete.
7333         (init_emit_once): Likewise.  Simplify initializing dconstm1.
7334         Constify variable.
7335         * real.c (get_real_const): New.
7336         * real.h (dconst3, dconst10, dconstm2, dconstthird,
7337         dconstsqrt2, dconste): Delete.
7338         (real_value_const, get_real_const): New.
7340 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
7342         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
7344         * config/i386/i386.c (ix86_function_arg_boundary): Check
7345         BIGGEST_ALIGNMENT instead of 128.
7346         (setup_incoming_varargs_64): Likewise.
7348 2008-03-26  Tom Tromey  <tromey@redhat.com>
7350         * Makefile.in (DEPFILES): Add missing '/'.
7352 2008-03-26  Richard Guenther  <rguenther@suse.de>
7354         * fold-const.c (target.h): Include.
7355         (fold_comparison): Fold comparison of addresses of two decls
7356         that bind locally.  Consolidate address folding code.
7358 2008-03-26  Nick Clifton  <nickc@redhat.com>
7360         PR target/31232
7361         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
7362         not allow INT+INT as a legitimate addressing mode.
7364 2008-03-26  Richard Guenther  <rguenther@suse.de>
7366         * tree-flow.h (widen_bitfield): Remove declaration.
7367         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
7368         (widen_bitfield): Remove function.
7369         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
7370         code.
7372 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7374         PR target/31558
7375         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
7376         error_mark_node's.
7378 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
7380         PR rtl-optimization/35232
7381         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
7382         (forget_old_reloads_1, forget_marked_reloads): Don't clear
7383         reg_reloaded_call_part_clobbered here.
7384         (reload_regs_reach_end_p): New function.
7385         (reload_reg_rtx_for_input): New variable.
7386         (reload_reg_rtx_for_output): Likewise.
7387         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
7388         when reassigning a pseudo register.  Load reloadreg from 
7389         reload_reg_rtx_for_input, moving the mode and register
7390         calculation to...
7391         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
7392         instead of the original when deciding whether an input reload
7393         would be a no-op or whether an output reload can be deleted.
7394         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
7395         when setting up new_spill_reg_store.  Load it from
7396         reload_reg_rtx_for_output, moving the mode and register
7397         calculation to...
7398         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
7399         instead of the original when deciding whether an output reload
7400         would be a no-op.  Do the same when modifying insn notes.
7401         Use rtx_equal_p instead of == to compare the registers.
7402         (inherit_piecemeal_p): Take a mode and two register numbers
7403         as argument.
7404         (emit_reload_insns): Clear new_spill_reg_store for every hard
7405         register in the reload register.  Remove spill registers
7406         from reg_reloaded_valid before considering whether to record
7407         inheritance information for them.  Use reload_reg_rtx_for_output
7408         instead of reg_rtx when recording output reloads.  Use
7409         reload_reg_rtx_for_input instead of reg_rtx when recording
7410         input reloads.  Set or clear reg_reloaded_call_part_clobbered
7411         at the same time as setting reg_reloaded_valid.
7412         (delete_output_reload): Add a new_reload_reg parameter and use it
7413         instead of rld[j].reg_rtx.
7414         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
7415         calls accordingly.
7417 2008-03-25  Tom Tromey  <tromey@redhat.com>
7419         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
7420         (build/genattr.o): Likewise.
7421         (build/genattrtab.o): Likewise.
7422         (build/gencodes.o): Likewise.
7423         (build/genconfig.o): Likewise.
7424         (build/genconstants.o): Likewise.
7425         (build/genemit.o): Likewise.
7426         (build/genextract.o): Likewise.
7427         (build/genflags.o): Likewise.
7429 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
7430         
7431         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
7432         instead of size_int for integer types.
7433         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
7434         to match type of MINUS_EXPR.
7435         
7436 2008-03-25  Tom Tromey  <tromey@redhat.com>
7438         * configure: Rebuilt.
7439         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
7440         Makefile.
7442 2008-03-25  Tom Tromey  <tromey@redhat.com>
7444         * config/x-solaris (host-solaris.o): Update.
7445         * config/x-linux (host-linux.o): Update.
7446         * config/x-hpux (host-hpux.o): Update.
7447         * config/x-darwin (host-darwin.o): Update.
7448         * config/v850/t-v850e (v850-c.o): Update.
7449         * config/v850/t-v850 (v850-c.o): Update.
7450         * config/t-vxworks (vxworks.o): Update.
7451         * config/t-sol2 (sol2-c.o, sol2.o): Update.
7452         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
7453         * config/spu/t-spu-elf (spu-c.o): Update.
7454         (spu.o): Remove.
7455         * config/sh/t-symbian (sh-c.o): Update.
7456         (symbian.o): Update.
7457         * config/sh/t-sh (sh-c.o): Update.
7458         * config/score/t-score-elf (score7.o, score3.o): Update.
7459         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
7460         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
7461         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
7462         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
7463         (rs6000.o): Remove.
7464         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
7465         * config/m32c/t-m32c (m32c-pragma.o): Update.
7466         * config/ia64/t-ia64 (ia64-c.o): Update.
7467         * config/i386/x-mingw32 (host-mingw32.o): Update.
7468         * config/i386/x-i386 (driver-i386.o): Update.
7469         * config/i386/x-darwin (host-i386-darwin.o): Update.
7470         * config/i386/x-cygwin (host-cygwin.o): Update.
7471         * config/i386/t-nwld (nwld.o): Update.
7472         * config/i386/t-netware (netware.o): Update.
7473         * config/i386/t-interix (winnt.o): Update.
7474         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
7475         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
7476         msformat-c.o): Update.
7477         * config/bfin/t-bfin-linux (generated_files): Add
7478         linux-sysroot-suffix.h.
7479         * config/arm/t-wince-pe (pe.o): Update.
7480         * config/arm/t-strongarm-pe (pe.o): Update.
7481         * config/arm/t-pe (pe.o): Update.
7482         * config/arm/t-arm (arm-c.o): Update.
7483         * doc/install.texi (Prerequisites): Require make 3.80.
7484         * Makefile.in: Remove .o targets.
7485         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
7486         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
7487         (simple_generated_h, simple_generated_c): Move earlier.
7488         (generated_files): New variable.
7489         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
7490         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
7491         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
7492         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
7493         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
7494         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
7495         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
7496         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
7497         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
7498         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
7499         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
7500         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
7501         (.c.o): Remove.
7502         (COMPILE.base, COMPILE): New variables.
7503         (%.o): New pattern rule.
7504         (ALL_HOST_OBJS): New variable.
7505         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
7506         (dummy-checksum.o, cc1-checksum.o): Remove.
7507         (DRIVER_SHLIB): New variable.
7508         (DRIVER_DEFINES): Use it.
7509         (gencondmd.c): Move out of build/.
7510         (s-conditions): Update.
7511         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
7512         (ALL_BUILD_OBJS): Likewise.
7513         (build/%.o): Use BUILDCOMPILE.
7514         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
7515         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
7516         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
7517         build/gencheck.o, build/gencodes.o, build/genconditions.o,
7518         build/genconfig.o, build/genconstants.o, build/genemit.o,
7519         build/genextract.o, build/genflags.o, build/genmddeps.o,
7520         build/genopinit.o, build/genoutput.o, build/genpeep.o,
7521         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
7522         build/gen-protos.o, build/scan.o, build/fix-header.o,
7523         build/scan-decls.o): Simplify.
7524         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
7525         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
7526         prefix.o, toplev.o): Reduce to variable setting.
7527         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
7528         ($(out_object_file), gcc-options.o): New targets.
7529         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
7530         * configure: Rebuilt.
7531         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
7532         * doc/sourcebuild.texi (Front End Directory): Document new variable.
7534 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
7536         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
7537         complain when we hit an error, return ERROR_MARK_NODE.
7539 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
7541         * config/sh/constraints.md (Pso, Psz): New constraints.
7542         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
7543         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
7545 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
7547         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
7548         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
7550 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
7552         * config/sh/sh.md (prefetch): Add condition for SH2A target.
7553         (prefetch_sh2a): New.   
7555 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
7556             Naveen.H.S  <naveen.hs@kpitcummins.com>
7558         * config/sh/constraints.md (I28): New constraint.
7559         * config/sh/sh.c (broken_move): Add support for movi20s.
7560         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
7562 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
7563             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
7564             Naveen.H.S  <naveen.hs@kpitcummins.com>
7566         * config/sh/sh.c (SH_ATTRIBUTES): Define.
7567         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
7568         (print_operand): Handle resbank in %@ operand code.
7569         (sh_encode_section_info): New.
7570         (push_regs): Add conditions for resbank.
7571         (sh_expand_epilogue): Likewise.
7572         (sh_insert_attributes): Likewise.
7573         (sh_attribute_table): Likewise.
7574         (sh_handle_resbank_handler_attribute): New.
7575         (sh2a_handle_function_vector_handler_attribute): New.
7576         (sh2a_is_function_vector_call): New.
7577         (sh2a_get_function_vector_number): New.
7578         (sh2a_function_vector_p): New.
7579         (sh_cfun_resbank_handler_p): New.
7580         * config/sh/sh.md (calli): Emit jsr/n if possible.
7581         (calli_tbr_rel): New.
7582         (calli_pcrel): Emit jsr/n if possible.
7583         (return_i): Emit rts/n if possible.
7584         (call_valuei_tbr_rel): New.
7585         (call_valuei_pcrel): Add condition for SH2A target.
7586         (call_value): Likewise.
7587         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
7588         (sh2a_get_function_vector_number): Likewise.
7589         (sh2a_is_function_vector_call): Likewise.
7590         * doc/extend.texi: Document TBR relative addressing of SH2A.
7591         (resbank): Add description for SH2A.
7593 2008-03-24  Richard Guenther  <rguenther@suse.de>
7595         PR c/22371
7596         * gimplify.c (gimplify_modify_expr): For frontend type-correct
7597         pointer assignments change conversions according to middle-end rules.
7598         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
7599         * configure.ac: Include type checking in yes.
7600         * configure: Regenerate.
7602 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7604         * diagnostic.c (diagnostic_count_diagnostic): Delete.
7605         (diagnostic_report_diagnostic): Update. Handle ICEs here.
7606         
7607 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
7609         * gthr-vxworks.h (UNUSED): Define.
7611 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
7613         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and
7614         CX_REG.
7616 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
7618         * doc/extend.texi (Function Attributes): Add missing comma in the
7619         example of the "alloc_size" attribute.
7620         
7621 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
7623         Revert:
7624         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
7626         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
7627         32bit host.
7629         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
7631         PR target/35496
7632         * stor-layout.c (update_alignment_for_field): Set minimum alignment
7633         of the underlying type of a MS bitfield layout to the natural
7634         alignment of the type.
7636         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
7638         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
7639         to their natural alignment to avoid store forwarding stalls.
7641 2008-03-22  Richard Guenther  <rguenther@suse.de>
7643         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
7644         For PHI nodes verify the address is invariant.
7645         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
7646         (get_symbol_constant_value): Use is_gimple_min_invariant.
7647         (maybe_fold_stmt_indirect): Likewise.
7649 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
7651         PR rtl-optimization/33927
7652         * Makefile.in (dse.o): Depend on $(TM_P_H).
7653         * expr.h (extract_low_bits): Declare.
7654         * expmed.c (extract_low_bits): New function.
7655         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
7656         * dse.c: Include tm_p.h.
7657         (find_shift_sequence): Remove the read_reg argument and return the
7658         read value.  Emit the instructions instead of returning them.
7659         Iterate on new_mode rather than calculating it each time.
7660         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
7661         source to NEW_MODE and extract_low_bits to convert the shifted
7662         value to READ_MODE.
7663         (replace_read): Allow the load and store to have different mode
7664         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
7665         or extraction instructions before trying the replacement.  Update
7666         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
7668 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
7670         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
7671         to their natural alignment to avoid store forwarding stalls.
7673 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7675         PR target/27946
7676         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
7677         encouraging but not allowing gprs for input;
7678         change the input constraint to !f#r.
7679         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
7680         gprs for output;
7681         change the output constraint to !f#r.
7683 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
7685         PR target/13958
7686         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
7687         corresponding post-reload splitters.
7688         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
7689         when x87 FP math is selected.
7690         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
7691         New function prototype.
7692         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
7693         unreachable function to ease macroization of insn patterns.
7695 2008-03-21  Martin Jambor  <mjambor@suse.cz>
7697         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
7698         reference dumps if ddr is NULL or dependence is unknown.
7700 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
7702         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
7703         unsigned extension into account.
7704         (ATOMIC_COMPARE_AND_SWAP): Likewise.
7705         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
7706         Do computations on a scratch register.
7708 2008-03-21  Richard Guenther  <rguenther@suse.de>
7710         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
7711         Use is_gimple_min_invariant instead of TREE_INVARIANT.
7712         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
7713         * tree-ssa-dom.c (record_equality): Likewise.
7714         * tree-inline.c (copy_body_r): Likewise.
7715         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
7716         TREE_INVARIANT.
7718 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
7720         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
7721         as 'delete_unused' argument.
7723 2008-03-20  Richard Guenther  <rguenther@suse.de>
7725         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
7726         special casing of constant qualifiers.
7727         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
7728         care about them in general.
7729         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
7730         regardless of their type.
7731         (fold_stmt_r): Forcefully fold *& if we end up with that.
7733 2008-03-20  Paul Brook  <paul@codesourcery.com>
7735         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
7736         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
7737         linker flags.
7738         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
7739         definition.
7740         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
7741         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
7743 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
7745         * common.opt (Wmudflap): New option.
7746         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
7747         (mx_register_decls): Likewise.
7748         (mudflap_finish_file): Likewise.
7749         * doc/invoke.texi: Document -Wno-mudflap.
7751 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
7753         * c-format.c (replace_format_name_to_system_name): New.
7754         (cmp_attribs): New.
7755         (convert_format_name_to_system_name): New.
7756         (decode_format_attr): Add use of convert_format_name_to_system_name.
7757         (format_types_orig): Add gnu_ prefix to names.
7758         (check_format_info_main): Special treating of \0 escaped names for
7759         supporting multi-character format specifiers as I32, I64.
7760         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
7761         (gnu_target_overrides_format_attributes): New.
7762         * c-format.h: Add structure target_ovr_attr to hold
7763         system specific formatter names.
7764         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
7765         msformat-c.o file to c_target_objs and cxx_target_objs.
7766         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
7767         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
7768         (TARGET_N_FORMAT_TYPES): New.
7769         * config/i386/msformat-c.c: New.
7770         * config/i386/t-cygming: Add build rule for msformat-c.o.
7771         * doc/extend.texi: Add new format names gnu_* and ms_* and
7772         further details.
7773         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
7775 2008-03-20  Ira Rosen  <irar@il.ibm.com>
7777         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
7778         optimizations turned on under -O3.
7779         (ftree-vectorize): Add that the flag is turned on with -O3.
7781 2008-03-20  Ben Elliston  <bje@au.ibm.com>
7783         * regmove.c (try_auto_increment): Fix spelling error in comment.
7784         * final.c (final_scan_insn): Likewise.
7786 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
7788         PR target/14552
7789         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
7790         allocator preferences for "y" and "r" class registers.
7791         ("*mov<mode>_internal"): Ditto.
7792         ("*movv2sf_internal_rex64"): Ditto.
7793         ("*movv2sf_internal"): Ditto.
7795 2008-03-19  Michael Matz  <matz@suse.de>
7797         PR middle-end/35616
7798         * calls.c (expand_call): Check overlap of arguments with call
7799         address for sibcalls.
7801 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
7803         PR target/35496
7804         * stor-layout.c (update_alignment_for_field): Set minimum alignment
7805         of the underlying type of a MS bitfield layout to the natural
7806         alignment of the type.
7808 2008-03-19  Jan Hubicka  <jh@suse.cz>
7810         PR other/35094
7811         * toplev.c (decode_d_option): Handle all CPP flags.
7812         * tree-vrp.c: Update tree_pass descriptors.
7813         * regrename.c: Update tree_pass descriptors.
7814         * fwprop.c: Update tree_pass descriptors.
7815         * doc/invoke.texi: Remove documentation of dropped -d? flags.
7816         * tree-into-ssa.c: Update tree_pass descriptors.
7817         * tree-dump.c: Update tree_pass descriptors.
7818         * tree-complex.c: Update tree_pass descriptors.
7819         * tree-dump.h: Update tree_pass descriptors.
7820         * see.c: Update tree_pass descriptors.
7821         * cgraphbuild.c: Update tree_pass descriptors.
7822         * tracer.c: Update tree_pass descriptors.
7823         * tree-loop-distribution.c: Update tree_pass descriptors.
7824         * cgraph.c: Update tree_pass descriptors.
7825         * postreload-gcse.c: Update tree_pass descriptors.
7826         * postreload.c: Update tree_pass descriptors.
7827         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
7828         * tree-tailcall.c: Update tree_pass descriptors.
7829         * tree-pass.h (tree_opt_pass): Rename to ...
7830         (opt_pass) ... this one; add "type" field and remove letter field.
7831         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
7832         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
7833         all_lowering_passes): Update declaration.
7834         * ipa-cp.c: Update tree_pass descriptors.
7835         * final.c: Update tree_pass descriptors.
7836         * omp-low.c: Update tree_pass descriptors.
7837         * tree-ssa-dse.c: Update tree_pass descriptors.
7838         * ipa-reference.c: Update tree_pass descriptors.
7839         * tree-ssa-uncprop.c: Update tree_pass descriptors.
7840         * auto-inc-dec.c: Update tree_pass descriptors.
7841         * reorg.c: Update tree_pass descriptors.
7842         * cgraphunit.c: Update tree_pass descriptors.
7843         * tree-ssa-copyrename.c: Update tree_pass descriptors.
7844         * tree-ssa-ccp.c: Update tree_pass descriptors.
7845         * df-core.c: Update tree_pass descriptors.
7846         * mode-switching.c: Update tree_pass descriptors.
7847         * tree-nomudflap.c: Update tree_pass descriptors.
7848         * modulo-sched.c: Update tree_pass descriptors.
7849         * ipa-pure-const.c: Update tree_pass descriptors.
7850         * cse.c: Update tree_pass descriptors.
7851         * web.c: Update tree_pass descriptors.
7852         * tree-stdarg.c: Update tree_pass descriptors.
7853         * tree-ssa-math-opts.c: Update tree_pass descriptors.
7854         * tree-ssa-dom.c: Update tree_pass descriptors.
7855         * tree-nrv.c: Update tree_pass descriptors.
7856         * tree-ssa-alias.c: Update tree_pass descriptors.
7857         * loop-init.c: Update tree_pass descriptors.
7858         * gimple-low.c: Update tree_pass descriptors.
7859         * ipa-inline.c: Update tree_pass descriptors.
7860         * tree-ssa-sink.c: Update tree_pass descriptors.
7861         * global.c: Update tree_pass descriptors.
7862         * ifcvt.c: Update tree_pass descriptors.
7863         * jump.c: Update tree_pass descriptors.
7864         * predict.c: Update tree_pass descriptors.
7865         * tree-ssa-loop.c: Update tree_pass descriptors.
7866         * recog.c: Update tree_pass descriptors.
7867         * dse.c: Update tree_pass descriptors.
7868         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
7869         * tree-eh.c: Update tree_pass descriptors.
7870         * regmove.c: Update tree_pass descriptors.
7871         * local-alloc.c
7872         * function.c: Update tree_pass descriptors.
7873         * tree-vectorizer.c: Update tree_pass descriptors.
7874         * gcse.c: Update tree_pass descriptors.
7875         * ipa-type-escape.c: Update tree_pass descriptors.
7876         * tree-if-conv.c: Update tree_pass descriptors.
7877         * init-regs.c: Update tree_pass descriptors.
7878         * ipa.c: Update tree_pass descriptors.
7879         * tree-ssa-phiopt.c: Update tree_pass descriptors.
7880         * rtl-factoring.c: Update tree_pass descriptors.
7881         * lower-subreg.c: Update tree_pass descriptors.
7882         * bt-load.c: Update tree_pass descriptors.
7883         * tree-dfa.c: Update tree_pass descriptors.
7884         * except.c: Update tree_pass descriptors.
7885         * emit-rtl.c: Update tree_pass descriptors.
7886         * cfgexpand.c: Update tree_pass descriptors.
7887         * tree-cfgcleanup.c: Update tree_pass descriptors.
7888         * cfgcleanup.c: Update tree_pass descriptors.
7889         * tree-ssa-pre.c: Update tree_pass descriptors.
7890         * tree-sra.c: Update tree_pass descriptors.
7891         * tree-mudflap.c: Update tree_pass descriptors.
7892         * tree-ssa-copy.c: Update tree_pass descriptors.
7893         * cfglayout.c: Update tree_pass descriptors.
7894         * tree-ssa-forwprop.c: Update tree_pass descriptors.
7895         * tree-ssa-dce.c: Update tree_pass descriptors.
7896         * tree-ssa.c: Update tree_pass descriptors.
7897         * regclass.c: Update tree_pass descriptors.
7898         * integrate.c: Update tree_pass descriptors.
7899         * tree-optimize.c: Update tree_pass descriptors.
7900         * tree-ssa-phiprop.c: Update tree_pass descriptors.
7901         * tree-object-size.c: Update tree_pass descriptors.
7902         * combine.c: Update tree_pass descriptors.
7903         * tree-outof-ssa.c: Update tree_pass descriptors.
7904         * bb-reorder.c: Update tree_pass descriptors.
7905         * stack-ptr-mod.c: Update tree_pass descriptors.
7906         * var-tracking.c: Update tree_pass descriptors.
7907         * tree-profile.c: Update tree_pass descriptors.
7908         * tree-vect-generic.c: Update tree_pass descriptors.
7909         * reg-stack.c: Update tree_pass descriptors.
7910         * sched-rgn.c: Update tree_pass descriptors.
7911         * tree-ssa-structalias.c: Update tree_pass descriptors.
7912         * tree-cfg.c: Update tree_pass descriptors.
7913         * passes.c (current_pass): Update declaration.
7914         (finish_optimization_passes): Update.
7915         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
7916         (register_one_dump_file, register_dump_files_1, next_pass_1):
7917         Update arguments.
7918         (init_optimization_passes): Update handling of new types.
7919         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
7920         * ipa-struct-reorg.c: Update tree_pass descriptors.
7921         * tree-ssa-reassoc.c: Update tree_pass descriptors.
7922         * combine-stack-adj.c: Update tree_pass descriptors.
7923         * cfgrtl.c: Update tree_pass descriptors.
7924         * dce.c: Update tree_pass descriptors.
7925         * tree-ssanames.c: Update tree_pass descriptors.
7927 2008-03-19  Richard Guenther  <rguenther@suse.de>
7929         PR middle-end/35609
7930         * tree-ssa.c (walk_data): New structure.
7931         (warn_uninitialized_var): If not always_executed warn with "maybe"
7932         instead of "is".
7933         (execute_early_warn_uninitialized): Compute post-dominators.
7934         Initialize always_executed before processing each basic block.
7936 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
7938         PR target/35504
7939         * config/i386/i386.c (x86_this_parameter): Calculate correct location
7940         of "this" pointer when "regparm = N" or "fastcall" is in effect.
7942 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7944         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
7946 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
7948         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
7949         is true.
7950         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
7951         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
7952         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
7953         target after ignore has been set, and move there also the commputation
7954         of subtarget and original_target.
7955         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
7956         (LANG_HOOKS_INITIALIZER): Remove it.
7957         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
7959 2008-03-18  Richard Guenther  <rguenther@suse.de>
7961         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
7962         found an expression with constants, note that in the VN for the lhs.
7963         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
7964         fold them to constants if possible.  Run cleanup_cfg if done so.
7965         (execute_pre): Return todo.
7966         (do_pre): Likewise.
7967         (execute_fre): Likewise.
7968         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
7969         of constants.
7970         (get_prop_source_stmt): Look through pointer conversions.
7972 2008-03-18  Jan Hubicka  <jh@suse.cz>
7974         * tree-pretty-print.c: Include predict.h.
7975         (dump_generic_node): Dump predictor.
7976         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
7977         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
7978         * gimple-low.c (lower_stmt): Likewise.
7979         * expr.c (expand_expr_real): Likewise.
7980         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
7981         them.
7982         (build_predict_expr, build_predict_expr): New.
7983         * predict.h (predictor_name, build_predict_expr): Update.
7984         * c-typeck.c (c_finish_bc_stmt): Add prediction.
7985         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
7986         * predict.def (PRED_CONTINUE): Update hitrate.
7987         * tree.def (PREDICT_EXPR): Define.
7988         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
7989         do not handle BIND_EXPR.
7990         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
7991         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
7992         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
7993         operands.
7995 2008-03-18  Michael Matz  <matz@suse.de>
7997         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
7999 2008-03-18  Richard Guenther  <rguenther@suse.de>
8001         * tree-gimple.h (is_gimple_invariant_address): Declare.
8002         (is_gimple_constant): Likewise.
8003         * tree-gimple.c (is_gimple_constant): New function.
8004         (is_gimple_invariant_address): Likewise.
8005         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
8006         and is_gimple_invariant_address.
8007         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
8008         previous change.
8009         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
8010         an addressable base.
8012 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
8014         PR middle-end/35611
8015         * gimplify.c (gimplify_expr): Gimplify second operand of
8016         OMP_ATOMIC_LOAD.
8018 2008-03-17  Richard Guenther  <rguenther@suse.de>
8020         PR tree-optimization/19637
8021         * fold-const.c (fold_unary): Remove restrictions of removing
8022         intermediate pointer-conversions (P2)(P1)P0.
8023         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
8024         conversion to void pointer.
8025         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
8027 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
8029         PR debug/31510
8030         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
8031         emulated thread local variables.
8033 2008-03-16  Richard Guenther  <rguenther@suse.de>
8035         PR middle-end/35607
8036         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
8037         expand TREE_INVARIANT operations that are not gimple invariant.
8039 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
8041         * doc/extend.texi (Alignment): Say that the ABI controls
8042         the __alignof__ for non-strict-alignment targets rather
8043         than being a recommendation.
8045 2008-03-15  Paul Brook  <paul@codesourcery.com>
8047         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
8048         annotations.
8049         (arm_output_fn_unwind): Mark functions that can not be unwound.
8051 2008-03-15  Paul Brook  <paul@codesourcery.com>
8053         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
8054         extension instructions.
8056 2008-03-15  Richard Guenther  <rguenther@suse.de>
8058         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
8059         and fold constant aggregate refs.
8060         (fold_const_aggregate_ref): Handle string constants
8061         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
8062         (evaluate_stmt): Simplify now that ccp_fold folds constant
8063         aggregate refs.
8065 2008-03-15  Paul Brook  <paul@codesourcery.com>
8067         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
8068         (extzv): Use gen_extzv_t2.
8069         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
8071 2008-03-15  Richard Guenther  <rguenther@suse.de>
8073         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
8074         (fold_const_aggregate_ref): Likewise.
8075         (get_value): Return NULL if we don't have any values.
8076         (ccp_finalize): Set const_val to NULL after freeing it.
8077         * tree-flow.h (get_symbol_constant_value): Declare.
8078         (fold_const_aggregate_ref): Likewise.
8079         * tree-ssa-sccvn.c (try_to_simplify): Use them.
8081 2008-03-15  Richard Guenther  <rguenther@suse.de>
8083         PR middle-end/35593
8084         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
8085         to not produce negative array indices if not allowed.  Add
8086         parameter to indicate that.
8087         (maybe_fold_offset_to_component_ref): Allow negative array
8088         indices only for the first member of a structure.
8089         (maybe_fold_offset_to_reference): Allow negative array indices.
8090         (maybe_fold_stmt_addition): Likewise.
8092 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
8093             Anatoly Sokolov <aesok@post.ru>
8095         * gcc/gcc/config/avr/avr.c (avr_arch_types): Add avr6 entry.
8096         (avr_arch): Add ARCH_AVR6.
8097         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
8098         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
8099         instead of fixed value 2.
8100         (print_operand_address): Use gs() asm specifier instead of pm().
8101         (avr_assemble_integer): (Ditto.).
8102         (avr_output_addr_vec_elt): (Ditto.).
8103         (print_operand): Handle "!" code.
8104         * gcc/gcc/config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
8105         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
8106         (AVR_HAVE_EIJMP_EICALL): Define.
8107         (AVR_3_BYTE_PC): Redefine.
8108         (AVR_2_BYTE_PC): (Ditto.).
8109         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
8110         (LINK_SPEC): Add atmega2560 and atmega2561.
8111         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
8112         (crtm2561.o).
8113         * gcc/gcc/config/avr/avr.md (call_insn): Use eicall instead of icall 
8114         for 3 byte PC devices.
8115         (call_value_insn): (Ditto.).
8116         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
8117         (indirect_jump): Use only for for 2 byte PC devices.
8118         (*tablejump): (Ditto.).
8119         (*indirect_jump_avr6): Add insn.
8120         (*tablejump_rjmp): Don't use for 3 byte PC devices.
8121         * gcc/gcc/config/avr/libgcc.S (__prologue_saves__): Use eijmp 
8122         instead of ijmp for 3 byte PC devices.
8123         (__tablejump2__): (Ditto.).
8124         * gcc/gcc/config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
8125         (MULITLIB_DIRNAMES): (Ditto.). 
8126         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
8128 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
8130         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
8131         "sse2_umulsidi3".  Use V1DI mode for operand 0.
8132         ("mmx_psadbw"): Use V1DI mode for operand 0.
8133         * config/i386/i386-modes.def (V1SI): New vector mode.
8134         * config/i386/i386.c (struct builtin_description)
8135         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
8136         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
8137         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
8138         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
8139         v1di_ftype_v8qi_v8qi type.
8140         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
8142         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
8143         __builtin_ia32_pmuludq]: Fix the mode of return value.
8145 2008-03-15  Richard Guenther  <rguenther@suse.de>
8147         PR middle-end/35595
8148         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
8149         being a PHI_NODE.
8151 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
8152         
8153         * doc/invoke.texi (Option Summary, Xtensa Options): Document
8154         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
8155         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
8156         unless TARGET_SERIALIZE_VOLATILE is enabled.
8157         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
8158         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
8159         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
8161 2008-03-14  Richard Guenther  <rguenther@suse.de>
8163         PR tree-optimization/34172
8164         * tree-flow.h (refs_may_alias_p): Declare.
8165         (get_single_def_stmt): Likewise.
8166         (get_single_def_stmt_from_phi): Likewise.
8167         (get_single_def_stmt_with_phi): Likewise.
8168         * tree-dfa.c (refs_may_alias_p): New function.
8169         (get_single_def_stmt): Likewise.
8170         (get_single_def_stmt_from_phi): Likewise.
8171         (get_single_def_stmt_with_phi): Likewise.
8172         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
8173         (vn_reference_lookup_1): New helper function.
8174         (vn_reference_lookup): Walk the virtual use-def chain to
8175         continue searching for a match if the def does not alias the
8176         reference we are looking for.
8178 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
8180         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
8181         archive and Perzl.  Update The Written Word listing.
8183 2008-03-14  Richard Guenther  <rguenther@suse.de>
8185         PR tree-optimization/34043
8186         PR tree-optimization/33989
8187         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
8188         when doing FRE.
8189         (bitmap_find_leader): Use extra argument to verify dominance
8190         relationship inside a basic-block.
8191         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
8192         (find_leader_in_sets): Adjust.
8193         (create_component_ref_by_pieces): Take extra argument for
8194         dominance check, handle lookup failures.
8195         (find_or_generate_expression): Likewise.
8196         (create_expression_by_pieces): Likewise.
8197         (insert_into_preds_of_block): Adjust.
8198         (create_value_expr_from): If asked for, verify all operands
8199         are in the blocks AVAIL_OUT set.
8200         (make_values_for_stmt): Check for SSA_NAMEs that are life
8201         over an abnormal edge.
8202         (compute_avail): Remove such check.
8203         (do_SCCVN_insertion): New function.
8204         (eliminate): If we do not find a leader suitable for replacement
8205         insert a replacement expression from SCCVN if available.
8206         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
8207         (struct vn_ssa_aux): Add needs_insertion flag.
8208         * tree-ssa-sccvn.c (may_insert): New global flag.
8209         (copy_reference_ops_from_ref): Value-number union member access
8210         based on its size, not type and member if insertion is allowed.
8211         (visit_reference_op_load): For a weak match from union type
8212         punning lookup a view-converted value and insert a SSA_NAME
8213         for that value if that is not found.
8214         (visit_use): Make dumps shorter.  Do not disallow value numbering
8215         SSA_NAMEs that are life over an abnormal edge to constants.
8216         (free_scc_vn): Release inserted SSA_NAMEs.
8217         (run_scc_vn): New flag to specify whether insertion is allowed.
8218         Process SSA_NAMEs in forward order.
8219         * tree-ssa-loop-im.c (for_each_index): Handle invariant
8220         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
8221         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
8222         pointer type to/from integral types that do not change the
8223         precision to regular conversions.
8225 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
8227         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
8228         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
8229         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
8230         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
8231         input arguments and the mode of return value.  Built-in functions
8232         that operate on whole 64-bit MMX register now use V1DI mode.
8234 2008-03-13  Alon Dayan  <alond@il.ibm.com>
8235             Olga Golovanevsky  <olga@il.ibm.com>
8237         PR tree-optimization/35041
8238         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
8239         to locate the right position in a statement.
8241 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
8243         PR target/34000
8244         PR target/35553
8245         * config/i386/xmmintrin.h:  Change all static inline functions to
8246         extern inline and add __gnu_inline__ attribute.
8247         * config/i386/bmintrin.h: Ditto.
8248         * config/i386/smmintrin.h: Ditto.
8249         * config/i386/tmmintrin.h: Ditto.
8250         * config/i386/mmintrin-common.h: Ditto.
8251         * config/i386/ammintrin.h: Ditto.
8252         * config/i386/emmintrin.h: Ditto.
8253         * config/i386/pmmintrin.h: Ditto.
8254         * config/i386/mmintrin.h: Ditto.
8255         * config/i386/mm3dnow.h: Ditto.
8257 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
8259         PR middle-end/35185
8260         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
8261         (lower_omp_2): New function.
8262         (lower_omp_1, lower_omp): Rewritten.
8264 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
8266         PR 35054
8267         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
8268         with the phrase "Microsoft Windows compilers".
8269         (Push/Pop Macro Pragmas): New subsection. Document
8270         #pragma push_macro and pragma pop_macro.
8272 2008-03-12  Paul Brook  <paul@codesourcery.com>
8274         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
8276 2008-03-12  Paul Brook  <paul@codesourcery.com>
8278         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
8279         (thumb2_alusi3_short): Exclude PLUS and MINUS.
8280         (thumb2_addsi_shortim): Rename ...
8281         (thumb2_addsi_short): ... to this.  Allow register operands.
8282         (thumb2_subsi_short): New pattern.
8283         (thumb2_one_cmplsi2_short,
8284         thumb2_negsi2_short): New patterns and peepholes.
8286 2008-03-12  Paul Brook  <paul@codesourcery.com>
8288         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
8290 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
8292         * config/i386/i386.md (int_cond): New code iterator.
8293         (fp_cond): Ditto.
8294         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
8295         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
8296         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
8297         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
8298         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
8299         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
8300         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
8301         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
8303 2008-03-12  Paul Brook  <paul@codesourcery.com>
8305         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
8306         instead of {arm,thumb}_compute_save_reg_mask.
8307         (output_return_instruction): Ditto.
8308         (thumb_unexpanded_epilogue): Ditto.
8309         (thumb1_expand_prologue): Ditto.
8310         (thumb1_output_function_prologue): Ditto.
8311         (arm_set_return_address): Ditto.
8312         (thumb_set_return_address): Ditto.
8313         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
8314         regs to achieve stack alignment.
8315         (thumb1_compute_save_reg_mask): Fix compiler warning.
8316         (arm_output_epilogue): Use offsets->saved_regs_mask.
8317         Adjust stack pointer by poping call clobered registers.
8318         (arm_expand_prologue): Use offsets->saved_regs_mask.
8319         Adjust stack pointer by pushing extra registers.
8320         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
8322 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
8324         PR tree-opt/35422
8325         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
8326         conversion to the operands of a multiplication.
8328 2008-03-12  Richard Guenther  <rguenther@suse.de>
8330         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
8331         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
8332         * timevar.def (TV_TREE_PHIPROP): Add.
8333         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
8334         pass description.  Use TV_TREE_PHIPROP.
8335         * tree-ssa-forwprop.c: Remove phiprop code.
8337 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
8339         PR middle-end/35549
8340         * omp-low.c (maybe_lookup_decl): Constify first argument.
8341         (use_pointer_for_field): Change last argument from bool to
8342         omp_context *.  Disallow shared copy-in/out in nested
8343         parallel if decl is shared in outer parallel too.
8344         (build_outer_var_ref, scan_sharing_clauses,
8345         lower_rec_input_clauses, lower_copyprivate_clauses,
8346         lower_send_clauses, lower_send_shared_vars): Adjust callers.
8348 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
8349             Ira Rosen  <irar@il.ibm.com>
8351         * tree-vectorizer.c (free_stmt_vec_info): New function.
8352         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
8353         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
8354         * tree-vectorizer.h (free_stmt_vec_info): Declare.
8355         * tree-vect-transform.c (vectorizable_conversion): Free
8356         vec_oprnds0 if it was allocated.
8357         (vect_permute_store_chain): Remove unused VECs.
8358         (vectorizable_store): Free VECs that are allocated in the..
8359         function.
8360         (vect_transform_strided_load, vectorizable_load): Likewise.
8361         (vect_remove_stores): Simplify the code.
8362         (vect_transform_loop): Move code to vect_remove_stores().
8363         Call vect_remove_stores() and free_stmt_vec_info().
8365 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8367         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
8368         TARGET_HPUX.  Revise comment.
8369         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
8370         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
8371         Use sr4 variant of `be' instruction when not generating PIC code.
8372         (attr_length_call): Adjust for above change.
8374 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8376         * ipa-reference.c (static_execute): Remove module_statics_const and
8377         associated setting code.
8379 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
8381         PR target/35540
8382         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
8383         predicate for operand 1.
8384         (paritysi2_cmp): Use register_operand predicate for operand 2.
8385         Use earlyclobber modifier for operand 1.  Remove support for
8386         memory operands.
8387         (paritydi2_cmp): Use register_operand predicate for operand 3.
8388         Use earlyclobber modifier for operand 1.  Remove support for
8389         memory operands.
8391 2008-03-11  Paul Brook  <paul@codesourcery.com>
8392             Vladimir Prus  <vladimir@codesourcery.com>
8394         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
8395         (arm_compute_save_reg0_reg12_mask): Always
8396         check if register 11 must be saved.  Always safe hard frame pointer
8397         when frame_pointer_needeed.
8398         (arm_compute_save_reg_mask): Save IP and PC
8399         only with apcs frames.
8400         (arm_output_epilogue): Adjust Thumb2 codepath to
8401         be also invoked and work for ARM non-apcs frames.
8402         (arm_expand_prologue): Don't bother saving IP
8403         for non-apcs frame, since it's not clobbered by
8404         prologue code.  Implement non-apcs frame
8405         layout.
8407 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
8409         PR rtl-optimization/35281
8410         * expr.c (convert_move): Use a new pseudo for the intermediate
8411         from_mode->word_mode result.
8413 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
8415         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
8416         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
8417         * toplev.c (compile_file): Don't call it.
8419 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
8421         PR middle-end/35526
8422         * expr.c (store_expr): Call emit_block_move if the mode
8423         of "temp" RTX is BLKmode.
8425 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8426             Richard Guenther  <rguenther@suse.de>
8428         PR tree-optimization/31358
8429         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
8430         the step with a NULL_TREE.
8431         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
8432         to sizetype if type is a pointer type.
8433         (add_candidate_1): Don't convert the base and step to
8434         the generic type if the orginal type is a pointer type.
8435         (add_iv_value_candidates): Use sizetype for the step
8436         if type is a pointer type.
8437         (cand_value_at): Likewise.
8438         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
8439         for pointer types.
8440         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
8441         Don't convert the tem affine to the type.
8442         (add_elt_to_tree): Use sizetype for the step if a pointer.
8443         Use POINTER_PLUS_EXPR for pointers.
8444         (aff_combination_to_tree): Use sizetype for the step if a
8445         pointer.
8447 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
8449         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
8450         Remove commutativity hint.
8452 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
8454         PR c/35438
8455         PR c/35439
8456         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
8457         errorneous type.  Check that v is a VAR_DECL.
8459         PR middle-end/35099
8460         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
8462 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
8464         PR tree-optimization/35494
8465         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
8466         may be overriden at link and run time.
8468 2008-03-10  Richard Guenther  <rguenther@suse.de>
8470         PR tree-optimization/34677
8471         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
8472         (poolify_tree): Likewise.
8473         (modify_expr_template): Likewise.
8474         (poolify_modify_stmt): Likewise.
8475         (insert_fake_stores): Handle all component-ref style stores
8476         in addition to INDIRECT_REF.  Also handle complex types.
8477         Do not poolify the inserted load.
8478         (realify_fake_stores): Do not rebuild the tree but only
8479         make it a SSA_NAME copy.
8480         (init_pre): Remove initialzation of modify_expr_template.
8481         Do not allocate modify_expr_node_pool.
8482         (fini_pre): Do not free modify_expr_node_pool.
8484 2008-03-10  Paul Brook  <paul@codesourcery.com>
8486         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
8487         to avoid conflicts.
8489 2008-03-10  Paul Brook  <paul@codesourcery.com>
8490             Mark Shinwell  <shinwell@codesourcery.com>
8492         * config/arm/cortex-r4.md: New.
8493         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
8494         insn attributes.
8495         * config/arm/arm.md: Include cortex-r4.md.
8496         (insn): Add smmls, sdiv and udiv values.
8497         (generic_sched): Don't use generic scheduling for Cortex-R4.
8498         (arm_issue_rate): New function.
8499         (TARGET_SCHED_ISSUE_RATE): Define.
8501 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
8503         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
8505 2008-03-10  Richard Guenther  <rguenther@suse.de>
8507         * tree-ssa-pre.c (get_sccvn_value): Simplify.
8508         (compute_avail): Do not add stmt uses to AVAIL_OUT.
8510 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
8512         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
8513         Set default to true.
8515 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8517         * c.opt (Wsynth): Deprecate.
8518         * doc/invoke.texi (Option Summary, Warning Options): Document
8519         -Wno-format-contains-nul.
8521 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
8523         PR target/35496
8524         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
8525         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
8527 2008-03-09  Ira Rosen  <irar@il.ibm.com>
8529         * config/rs6000/rs6000.c (builtin_description): Rename vector
8530         left shift operations.
8531         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
8532         (altivec_vsl<VI_char>): Rename to ...
8533         (ashl<mode>3): ... new name.
8534         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
8535         gen_ashlv4si3.
8536         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
8538 2008-03-08  Richard Guenther  <rguenther@suse.de>
8540         * coverage.h (tree_coverage_counter_addr): Declare.
8541         * coverage.c (tree_coverage_counter_addr): New function.
8542         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
8543         before using again.
8544         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
8545         (tree_gen_one_value_profiler): Likewise.
8546         (tree_gen_ic_profiler): Likewise.
8547         (tree_gen_average_profiler): Likewise.
8548         (tree_gen_ior_profiler): Likewise.
8550 2008-03-08  Richard Guenther  <rguenther@suse.de>
8552         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
8553         (vn_binary_op_insert): Likewise.
8554         (vn_unary_op_lookup): Likewise.
8555         (vn_unary_op_insert): Likewise.
8556         (vn_nary_op_lookup): Declare.
8557         (vn_nary_op_insert): Likewise.
8558         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
8559         and binary hashes, use a single obstack for unary_op_pool
8560         and binary_op_pool.
8561         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
8562         a single struct vn_nary_op_s.  Store tree code length and
8563         a variable number of operands.
8564         (struct vn_reference_op_struct): Remove unused op2.
8565         (vn_reference_op_eq): Do not compare op2.
8566         (vn_reference_op_compute_hash): Do not compute hash of op2.
8567         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
8568         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
8569         with vn_nary_op_compute_hash.
8570         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
8571         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
8572         vn_nary_op_lookup.
8573         (vn_unary_op_insert, vn_binary_op_insert): Replace with
8574         vn_nary_op_insert.
8575         (visit_unary_op): Call nary functions.
8576         (visit_binary_op): Likewise.
8577         (process_scc): Adjust for struct vn_tables_s changes.
8578         (allocate_vn_table): Likewise.
8579         (free_vn_table): Likewise.
8580         * tree-vn.c (vn_add): Call nary functions.
8581         (vn_lookup): Likewise.
8583 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
8585         PR target/35498
8586         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
8587         wdst back after sync_compare_and_swapqhi_internal.
8589 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
8591         PR target/22152
8592         * config/i386/i386-modes.def (V1DI): New vector mode.
8593         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
8594         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
8595         (MMXMODE248): Ditto.
8596         (MMXMODE): Add V1DI mode.
8597         (mmxvecsize): Change DI mode to V1DI mode.
8598         ("mov<mode>): Use MMXMODEI8 mode iterator.
8599         ("*mov<mode>_internal_rex64"): Ditto.
8600         ("*mov<mode>_internal"): Ditto.
8601         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
8602         ("mmx_sub<mode>3"): Ditto.
8603         ("mmx_adddi3"): Remove insn pattern.
8604         ("mmx_subdi3"): Ditto.
8605         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
8606         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
8607         ("mmx_ashl<mode>3"): Ditto.
8608         ("mmx_lshrdi3"): Remove insn pattern.
8609         ("mmx_ashldi3"): Ditto.
8610         * config/i386/i386.c (classify_argument): Handle V1DImode.
8611         (function_arg_advance_32): Ditto.
8612         (function_arg_32): Ditto.
8613         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
8614         mmx_addv1di3 insn pattern.
8615         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
8616         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
8617         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
8618         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
8619         Remove definitions of built-in functions.
8620         (V1DI_type_node): New node.
8621         (v1di_ftype_v1di_int): Ditto.
8622         (v1di_ftype_v1di_v1di): Ditto.
8623         (v2si_ftype_v2si_si): Ditto.
8624         (v4hi_ftype_v4hi_di): Remove node.
8625         (v2si_ftype_v2si_di): Ditto.
8626         (ix86_init_mmx_sse_builtins): Handle V1DImode.
8627         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
8628         Redefine builtins using def_builtin_const with *_ftype_*_int node.
8629         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
8630         Add new builtins using def_builtin_const.
8631         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
8632         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
8633         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
8634         * config/i386/mmintrin.h (__v1di): New typedef.
8635         (_mm_add_si64): Cast arguments to __v1di type.
8636         (_mm_sub_si64): Ditto.
8637         (_mm_sll_pi16): Cast __count to __v4hi type.
8638         (_mm_sll_pi32): Cast __count to __v2si type.
8639         (_mm_sll_si64): Cast arguments to __v1di type.
8640         (_mm_srl_pi16): Cast __count to __v4hi type.
8641         (_mm_srl_pi32): Cast __count to __v2si type.
8642         (_mm_srl_si64): Cast arguments to __v1di type.
8643         (_mm_sra_pi16): Cast __count to __v4hi type.
8644         (_mm_sra_pi32): Cast __count to __v2si type.
8645         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
8646         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
8647         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
8648         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
8649         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
8650         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
8651         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
8652         (_mm_srai_pi32): Use __builtin_ia32_psradi.
8653         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
8654         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
8655         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
8656         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
8658 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
8660         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
8662 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
8664         PR target/35373
8665         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
8666         reg+const addressing for Altivec modes.  Don't generate reg+reg
8667         addressing for TFmode or TDmode quantities.
8669 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
8671         * c-common.c (vector_types_convertible_p): Call langhook
8672         instead of comptypes.
8674 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8676         PR tree-opt/35402
8677         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
8678         integral and scalar float variables which have a
8679         NULL DECL_INITIAL.
8681 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
8683         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
8684         dwarf_register_span hook when emitting unwind information for
8685         register-to-memory saves.
8686         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
8687         (rs6000_frame_related): Remove call to spe_synthesize_frame.
8689 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
8691         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
8692         for the same VAR_DECL.
8694 2008-03-06  Tom Tromey  <tromey@redhat.com>
8696         * treelang: Delete.
8697         * doc/standards.texi (Standards): Don't mention treelang.
8698         * doc/invoke.texi (Overall Options): Don't mention treelang.
8699         * doc/install.texi (Prerequisites): Don't mention bison or
8700         treelang.
8701         (Configuration): Don't mention treelang.
8702         (Building): Likewise.
8703         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
8705 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
8707         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
8708         word-extractions out of a multi-word object.
8710 2008-03-06  Richard Guenther  <rguenther@suse.de>
8712         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
8713         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
8714         result type and precision.
8715         * expr.c (get_inner_reference): Set unsignedp based on the result
8716         type of BIT_FIELD_REF.
8717         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
8718         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
8719         (try_instantiate_multiple_fields): Likewise.  Use the correct type
8720         for BIT_FIELD_REF.
8721         (sra_build_assignment): Likewise.
8722         (sra_build_elt_assignment): Likewise.
8723         (sra_explode_bitfield_assignment): Likewise.
8724         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
8725         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
8726         set BIT_FIELD_REF_UNSIGNED.
8727         (vectorizable_load): Likewise.
8729 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
8731         * cse.c (cse_extended_basic_block): Invalidate artificial defs
8732         at bb start.
8734 2008-03-06  Richard Guenther  <rguenther@suse.de>
8736         * alias.c (struct alias_set_entry): Move has_zero_child field
8737         to pack with alias_set.
8739 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
8741         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
8742         32bit host.
8744 2008-03-05  Ian Lance Taylor  <iant@google.com>
8746         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
8748 2008-03-05  Kenneth Zadeck <zadeck@naturalbridge.com>
8750         * fwprop.c (update_df): Support width and offset parameters of
8751         df_ref_create.
8752         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
8753         global_conflicts): Change DF_REF_EXTRACT to either
8754         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
8755         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
8756         * df-scan.c (df_ref_record, df_defs_record,
8757         df_ref_create_structure, df_def_record_1, df_uses_record,
8758         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
8759         df_bb_refs_collect, df_entry_block_defs_collect,
8760         df_exit_block_uses_collect): Support new width and offset fields.
8761         (ref_extract_pool): New storage pool.
8762         (df_free_ref): New function.
8763         (df_reg_chain_unlink, df_free_collection_rec,
8764         df_sort_and_compress_refs): Call df_free_ref.
8765         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
8766         of df_ref_extract.
8767         (df_ref_create_structure): Allocate df_ref_extract if offset and
8768         width fields are used.
8769         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
8770         (df_uses_record): Get offset and width from ZERO_EXTRACT 
8771         and SIGN_EXTRACT.
8772         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
8773         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
8774         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
8775         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
8776         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
8777         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
8778         (df_ref_extract): New structure.
8779         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
8780         (df_ref_create): Add width and offset parameters.
8781         
8782 2008-03-05  Richard Guenther  <rguenther@suse.de>
8784         * tree-ssa-structalias.c (get_constraint_for_component_ref):
8785         Use ranges_overlap_p.
8786         (offset_overlaps_with_access): Rename
8787         to ranges_overlap_p and move ...
8788         * tree-flow-inline.h (ranges_overlap_p): ... here.
8790         * tree.h (get_inner_reference, handled_component_p): Update
8791         comments.
8793         * tree.h (record_component_aliases, get_alias_set,
8794         alias_sets_conflict_p, alias_sets_must_conflict_p,
8795         objects_must_conflict_p): Move declarations ...
8796         * alias.h (record_component_aliases, get_alias_set,
8797         alias_sets_conflict_p, alias_sets_must_conflict_p,
8798         objects_must_conflict_p): ... here.
8799         Include coretypes.h.
8800         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
8802 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
8804         * cfg.c: Include tree-flow.h.
8805         (remove_edge_raw): Call redirect_edge_var_map_clear.
8806         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
8807         * tree-flow-inline.h (redirect_edge_var_map_def): New.
8808         (redirect_edge_var_map_result): New.
8809         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
8810         PENDING_STMT use with redirect_edge_var_map_*.
8811         * tree-ssa.c (edge_var_maps): New definition.
8812         (redirect_edge_var_map_add): New.
8813         (redirect_edge_var_map_clear): New.
8814         (redirect_edge_var_map_dup): New.
8815         (redirect_edge_var_map_vector): New.
8816         (redirect_edge_var_map_destroy): New.
8817         (ssa_redirect_edge): Replace PENDING_STMT use with
8818         redirect_edge_var_map_*.
8819         (flush_pending_stmts): Same.
8820         (delete_tree_ssa): Destroy edge var map.
8821         * tree-flow.h (struct _edge_var_map): New.
8822         Define edge_var_map vector type.
8823         Declare redirect_edge_var_map_* prototypes.
8824         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
8825         * tree-cfg.c (reinstall_phi_args): Replace
8826         PENDING_STMT use with redirect_edge_var_map_*.
8828 2008-03-05  Richard Guenther  <rguenther@suse.de>
8830         PR tree-optimization/35472
8831         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
8832         whose single use_stmt has a overlapping set of loaded and
8833         stored symbols as that use_stmt might be a noop assignment then.
8835 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
8837         * gthr-rtems.h: Implement __gthread_mutex_destroy.
8839 2008-03-05  Richard Guenther  <rguenther@suse.de>
8841         PR c++/35336
8842         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
8843         should be constants.
8844         * tree-cfg.c (verify_expr): Verify it.
8845         * fold-const.c (fold_truthop): Remove code generating
8846         BIT_FIELD_REFs of structure bases.
8847         (fold_binary): Likewise.
8848         (fold_ternary): Position and size of BIT_FIELD_REFs are
8849         always host integers.
8850         (make_bit_field_ref): Remove.
8851         (optimize_bit_field_compare): Remove.
8852         (all_ones_mask_p): Remove.
8854 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
8856         PR gcc/33009
8857         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
8858         (split_block_and_df_analyze): New. Split basic block and rebuild
8859         dataflow.
8860         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
8861         SPLIT_BLOCK.
8862         (split_pattern_seq): Likewise.
8863         (erase_matching_seqs): Likewise.
8864         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
8866 2008-03-04  Geoff Keating  <geoffk@apple.com>
8868         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
8869         declaration and code.
8870         (tree_invalid_nonnegative_warnv_p): Likewise.
8872 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
8874         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
8875         examples.  Truncate option-names then causing overfull hbox.
8877 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8879         PR target/35222
8880         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
8881         on hpux10.
8882         * configure: Rebuilt.
8884 2008-03-04  Rafael Espindola  <espindola@google.com>
8886         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
8887         (tree_unary_nonnegative_warnv_p): New.
8888         (tree_binary_nonnegative_warnv_p): New.
8889         (tree_single_nonnegative_warnv_p): New.
8890         (tree_invalid_nonnegative_warnv_p): New.
8891         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
8893 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8895         PR 28322
8896         * opts.c (handle_option): Postpone 'unknown option' errors only for
8897         warning options.
8899 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
8901         PR target/35453
8902         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
8903         (_SIDD_XXX): This.
8905 2008-03-04  Rafael Espindola  <espindola@google.com>
8907         * fold-const.c (tree_unary_nonzero_warnv_p): New.
8908         (tree_binary_nonzero_warnv_p): New.
8909         (tree_single_nonzero_warnv_p): New.
8910         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
8912 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
8914         PR middle-end/35456
8915         * fold-const.c (fold_cond_expr_with_comparison): Prevent
8916         transformations for modes that have signed zeros.
8917         * ifcvt.c (noce_try_abs): Ditto.
8919 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
8921         * config/i386/i386.c (override_options): Force
8922         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
8924 2008-03-04  Jan Hubicka  <jh@suse.cz>
8926         PR c++/35262
8927         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
8928         in last commit.
8930 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
8932         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
8933         label to probe the stack.
8935 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
8937         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
8938         (__gthr_win32_mutex_destroy): Declare.
8939         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
8940         __gthr_win32_mutex_destroy.
8941         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
8943 2008-03-03  Jan Hubicka  <jh@suse.cz>
8945         PR c++/35262
8946         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
8947         aggressive on inlining cold calls.
8949 2008-03-03  Richard Guenther  <rguenther@suse.de>
8951         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
8952         struct copies into the expression table.
8953         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
8954         (try_to_simplify): Likewise.
8955         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
8956         integral and pointer arguments which do not change the
8957         precision to NOP_EXPRs.
8958         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
8959         VIEW_CONVERT_EXPR case.
8961 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
8963         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
8964         defined in a loop at depth 0 is invariant.
8965         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
8966         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
8967         be called at loop depth 0.
8969 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
8971         PR driver/35420
8972         * gcc.c (process_command): Update copyright notice dates.
8973         * gcov.c (print_version): Likewise.
8974         * gcov-dump.c (print_version): Likewise.
8975         * mips-tfile.c (main): Likewise.
8976         * mips-tdump.c (main): Likewise.
8978 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8980         PR 24924
8981         * c-common.c (flag_permissive): Delete.
8982         (constant_expression_warnings): Check flags first.
8983         (constant_expression_error): New.
8984         * c-common.h (flag_permissive): Delete.
8985         (constant_expression_error): Declare.
8986         * flags.h (flag_permissive): Declare. Update description.
8987         * diagnostic.c (pedwarn): Update.
8988         (permerror): New.
8989         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
8990         (permissive_error_kind): New.
8991         * toplev.c (flag_permissive): Define. Update description.
8992         * toplev.h (permissive_error_kind): Declare.
8993         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
8994         (pedwarn_c90): Use pedantic_warning_kind.
8995         * c-opts.c (c_common_post_options): flag_permissive does not affect
8996         flag_pedantic_errors.
8998 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
9000         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
9001         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
9002         __absvsi2, __absvDI2): Use unsigned arithmetic.
9004 2008-03-02  Andi Kleen  <ak@suse.de>
9005             Richard Guenther  <rguenther@suse.de>
9007         * struct-equiv.c: Remove file.
9008         * cfg_cleanup.c (condjump_equiv_p): Remove.
9009         * Makefile.in (OBJS-common): Remove struct-equiv.o.
9010         (struct-equiv.o): Remove rule.
9011         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
9012         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
9013         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
9015 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
9017         * ifcvt.c (noce_process_if_block): Try to handle only the then
9018         block if the else block exists but isn't suitable.
9020 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
9022         PR gcc/35063
9023         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
9024         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
9025         regression from previous patch.
9027 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
9029         PR gcc/35063
9030         * gthr.h: Add __gthread_mutex_destroy as a function that must be
9031         implemented.
9032         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
9033         * gthr-single.h (__gthread_mutex_destroy): Likewise.
9034         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
9035         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
9036         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
9037         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
9038         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
9039         (__gthread_mutex_destroy_function): Rename to
9040         __gthread_mutex_destroy.
9041         * gthr-dce.h (__gthread_mutex_destroy): Call
9042         pthread_mutex_destroy.
9043         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
9044         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
9045         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
9047 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
9049         * df-scan.c (df_ref_chain_change_bb): Simplify.
9050         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
9051         set_block_for_insn if there's any change.
9052         * df.h ((df_insn_change_bb): Fix prototype.
9053         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
9054         df_insn_change_bb, don't call set_block_for_insn.
9055         * emit-rtl.c (reorder_insns): Likewise.
9056         * haifa-sched.c (move_insn): Likewise.
9058 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
9060         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
9062 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
9064         * tree-flow-inline.h (next_readonly_imm_use): Return
9065         NULL_USE_OPERAND_P after the end.
9067 2008-03-01  Richard Guenther  <rguenther@suse.de>
9069         PR tree-optimization/35411
9070         * tree-sra.c (sra_build_assignment): Split conversion to
9071         final type to a separate statement if we are not assigning
9072         to a register.
9074 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
9076         * fold-const.c (fold_convertible_p): Correct the logic to follow
9077         that in fold_convert().
9079 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
9081         PR c++/35315
9082         * tree-inline.c (build_duplicate_type): When we make a
9083         duplicate type, make it unique in the canonical types system.
9085 2008-02-29  Tom Tromey  <tromey@redhat.com>
9087         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
9088         input_file_stack_history, input_file_stack_restored): Remove.
9089         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
9090         * input.h (struct file_stack): Remove.
9091         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
9092         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
9093         Likewise.
9094         * diagnostic.h (struct diagnostic_context) <last_module>: Change
9095         type.
9096         (diagnostic_last_module_changed): Add 'map' argument.
9097         (diagnostic_set_last_function): Likewise.
9098         * diagnostic.c (undiagnostic_report_current_module): Iterate using
9099         line map, not input_file_stack.
9100         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
9102 2008-02-29  Paul Brook  <paul@codesourcery.com>
9104         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
9106 2008-02-29  Paul Brook  <paul@codesourcery.com>
9108         * config/arm/ieee754-df.S (muldf3): Use RET macros.
9110 2008-02-29  Richard Guenther  <rguenther@suse.de>
9112         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
9113         vn_lookup_or_add.
9114         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
9115         value for comparing for a store match.
9116         (simplify_unary_expression): Do nothing for SSA_NAMEs.
9117         (try_to_simplify): Do not do a full-blown reference lookup.
9119 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
9121         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
9122         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
9124         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
9126 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
9128         * tree-loop-linear.c (try_interchange_loops): Compare memory access
9129         strides against cache sizes.
9131 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
9133         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
9134         constant to fpul.
9136 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
9138         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
9139         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
9140         is smaller than the original promoted value.
9141         (simplify_subreg): If OP is a SUBREG, try to preserve its
9142         SUBREG_PROMOTED_VAR_P information.
9144 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
9146         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
9147         (VN_INFO_GET): Allocate new objects on the obstack.
9148         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
9149         for rpo_numbers_temp, for consistency.
9150         (free_scc_vn): Free the obstack.
9152 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
9154         * doc/invoke.texi: Document -ftree-loop-distribution.
9155         * tree-loop-distribution.c: New.
9156         * tree-pass.h (pass_loop_distribution): New.
9157         * graphds.h (struct graph): Add htab_t indices.
9158         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
9159         * tree-vectorizer.c (rename_variables_in_loop): Extern.
9160         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
9161         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
9162         * tree-data-ref.c (debug_data_dependence_relations): New.
9163         (dump_data_dependence_relation): Also print data references.
9164         (free_data_ref): Extern.
9165         (same_access_functions): Moved...
9166         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
9167         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
9168         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
9169         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
9170         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
9171         (stmts_from_loop): Skip LABEL_EXPR.
9172         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
9173         New.
9174         (build_rdg): Initialize rdg->indices htab.
9175         (free_rdg, stores_from_loop, ref_base_address,
9176         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
9177         have_similar_memory_accesses_1, ref_base_address_1,
9178         remove_similar_memory_refs): New.
9179         * tree-data-ref.h: Depend on tree-chrec.h.
9180         (debug_data_dependence_relations, free_data_ref): Declared.
9181         (same_access_functions): ... here.
9182         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
9183         New.
9184         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
9185         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
9186         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
9187         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
9188         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
9189         rdg_vertex_for_stmt): Declared.
9190         (struct rdg_edge): Add level.
9191         (RDGE_LEVEL): New.
9192         (free_rdg, stores_from_loop, remove_similar_memory_refs,
9193         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
9194         Declared.
9195         (rdg_has_similar_memory_accesses): New.
9196         * tree-vect-analyze.c: Remove unused static decls.
9197         * lambda.h (dependence_level): New.
9198         * common.opt (ftree-loop-distribution): New.
9199         * tree-flow.h (mark_virtual_ops_in_bb, 
9200         slpeel_tree_duplicate_loop_to_edge_cfg,
9201         rename_variables_in_loop): Declared.
9202         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
9203         (OBJS-common): Add tree-loop-distribution.o.
9204         (tree-loop-distribution.o): New rule.
9205         * tree-cfg.c (mark_virtual_ops_in_bb): New.
9206         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
9207         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
9209 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
9211         PR target/33963
9212         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
9213         other than structures and unions.
9215 2008-02-28  Richard Guenther  <rguenther@suse.de>
9217         Revert:
9218         2008-02-26  Richard Guenther  <rguenther@suse.de>
9220         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9221         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9222         (lookup_decl_from_uid): Declare.
9223         (remove_decl_from_map): Likewise.
9224         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9225         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9226         (decl_for_uid_map): New global hashtable mapping DECL_UID
9227         to the decl tree.
9228         (init_ttree): Allocate it.
9229         (insert_decl_to_uid_decl_map): New helper function.
9230         (make_node_stat): Insert new decls into the map.
9231         (copy_node_stat): Likewise.
9232         (lookup_decl_from_uid): New function.
9233         (remove_decl_from_map): Likewise.
9234         (print_decl_for_uid_map_statistics): New helper.
9235         (dump_tree_statistics): Call it.
9237         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9238         (referenced_var_iterator): Adjust.
9239         (FOR_EACH_REFERENCED_VAR): Adjust.
9240         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9241         (num_referenced_vars): Adjust.
9242         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9243         (first_referenced_var): Remove.
9244         (end_referenced_vars_p): Likewise.
9245         (next_referenced_var): Likewise.
9246         (referenced_var_iterator_set): New helper function.
9247         * tree-dfa.c (referenced_var_lookup): Adjust.
9248         (referenced_var_check_and_insert): Likewise.
9249         (remove_referenced_var): Likewise.
9250         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9251         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9252         (verify_call_clobbering): Likewise.
9253         (verify_memory_partitions): Likewise.
9254         (init_tree_ssa): Allocate bitmap instead of hashtable for
9255         referenced_vars.
9256         (delete_tree_ssa): Adjust.
9257         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9258         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9259         (compute_tag_properties): Likewise.
9260         (set_initial_properties): Likewise.
9261         (find_partition_for): Likewise.
9262         (update_reference_counts): Likewise.
9263         (dump_may_aliases_for): Likewise.
9264         * tree-ssa-operands.c (add_virtual_operand): Likewise.
9265         (add_call_clobber_ops): Likewise.
9266         (add_call_read_ops): Likewise.
9267         (get_asm_expr_operands): Likewise.
9268         * tree-into-ssa.c (dump_decl_set): Likewise.
9269         (update_ssa): Likewise.
9270         * tree-sra.c (scan_function): Likewise.
9271         (decide_instantiations): Likewise.
9272         (scalarize_parms): Likewise.
9273         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9274         (dsa_named_for): Likewise.
9275         * tree-ssa-structalias.c (update_alias_info): Likewise.
9276         (merge_smts_into): Likewise.
9278 2008-02-27  David Daney  <ddaney@avtrex.com>
9280         PR target/34409
9281         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
9282         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
9283         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
9284         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
9285         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
9287 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
9289         PR target/25477
9290         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
9291         (BUILT_IN_NEXTTOWARD): Remove.
9292         (BUILT_IN_NEXTTOWARDF): Ditto.
9293         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
9294         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
9296 2008-02-27  Tom Tromey  <tromey@redhat.com>
9298         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
9299         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
9301 2008-02-27  Jan Beulich  <jbeulich@novell.com>
9303         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
9304         update the respective field on newdecl.
9306 2008-02-27  Revital Eres  <eres@il.ibm.com>
9308         PR rtl-optimization/34999
9309         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
9310         crossing edges that ends with a call insn.
9311         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
9312         call insn and clear the EDGE_CROSSING flag of the crossing edge
9313         when fixing fallthru edges.
9315 2008-02-27  Richard Guenther  <rguenther@suse.de>
9317         PR middle-end/35390
9318         * fold-const.c (fold_unary): Return the correct argument,
9319         converted to the result type.
9321 2008-02-27  Richard Guenther  <rguenther@suse.de>
9323         PR middle-end/34971
9324         * expr.c (expand_expr_real_1): Assert on rotates that operate
9325         on partial modes.
9326         * fold-const.c (fold_binary): Use the types precision, not the
9327         bitsize of the mode if folding rotate expressions.  Build rotates
9328         only for full modes.
9330 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
9332         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
9333         and CPP_PRAGMA_EOL.
9334         * c-pragma.c (pragma_ns_name): New typedef.
9335         (registered_pp_pragmas): New variable.
9336         (c_pp_lookup_pragma): New function.
9337         (c_register_pragma_1): If flag_preprocess_only, do nothing
9338         for non-expanded pragmas, for expanded ones push pragma's
9339         namespace and name into registered_pp_pragmas vector.
9340         (c_invoke_pragma_handler): Register OpenMP pragmas even when
9341         flag_preprocess_only, don't register GCC pch_preprocess
9342         pragma if flag_preprocess_only.
9343         * c-opts.c (c_common_init): Call init_pragma even if
9344         flag_preprocess_only.
9345         * c-pragma.c (c_pp_lookup_pragma): New prototype.
9346         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
9347         cpp_register_pragma if flag_preprocess_only.
9349 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9351         PR c/28800
9352         * c-parser.c (c_parser_translation_unit): Warn for empty
9353         translation unit, not empty source file.
9355 2008-02-26  Paul Brook  <paul@codesourcery.com>
9357         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
9358         operand for Thumb-2.
9359         * config/arm/arm.h (reg_class): Add CORE_REGS.
9360         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
9361         (BASE_REG_CLASS): Use CORE_REGS.
9362         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
9363         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
9364         (REGNO_OK_FOR_INDEX_P): Exclude SP.
9365         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
9366         ARM_REGNO_OK_FOR_INDEX_P.
9367         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
9368         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
9369         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
9370         (ldm/stm peepholes): Ditto.
9371         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
9372         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
9373         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
9374         * config/arm/constraints.md: Enable "k" constraint on ARM.
9376 2008-02-27  Ben Elliston  <bje@au.ibm.com>
9378         * config/rs6000/rs6000.c: Annotate cache line size field in all
9379         instances of struct processor_costs.
9381 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
9383         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
9384         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
9385         jump_bypass): New counters.
9386         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
9387         * dce.c (gate_ud_dce): Same.
9388         (gate_fast_dce): Same.
9389         * dse.c (gate_dse1): New function.
9390         (gate_dse2): New function.
9391         (gate_dse): Merge results of new gate functions.
9392         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
9393         (gate_handle_jump_bypass): Add dbg_cnt.
9394         (gate_handle_gcse): Add dbg_cnt.
9395         * ifcvt.c (gate_handle_if_conversion): Same.
9396         (gate_handle_if_after_combine): Same.
9397         (gate_handle_if_after_reload): Same.
9398         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
9400 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
9402         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
9403         line sizes.
9404         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
9406 2008-02-26  Jason Merrill  <jason@redhat.com>
9408         PR c++/35315
9409         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
9410         alone if it's the naming decl for the type's main variant.
9412 2008-02-26  Tom Tromey  <tromey@redhat.com>
9414         * system.h (USE_MAPPED_LOCATION): Poison.
9415         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
9416         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
9417         (make_goto_expr_edges): Likewise.
9418         (remove_bb): Likewise.
9419         (execute_warn_function_return): Likewise.
9420         * basic-block.h (struct edge_def) <goto_locus>: Change type to
9421         location_t.
9422         * c-common.c (fname_decl): Remove old location code.
9423         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
9424         location code.
9425         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
9426         variant.
9427         (ASM_INPUT_SOURCE_LOCATION): Likewise.
9428         (gen_rtx_ASM_INPUT): Likewise.
9429         (gen_rtx_ASM_INPUT_loc): Likewise.
9430         (get_rtx_asm_OPERANDS): Remove.
9431         * cfglayout.c (insn_locators_alloc): Remove old location code.
9432         (set_curr_insn_source_location): Likewise.
9433         (curr_insn_locator): Likewise.
9434         * print-tree.c (print_node): Remove old location code.
9435         * tree-mudflap.c (mf_varname_tree): Remove old location code.
9436         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
9437         * cfgexpand.c (expand_gimple_cond_expr): Don't use
9438         location_from_locus.
9439         (construct_exit_block): Remove old location code.
9440         * emit-rtl.c (force_next_line_note): Remove old location code.
9441         * profile.c (branch_prob): Remove old location code.
9442         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
9443         LOC_LINE): Remove old-location variants.
9444         * langhooks.c (lhd_print_error_function): Remove old location
9445         code.
9446         * configure, config.in: Rebuilt.
9447         * configure.ac (--enable-mapped-location): Remove.
9448         * c-decl.c (c_init_decl_processing): Remove old location code.
9449         (finish_function): Likewise.
9450         * recog.c (decode_asm_operands): Remove old location code.
9451         * c-pch.c (c_common_read_pch): Remove old location code.
9452         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
9453         variants.
9454         * gimple-low.c (lower_function_body): Remove old location code.
9455         * toplev.c (unknown_location): Remove.
9456         (push_srcloc): Remove old-location variant.
9457         (process_options): Remove old location code.
9458         (lang_dependent_init): Likewise.
9459         * input.h (UNKNOWN_LOCATION): Move definition.
9460         (location_t): Undeprecate.
9461         (source_locus): Remove.
9462         (location_from_locus): Remove.
9463         (struct location_s): Remove.
9464         Remove all old-location code.
9465         (input_line, input_filename): Remove.
9466         * final.c (final_scan_insn): Remove old location code.
9467         * diagnostic.c (diagnostic_build_prefix): Remove
9468         USE_MAPPED_LOCATION test.
9469         * tree.h (gimple_stmt) <locus>: Now a location_t.
9470         (tree_exp) <locus>: Likewise.
9471         (DECL_IS_BUILTIN): Remove old-location variant.
9472         (annotate_with_file_line, annotate_with_locus): Likewise.
9473         (expr_locus, set_expr_locus): Update.
9474         * tree.c (build1_stat): Remove old location code.
9475         (last_annotated_node): Remove.
9476         (annotate_with_file_line): Remove old-location variant.
9477         (annotate_with_locus): Likewise.
9478         (expr_location): Remove old location code.
9479         (set_expr_location): Likewise.
9480         (expr_has_location): Likewise.
9481         (expr_locus): Likewise.
9482         (set_expr_locus): Likewise.
9483         (expr_filename): Don't use location_from_locus.
9484         (expr_lineno): Likewise.
9485         * rtl-error.c (location_for_asm): Remove old location code.
9486         * c-lex.c (cb_line_change): Remove old location code.
9487         (fe_file_change): Likewise.
9488         (cb_def_pragma): Likewise.
9489         (c_lex_with_flags): Likewise.
9490         * gengtype.c (do_typedef): Don't special-case location types.
9491         (define_location_structures): Remove.
9492         (main): Don't call define_location_structures.
9493         * tree-pretty-print.c (dump_implicit_edges): Remove old location
9494         code.
9496 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9498         PR 26264
9499         * builtins.def (BUILT_IN_STDARG_START): Remove.
9500         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
9501         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
9502         * tree-inline.c (inline_forbidden_p_1): Likewise.
9503         
9504 2008-02-26  Richard Guenther  <rguenther@suse.de>
9506         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9507         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9508         (lookup_decl_from_uid): Declare.
9509         (remove_decl_from_map): Likewise.
9510         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9511         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9512         (decl_for_uid_map): New global hashtable mapping DECL_UID
9513         to the decl tree.
9514         (init_ttree): Allocate it.
9515         (insert_decl_to_uid_decl_map): New helper function.
9516         (make_node_stat): Insert new decls into the map.
9517         (copy_node_stat): Likewise.
9518         (lookup_decl_from_uid): New function.
9519         (remove_decl_from_map): Likewise.
9520         (print_decl_for_uid_map_statistics): New helper.
9521         (dump_tree_statistics): Call it.
9523         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9524         (referenced_var_iterator): Adjust.
9525         (FOR_EACH_REFERENCED_VAR): Adjust.
9526         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9527         (num_referenced_vars): Adjust.
9528         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9529         (first_referenced_var): Remove.
9530         (end_referenced_vars_p): Likewise.
9531         (next_referenced_var): Likewise.
9532         (referenced_var_iterator_set): New helper function.
9533         * tree-dfa.c (referenced_var_lookup): Adjust.
9534         (referenced_var_check_and_insert): Likewise.
9535         (remove_referenced_var): Likewise.
9536         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9537         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9538         (verify_call_clobbering): Likewise.
9539         (verify_memory_partitions): Likewise.
9540         (init_tree_ssa): Allocate bitmap instead of hashtable for
9541         referenced_vars.
9542         (delete_tree_ssa): Adjust.
9543         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9544         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9545         (compute_tag_properties): Likewise.
9546         (set_initial_properties): Likewise.
9547         (find_partition_for): Likewise.
9548         (update_reference_counts): Likewise.
9549         (dump_may_aliases_for): Likewise.
9550         * tree-ssa-operands.c (add_virtual_operand): Likewise.
9551         (add_call_clobber_ops): Likewise.
9552         (add_call_read_ops): Likewise.
9553         (get_asm_expr_operands): Likewise.
9554         * tree-into-ssa.c (dump_decl_set): Likewise.
9555         (update_ssa): Likewise.
9556         * tree-sra.c (scan_function): Likewise.
9557         (decide_instantiations): Likewise.
9558         (scalarize_parms): Likewise.
9559         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9560         (dsa_named_for): Likewise.
9561         * tree-ssa-structalias.c (update_alias_info): Likewise.
9562         (merge_smts_into): Likewise.
9564 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9566         PR 34351
9567         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
9568         * c-opts.c (c_common_handle_option): Wall enables
9569         Wvolatile-register-var.
9570         * common.opt: Move Wvolatile-register-var to...
9571         * c.opt: ...here.
9572         
9573 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9575         * common.opt (Wlarger-than=): New.
9576         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
9577         -Wlarger-than=.
9578         * opts.c (common_handle_option): Handle -Wlarger-than=.
9579         * optc-gen.awk: Likewise.
9580         * opth-gen.awk: Likewise.
9581         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
9582         * tree-optimize.c (tree_rest_of_compilation): Likewise.
9583         
9584 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9586         * c-common.c (match_case_to_enum_1): Add appropriate
9587         OPT_W* parameter to warning.
9588         (c_do_switch_warnings): Likewise.
9589         * c-typeck.c (warning_init): Add one more parameter following
9590         'warning' function.
9591         (push_init_level): Update call to warning_init.
9592         (pop_init_level): Likewise.
9593         (add_pending_init): Likewise.
9594         (output_init_element: Likewise.
9596 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9598         PR 28322
9599         * toplev.c (toplev_main): If there are warnings or error, print
9600         errors for ignored options.
9601         * opts.c (ignored_options): New static variable.
9602         (postpone_unknown_option_error): New.
9603         (print_ignored_options): New.
9604         (handle_option): Postpone errors for unknown -Wno-* options.
9605         * opts.h (print_ignored_options): Declare.
9606         
9607 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
9609         * config/mips/mips.md (loadgp_blockage, blockage): Change type
9610         to "ghost".
9612 2008-02-25  Richard Guenther  <rguenther@suse.de>
9614         Revert:
9615         2008-02-25  Richard Guenther  <rguenther@suse.de>
9617         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9618         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9619         (lookup_decl_from_uid): Declare.
9620         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9621         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9622         (decl_for_uid_map): New global hashtable mapping DECL_UID
9623         to the decl tree.
9624         (init_ttree): Allocate it.
9625         (insert_decl_to_uid_decl_map): New helper function.
9626         (make_node_stat): Insert new decls into the map.
9627         (copy_node_stat): Likewise.
9628         (lookup_decl_from_uid): New function.
9629         (print_decl_for_uid_map_statistics): New helper.
9630         (dump_tree_statistics): Call it.
9632         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9633         (referenced_var_iterator): Adjust.
9634         (FOR_EACH_REFERENCED_VAR): Adjust.
9635         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9636         (num_referenced_vars): Adjust.
9637         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9638         (first_referenced_var): Remove.
9639         (end_referenced_vars_p): Likewise.
9640         (next_referenced_var): Likewise.
9641         (referenced_var_iterator_set): New helper function.
9642         * tree-dfa.c (referenced_var_lookup): Adjust.
9643         (referenced_var_check_and_insert): Likewise.
9644         (remove_referenced_var): Likewise.
9645         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9646         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9647         (verify_call_clobbering): Likewise.
9648         (verify_memory_partitions): Likewise.
9649         (init_tree_ssa): Allocate bitmap instead of hashtable for
9650         referenced_vars.
9651         (delete_tree_ssa): Adjust.
9652         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9653         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9654         (compute_tag_properties): Likewise.
9655         (set_initial_properties): Likewise.
9656         (find_partition_for): Likewise.
9657         (update_reference_counts): Likewise.
9658         (dump_may_aliases_for): Likewise.
9659         * tree-ssa-operands.c (add_virtual_operand): Likewise.
9660         (add_call_clobber_ops): Likewise.
9661         (add_call_read_ops): Likewise.
9662         (get_asm_expr_operands): Likewise.
9663         * tree-into-ssa.c (dump_decl_set): Likewise.
9664         (update_ssa): Likewise.
9665         * tree-sra.c (scan_function): Likewise.
9666         (decide_instantiations): Likewise.
9667         (scalarize_parms): Likewise.
9668         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9669         (dsa_named_for): Likewise.
9670         * tree-ssa-structalias.c (update_alias_info): Likewise.
9671         (merge_smts_into): Likewise.
9673 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
9675         PR fortran/29549
9676         * doc/invoke.texi (-fcx-limited-range): Document new option.
9677         * toplev.c (process_options): Handle -fcx-fortran-rules.
9678         * common.opt: Add documentation for -fcx-fortran-rules.
9680 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
9682         PR c/35162
9683         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
9684         actual behaviour and C99.
9685         
9686 2008-02-26  Ben Elliston  <bje@au.ibm.com>
9688         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
9689         (ASM_CPU_POWER6_SPEC): Likewise.
9690         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
9691         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
9692         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
9694 2008-02-25  Richard Guenther  <rguenther@suse.de>
9696         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9697         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9698         (lookup_decl_from_uid): Declare.
9699         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9700         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9701         (decl_for_uid_map): New global hashtable mapping DECL_UID
9702         to the decl tree.
9703         (init_ttree): Allocate it.
9704         (insert_decl_to_uid_decl_map): New helper function.
9705         (make_node_stat): Insert new decls into the map.
9706         (copy_node_stat): Likewise.
9707         (lookup_decl_from_uid): New function.
9708         (print_decl_for_uid_map_statistics): New helper.
9709         (dump_tree_statistics): Call it.
9711         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9712         (referenced_var_iterator): Adjust.
9713         (FOR_EACH_REFERENCED_VAR): Adjust.
9714         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9715         (num_referenced_vars): Adjust.
9716         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9717         (first_referenced_var): Remove.
9718         (end_referenced_vars_p): Likewise.
9719         (next_referenced_var): Likewise.
9720         (referenced_var_iterator_set): New helper function.
9721         * tree-dfa.c (referenced_var_lookup): Adjust.
9722         (referenced_var_check_and_insert): Likewise.
9723         (remove_referenced_var): Likewise.
9724         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9725         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9726         (verify_call_clobbering): Likewise.
9727         (verify_memory_partitions): Likewise.
9728         (init_tree_ssa): Allocate bitmap instead of hashtable for
9729         referenced_vars.
9730         (delete_tree_ssa): Adjust.
9731         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9732         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9733         (compute_tag_properties): Likewise.
9734         (set_initial_properties): Likewise.
9735         (find_partition_for): Likewise.
9736         (update_reference_counts): Likewise.
9737         (dump_may_aliases_for): Likewise.
9738         * tree-ssa-operands.c (add_virtual_operand): Likewise.
9739         (add_call_clobber_ops): Likewise.
9740         (add_call_read_ops): Likewise.
9741         (get_asm_expr_operands): Likewise.
9742         * tree-into-ssa.c (dump_decl_set): Likewise.
9743         (update_ssa): Likewise.
9744         * tree-sra.c (scan_function): Likewise.
9745         (decide_instantiations): Likewise.
9746         (scalarize_parms): Likewise.
9747         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9748         (dsa_named_for): Likewise.
9749         * tree-ssa-structalias.c (update_alias_info): Likewise.
9750         (merge_smts_into): Likewise.
9752 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
9754         PR target/35258
9755         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
9756         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
9757         * alias.h (nonoverlapping_memrefs_p): Likewise.
9759 2008-02-25  Jan Beulich  <jbeulich@novell.com>
9761         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
9762         * config/i386/netware-libgcc.exp: Add __bswap?i2,
9763         __emultls_get_address, __emultls_register_common,
9764         __floatundi?f, and _Unwind_GetIPInfo.
9765         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
9766         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
9767         (gen_regparm_prefix): Likewise.
9768         (i386_nlm_encode_section_info): Sync with
9769         config/i386/winnt.c:i386_pe_encode_section_info().
9770         (i386_nlm_maybe_mangle_decl_assembler_name): New.
9771         i386_nlm_mangle_decl_assembler_name): New.
9772         (netware_override_options): New.
9773         * config/i386/netware.h (netware_override_options): Declare.
9774         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
9775         (i386_nlm_mangle_decl_assembler_name): Declare.
9776         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
9778 2008-02-25  Ben Elliston  <bje@au.ibm.com>
9780         PR other/32948
9781         * c-decl.c (grokdeclarator): Remove unused local variables
9782         `typedef_type' and `type_as_written'.
9783         * bb-reorder.c
9784         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
9785         unused local variable `has_hot_blocks'.
9786         (fix_crossing_conditional_branches): Remove unused local variable
9787         `prev_bb'.
9788         
9789 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
9791         PR middle-end/19984
9792         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
9793         using DEF_C99_BUILTIN.
9794         (BUILT_IN_NANF): Ditto.
9795         (BUILT_IN_NANL): Ditto.
9797 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
9798             Revital Eres  <eres@il.ibm.com>
9800         * modulo-sched.c (calculate_must_precede_follow): Address TODO
9801         regarding the order of two dependent insns in the same row.
9803 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
9805         * stor-layout.c (layout_decl): Do not bump the alignment of a
9806         bit-field to more than byte alignment if it is packed.
9808 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
9810         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
9811         e300c2 and e300c3.
9813 2008-02-24  Diego Novillo  <dnovillo@google.com>
9815         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
9817         PR 33738
9818         * tree-vrp.c (vrp_evaluate_conditional): With
9819         -Wtype-limits, emit a warning when comparing against a
9820         constant outside the natural range of OP0's type.
9821         * c.opt (Wtype-limits): Move ...
9822         * common.opt (Wtype-limits): ... here.
9824 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
9826         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
9827         * config/rs6000/e300c2c3.md: New file.
9828         * config/rs6000/rs6000.c (processor_costs): Add new costs for
9829         e300c2 and e300c3.
9830         (rs6000_override_options): Add e300c2 and e300c3 cases to
9831         processor_target_table. Do not allow usage of Altivec or Spe
9832         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
9833         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
9834         * config/rs6000/rs6000.h (processor_type): Add
9835         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
9836         (ASM_CPU_SPEC): Add e300c2 and e300c3.
9837         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
9838         and ppce300c3. Include e300c2c3.md.
9840 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
9842         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
9843         instead of TARGET_STRICT_ALIGN.
9845 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
9847         * explow.c (memory_address): Assert that the generated address is
9848         valid.
9850 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
9852         PR target/25477
9853         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
9854         * config/darwin-ppc-ldouble-patch.def: New file.
9855         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
9856         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
9857         SUBTARGET_INIT_BUILTINS if defined.
9858         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
9859         New functions.
9861 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9863         PR rtl-opt/33512
9864         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
9865         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
9867 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9869         PR pch/35027
9870         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
9871         file" warning condtional on -Winvalid-PCH.
9873 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
9875         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
9877 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
9879         PR target/22076
9880         PR target/34256 
9881         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
9882         prevent reload from using MMX registers.
9883         (*mov<mode>_internal): Ditto.
9884         (*movv2sf_internal_rex64): Ditto.
9885         (*movv2sf_internal): Ditto.
9887 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9889         PR documentation/31569
9890         * doc/install.texi2html: Use makeinfo --no-number-sections.
9892 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
9894         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
9895         ensure that we can address an entire entity > 8 bytes.  Don't
9896         generate reg+reg addressing for such data.
9898 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
9900         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
9901         strings when optimizing for size, unless the target cares about
9902         alignment.
9904 2008-02-22  Tom Tromey  <tromey@redhat.com>
9906         * regclass.c (current_pass): Remove declaration.
9908 2008-02-22  Anatoly Sokolov <aesok@post.ru>
9910         * config/avr/libgcc.S (__RAMPZ__): Define.
9911         (__do_copy_data): Add for devices with 128KB code memory.
9913 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
9915         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
9916         Use spe_abi.
9917         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
9919 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
9921         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
9922         GENNONACR_REGS.
9924 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9926         PR c/19999
9927         * c-typeck.c (build_binary_op): Warn about floating point
9928         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
9930 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
9932         PR target/34526
9933         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
9934         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
9935         add vrsave.
9936         (rs6000_override_options): Set altivec_abi as default, not override,
9937         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
9938         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
9939         is used; use new member spe_abi.
9940         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
9941         spe_abi and altivec_abi.
9943 2008-02-22  Tomas Bily  <tbily@suse.cz>
9945         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
9947 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9949         PR bootstrap/35273
9950         * config.build (build_file_translate): Set to `CMD //c' only if
9951         it works.
9952         * Makefile.in (build_file_translate): Improve comment.
9954 2008-02-21  Jan Hubicka  <jh@suse.cz>
9956         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
9957         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
9958         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
9960 2008-02-21  Michael Matz  <matz@suse.de>
9962         PR target/35264
9963         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
9965 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
9967         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
9968         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
9969         as insn constraint.
9970         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
9971         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
9972         SSE_VEC_FLOAT_MODE_P as insn constraint.
9973         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
9974         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
9975         sse4a_movntdf using MODEF mode iterator.
9976         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
9977         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
9978         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
9979         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
9980         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
9981         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
9982         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
9984 2008-02-21  Richard Guenther  <rguenther@suse.de>
9986         * tree.def (PAREN_EXPR): New tree code.
9987         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
9988         and PAREN_EXPR.
9989         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
9990         * expr.c (expand_expr_real_1): Likewise.
9991         * tree-inline.c (estimate_num_insns_1): Likewise.
9992         * tree-complex.c (expand_complex_move): Likewise.
9993         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
9994         as plain x.
9996 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
9998         PR target/35225
9999         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
10001 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10003         PR target/35190
10004         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
10006         * config/sh/sh.c (find_barrier): Don't go past
10007         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
10009 2008-02-20  DJ Delorie  <dj@redhat.com>
10011         * config/h8300/h8300.md (insv): Force source operand to be a register.
10013         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
10014         as a jump, not as a plain insn.
10015         
10016 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
10018         * doc/invoke.texi (Warning Options): Add new option
10019         -Wframe-larger-than=.
10020         (-Wframe-larger-than): Document.
10022         * flags.h (warn_frame_larger_than, frame_larger_than_size):
10023         Add declarations for new option variables.
10025         * final.c (final_start_function): Check the frame size
10026         before emission and issue a Wframe-larger-than warning.
10028         * opts.c (warn_frame_larger_than, frame_larger_than_size):
10029         Add definitions for new option variables.
10030         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
10032         * common.opt (Wframe-larger-than=): New option.
10034 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
10036         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
10037         (<sse>_div<mode>3): Ditto.
10038         (<sse>_vmdiv<mode>3): Ditto.
10039         (<sse>_vmsqrt<mode>2): Ditto.
10040         (*smax<mode>3): Ditto.
10041         (sse5_frcz<mode>2): Ditto.
10042         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
10043         as insn constraint.
10045 2008-02-20  Richard Guenther  <rguenther@suse.de>
10047         PR middle-end/35265
10048         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
10049         be happy with INTEGRAL_TYPE_P.
10051 2008-02-20  Richard Guenther  <rguenther@suse.de>
10053         * fold-const.c (split_tree): Associate floatig-point expressions
10054         if flag_associative_math is set.
10056 2008-02-20  Richard Guenther  <rguenther@suse.de>
10058         * tree.h (fold_real_zero_addition_p): Declare.
10059         * fold-const.c (fold_real_zero_addition_p): Export.
10060         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
10061         floating-point operations with zero and one.
10063 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
10065         * doc/install.texi: Correct references to CFLAGS, replacing them
10066         with BOOT_CFLAGS.  Document flags used during bootstrap for
10067         target libraries.
10068                                 
10069 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
10071         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
10072         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
10073         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
10074         insn constraint.
10075         (smin<mode>3): Ditto from similar patterns.
10076         (smax<mode>3): Ditto.
10077         (*ieee_smin<mode>3): Ditto.
10078         (*ieee_smax<mode>3): Ditto.
10079         * config/i386/sse.md (sse): New mode attribute.
10080         (mov<mode>): Macroize expander from movv4sf and movv2df using
10081         SSEMODEF2P mode iterator.
10082         (<sse>_movnt<mode>): Ditto from similar patterns. Use
10083         SSE_VEC_FLOAT_MODE_P as insn constraint.
10084         (storent<mode>): Ditto.
10085         (storent<mode>): Macroize expander from storentsf and storentdf using
10086         MODEF mode iterator.
10087         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
10088         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
10089         (abs<mode>2): Ditto from similar patterns.
10090         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
10091         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
10092         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
10093         (<sse>_vmsqrt<mode>2): Ditto.
10094         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
10095         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
10096         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
10097         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
10098         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
10099         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
10100         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
10101         insn constraint.
10102         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
10103         iterator and SSE_FLOAT_MODE_P as insn constraint.
10104         (<sse>_ucomi): Ditto from similar patterns.
10105         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
10106         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
10107         SSE_VEC_FLOAT_MODE_P as insn constraint.
10108         (vcond<mode>): Ditto from similar patterns.
10109         (and<mode>3, *and<mode>3): Ditto.
10110         (<sse>_nand<mode>3): Ditto.
10111         (ior<mode>3, *ior<mode>3): Ditto.
10112         (xor<mode>3, *xor<mode>3): Ditto.
10113         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
10114         iterator and SSE_FLOAT_MODE_P as insn constraint.
10115         (*nand<mode>3): Ditto from similar patterns.
10116         (*ior<mode>3): Ditto.
10117         (*xor<mode>3): Ditto.
10119 2008-02-20  Ira Rosen  <irar@il.ibm.com>
10121         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
10122         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
10123         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
10125 2008-02-19  Jan Hubicka  <jh@suse.cz>
10127         * predict.c (tree_bb_level_predictions): Remove variable next
10128         mistakely introduced by previous commit.
10130 2008-02-19  Jan Hubicka  <jh@suse.cz>
10132         * predict.c (predict_paths_leading_to): Rewrite.
10133         (predict_paths_for_bb): New.
10134         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
10136 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10138         PR bootstrap/35218
10139         * Makefile.in (build_file_translate): New.
10140         (gcc-vers.texi): Use it for translating $(abs_srcdir).
10141         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
10142         * configure.ac (build_file_translate): Substitute it.
10143         * configure: Regenerate.
10145 2008-02-19  Jan Hubicka  <jh@suse.cz>
10147         PR rtl-optimization/34408
10148         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
10149         invalid sharing.
10151 2008-02-19  Jan Hubicka  <jh@suse.cz>
10153         PR middle-end/28779
10154         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
10155         call_expr.
10157 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
10159         PR Ada/35186
10160         * config/i386/i386-modes.def: Revert the last DI alignment
10161         change until Ada people can look into it.
10163 2008-02-19  Nick Clifton  <nickc@redhat.com>
10165         * opts.c (print_specific_help): Fix typo in --help text.
10167 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
10169         PR target/35239
10170         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
10171         32-bit inline asm without asm alternatives for host GCC < 3.0.
10173 2008-02-19  Richard Guenther  <rguenther@suse.de>
10175         PR tree-optimization/34989
10176         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
10177         Allow propagation to INDIRECT_REF if we can simplify only.
10179 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10181         * c-common.c (warn_for_collisions_1): Use appropriate option when
10182         warning.
10184 2008-02-19  Nick Clifton  <nickc@redhat.com>
10186         PR other/31349
10187         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
10188         (handle_options): Fix indentation.
10189         (print_filtered_help): If no language-specific options were
10190         displayed tell the user how to list all the options supported by
10191         the language's front-end.
10192         (print_specific_help): Fix indentation and remove duplicate line.
10193         (common_handle_option): Handle the -v option.
10194         For --help enable the display of undocumented options if the -v
10195         switch has been included on the command line.
10196         For --help= check for overlaps in the arguments between the option
10197         classes and the language names and issue a warning when they
10198         cannot be disambiguated.
10199         * c.opt (v): Pass on to the common option handler.
10201 2008-02-19  Revital Eres  <eres@il.ibm.com> 
10203         * modulo-sched.c (sms_schedule): Change dump message when
10204         create_ddg function fails.
10205         (try_scheduling_node_in_cycle): Rename row to cycle.
10206         (print_partial_schedule): Rename CYCLE to ROW.
10208 2008-02-19  Christian Bruel  <christian.bruel@st.com>
10209             Zdenek Dvorak  <ook@ucw.cz>
10211         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
10213 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
10215         PR target/33555
10216         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
10217         (*x86_movdicc_0_m1_se): Ditto.
10219 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
10221         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
10222         (CMPtype): Define as __gcc_CMPtype.
10223         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
10224         (CMPtype): Define as __gcc_CMPtype.
10226 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
10228         Support valgrind 3.3 for --enable-checking=valgrind.
10229         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
10230         here.
10231         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
10232         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
10233         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
10234         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
10235         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
10236         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
10237         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
10238         respectively.
10239         * ggc-zone.c: Similar.
10240         * ggc-page.c: Similar.
10242 2008-02-19  Paul Brook  <paul@codesourcery.com>
10244         PR target/35071
10245         * config/arm/ieee754-df.S: Fix do_it typo.
10246         * config/arm/ieee754-sf.S: Fix do_it typo.
10248 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
10250         PR target/35189
10251         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
10252         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
10253         (OPTION_MASK_ISA_SSE_SET): Likewise.
10254         (OPTION_MASK_ISA_SSE2_SET): Likewise.
10255         (OPTION_MASK_ISA_SSE3_SET): Likewise.
10256         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
10257         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
10258         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
10259         (OPTION_MASK_ISA_SSE4_SET): Likewise.
10260         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
10261         (OPTION_MASK_ISA_SSE5_SET): Likewise.
10262         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
10263         (OPTION_MASK_ISA_MMX_UNSET): Updated.
10264         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
10265         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
10266         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
10267         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
10268         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
10269         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
10270         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
10271         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
10272         (OPTION_MASK_ISA_SSE4): Removed.
10273         (ix86_handle_option): Turn on bits in ix86_isa_flags and
10274         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
10275         (override_options): Don't turn on implied SSE/MMX bits in
10276         ix86_isa_flags.
10278 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
10280         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
10281         32bit host.
10283 2008-02-18  Joey Ye  <joey.ye@intel.com>
10285         PR middle-end/34921
10286         * tree-nested.c (insert_field_into_struct): Set type alignment
10287         to field alignment if the former is less than the latter.
10289 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
10291         * BASE-VER: Set to 4.4.0.
10293 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10295         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
10296         * doc/cfg.texi: Likewise.
10297         * doc/extend.texi: Likewise.
10298         * doc/gty.texi: Likewise.
10299         * doc/invoke.texi: Likewise.
10300         * doc/loop.texi: Likewise.
10301         * doc/md.texi: Likewise.
10302         * doc/passes.texi: Likewise.
10303         * doc/rtl.texi: Likewise.
10304         * doc/sourcebuild.texi: Likewise.
10305         * doc/tm.texi: Likewise.
10306         * doc/tree-ssa.texi: Likewise.
10308 2008-02-17  Richard Guenther  <rguenther@suse.de>
10310         PR middle-end/35227
10311         * tree-complex.c (init_parameter_lattice_values): Handle parameters
10312         without default definition.
10314 2008-02-17  Richard Guenther  <rguenther@suse.de>
10316         PR tree-optimization/35231
10317         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
10318         if A | B != 1.
10320 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
10322         Revert:
10323         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
10324         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
10325         libgcc_cmp_return mode.
10327 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10329         PR c/28368
10330         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
10332 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
10334         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
10335         multilibs.
10337 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10339         * doc/c-tree.texi: Use `@.' where appropriate.
10340         * doc/extend.texi: Likewise.
10341         * doc/install.texi: Likewise.
10342         * doc/invoke.texi: Likewise.
10343         * doc/loop.texi: Likewise.
10344         * doc/makefile.texi: Likewise.
10345         * doc/md.texi: Likewise.
10346         * doc/passes.texi: Likewise.
10347         * doc/standards.texi: Likewise.
10348         * doc/tm.texi: Likewise.
10350 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
10352         PR middle-end/35196
10353         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
10354         in entry_bb.
10355         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
10356         rather than in entry_bb.
10358 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
10360         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
10361         libgcc_cmp_return mode.
10363 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
10365         PR middle-end/35130
10366         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
10367         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
10369 2008-02-15  Richard Guenther  <rguenther@suse.de>
10370             Zdenek Dvorak  <ook@ucw.cz>
10372         PR tree-optimization/35164
10373         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
10374         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
10375         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
10376         Only propagate addresses which do not have abnormal SSA_NAMEs
10377         in their operands.
10379 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
10381         PR target/35088
10382         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
10384 2008-02-15  Jan Hubicka  <jh@suse.cz>
10386         PR middle-end/35149
10387         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
10389 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
10391         PR middle-end/34621
10392         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
10393         when calculating alignment_pad.
10395 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
10397         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
10398         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
10399         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
10400         and STACK_BOUNDARY define.
10402 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
10404         PR preprocessor/35061
10405         * c-pragma.c (handle_pragma_pop_macro): Check that
10406         pushed_macro_table has been allocated.
10408 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
10410         PR middle-end/35136
10411         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
10412         (force_gimple_operand): Likewise.
10413         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
10414         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
10415         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
10416         (find_interesting_uses_address): Check addressability and alignment
10417         of the base expression only after substituting bases of IVs into it.
10419 2008-02-14  Michael Matz  <matz@suse.de>
10421         PR target/34930
10422         * function.c (instantiate_virtual_regs_in_insn): Reload address
10423         before falling back to reloading the whole operand.
10425 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
10427         * config/s390/s390.c (s390_mainpool_start): Emit the pool
10428         before the first section switch note.
10430 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10432         * doc/bugreport.texi: Update copyright years.
10433         * doc/c-tree.texi: Likewise.
10434         * doc/cfg.texi: Likewise.
10435         * doc/cpp.texi: Likewise.
10436         * doc/cppinternals.texi: Likewise.
10437         * doc/fragments.texi: Likewise.
10438         * doc/frontends.texi: Likewise.
10439         * doc/gcc.texi: Likewise.
10440         * doc/gty.texi: Likewise.
10441         * doc/hostconfig.texi: Likewise.
10442         * doc/implement-c.texi: Likewise.
10443         * doc/libgcc.texi: Likewise.
10444         * doc/loop.texi: Likewise.
10445         * doc/makefile.texi: Likewise.
10446         * doc/options.texi: Likewise.
10447         * doc/passes.texi: Likewise.
10448         * doc/rtl.texi: Likewise.
10449         * doc/sourcebuild.texi: Likewise.
10450         * doc/standards.texi: Likewise.
10451         * doc/tree-ssa.texi: Likewise.
10452         * doc/trouble.texi: Likewise.
10454         * doc/extend.texi: Use @: or add comma where appropriate.
10455         * doc/invoke.texi: Likewise.
10456         * doc/tm.texi: Likewise.
10458 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
10460         PR target/34393
10461         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
10462         to a reg.
10464 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
10466         * doc/md.texi (clz, ctz): Add reference.
10467         * doc/rtl.texi (clz, ctz): Likewise.
10469 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10471         PR other/35148
10472         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
10473         srcdir.
10475 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
10477         * config/s390/s390.c (struct constant_pool): New field
10478         emit_pool_after added.
10479         (s390_mainpool_start): Set the emit_pool_after flag according
10480         to the section switch notes.
10481         (s390_mainpool_finish): Consider emit_pool_after when emitting
10482         the literal pool at the end of the function.
10483         (s390_chunkify_start): Force literal pool splits at section
10484         switch notes.
10486 2008-02-13  Michael Matz  <matz@suse.de>
10488         PR debug/35065
10489         * var-tracking.c (clobber_variable_part): Correctly traverse the
10490         list.
10492 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10494         PR 29673
10495         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
10496         Add -fdump-ipa-inline.
10497         * tree-dump.c (dump_files): Remove tree-inlined dump.
10498         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
10499         
10500 2008-02-12  Richard Guenther  <rguenther@suse.de>
10502         PR tree-optimization/35171
10503         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
10504         default defs.
10506 2008-02-12  Richard Guenther  <rguenther@suse.de>
10508         PR middle-end/35163
10509         * fold-const.c (fold_widened_comparison): Use get_unwidened in
10510         value-preserving mode.  Disallow final truncation.
10512 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
10514         PR middle-end/35136
10515         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
10516         code from here to...
10517         (force_gimple_operand): ...here.
10519 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
10521         PR c++/35144
10522         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
10523         non-compatible pointers.
10524         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
10525         different FIELD_DECLs, try harder by comparing field offsets, sizes
10526         and types.
10528         PR inline-asm/35160
10529         * function.c (match_asm_constraints_1): Don't replace the same input
10530         multiple times.
10532 2008-02-12  Anatoly Sokolov <aesok@post.ru>
10534         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
10535         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
10536         (expand_epilogue): Restore RAMPZ register.
10537         * config/avr/avr.md (RAMPZ_ADDR): New constant.
10539 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10541         * alloc-pool.c (hash_descriptor, eq_descriptor,
10542         alloc_pool_descriptor): Fix -Wc++-compat warnings.
10543         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
10544         Likewise.
10545         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
10546         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
10547         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
10548         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
10549         Likewise.
10551 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
10553         * tree-flow.h (loop_only_exit_p): Declare.
10554         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
10555         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
10556         the number of iterations if it is constant.  Otherwise, if this is the
10557         only possible exit of the loop, use the conservative estimate on the
10558         number of iterations of the entire loop if available.
10560 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
10562         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
10563         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
10564         Add synchronization functions.
10565         * config/sync.c: New file.
10566         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
10567         (LIBGCC_SYNC_CFLAGS): Likewise.
10569 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
10571         PR target/36710
10572         * config/i386/i386.md (mode): Add TF to "mode" attribute.
10573         (*pushtf_sse): New insn pattern.
10574         (pushtf splitters): New splitters.
10576 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
10578         PR middle-end/35736
10579         * predict.c (build_predict_expr): Use void_type_node for the tree
10580         type, instead of NULL_TREE.
10582 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
10584         * config/i386/i386.c (contains_aligned_value_p): Return true
10585         for TCmode.
10586         (ix86_data_alignment): Align TCmode to 128bits.
10587         (ix86_local_alignment): Likewise.
10589 2008-07-03  Andrew Haley  <aph@redhat.com>
10591         PR bootstrap/33304
10592         * vec.h (VEC_TA): New.
10593         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
10594         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
10595         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
10596         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
10597         (C_COMMON_FIXED_TYPES): Remove first arg.
10598         (C_COMMON_FIXED_MODE_TYPES): Likewise.
10599         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
10600         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
10601         not to use empty macro arguments.
10603 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
10605         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
10606         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
10607         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
10608         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
10609         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
10610         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
10611         config/ia64/crtn.asm, config/m68hc11/larith.asm,
10612         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
10613         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
10614         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
10615         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
10616         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
10617         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
10618         config/rs6000/e500crtres64gpr.asm,
10619         config/rs6000/e500crtres64gprctr.asm,
10620         config/rs6000/e500crtrest32gpr.asm,
10621         config/rs6000/e500crtrest64gpr.asm,
10622         config/rs6000/e500crtresx32gpr.asm,
10623         config/rs6000/e500crtresx64gpr.asm,
10624         config/rs6000/e500crtsav32gpr.asm,
10625         config/rs6000/e500crtsav64gpr.asm,
10626         config/rs6000/e500crtsav64gprctr.asm,
10627         config/rs6000/e500crtsavg32gpr.asm,
10628         config/rs6000/e500crtsavg64gpr.asm,
10629         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
10630         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
10631         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
10632         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
10633         config/sparc/sol2-cn.asm: Remove .file directives.
10635 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
10637         * resource.c (mark_referenced_resources): Look inside
10638         UNSPEC_VOLATILEs and ASM_INPUTs.
10640 2008-07-02  Ian Lance Taylor  <iant@google.com>
10642         * rtlanal.c (add_reg_note): New function.
10643         * rtl.h (add_reg_note): Declare.
10644         * auto-inc-dec.c (attempt_change): Use add_reg_note.
10645         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
10646         * builtins.c (expand_builtin_longjmp): Likewise.
10647         (expand_builtin_nonlocal_goto): Likewise.
10648         * calls.c (emit_call_1, expand_call): Likewise.
10649         * cfgexpand.c (add_reg_br_prob_note): Likewise.
10650         * cfglayout.c (fixup_reorder_chain): Likewise.
10651         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
10652         (commit_one_edge_insertion): Likewise.
10653         * combine.c (move_deaths, distribute_notes): Likewise.
10654         * df-problems.c (df_set_note): Likewise.
10655         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
10656         (set_unique_reg_note): Likewise.
10657         (emit_copy_of_insn_after): Likewise.
10658         * expr.c (expand_expr_real): Likewise.
10659         * gcse.c (add_label_notes): Likewise.
10660         * haifa-sched.c (create_check_block_twin): Likewise.
10661         * jump.c (mark_jump_label_1): Likewise.
10662         * loop-doloop.c (add_test, doloop_modify): Likewise.
10663         * loop-unswitch.c (compare_and_jump_seq): Likewise.
10664         * lower-subreg.c (move_eh_region_note): Likewise.
10665         * optabs.c (emit_libcall_block): Likewise.
10666         * predict.c (predict_insn): Likewise.
10667         (combine_predictions_for_insn): Likewise.
10668         * recog.c (peephole2_optimize): Likewise.
10669         * regmove.c (try_auto_increment): Likewise.
10670         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
10671         * reload.c (find_reloads): Likewise.
10672         * reload1.c (fixup_eh_region_note): Likewise.
10673         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
10674         * reorg.c (delete_prior_computation): Likewise.
10675         (delete_computation, dbr_schedule): Likewise.
10676         * config/pa/pa.c (legitimize_pic_address): Likewise.
10677         * config/sh/sh.c (sh_reorg): Likewise.
10679 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
10681         PR target/36669
10682         * config/libgcc-glibc.ver: Add %exclude.
10683         * config/m32r/libgcc-glibc.ver: Likwise.
10684         * config/s390/libgcc-glibc.ver: Likwise.
10685         * config/sh/libgcc-glibc.ver: Likwise.
10686         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
10688         * config/i386/libgcc-glibc.ver: New.
10690         * config/i386/libgcc-x86_64-glibc.ver: Removed.
10692 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
10694         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
10695         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
10696         i[34567]86-*-linux*, x86_64-*-linux*.  Add
10697         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
10698         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
10699         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
10700         i[34567]86-*-linux*, x86_64-*-linux*.
10702         * libgcc-std.ver: Add empty GCC_4.4.0.
10704         * mkmap-symver.awk: Support multiple versions per symbol.
10706         * config/i386/i386.c (ix86_init_builtins): Always define
10707         __builtin_fabsq and __builtin_copysignq with fallbacks.
10708         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
10709         and __builtin_copysignq if SSE2 isn't available.
10711         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
10712         (LIBGCC2_TF_CEXT): Likwise.
10713         (TF_SIZE): Likwise.
10715         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
10717         * config/i386/sfp-machine.h: Moved to libgcc.
10719         * config/i386/sfp-machine.h: New.
10720         * config/i386/t-linux: Likwise.
10722         * config/i386/t-darwin: Remove softfp_wrap_start and
10723         softfp_wrap_end.
10724         * config/i386/t-darwin64: Likewise.
10726         * config/i386/t-fprules-softfp64: Renamed to ...
10727         * config/i386/t-fprules-softfp: This.
10729         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
10730         and softfp_wrap_end.
10732 2008-07-02  Jason Merrill  <jason@redhat.com>
10734         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
10736         * tree.c (ctor_to_list): New fn.
10737         * tree.h: Declare it.
10738         (CONSTRUCTOR_ELT): New macro.
10739         (CONSTRUCTOR_NELTS): New macro.
10741 2008-07-02  Richard Guenther  <rguenther@suse.de>
10743         * tree-ssa-structalias.c (struct variable_info): Reorder
10744         to fill padding on 64bit hosts.  Make collapsed_to an int.
10745         (get_varinfo_fc): Deal with that.
10746         (new_var_info): Likewise.
10747         (collapse_rest_of_var): Likewise.
10749 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
10751         * doc/install.texi (--enable-java-home): Document.
10752         (--enable-aot-compile-rpm): Likewise.
10753         (--with-arch-directory): Likewise.
10754         (--with-os-directory): Likewise.
10755         (--with-origin-name): Likewise.
10756         (--with-arch-suffix): Likewise.
10757         (--with-jvm-root-dir): Likewise.
10758         (--with-jvm-jar-dir): Likewise.
10759         (--with-python-dir): Likewise.
10761 2008-07-02  Richard Guenther  <rguenther@suse.de>
10763         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
10764         from decls explicitly.  Merge operand checking from tuples.
10766 2008-07-02  Martin Jambor  <mjambor@suse.cz>
10768         * tree-switch-conversion.c: Included timevar.h which I forgot before.
10770 2008-07-02  Martin Jambor  <mjambor@suse.cz>
10772         * tree-switch-conversion.c: Included timevar.h
10773         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
10775         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
10777 2008-07-02  Martin Jambor  <mjambor@suse.cz>
10779         * tree-switch-conversion.c: Corrected various comments and
10780         whitespace issues
10781         (build_constructors): Fixed minor formatting mistakes.
10783         * invoke.texi (Optimize Options): Corrected the
10784         switch-conversion-max-branch-ratio parameter.
10786 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
10788         * final.c (asm_insn_count): Return zero for an empty asm body.
10790 2008-07-02  Richard Guenther  <rguenther@suse.de>
10792         * bitmap.h (bitmap_set_bit): Return bool.
10793         (bitmap_clear_bit): Likewise.
10794         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
10795         write to the bitmap if it would.
10796         (bitmap_clear_bit): Likewise.
10797         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
10798         bitmap_set_bit return value.
10799         (add_pred_graph_edge): Likewise.
10800         (add_graph_edge): Likewise.
10801         (do_sd_constraint): Likewise.
10802         (do_ds_constraint): Likewise.
10804 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10806         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
10807         Fix -Wc++-compat and/or -Wcast-qual warnings.
10808         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
10809         gen_regparm_prefix): Likewise.
10810         * vmsdbgout.c (write_modbeg, lookup_filename,
10811         vmsdbgout_source_line, vmsdbgout_init): Likewise.
10813 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
10815         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
10816         defaults.h definition apply.
10818 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
10820         * function.c (assign_parm_remove_parallels): New.
10821         (assign_parm_setup_block_p): Do not return true for non-BLKmode
10822         PARALLELs.
10823         (assign_parm_setup_block): Do not handle them.
10824         (assign_parm_setup_reg, assign_parm_setup_stack): Call
10825         assign_parm_remove_parallels.
10827 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
10829         * c-typeck.c (convert_for_assignment): Use
10830         vector_targets_convertible_p.
10831         * c-common.c (vector_targets_convertible_p): New.
10832         * c-common.h (vector_targets_convertible_p): New prototype.
10833         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
10834         opaque_p_V2SI_type_node.
10836 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
10838         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
10839         RFmode constants.
10841 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
10843         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
10844         TFmode constants via two element DImode vector for hosts with
10845         HOST_BITS_PER_WIDE_INT < 64.
10846         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
10847         also for HOST_BITS_PER_WIDE_INT < 64.
10849 2008-07-01  Richard Guenther  <rguenther@suse.de>
10851         PR tree-optimization/36666
10852         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
10853         (get_constraint_exp_from_ssa_var): Split into ...
10854         (get_constraint_exp_for_temp): ... this ...
10855         (get_constraint_for_ssa_var): ... and that.
10856         Return constraint expressions for all touched sub-fields
10857         if the results address is not taken.
10858         (process_constraint): Remove assertion that aggregate
10859         assignments do not happen at this place.
10860         (get_constraint_for_component_ref): Add address_p argument.
10861         Return constraint expressions for all touched sub-fields
10862         if the results address is not taken.
10863         (do_deref): Use get_constraint_exp_for_temp.
10864         (get_constraint_for_1): Rename from ...
10865         (get_constraint_for): ... this.  Add the old function as wrapper.
10866         (do_structure_copy): Use get_constraint_for_1.
10868 2008-07-01  Martin Jambor  <mjambor@suse.cz>
10870         * Makefile.in (tree-switch-conversion.o): Add.
10871         (OBJS-common): Add tree-swtch-conversion.o.
10872         * passes.c (init_optimization_passes): Add pass_convert_switch.
10873         * tree-pass.h: (pass_convert_switch): Add.
10874         * tree-switch-conversion.c: New file.
10875         * gcc.dg/tree-ssa/cswtch.c: New testcase.
10876         * common.opt (ftree-cswtch): New option.
10877         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
10878         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
10879         * opts.c (decode_options): Set flag_tree_switch_conversion when
10880         optimization level is >= 2.
10881         * doc/invoke.texi (Optimize Options): Added description of
10882         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
10884 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10886         * config/darwin-driver.c (darwin_default_min_version): Fix
10887         -Wc++-compat warnings.
10889 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
10891         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
10892         of operand 0.
10894 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
10896         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
10898 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
10900         PR rtl-optimization/34744
10901         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
10902         (df_scan_free_internal): Free data structures not
10903         allocated in storage pools.
10904         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
10905         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
10906         df_scan_free_mws_vec.
10907         * dse.c (dse_step6): Free offset_map_p and offset_map_n
10908         unconditionally.
10910 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
10912         * config/i386/i386.c (contains_aligned_value_p): Return true
10913         for __float128.
10914         (ix86_function_arg_boundary): Return its natural boundary
10915         for __float128.
10916         (return_in_memory_32): Don't check TDmode.
10917         (ix86_split_to_parts): Support splitting into 4 parts and
10918         support TFmode for 32bit target.
10919         (ix86_split_long_move): Support splitting into 4 parts.
10920         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
10921         for SSE2.
10922         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
10923         (ix86_init_builtins): Here.
10924         (ix86_scalar_mode_supported_p): Always return true for TFmode.
10925         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
10926         'q' and 'w', respectively.
10928         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
10929         TARGET_64BIT.
10930         (movtf_internal): Likewise.
10931         (<code>tf2): Likewise.
10932         (*absnegtf2_sse): Likewise.
10933         (copysign<mode>3): Likewise.
10934         (copysign<mode>3_const): Likewise.
10935         (copysign<mode>3_var): Likewise.
10936         (define_split UNSPEC_COPYSIGN): Likewise.
10937         * config/i386/sse.md (*nandtf3): Likewise.
10938         (<code>tf3): Likewise.
10939         (*<code>tf3): Likewise.
10941 2008-06-30  Joey Ye  <joey.ye@intel.com>
10942             H.J. Lu  <hongjiu.lu@intel.com>
10944         * global.c (compute_regsets): Set frame_pointer_needed here.
10945         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
10947 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
10949         * doc/install.texi (specific): Expand Windows build notes.
10951 2008-06-30  Ira Rosen  <irar@il.ibm.com>
10953         PR tree-optimization/36648
10954         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
10955         number of prolog iterations by step. Fix the comment.
10957 2008-06-30  Richard Guenther  <rguenther@suse.de>
10959         PR middle-end/36671
10960         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
10961         handle calls from ECF_MALLOC functions.
10962         (handle_pure_call): ECF_MALLOC functions do not return
10963         call-used memory.
10964         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
10966 2008-06-29  Andreas Schwab  <schwab@suse.de>
10968         * config/m68k/m68k.c (print_operand): Always print a float
10969         constant in hex.
10970         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
10971         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
10972         Remove macros.
10974         * config/rs6000/x-linux64: Remove never used file.
10976 2008-06-29  Richard Guenther  <rguenther@suse.de>
10978         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
10979         prototype.
10980         (struct alias_info): Move ...
10981         * tree-ssa-alias.c: ... here.
10982         (update_alias_info): Declare.
10983         (compute_may_aliases): Call it.
10984         (update_alias_info): New function.
10985         * tree-ssa-structalias.c (update_alias_info): Move ...
10986         * tree-ssa-alias.c (update_alias_info_1): ... here.
10987         * tree-ssa-structalias.c (process_constraint_1): Remove
10988         unused from_call argument.  Rename to ...
10989         (process_constraint): ... this.  Delete old wrapper.
10990         (make_constraint_to): Adjust callers.
10991         (handle_const_call): Likewise.
10992         (handle_pure_call): Likewise.
10993         (init_base_vars): Likewise.
10994         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
10995         (find_func_aliases): We don't need structure copies for
10996         complex types.
10997         (make_constraint_from_anything): Remove.
10998         (create_variable_info_for): For globals make constraints
10999         from escaped, not from anything.
11000         (compute_points_to_sets): Do not call update_alias_info.
11001         (ipa_pta_execute): Use make_constraint_from.
11003 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11005         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
11006         (bitmap.o-warn, dominance.o-warn): New.
11007         * configure.ac (cxx_compat_warn): Delete.
11008         (loose_warn): Add -Wcast-qual and -Wc++-compat.
11009         * system.h: Remove #pragma diagnostic for -Wcast-qual and
11010         -Wc++-compat.
11011         * configure: Regenerate.
11013         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
11014         warnings.
11016 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11018         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
11019         * df-scan.c (df_notes_rescan): Likewise.
11020         * ggc-page.c (set_page_table_entry): Likewise.
11021         * intl.c (gcc_gettext_width): Likewise.
11022         * varasm.c (get_unnamed_section, get_noswitch_section,
11023         get_section): Likewise.
11025 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
11027         * regrename.c (build_def_use): Don't copy RTX.
11029 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
11031         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
11032         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
11033         punctuation.  Use @ref instead of @xref.
11034         (Function Names): Remove stray @display/@end display.
11035         (C++ Attributes): Use @ref instead of @xref.
11036         (Deprecated Features): Fix punctuation around @xref.
11037         (Backwards Compatibility): Likewise.
11038         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
11040 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
11042         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
11043         constants for E500 double.
11045 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11047         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
11048         element type of const_vector.
11050 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
11052         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
11053         Remove FLAGS_REG clobber from expander pattern.
11054         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
11055         (anddi3, andsi3, andhi3, andqi3): Ditto.
11056         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
11057         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
11058         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
11059         (ashlsi3, ashlhi3, ashlqi3): Ditto.
11060         (ashrsi3, ashrhi3, ashrqi3): Ditto.
11061         (lshrsi3, lshrhi3, lshrqi3): Ditto.
11062         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
11063         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
11065 2008-06-28  Richard Guenther  <rguenther@suse.de>
11067         * tree-ssa-structalias.c (callused_id, var_callused,
11068         callused_tree): Add.
11069         (handle_pure_call): New function.
11070         (find_func_aliases): Call it.
11071         (find_what_p_points_to): Handle the call-used set.
11072         (clobber_what_escaped): Likewise.
11073         (compute_call_used_vars): New function.
11074         (init_base_vars): Init the call-used variable.
11075         (do_sd_constraint): Do not propagate the solution from CALLUSED
11076         but use CALLUSED as a placeholder.
11077         (solve_graph): Likewise.
11078         * tree-flow-inline.h (gimple_call_used_vars): New function.
11079         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
11080         (compute_call_used_vars): Declare.
11081         * tree-ssa-alias.c (set_initial_properties): Call
11082         compute_call_used_vars.
11083         (reset_alias_info): Clear call-used variables.
11084         (add_call_clobber_ops): Assert we are not called for const/pure
11085         functions.  Remove handling of them.
11086         (add_call_read_ops): Handle pure functions by adding the
11087         call-used set of variables as VUSEs.
11088         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
11089         (delete_tree_ssa): Free it.
11090         * tree-dfa.c (remove_referenced_var): Clear the var from the
11091         call-used bitmap.
11093 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
11095         * tree.c (build_varargs_function_type_list): New.
11096         (build_function_type_list_1): New.
11097         (build_function_type_list): Use build_function_type_list_1.
11098         * tree.h (build_varargs_function_type_list): New.
11100 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11102         PR target/34856
11103         * config/spu/spu.c (spu_builtin_splats): Do not generate
11104         invalid CONST_VECTOR expressions.
11105         (spu_expand_vector_init): Likewise.
11107 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
11109         * optabs.c (libfunc_decls): New variable.
11110         (libfunc_decl_hash, libfunc_decl_eq): New functions.
11111         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
11112         for the same function twice.
11114 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
11116         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
11117         ix86_expand_binary_operator directly.
11118         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
11119         for operand 2.
11120         (*ashrti3_1): Ditto.
11121         (*lshrti3_1): Ditto.
11122         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
11123         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
11124         using only one splitter.  Conditionaly execute splitter before or
11125         after peephole2 pass.
11126         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
11127         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
11128         Use only one alternative in asm template.
11129         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
11130         in asm template.
11131         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
11132         "J" operand constraint for operand 2.
11133         (*ashldi3_cconly_rex64): Ditto.
11134         (*ashrdi3_cmp_rex64): Ditto.
11135         (*ashrdi3_cconly_rex64): Ditto.
11136         (*lshrdi3_cmp_rex64): Ditto.
11137         (*lshrdi3_cconly_rex64): Ditto.
11138         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
11139         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
11140         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
11141         gen_x86_shrd_1.
11143 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
11145         * gimplify.c (omp_is_private): Don't return true if decl is not
11146         already private on #pragma omp for or #pragma omp parallel for.
11148         PR debug/36617
11149         * tree-cfg.c (struct move_stmt_d): Replace block field with
11150         orig_block and new_block fields.
11151         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
11152         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
11153         (move_block_to_fn): Replace vars_map and new_label_map arguments
11154         with struct move_stmt_d pointer.
11155         (replace_block_vars_by_duplicates): New function.
11156         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
11157         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
11158         all subblocks of ORIG_BLOCK to the new function.  Call
11159         replace_block_vars_by_duplicates.
11160         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
11161         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
11162         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
11163         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
11164         (expand_omp): Temporarily set input_location to the location of
11165         region's controlling stmt.
11166         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
11167         BIND_EXPR, push ctx->block_vars and gimplification vars into
11168         the BIND_EXPR and its block's BLOCK_VARS instead of directly
11169         into dest function.
11170         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
11171         there are any BLOCK_VARS.
11172         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
11173         OMP_PARALLEL or OMP_TASK stmt.
11174         (lower_omp): Save and restore input_location around the lower_omp_1
11175         call.
11177 2008-06-27  Richard Guenther  <rguenther@suse.de>
11179         PR tree-optimization/36400
11180         PR tree-optimization/36373
11181         PR tree-optimization/36344
11182         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
11183         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
11184         (update_alias_info): Remove call clobbering code.
11185         (make_constraint_to): New helper function.
11186         (make_escape_constraint): Likewise.
11187         (handle_rhs_call): Use it on all pointer containing arguments.
11188         Also mark the static chain escaped.
11189         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
11190         instead of ANYTHING.
11191         (make_constraint_from): New helper split out from ...
11192         (make_constraint_from_anything): ... here.
11193         (find_func_aliases): Add constraints for escape sites.
11194         (intra_create_variable_infos): Make constraints from NONLOCAL
11195         for parameters.
11196         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
11197         as ANYTHING.
11198         (clobber_what_p_points_to): Remove.
11199         (clobber_what_escaped): New function.
11200         (init_base_vars): Init NONLOCAL and ESCAPED.
11201         (do_sd_constraint): Do not propagate the solution from ESCAPED
11202         but use ESCAPED as a placeholder.
11203         (solve_graph): Likewise.
11204         * tree-flow.h (clobber_what_p_points_to): Remove.
11205         (clobber_what_escaped): Declare.
11206         * tree-ssa-alias.c (set_initial_properties): Call it.
11207         Remove code clobbering escaped pointers.
11209 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
11211         * function.c (allocate_struct_function): Only allocate a unique
11212         funcdef_no if the decl is nonzero.
11214 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
11216         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
11217         * config/mips/mips.c (mips_split_const_insns): New function.
11218         * config/mips/mips.md (move_type): New attribute.
11219         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
11220         (dword_mode): New attribute.
11221         (type): Avoid long line.  Map "move_type"s to "type"s,
11222         choosing "multi" for doubleword moves if appropriate.
11223         Swap MTC/MFC comments to match their declaration order.
11224         (extended_mips16): Default to "yes" if "move_type" is "sll0",
11225         "type" is "branch" or "jal" is "direct".
11226         (length): Handle "extended_mips16" first.  Make the default
11227         "0" for "ghost" instructions.  Set the length from "move_type".
11228         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
11229         of "type", with "sll0" for the register alternative.  Remove the
11230         "extended_mips16" attribute.
11231         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
11232         of "type", with "shift_shift" for the register alternative.
11233         Remove the "length" attribute.
11234         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
11235         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
11236         of "type", with "andi" for the register alternative.
11237         (*zero_extendqihi2): Likewise.
11238         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
11239         of "andi" instead of a "type" of "arith".
11240         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
11241         instead of "type".
11242         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
11243         (mov_<store>r, *mov<mode>_ra): Likewise.
11244         (extendsidi2): Use "move_type" instead of "type", with "move"
11245         for the register alternative.
11246         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
11247         of "type", with "signext" for the register alternative.
11248         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
11249         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
11250         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
11251         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
11252         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
11253         (unnamed branch insn): Likewise.
11254         (*movdi_gp32_fp64): Fold into...
11255         (*movdi_32bit): ...here.
11256         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
11257         (*movdf_hardfloat): ...this new pattern.
11258         (*movdf_softfloat): Remove redundant FPR alternatives.
11259         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
11260         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
11261         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
11262         the "move" attribute.
11263         (*movdi_32bit): Use "move_type" instead of "type" and remove the
11264         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
11265         and "store" for COP loads and stores.
11266         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
11267         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
11268         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
11269         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
11270         (*movtf_mips16, *movv2sf): Likewise.
11271         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
11272         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
11273         (mfhc1<mode>): Use "move_type" instead of "move".
11274         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
11275         (loadgp_blockage): Remove the "length" attribute.
11276         (blockage, set_got_version, update_got_version): Likewise.
11277         (call_internal): Remove the "extended_mips16" attribute.
11278         (call_value_internal, call_value_multiple_internal): Likewise.
11279         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
11280         instead of "move".
11281         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
11282         the "length" attribute.
11284 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11286         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
11287         -Wcast-qual warnings.
11288         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
11289         handle_pragma_pop_macro): Likewise.
11290         * collect2.c (resolve_lib_name): Likewise.
11291         * config/arc/arc.c (arc_init): Likewise.
11292         * config/arm/arm.c (neon_builtin_compare,
11293         locate_neon_builtin_icode): Likewise.
11294         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
11295         * config/bfin/bfin.c (bfin_init_machine_status,
11296         bfin_optimize_loop): Likewise.
11297         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
11298         * config/cris/cris.c (cris_init_expanders): Likewise.
11299         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
11300         * config/darwin.c (machopic_indirection_eq,
11301         machopic_indirection_name, machopic_output_indirection): Likewise.
11302         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
11303         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
11304         frv_optimize_membar): Likewise.
11305         * config/i386/cygwin.h (mingw_scan,
11306         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
11307         * config/i386/cygwin1.c (mingw_scan): Likewise.
11308         * config/i386/i386.c (machopic_output_stub): Likewise.
11309         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
11310         i386_pe_unique_section): Likewise.
11311         * config/ia64/ia64.c (ia64_init_machine_status,
11312         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
11313         Likewise.
11314         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
11315         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
11316         * config/m68k/m68k.c (m68k_handle_option,
11317         m68k_sched_md_init_global): Likewise.
11318         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
11319         mcore_unique_section): Likewise.
11320         * config/mips/mips.c (mips_block_move_straight,
11321         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
11322         Likewise.
11323         * config/mmix/mmix.c (mmix_init_machine_status,
11324         mmix_encode_section_info): Likewise.
11325         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
11326         * config/rs6000/rs6000.c (rs6000_init_machine_status,
11327         print_operand_address, output_toc, redefine_groups,
11328         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
11329         * config/s390/s390.c (s390_init_machine_status): Likewise.
11330         * config/score/score.c (score_block_move_straight,
11331         score_block_move_loop_body): Likewise.
11332         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
11333         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
11334         * emit-rtl.c (find_auto_inc): Likewise.
11335         * gcc.c (translate_options, process_command): Likewise.
11336         * reorg.c (dbr_schedule): Likewise.
11337         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
11338         * xcoffout.c (xcoffout_declare_function): Likewise.
11340 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
11342         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
11343         ipa-pta working again.
11345 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
11347         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
11348         genautomata.
11350 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
11352         * config.gcc (powerpc*-*-*): Add new core e500mc.
11353         * config/rs6000/e500mc.md: New file.
11354         * config/rs6000/rs6000.c (processor_costs): Add new costs for
11355         e500mc.
11356         (rs6000_override_options): Add e500mc case to
11357         processor_target_table. Altivec and Spe options not allowed
11358         with e500mc. Add isel instruction to e500mc by
11359         default. Initialize rs6000_cost for e500mc.
11360         (rs6000_issue_rate): Set issue rate for e500mc.
11361         * config/rs6000/rs6000.h (processor_type): Add
11362         PROCESSOR_PPCE500MC.
11363         (ASM_CPU_SPEC): Add e500mc.
11364         Set TARGET_ISEL to rs6000_isel.
11365         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
11366         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
11367         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
11368         Include e500mc.md.
11369         * doc/invoke.texi: Add e500mc to list of cpus.
11371 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11373         PR c/34867
11374         * c-lex.c (lex_charconst): Initialize unsignedp.
11376 2008-06-27  Olivier Hainque  <hainque@adacore.com>
11378         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
11379         documented assumptions.
11381 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
11383         * dwarf2out.c: Remove trailing white spaces.  Break long line
11384         in comments.
11386 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
11388         * libfuncs.h (LTI_synchronize): New libfunc_index.
11389         (synchronize_libfunc): Declare.
11390         * builtins.c (expand_builtin_synchronize): Consider using
11391         synchronize_libfunc before falling back on an asm blockage.
11392         * config/mips/mips.c: Include libfuncs.h
11393         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
11395 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
11397         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
11398         parameter.  Copy stack_reg to r11 where appropriate.
11399         (no_global_regs_above): Add gpr parameter.
11400         (rs6000_stack_info): Only add padding for SPE save area if we
11401         are saving SPE GPRs and CR.
11402         (saveres_routine_syms): New variable.
11403         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
11404         Define.
11405         (rs6000_savres_routine_sym): New function.
11406         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
11407         split out of...
11408         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
11409         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
11410         Tweak FPR out-of-line saving.
11411         (rs6000_make_savres_rtx): New function.
11412         (rs6000_use_multiple_p): New function.
11413         (rs6000_savres_strategy): New function.
11414         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
11415         out-of-line if appropriate.
11416         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
11417         if we are optimizing for size.
11418         (GP_SAVE_INLINE): Define.
11419         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
11420         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
11421         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
11422         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
11423         (*save_fpregs_<mode>): Add use of r11.
11424         (*restore_gpregs_<mode>): New insn.
11425         (*return_and_restore_gpregs_<mode>): New insn.
11426         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
11427         use r11.
11428         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
11429         (*restore_gpregs_spe): New insn.
11430         (*return_and_restore_gpregs_spe): New insn.
11431         * config/rs6000/predicates.md (save_world_operation): Fix check.
11433 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
11435         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
11436         this point, so assert that.
11438 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
11440         * cfganal.c: Include vec.h and vecprim.h.
11441         (compute_idf): Import from...
11442         * tree-into-ssa (compute_idf): ...here.
11443         * basic-block.h (compute_idf): Export.
11445 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
11447         * c-decl.c (merge_decls): Use !current_function_decl to check for
11448         extern declaration of C99 inline function being at file scope.
11450 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
11452         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
11454 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11456         * alias.c (record_alias_subset, init_alias_analysis): Fix
11457         -Wc++-compat and/or -Wcast-qual warnings.
11458         * attribs.c (lookup_attribute_spec): Likewise.
11459         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
11460         copy_bb, connect_traces,
11461         find_rarely_executed_basic_blocks_and_cr): Likewise.
11462         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
11463         note_btr_set, migrate_btr_defs): Likewise.
11464         * builtins.c (result_vector, expand_builtin_memcpy,
11465         expand_builtin_mempcpy_args, expand_builtin_strncpy,
11466         builtin_memset_read_str, expand_builtin_printf,
11467         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
11468         Likewise.
11469         * caller-save.c (mark_set_regs): Likewise.
11470         * calls.c (expand_call, emit_library_call_value_1): Likewise.
11471         * cgraph.c (cgraph_edge): Likewise.
11472         * combine.c (likely_spilled_retval_1): Likewise.
11473         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
11474         htab_counts_entry_del, get_coverage_counts): Likewise.
11475         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
11476         new_cselib_val): Likewise.
11477         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
11478         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
11479         Likewise.
11480         * df-core.c (df_compact_blocks): Likewise.
11481         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
11482         * df-scan.c (df_grow_reg_info, df_ref_create,
11483         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
11484         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
11485         df_record_entry_block_defs, df_record_exit_block_uses,
11486         df_bb_verify): Likewise.
11487         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
11488         DF_REF_EXTRACT_MODE_CONST): New.
11489         * dominance.c (get_immediate_dominator, get_dominated_by,
11490         nearest_common_dominator, root_of_dom_tree,
11491         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
11492         -Wc++-compat and/or -Wcast-qual warnings.
11493         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
11494         record_store, replace_read, check_mem_read_rtx, scan_insn,
11495         dse_step1, dse_record_singleton_alias_set): Likewise.
11496         * dwarf2asm.c (dw2_force_const_mem): Likewise.
11498 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11500         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
11501         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
11502         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
11503         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
11504         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
11505         add_ranges_num, add_ranges_by_labels, file_info_cmp,
11506         file_name_acquire, output_file_names, add_const_value_attribute,
11507         premark_used_types_helper, file_table_eq, file_table_hash,
11508         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
11509         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
11510         -Wcast-qual warnings.
11511         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
11512         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
11513         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
11514         gen_reg_rtx, start_sequence, init_emit): Likewise.
11515         * et-forest.c (et_new_occ, et_new_tree): Likewise.
11516         * except.c (init_eh_for_function, gen_eh_region,
11517         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
11518         arh_to_landing_pad, arh_to_label, add_action_record,
11519         add_call_site, switch_to_exception_section): Likewise.
11520         * expmed.c (synth_mult): Likewise.
11521         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
11522         store_expr): Likewise.
11523         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
11524         Likewise.
11525         * function.c (assign_stack_temp_for_type,
11526         allocate_struct_function, match_asm_constraints_1): Likewise.
11527         * gcov-io.c (gcov_allocate): Likewise.
11528         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
11529         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
11530         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
11531         record_one_set, insert_expr_in_table, insert_set_in_table,
11532         dump_hash_table, compute_hash_table_work, alloc_hash_table,
11533         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
11534         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
11535         -Wcast-qual warnings.
11537 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11539         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
11540         -Wcast-qual warnings.
11541         * gcc.c (process_command): Likewise.
11542         * genattrtab.c (oballoc): Use XOBNEW.
11543         (oballocvec): Define.
11544         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
11545         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
11546         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
11547         -Wc++-compat and/or -Wcast-qual warnings.
11548         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
11549         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
11550         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
11551         gen_presence_absence_set, gen_automaton, gen_regexp_el,
11552         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
11553         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
11554         add_excls, process_presence_absence_names,
11555         process_presence_absence_patterns, add_presence_absence,
11556         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
11557         get_free_state, add_arc, get_free_automata_list_el,
11558         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
11559         transform_3, cache_presence, create_ainsns, create_automata,
11560         create_state_ainsn_table, dfa_insn_code_enlarge,
11561         output_trans_func, output_min_issue_delay_func,
11562         output_dead_lock_func, output_reset_func,
11563         output_get_cpu_unit_code_func, output_dfa_start_func,
11564         expand_automata): Likewise.
11565         * genextract.c (gen_insn): Likewise.
11566         * gengtype-lex.l: Likewise.
11567         * gengtype.c (read_input_list, adjust_field_type,
11568         process_gc_options): Likewise.
11569         * genoutput.c (note_constraint): Likewise.
11570         * genpreds.c (mangle, add_constraint): Likewise.
11571         * genrecog.c (process_define_predicate, new_decision,
11572         add_to_sequence): Likewise.
11573         * gensupport.c (record_insn_name): Likewise.
11575 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11577         * config/i386/driver-i386.c (detect_caches_amd,
11578         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
11579         and/or -Wcast-qual warnings.
11580         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
11581         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
11582         gt_pch_save): Likewise.
11583         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
11584         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
11585         * global.c (compute_regsets): Likewise.
11586         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
11587         finish_graph_dump_file): Likewise.
11588         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
11589         unlink_bb_notes): Likewise.
11590         * integrate.c (get_hard_reg_initial_val): Likewise.
11591         * ipa-prop.c (ipa_push_func_to_list): Likewise.
11592         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
11593         * local-alloc.c (update_equiv_regs): Likewise.
11594         * loop-invariant.c (check_invariant_table_size,
11595         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
11596         Likewise.
11597         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
11598         altered_reg_used, mark_altered): Likewise.
11599         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
11600         insert_var_expansion_initialization,
11601         combine_var_copies_in_loop_exit, apply_opt_in_copies,
11602         release_var_copies): Likewise.
11603         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
11604         analyze_matrix_decl, add_allocation_site, analyze_transpose,
11605         analyze_accesses_for_phi_node, check_var_notmodified_p,
11606         check_allocation_function, find_sites_in_func,
11607         record_all_accesses_in_func, transform_access_sites,
11608         transform_allocation_sites): Likewise.
11609         * omp-low.c (new_omp_region, create_omp_child_function_name,
11610         check_omp_nesting_restrictions, check_combined_parallel,
11611         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
11612         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
11613         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
11614         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
11615         Likewise.
11616         * opts-common.c (prune_options): Likewise.
11617         * opts.c (add_input_filename, print_filtered_help,
11618         get_option_state): Likewise.
11619         * params.c (add_params): Likewise.
11620         * passes.c (set_pass_for_id, next_pass_1,
11621         do_per_function_toporder, pass_fini_dump_file): Likewise.
11622         * postreload.c (reload_cse_simplify_operands): Likewise.
11623         * predict.c (tree_predicted_by_p, tree_predict_edge,
11624         clear_bb_predictions, combine_predictions_for_bb): Likewise.
11626 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11628         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
11629         warnings.
11630         * recog.c (check_asm_operands, validate_change_1): Likewise.
11631         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
11632         subst_asm_stack_regs): Likewise.
11633         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
11634         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
11635         * regmove.c (reg_is_remote_constant_p): Likewise.
11636         * regrename.c (regrename_optimize, scan_rtx_reg,
11637         kill_clobbered_value, kill_set_value, kill_autoinc_value):
11638         Likewise.
11639         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
11640         regstat_compute_calls_crossed): Likewise.
11641         * reload1.c (init_reload, new_insn_chain,
11642         has_nonexceptional_receiver, reload, copy_reloads,
11643         calculate_needs_all_insns, init_elim_table): Likewise.
11644         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
11645         * rtl.c (shallow_copy_rtx_stat): Likewise.
11646         * rtlanal.c (parms_set): Likewise.
11647         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
11648         sbitmap_resize, sbitmap_vector_alloc): Likewise.
11649         * sched-ebb.c (earliest_block_with_similiar_load,
11650         add_deps_for_risky_insns): Likewise.
11651         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
11652         schedule_region): Likewise.
11653         * see.c (eq_descriptor_pre_extension,
11654         hash_descriptor_pre_extension, hash_del_pre_extension,
11655         eq_descriptor_properties, hash_descriptor_properties,
11656         hash_del_properties, see_seek_pre_extension_expr,
11657         see_initialize_data_structures, see_print_register_properties,
11658         see_print_pre_extension_expr, see_delete_merged_def_extension,
11659         see_delete_unmerged_def_extension, see_emit_use_extension,
11660         see_pre_delete_extension, see_map_extension, see_commit_changes,
11661         see_analyze_merged_def_local_prop,
11662         see_analyze_merged_def_local_prop,
11663         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
11664         see_set_prop_merged_def, see_set_prop_unmerged_def,
11665         see_set_prop_unmerged_use, see_print_one_extension,
11666         see_merge_one_use_extension, see_merge_one_def_extension,
11667         see_store_reference_and_extension, see_update_uses_relevancy,
11668         see_update_defs_relevancy): Likewise.
11669         * statistics.c (hash_statistics_hash, hash_statistics_eq,
11670         hash_statistics_free, curr_statistics_hash): Likewise.
11671         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
11672         expand_asm_operands, expand_return, case_bit_test_cmp,
11673         expand_case): Likewise.
11674         * stor-layout.c (start_record_layout): Likewise.
11675         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
11676         gt_pch_save_stringpool): Likewise.
11677         * tree-data-ref.c (hash_stmt_vertex_info,
11678         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
11679         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
11681 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
11683         PR target/36627
11684         * config/i386/i386.md : Change constraints of HImode and QImode
11685         immediate operands from "i" to "n".  Change SImode "ni" constraint to
11686         "i" and SImode "rmi" constraint to "g".  Remove all constraints
11687         from const0_operand and const1_operand predicated operands.
11688         (i): Change QImode and HImode attribute from "i" to "n".
11689         (*subqi_2): Change HImode operands to QImode.
11690         (*subqi_3): Ditto.
11692 2008-06-25  Olivier Hainque  <hainque@adacore.com>
11694         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
11695         sed substitutions.
11697 2008-06-25  Richard Guenther  <rguenther@suse.de>
11699         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
11700         not overflow the result type.
11702 2008-06-25  Richard Guenther  <rguenther@suse.de>
11704         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
11705         (vn_lookup): Likewise.
11707 2008-06-25  Richard Guenther  <rguenther@suse.de>
11709         PR tree-optimization/35518
11710         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
11711         * tree-sra.c (instantiate_element): Use fold_build3 to build
11712         BIT_FIELD_REFs.
11713         (try_instantiate_multiple_fields): Likewise.
11715 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11717         * config/rs6000/rs6000.md: Change all string instruction's clobber to
11718         be early clobbers.
11720 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11722         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
11723         use_backchain_to_restore_sp to true
11724         if the offset of the link register save area would go over the 32k - 1
11725         offset limit of the load
11726         instructions.
11728 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
11730         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
11731         anchor for the type-punning blurb.  Cross-reference "Structures
11732         unions enumerations and bit-fields implementation".  Provide a
11733         cast-through-pointer example.  Make final sentence self-contained.
11734         * doc/implement-c.texi (Structures unions enumerations and
11735         bit-fields implementation): Cross-reference the type-punning blurb
11736         in the -fstrict-aliasing documentation.
11738 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11740         PR middle-end/36594
11741         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
11742         the memory instead of the memory itself for the save area.
11744 2008-06-24  Olivier Hainque  <hainque@adacore.com>
11745             Nicolas Roche  <roche@adacore.com>
11747         * gengtype.c (srcdir_len): size_t instead of int.
11748         (get_file_realbasename): New function.  For F a filename, the real
11749         basename of F, with all the path components stripped.
11750         (get_file_srcdir_relative_path): New function.  For F a filename, the
11751         relative path to F from $(srcdir).
11752         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
11753         get_file_realbasename.  Adjust the head comment.
11754         (get_prefix_langdir_index): New function. For F a filename, return the
11755         lang_dir_names[] relative index of the language directory that is
11756         a prefix in F.
11757         (get_file_langdir): For F a filename, return the name of the language
11758         directory where F is located.
11759         (get_file_gtfilename): New function. The gt- output file name for an
11760         input filename F.
11761         (get_output_file_with_visibility): Replace in-line computations with
11762         uses of get_file_gtfilename and get_prefix_langdir_index.
11763         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
11765 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
11767         PR tree-optimization/36504
11768         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
11769         references without base address.
11771 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
11773         PR middle-end/36584
11774         * calls.c (expand_call): Increase alignment for recursive functions.
11776 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
11778         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
11779         (TARGET_FUNCTION_VALUE): New define.
11780         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
11781         * config/avr/avr.h (FUNCTION_VALUE): Remove.
11783 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
11785         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
11786         (fmod<mode>3): Ditto.
11787         (remainderxf3): Ditto.
11788         (remainder<mode>3): Ditto.
11790 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
11792         PR target/36533
11793         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
11794         REG is a hard register.
11796         PR tree-optimization/36508
11797         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
11798         499, don't check it at all in release compilers.
11800 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
11802         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
11803         together with SSE_TARGET_MATH to disable insn pattern.
11804         (*fop_<MODEF:mode>_2_i387): Ditto.
11805         (*fop_<MODEF:mode>_3_i387): Ditto.
11807 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
11809         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
11811 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11813         PR middle-end/34906
11814         * gimplify.c (gimplify_asm_expr): Check the return code of
11815         parse_output_constraint call, set function return and is_inout
11816         value if it failed.
11818 2008-06-22  Ian Lance Taylor  <iant@google.com>
11820         * c-lex.c (narrowest_unsigned_type): Change itk to int.
11821         (narrowest_signed_type): Likewise.
11822         * c-typeck.c (c_common_type): Change local variable mclass to enum
11823         mode_class, twice.
11824         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
11825         tcc_comparison, not the tree code itself.
11826         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
11827         (c_expand_expr): Cast modifier to enum expand_modifier.
11828         * c-common.h (C_RID_CODE): Add casts.
11829         (C_SET_RID_CODE): Define.
11830         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
11831         (c_lex_one_token): Add cast to avoid warning.
11832         (c_parser_objc_type_name): Rename local typename to type_name.
11833         (check_no_duplicate_clause): Change code parameter to enum
11834         omp_clause_code.
11835         (c_parser_omp_var_list_parens): Change kind parameter to enum
11836         omp_clause_code.
11837         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
11838         c_parser_omp_list_var_parens.
11839         (c_parser_omp_threadprivate): Likewise.
11840         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
11841         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
11842         * c-format.c (NO_FMT): Define.
11843         (printf_length_specs): Use NO_FMT.
11844         (asm_fprintf_length_specs): Likewise.
11845         (gcc_diag_length_specs): Likewise.
11846         (scanf_length_specs): Likewise.
11847         (strfmon_length_specs): Likewise.
11848         (gcc_gfc_length_specs): Likewise.
11849         (printf_flag_specs): Change 0 to STD_C89.
11850         (asm_fprintf_flag_specs): Likewise.
11851         (gcc_diag_flag_specs): Likewise.
11852         (gcc_cxxdiag_flag_specs): Likewise.
11853         (scanf_flag_specs): Likewise.
11854         (strftime_flag_specs): Likewise.
11855         (strfmon_flag_specs): Likewise.
11856         (print_char_table): Likewise.
11857         (asm_fprintf_char_table): Likewise.
11858         (gcc_diag_char_table): Likewise.
11859         (gcc_tdiag_char_table): Likewise.
11860         (gcc_cdiag_char_table): Likewise.
11861         (gcc_cxxdiag_char_table): Likewise.
11862         (gcc_gfc_char_table): Likewise.
11863         (scan_char_table): Likewise.
11864         (time_char_table): Likewis.
11865         (monetary_char_table): Likewise.
11866         * c-format.h (BADLEN): Likewise.
11868 2008-06-21  Ian Lance Taylor  <iant@google.com>
11870         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
11871         Define END_OF_BASE_TREE_CODES around inclusion.
11872         * tree.c (tree_code_type): New global array.
11873         (tree_code_length, tree_code_name): Likewise.
11874         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
11875         $(lang_tree_files).
11876         (all-tree.def, s-alltree): New targets.
11877         (gencheck.h, s-gencheck): Remove.
11878         (tree.o): Depend upon all-tree.def.
11879         (build/gencheck.o): Remove gencheck.h dependency.
11880         (mostlyclean): Don't remove gencheck.h.
11881         * c-common.h (enum c_tree_code): Remove.
11882         * c-lang.c (tree_code_type): Remove.
11883         (tree_code_length, tree_code_name): Remove.
11884         * gencheck.c (tree_codes): Include all-tree.def, rather than
11885         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
11886         after it is used.
11887         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
11888         than tree.def.
11889         * cp/cp-tree.h (enum cplus_tree_code): Remove.
11890         (operator_name_info): Size to MAX_TREE_CODES.
11891         (assignment_operator_name_info): Likewise.
11892         * cp/cp-lang.c (tree_code_type): Remove.
11893         (tree_code_length, tree_code_name): Remove.
11894         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
11895         (assignment_operator_name_info): Likewise.
11896         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
11897         MAX_TREE_CODES.
11898         * cp/mangle.c (write_expression): Likewise.
11899         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
11900         * fortran/f95-lang.c (tree_code_type): Remove.
11901         (tree_code_length, tree_code_name): Remove.
11902         * java/java-tree.h (enum java_tree_code): Remove.
11903         * java/lang.c (tree_code_type): Remove.
11904         (tree_code_length, tree_code_name): Remove.
11905         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
11906         * objc/objc-act.h (enum objc_tree_code): Remove.
11907         * objc/objc-lang.c (tree_code_type): Remove.
11908         (tree_code_length, tree_code_name): Remove.
11909         * objcp/objcp-lang.c (tree_code_type): Remove.
11910         (tree_code_length, tree_code_name): Remove.
11911         * ada/ada-tree.h (enum gnat_tree_code): Remove.
11912         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
11913         * ada/misc.c (tree_code_type): Remove.
11914         (tree_code_length, tree_code_name): Remove.
11916 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
11918         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
11919         the grand_bitmap_obstack.
11921 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11923         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
11924         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
11925         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
11926         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
11927         move_stmt_r, new_label_mapper): Likewise.
11928         * tree-complex.c (cvc_lookup): Likewise.
11929         * tree-dfa.c (create_function_ann): Likewise.
11930         * tree-dump.c (dump_register): Likewise.
11931         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
11932         find_phi_replacement_condition): Likewise.
11933         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
11934         tree_function_versioning): Likewise.
11935         * tree-into-ssa.c (cmp_dfsnum): Likewise.
11936         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
11937         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
11938         get_nonlocal_debug_decl, convert_nonlocal_reference,
11939         convert_nonlocal_omp_clauses, get_local_debug_decl,
11940         convert_local_reference, convert_local_omp_clauses,
11941         convert_nl_goto_reference, convert_nl_goto_receiver,
11942         convert_tramp_reference, convert_call_expr): Likewise.
11943         * tree-outof-ssa.c (contains_tree_r): Likewise.
11944         * tree-parloops.c (reduction_phi, initialize_reductions,
11945         eliminate_local_variables_1, add_field_for_reduction,
11946         add_field_for_name, create_phi_for_local_result,
11947         create_call_for_reduction_1, create_loads_for_reductions,
11948         create_stores_for_reduction, create_loads_and_stores_for_name):
11949         Likewise.
11950         * tree-phinodes.c (allocate_phi_node): Likewise.
11951         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
11952         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
11953         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
11954         * tree-ssa-coalesce.c (compare_pairs): Likewise.
11955         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
11956         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
11957         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
11958         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
11959         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
11960         vn_nary_op_insert): Likewise.
11961         * tree-ssa.c (redirect_edge_var_map_add,
11962         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
11963         * tree-vectorizer.c (vectorize_loops): Likewise.
11964         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
11965         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
11966         tree_cons_stat, build1_stat, build_variant_type_copy,
11967         decl_init_priority_lookup, decl_fini_priority_lookup,
11968         decl_priority_info, decl_restrict_base_lookup,
11969         decl_restrict_base_insert, decl_debug_expr_lookup,
11970         decl_debug_expr_insert, decl_value_expr_lookup,
11971         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
11972         type_hash_add, get_file_function_name, tree_check_failed,
11973         tree_not_check_failed, tree_range_check_failed,
11974         omp_clause_range_check_failed, build_omp_clause,
11975         build_vl_exp_stat): Likewise.
11976         * value-prof.c (gimple_histogram_value,
11977         gimple_duplicate_stmt_histograms): Likewise.
11978         * var-tracking.c (attrs_list_insert, attrs_list_copy,
11979         unshare_variable, variable_union_info_cmp_pos, variable_union,
11980         dataflow_set_different_1, dataflow_set_different_2,
11981         vt_find_locations, variable_was_changed, set_variable_part,
11982         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
11983         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
11984         section_entry_hash, object_block_entry_eq,
11985         object_block_entry_hash, create_block_symbol,
11986         initialize_cold_section_name, default_function_rodata_section,
11987         strip_reg_name, set_user_assembler_name, const_desc_eq,
11988         build_constant_desc, output_constant_def, lookup_constant_def,
11989         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
11990         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
11991         default_internal_label): Likewise.
11992         * varray.c (varray_init, varray_grow): Likewise.
11993         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
11995 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
11997         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
11998         operators for "test" insn.  Macroize insn using SWI mode macro.
11999         (*jcc_fused_2): Ditto.
12000         (*jcc_fused_3): Macroize insn using SWI mode macro.
12001         (*jcc_fused_4): Ditto.
12003 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
12005         * tree-ssa-pre.c: Fix typo in comment.
12006         (init_antic, fini_antic): Add explicit funtions for
12007         initializing and deinitializing ANTIC and AVAIL sets.
12008         (create_expression_by_pieces): Fix typo in comment.
12009         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
12010         (execute_pre): Eventually dump details about ANTIC_IN.
12012 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12014         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
12015         * gcc.c (translate_options, init_spec, store_arg, read_specs,
12016         add_to_obstack, file_at_path, find_a_file, execute,
12017         add_preprocessor_option, add_assembler_option, add_linker_option,
12018         process_command, insert_wrapper, do_option_spec, do_self_spec,
12019         spec_path, do_spec_1, is_directory, main, used_arg,
12020         getenv_spec_function): Likewise.
12021         * tlink.c (symbol_hash_lookup, file_hash_lookup,
12022         demangled_hash_lookup, symbol_push, file_push, frob_extension):
12023         Likewise.
12025 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
12027         * doc/rtl.texi: Updated subreg section.
12029 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
12031         PR c++/36523
12032         * cgraphunit.c (cgraph_process_new_functions): Don't clear
12033         node->needed and node->reachable.
12034         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
12035         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
12036         (expand_task_call): Don't call expand_task_copyfn.
12037         (expand_task_copyfn): Renamed to...
12038         (finalize_task_copyfn): ... this.
12040 2008-06-19  Jan Hubicka  <jh@suse.cz>
12042         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
12043         clobbering framepointer.
12045 2008-06-19  Jan Hubicka  <jh@suse.cz>
12047         * tree-optimize.c (execute_early_local_optimizations): Set
12048         cgraph_state only at first invocation.
12050 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12052         * system.h (-Wc++-compat): Activate as a warning, no an error.
12054 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
12056         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
12057         instead of "#" in insn asm template.
12058         (*jcc_fused_2): Ditto.
12060 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
12062         * config/i386/i386.h (ix86_tune_indices)
12063         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
12064         (TARGET_FUSE_CMP_AND_BRANCH): New define.
12065         * config/i386/i386.md (*jcc_fused_1): New insn pattern
12066         (*jcc_fused_2): Ditto.
12067         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
12068         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
12069         (print operand): Handle 'E' and 'e' code.
12071 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
12073         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
12074         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
12075         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
12077 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
12079         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
12080         node->decl.
12081         (cgraph_expand_function): Use local copy of decl.
12082         (cgraph_expand_all_functions): Remove redundant initialization of
12083         order_pos.
12084         (cgraph_optimize): Reword internal_error message.
12086 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
12088         * arm-protos.h (arm_return_in_memory): Remove public
12089         arm_return_in_memory() prototype.
12090         * arm.c (arm_return_in_memory): Add static prototype, add target
12091         hook macro, change definition and comments.
12092         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
12094 2008-06-19  Ben Elliston  <bje@au.ibm.com>
12096         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
12097         real.c: Remove references to IEEE 754R.
12098         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
12099         * doc/libgcc.texi (Decimal float library routines): Likewise.
12101 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12103         * targhooks.h (struct gcc_target): New member unwind_word_mode.
12104         (default_unwind_word_mode): Add prototype.
12105         * targhooks.c (default_unwind_word_mode): New function.
12106         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
12107         instead of word_mode.
12108         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
12109         (TARGET_INITIALIZER): Use it.
12111         * c-common.c (handle_mode_attribute): Support "unwind_word"
12112         mode attribute.
12113         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
12115         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
12116         word_mode to access SjLj_Function_Context member "data".
12117         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
12118         conversion from targetm.eh_return_filter_mode () to
12119         targetm.unwind_word_mode () if they differ.
12121         * builtin-types.def (BT_UNWINDWORD): New primitive type.
12122         (BT_FN_UNWINDWORD_PTR): New function type.
12123         (BT_FN_WORD_PTR): Remove.
12124         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
12125         * except.c (expand_builtin_extend_pointer): Convert pointer to
12126         targetm.unwind_word_mode () instead of word_mode.
12128         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
12129         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
12130         (spu_unwind_word_mode): New function.
12131         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
12132         (TARGET_UNWIND_WORD_MODE): Define.
12133         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
12135 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12137         * config/spu/spu.c (reg_align): Remove.
12138         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
12139         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
12140         (spu_split_store): Likewise.
12142 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
12144         * gcc/tree-vn.c: Fix typo in comment.
12146 2008-06-18  Jan Hubicka  <jh@suse.cz>
12148         * cgraphunit.c (cgraph_optimize): Output debug info when doing
12149         toplevel reorder too.
12151 2008-06-18  Jan Hubicka  <jh@suse.cz>
12153         * c-opts.c (c_common_post_options): PCH is not compatible with
12154         no-unit-at-a-time.
12155         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
12156         -fno-toplevel-reorder by default now.
12158 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12160         PR documentation/30739
12161         * doc/install.texi (Prerequisites): Document dependency on awk.
12163 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
12164             Ian Lance Taylor  <iant@google.com>
12166         PR rtl-optimization/35604
12167         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
12168         only want to change jump destinations, not eventual label comparisons.
12170 2008-06-16  Jan Hubicka  <jh@suse.cz>
12172         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
12173         syntax errors.
12174         (cgraph_analyze_function): Likewise.
12176 2008-06-16  Jan Hubicka  <jh@suse.cz>
12178         * cgraph.h (cgraph_mark_if_needed): New function.
12179         * cgraphunit.c (cgraph_mark_if_needed): New function.
12180         * c-decl.c (duplicate_decl): Use it.
12182 2008-06-16  Jan Hubicka  <jh@suse.cz>
12184         * cgraph.c (cgraph_add_new_function): When in expansion state, do
12185         lowering.
12187 2008-06-16  Jan Hubicka  <jh@suse.cz>
12189         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
12191 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
12192             Kazu Hirata  <kazu@codesourcery.com>
12193             Maxim Kuvyrkov  <maxim@codesourcery.com
12195         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
12196         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
12197         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
12198         EXTRA_SPEC_FUNCTIONS.
12199         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
12200         (DRIVER_SELF_SPECS): Adjust.
12201         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
12202         * config/mips/st.h, config/mips/t-st: New.
12203         * config/mips/driver-native.c, config/mips/x-native: New.
12204         * doc/invoke.texi (MIPS): Document 'native' value for -march and
12205         -mtune options.
12207 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
12209         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
12210         from it.
12211         (ISA_HAS_FP_CONDMOVE): New macro.
12212         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
12213         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
12214         (ISA_HAS_NMADD3_NMSUB3): New macro.
12215         * config/mips/mips.c (mips_rtx_costs): Update.
12216         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
12217         compiling for ST Loongson 2E/2F.
12218         (madd<mode>): Rename to madd4<mode>.  Update.
12219         (madd3<mode>): New pattern.
12220         (msub<mode>): Rename to msub4<mode>.  Update.
12221         (msub3<mode>): New pattern.
12222         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
12223         (nmadd3<mode>): New pattern.
12224         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
12225         (nmadd3<mode>_fastmath): New pattern.
12226         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
12227         (nmsub3<mode>): New pattern.
12228         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
12229         (nmsub3<mode>_fastmath): New pattern.
12230         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
12232 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
12234         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
12235         (DF_REF_INSN_INFO): New.
12236         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
12237         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
12238         with a NULL DF_REF_INSN_INFO.
12239         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
12240         DF_INSN_SET.
12241         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
12242         DF_INSN_INFO_EQ_USES): New.
12243         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
12244         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
12245         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
12246         * df-core.c: Update comment for above changes.
12247         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
12248         DF_INSN_UID_* macros.
12249         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
12250         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
12251         insn rtx.  Update all callers.
12252         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
12253         df_ref_create_structure, df_insn_refs_collect): Likewise.
12254         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
12255         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
12256         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
12257         macros to access the insn refs.
12258         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
12259         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
12260         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
12261         for accessing the refs.
12262         (try_fwprop_subst): Likewise.
12263         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
12264         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
12265         for accessing the refs.
12266         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
12267         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
12268         to look at the insn refs.
12269         (record_uses): Likewise.
12270         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
12271         function anymore.
12272         (mark_artificial_uses): Don't mark_insn for artificial refs.
12273         (mark_reg_rependencies): Likewise.
12275         * doc/rtl.texi: Remove documentation of ADDRESSOF.
12277 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12279         * configure: Regenerate.
12281 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
12283         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
12284         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12285         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12287 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
12289         * config/avr/avr.c (avr_mcu_t): Add attiny167.
12290         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12291         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12293 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
12295         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
12296         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12297         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12299 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
12301         * tree-ssa-sccvn.c: Fix format of comments.
12303 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
12305         * cgraph.c: Remove unneeded forward declarations of eq_node()
12306         and hash_node().
12308 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
12310         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
12311         REG_RETVAL notes.
12312         (see_update_relevancy): Likewise.
12313         * fwprop.c (try_fwprop_subst): Likewise.
12314         * rtlanal.c (noop_move_p): Likewise.
12315         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
12316         notes to non-existing libcall blocks.
12317         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
12318         Remove orig_set.
12319         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
12320         (dead_libcall_p): Remove.
12321         (delete_trivially_dead_insns): Don't use it.
12322         * web.c (union_defs): Remove comment about keeping nops.
12323         * gcse.c (hash_scan_insn): Don't take libcall pointers.
12324         (compute_hash_table_work): Don't track libcall notes.
12325         (do_local_cprop): Don't take libcall pointers.  Don't update
12326         libcall notes.
12327         (adjust_libcall_notes): Deleted.
12328         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
12329         ever have existed in the first place).
12330         (replace_store_insn): Don't try to remove libcall notes.
12331         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
12332         (resolve_reg_notes): Don't call them.
12333         (resolve_simple_move): Likewise.
12334         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
12335         Don't remove REG_RETVAL notes.
12336         * emit-rtl.c (try_split): Don't update libcall notes.
12337         (emit_copy_of_insn_after): Dito.
12338         * cselib.c (cselib_current_insn_in_libcall): Remove.
12339         (cselib_process_insn): Don't set/clear it.
12340         (new_elt_loc_list): Don't record it.
12341         (cselib_init): Don't initialize it.
12342         * cselib.c (struct elt_loc_list): Remove in_libcall field.
12343         * loop-invariant.c (find_invariant_insn): Don't look for libcall
12344         notes.
12345         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
12346         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
12347         (init_deps): Don't initialize it.
12348         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
12349         * combine.c (delete_noop_moves): Don't update libcall notes.
12350         (can_combine_p): Remove now pointless #if 0 block.
12351         (try_combine): Remove another obsolete #if 0 block.
12352         (distribute_notes): Don't distribute libcall notes.
12353         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
12354         * dce.c (libcall_dead_p): Remove.
12355         (delete_unmarked_insns): Don't handle libcall blocks.
12356         (preserve_libcall_for_dce): Remove.
12357         (prescan_insns_for_dce): Don't special-case libcall block insns.
12358         * reload1 (reload): Don't handle libcall notes.
12359         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
12360         documentation.
12362 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
12364         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
12365         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12366         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12368 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
12370         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
12371         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12372         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12374 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12376         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
12378 2008-06-16  Ira Rosen  <irar@il.ibm.com>
12380         PR tree-optimization/36493
12381         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
12382         the arguments list. Use VECTYPE to create vector pointer.
12383         (vectorizable_store): Fail if accesses through a pointer to vectype
12384         do not alias the original memory reference operands.
12385         Call vect_create_data_ref_ptr without the removed argument.
12386         (vectorizable_load): Likewise.
12387         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
12388         removed argument.
12390 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
12392         PR target/36336
12393         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
12394         reg_equiv_constant.
12396 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
12398         * config/mips/loongson2ef.md: New file.
12399         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
12400         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
12401         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
12402         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
12403         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
12404         and loongson_2f.
12405         (loongson2ef.md): New include.
12406         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
12407         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
12408         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
12409         (loongson_gt_<mode>, loongson_extract_halfword)
12410         (loongson_insert_halfword_0, loongson_insert_halfword_2)
12411         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
12412         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
12413         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
12414         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
12415         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
12416         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
12417         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
12418         (vec_interleave_low<mode>): Define type attribute.
12419         * config/mips/mips.c (mips_ls2): New static variable.
12420         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
12421         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
12422         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
12423         Implement target scheduling hooks.
12424         (mips_multipass_dfa_lookahead): Update to handle tuning for
12425         Loongson 2E/2F.
12426         (mips_sched_init): Initialize data for Loongson scheduling.
12427         (mips_ls2_variable_issue): New static function.
12428         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
12429         Add sanity check.
12430         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
12431         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
12432         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
12433         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
12434         Handle ST Loongson 2E/2F cores.
12435         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
12437 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12439         * omp-low.c (extract_omp_for_data): Fix comment typo.
12440         * c.opt: Fix typo.
12442 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12444         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
12445         FIXME note about gcc/config.guess.
12446         * doc/options.texi (Option file format): Remove non-ASCII bytes.
12447         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
12448         * doc/cppopts.texi: Likewise.
12449         * doc/extend.texi: Likewise.
12450         * doc/gcc.texi: Likewise.
12451         * doc/gccint.texi: Likewise.
12452         * doc/gcov.texi: Likewise.
12453         * doc/gty.texi: Likewise.
12454         * doc/hostconfig.texi: Likewise.
12455         * doc/install.texi: Likewise.
12456         * doc/invoke.texi: Likewise.
12457         * doc/loop.texi: Likewise.
12458         * doc/makefile.texi: Likewise.
12459         * doc/md.texi: Likewise.
12460         * doc/passes.texi: Likewise.
12461         * doc/tm.texi: Likewise.
12462         * doc/tree-ssa.texi: Likewise.
12463         * doc/trouble.texi: Likewise.
12465 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
12466             Nathan Sidwell  <nathan@codesourcery.com>
12467             Maxim Kuvyrkov  <maxim@codesourcery.com>
12468             Richard Sandiford  <rdsandiford@googlemail.com>
12470         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
12471         * config/mips/mips-protos.h (mips_expand_vector_init): New.
12472         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
12473         builtins.
12474         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
12475         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
12476         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
12477         V8QImode cases.
12478         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
12479         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
12480         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
12481         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
12482         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
12483         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
12484         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
12485         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
12486         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
12487         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
12488         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
12489         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
12490         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
12491         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
12492         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
12493         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
12494         (mips_builtins): Add Loongson builtins.
12495         (mips_loongson_2ef_bdesc): New.
12496         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
12497         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
12498         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
12499         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
12500         New.
12501         (mips_expand_vector_init): New.
12502         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
12503         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
12504         if appropriate.
12505         * config/mips/mips.md: Add unspec numbers for Loongson
12506         builtins.  Include loongson.md.
12507         (MOVE64): Include Loongson vector modes.
12508         (SPLITF): Include Loongson vector modes.
12509         (HALFMODE): Handle Loongson vector modes.
12510         * config/mips/loongson.md: New.
12511         * config/mips/loongson.h: New.
12512         * config.gcc: Add loongson.h header for mips*-*-* targets.
12513         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
12515 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
12517         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
12518         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
12519         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
12520         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
12521         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
12522         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
12523         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
12524         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
12525         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
12526         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
12527         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
12528         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
12529         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
12530         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
12531         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
12532         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
12533         Remove use_fixproto=yes.
12534         (ia64*-*-hpux*): Remove comment about using fixproto.
12535         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
12537 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12539         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
12540         library rebuilds.
12541         * configure: Regenerate.
12543 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
12545         PR middle-end/36520
12546         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
12547         before evaluating it.
12549 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
12551         PR c/36507
12552         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
12553         nested inline functions.
12554         (start_decl, start_function): Don't invert DECL_EXTERNAL
12555         for nested inline functions.
12557 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
12559         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
12560         splits that must be made for correctness.
12562 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
12564         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
12565         (AVAIL_NON_MIPS16): Likewise.
12566         (mips_builtin_description): Replace target_flags with a predicate.
12567         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
12568         (dspr2_32): New availability predicates.
12569         (MIPS_BUILTIN): New macro.
12570         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
12571         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
12572         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
12573         Replace the TARGET_FLAGS parameters with AVAIL parameters.
12574         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
12575         (mips_dsp_32only_bdesc): Merge into...
12576         (mips_builtins): ...this new array.
12577         (mips_bdesc_map, mips_bdesc_arrays): Delete.
12578         (mips_init_builtins): Update after above changes.
12579         (mips_expand_builtin_1): Merge into...
12580         (mips_expand_builtin): ...here and update after above changes.
12582 2008-06-12  Paul Brook  <paul@codesourcery.com>
12584         * longlong.h (__arm__): Define count_leading_zeros.
12585         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
12586         (clzsi2, clzdi2): New functions.
12587         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
12588         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
12589         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
12590         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
12591         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
12592         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
12593         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
12594         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
12595         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
12596         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
12598 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
12600         * config/m68k/m68k.c (m68k_tune_flags): New.
12601         (override_options): Compute m68k_tune_flags.
12602         (MULL_COST, MULW_COST): Update for various variants of CFV2.
12603         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
12605 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
12607         PR middle-end/36506
12608         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
12610 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
12612         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
12613         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
12615 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
12617         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
12618         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
12620 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
12622         PR middle-end/36506
12623         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
12624         reductions.
12626 2008-06-12  Richard Guenther  <rguenther@suse.de>
12628         PR tree-optimization/36345
12629         * tree-flow.h (struct ptr_info_def): Align escape_mask,
12630         add memory_tag_needed flag.
12631         (may_alias_p): Declare.
12632         * tree-ssa-alias.c (may_alias_p): Export.
12633         (set_initial_properties): Use memory_tag_needed flag.
12634         (update_reference_counts): Likewise.
12635         (reset_alias_info): Reset memory_tag_needed flag.
12636         (create_name_tags): Check memory_tag_needed flag.
12637         (dump_points_to_info_for): Dump it.
12638         * tree-ssa-structalias.c (struct variable_info): Remove
12639         directly_dereferenced flag.
12640         (new_var_info): Do not initialize it.
12641         (process_constraint_1): Do not set it.
12642         (update_alias_info): Set is_dereferenced flag.
12643         (set_uids_in_ptset): Use may_alias_p.
12644         (set_used_smts): Check memory_tag_needed flag.
12645         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
12646         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
12647         memory_tag_needed flag.
12648         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
12649         from broken design.
12651 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
12653         * config/i386/i386.c (ix86_compute_frame_layout): Disable
12654         red zone for w64 abi.
12655         (ix86_expand_prologue): Likewise.
12656         (ix86_force_to_memory): Likewise.
12657         (ix86_free_from_memory): Likewise.
12659 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
12661         PR target/36425
12662         * config/rs6000/rs6000.c (rs6000_override_options): Set
12663         rs6000_isel conditionally to the absence of comand line override.
12664         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
12665         Remove duplicate rs6000_isel setting.
12666         * config/rs6000/eabispe.h: Ditto.
12668 2008-06-11  Richard Guenther  <rguenther@suse.de>
12670         * alias.c (get_alias_set): Use the element alias-set for arrays.
12671         (record_component_aliases): For arrays and vectors do nothing.
12672         * c-common.c (strict_aliasing_warning): Handle the cases
12673         of alias set zero explicitly.
12674         * Makefile.in (dfp.o-warn): Add -Wno-error.
12676 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
12678         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
12679         tune_32 tune_64.
12680         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
12681         tune_32 tune_64 to supported_defaults.  Allow values not
12682         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
12683         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
12684         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
12685         with_cpu_64 to generic for 64-bit-supporting configurations, not
12686         with_cpu.  Remove FIXMEs.
12687         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
12688         --with-arch-64, --with-tune-32, --with-tune-64): Document.
12689         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
12690         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
12691         arch_32 and arch_64.
12693 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
12694             Olivier Hainque  <hainque@adacore.com>
12696         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
12697         Use DECL_SIZE_UNIT to retrieve the size of the field.
12699 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
12701         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
12702         with function calls after declarations.  Lay out
12703         neon_float_type_node before further use.
12705 2008-06-11  Richard Guenther  <rguenther@suse.de>
12707         * tree-flow.h (may_point_to_global_var): Declare.
12708         * tree-ssa-alias.c (may_point_to_global_var): New function.
12709         * tree-ssa-sink.c (is_hidden_global_store): Use it.
12711 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
12713         * configure.ac: Teach that fido supports .debug_line.
12714         * configure: Regenerate.
12716 2008-06-10  Tom Tromey  <tromey@redhat.com>
12718         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
12719         debug hook.
12721 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
12723         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
12724         (encode_decimal64, decode_decimal64, encode_decimal128,
12725         decode_decimal128): Reverse order of 32-bit parts of value if host
12726         and target endianness differ.
12728 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
12730         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
12731         Avoid division by 0.
12732         (tree_mod_pow2_value_transform): Likewise.
12733         (tree_ic_transform): Likewise.
12734         (tree_stringops_transform): Likewise.
12735         (tree_mod_subtract_transform): Likewise.
12736         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
12737         (copy_edges_for_bb): Likewise.
12738         (initialize_cfun): Likewise.
12740 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
12742         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
12743         nonmemory_operand. Add "N" operand constraint.
12744         (*btsi): Ditto.
12745         (*jcc_btdi_mask_rex64): New instruction and split pattern.
12746         (*jcc_btsi_mask): Ditto.
12747         (*jcc_btsi_mask_1): Ditto.
12749 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
12751         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
12752         TYPE_CANONICAL for copied element type.
12754 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
12756         PR target/36473
12757         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
12758         Add m_CORE2 and m_GENERIC.
12759         * config/i386/predicates.md (bt_comparison_operator): New predicate.
12760         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
12761         (*btsi): Ditto.
12762         (*jcc_btdi_rex64): New instruction and split pattern.
12763         (*jcc_btsi): Ditto.
12764         (*jcc_btsi_1): Ditto.
12765         (*btsq): Fix Intel asm dialect operand order.
12766         (*btrq): Ditto.
12767         (*btcq): Ditto.
12769 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
12771         PR middle-end/36447
12772         * simplify-rtx.c (simplify_subreg): Add check for shift count
12773         greater than size.
12775 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
12777         * doc/md.texi: Synchronize with later constraints.md change.
12778         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
12779         with a C implementation.
12780         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
12781         MFLO handling.
12782         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
12783         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
12784         when moving to and from MD_REGNUM.
12785         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
12786         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
12787         Handle byte and halfword moves.
12788         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
12789         separately.
12790         * config/mips/constraints.md (h): Turn into NO_REGS.
12791         (l, x): Update documentation.
12792         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
12793         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
12794         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
12795         (HILO): New mode iterator.
12796         (MOVE128): Add TI.
12797         (any_div): New code iterator.
12798         (u): Extend code attribute to div and udiv.
12799         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
12800         d_operand in the splitters.  Remove redundant CONST_INT checks.
12801         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
12802         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
12803         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
12804         accordingly, using normal moves instead of unspecs to move LO into
12805         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
12806         (<u>mulsidi3): Handle expansion in C code.
12807         (<u>mulsidi3_32bit_internal): Rename to...
12808         (<u>mulsidi3_32bit): ...this.
12809         (<u>mulsidi3_32bit_r4000): Fix insn separator.
12810         (*<u>mulsidi3_64bit): Rename to...
12811         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
12812         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
12813         to set LO and HI to the multiplication result.  Use a normal move
12814         for MFLO and an unspec for MFHI.
12815         (*<u>mulsidi3_64bit_parts): Replace with...
12816         (<u>mulsidi3_64bit_hilo): ...this new instruction.
12817         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
12818         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
12819         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
12820         instead of HI.  Split the instruction into a separate multiplication
12821         and MFHI if !TARGET_FIX_R4000.
12822         (<su>muldi3_highpart): Likewise.
12823         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
12824         and the "=h" clobber.
12825         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
12826         (<u>mulditi3): New expander.
12827         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
12828         (madsi): Remove "=h" clobber.
12829         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
12830         Force the modulus result to be a GPR and split the instruction into
12831         a division followed by an MFHI after reload.
12832         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
12833         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
12834         the MIPS16 HIGH define_split.
12835         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
12836         of acc<->gpr moves to "multi".
12837         (*movdi_64bit): Replace the single "x" alternative with
12838         alternatives for moving into and out of "a".
12839         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
12840         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
12841         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
12842         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
12843         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
12844         (movti): New expander.
12845         (*movti, *movti_mips16): New insns.
12846         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
12847         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
12848         (mthi<GPR:mode>_<HILO:mode>): Likewise.
12849         * config/mips/predicates.md (fpr_operand): Delete.
12850         (d_operand): New predicate.
12852 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
12854         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
12855         failure on some Bourne shells.
12856         (x86_64-*-*): Ditto.
12858 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
12860         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
12862 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
12864         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
12865         (sparc-sun-solaris2*): Likewise.
12867 2008-06-09  Arnaud Charlet  <charlet@adacore.com
12869         * doc/install.texi: Update requirements to build the Ada compiler.
12871 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
12873         * df-scan.c (struct df_scan_problem_data): Remove the
12874         mw_link_pool alloc pool.
12875         (df_scan_free_internal): Don't free it.
12876         (df_scan_alloc): Don't allocate it.
12877         * df.h (struct df_link): Update comment.
12879 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
12881         * except.h: Correct checks for when SJLJ exceptions must be used.
12883 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12885         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
12886         default.
12888 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
12890         PR tree-optimization/36218
12891         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
12892         configure for the build system.
12893         (BUILD_LDFLAGS): Define.
12894         * configure: Regenerate.
12895         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
12897 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
12899         PR target/36424
12900         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
12901         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
12902         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
12904 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
12906         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
12908 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
12910         * config.gcc (Obsolete configurations): Remove list of
12911         configurations.
12912         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
12913         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
12914         targets matched by those patterns.
12915         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
12916         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
12917         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
12918         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
12919         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
12920         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
12921         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
12922         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
12923         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
12924         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
12925         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
12926         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
12927         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
12928         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
12929         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
12930         Make code for Solaris 7 and greater unconditional for Solaris.
12931         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
12932         Remove --with-* handling.
12933         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
12934         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
12935         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
12936         LINK_OS_WINDISS_SPEC): Remove.
12937         * config/rs6000/sysv4.opt (mwindiss): Remove.
12938         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
12939         * configure: Regenerate.
12940         * doc/cpp.texi: Don't mention BeOS.
12941         * doc/extend.texi (interrupt): Don't mention MS1.
12942         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
12943         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
12944         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
12945         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
12946         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
12947         Remove.
12948         * doc/invoke.texi (MT Options): Remove.
12949         (-mwindiss): Remove.
12950         (CRIS Options): Remove cris-axis-aout references.
12951         (HPPA Options): Don't mention hppa1.1-*-pro.
12952         * doc/md.texi: (MorphoTech family): Remove.
12953         * libgcc2.c: Don't handle UWIN.
12954         * config/alpha/t-unicosmk: Remove.
12955         * config/alpha/unicosmk.h: Remove.
12956         * config/arm/kaos-arm.h: Remove.
12957         * config/arm/kaos-strongarm.h: Remove.
12958         * config/arm/strongarm-coff.h: Remove.
12959         * config/arm/strongarm-elf.h: Remove.
12960         * config/arm/strongarm-pe.h: Remove.
12961         * config/arm/t-strongarm-pe: Remove.
12962         * config/arm/t-xscale-coff: Remove.
12963         * config/arm/t-xscale-elf: Remove.
12964         * config/arm/xscale-coff.h: Remove.
12965         * config/arm/xscale-elf.h: Remove.
12966         * config/chorus.h: Remove.
12967         * config/cris/aout.h: Remove.
12968         * config/cris/aout.opt: Remove.
12969         * config/cris/t-aout: Remove.
12970         * config/i386/beos-elf.h: Remove.
12971         * config/i386/kaos-i386.h: Remove.
12972         * config/i386/ptx4-i.h: Remove.
12973         * config/i386/sco5.h: Remove.
12974         * config/i386/sco5.opt: Remove.
12975         * config/i386/sysv4-cpp.h: Remove.
12976         * config/i386/sysv5.h: Remove.
12977         * config/i386/t-beos: Remove.
12978         * config/i386/t-sco5: Remove.
12979         * config/i386/t-uwin: Remove.
12980         * config/i386/uwin.asm: Remove.
12981         * config/i386/uwin.h: Remove.
12982         * config/kaos.h: Remove.
12983         * config/mips/windiss.h: Remove.
12984         * config/mt: Remove directory.
12985         * config/pa/pa-osf.h: Remove.
12986         * config/pa/pa-pro-end.h: Remove.
12987         * config/pa/t-pro: Remove.
12988         * config/ptx4.h: Remove.
12989         * config/rs6000/beos.h: Remove.
12990         * config/rs6000/kaos-ppc.h: Remove.
12991         * config/rs6000/t-beos: Remove.
12992         * config/rs6000/windiss.h: Remove.
12993         * config/sh/kaos-sh.h: Remove.
12994         * config/sol2-6.h: Remove.
12995         * config/sparc/sol26-sld.h: Remove.
12996         * config/sparc/sysv4-only.h: Remove.
12997         * config/vax/bsd.h: Remove.
12998         * config/vax/t-memfuncs: Remove.
12999         * config/vax/ultrix.h: Remove.
13000         * config/vax/vaxv.h: Remove.
13001         * config/windiss.h: Remove.
13003 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
13005         PR rtl-optimization/36438
13006         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
13007         for vector shifts with constant scalar shift operands.
13009 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
13011         * doc/invoke.texi: Document -march=xlr.
13012         * config/mips/xlr.md: New file.
13013         * config/mips/mips.md: Include it.
13014         (cpu): Add "xlr".
13015         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
13016         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
13017         (mips_rtx_cost_data): Likewise.
13019 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
13021         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
13022         PRE_INC and PRE_DEC cases.
13024 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
13026         PR rtl-optimization/36419
13027         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
13028         the emitting jump insn.
13030         PR target/36362
13031         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
13032         is not bool, boolify the whole *expr_p and convert to the desired type.
13034 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
13036         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
13037         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
13038         Add omp_private_outer_ref hook, add another argument to
13039         omp_clause_default_ctor hook.
13040         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
13041         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
13042         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
13043         hook_tree_tree_tree_tree_null.
13044         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
13045         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
13046         * hooks.c (hook_tree_tree_tree_tree_null): New function.
13047         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
13048         * tree.def (OMP_TASK): New tree code.
13049         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
13050         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
13051         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
13052         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
13053         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
13054         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
13055         OMP_CLAUSE_COLLAPSE_EXPR): Define.
13056         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
13057         (OMP_DIRECTIVE_P): Add OMP_TASK.
13058         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
13059         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
13060         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
13061         and OMP_CLAUSE_UNTIED entries.
13062         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
13063         num_ops to 2.
13064         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
13065         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
13066         * tree-pretty-print.c (dump_omp_clause): Handle
13067         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
13068         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
13069         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
13070         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
13071         warning about unsigned iterators.  Change decl/init/cond/incr
13072         arguments to TREE_VECs, check arguments for all collapsed loops.
13073         (c_finish_omp_taskwait): New function.
13074         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
13075         ws_clauses.
13076         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
13077         default_function_array_conversion on init.  Add par_clauses argument.
13078         If decl is present in parallel's lastprivate clause, change it to
13079         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
13080         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
13081         collapse count in clauses.
13082         (c_parser_omp_for, c_parser_omp_parallel): Adjust
13083         c_parser_omp_for_loop callers.
13084         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
13085         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
13086         (c_parser_omp_clause_name): Handle collapse and untied clauses.
13087         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
13088         functions.
13089         (c_parser_omp_clause_schedule): Handle schedule(auto).
13090         Include correct location in the error message.
13091         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
13092         and PRAGMA_OMP_CLAUSE_UNTIED.
13093         (OMP_TASK_CLAUSE_MASK): Define.
13094         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
13095         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
13096         * tree-nested.c (convert_nonlocal_omp_clauses,
13097         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
13098         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
13099         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
13100         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
13101         OMP_CLAUSE_DECL.
13102         (conver_nonlocal_reference, convert_local_reference,
13103         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
13104         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
13105         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
13106         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
13107         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
13108         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
13109         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
13110         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
13111         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
13112         OMP_CLAUSE_UNTIED.
13113         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
13114         * c-common.h (c_finish_omp_taskwait): New prototype.
13115         * gimple-low.c (lower_stmt): Handle OMP_TASK.
13116         * tree-parloops.c (create_parallel_loop): Create 1 entry
13117         vectors for OMP_FOR_{INIT,COND,INCR}.
13118         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
13119         (make_edges): Handle OMP_TASK.
13120         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
13121         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
13122         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
13123         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
13124         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
13125         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
13126         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
13127         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
13128         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
13129         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
13130         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
13131         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
13132         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
13133         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
13134         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
13135         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
13136         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
13137         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
13138         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
13139         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
13140         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
13141         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
13142         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
13143         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
13144         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
13145         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
13146         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
13147         original iterator is present in lastprivate clause or if
13148         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
13149         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
13150         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
13151         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
13152         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
13153         if it is set, lookup var in outer contexts too.  Handle
13154         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
13155         to be implicitly determined firstprivate for task regions.
13156         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
13157         if it is set, lookup var in outer contexts too.  Set
13158         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
13159         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
13160         OMP_CLAUSE_UNTIED.  Take region_type as last argument
13161         instead of in_parallel and in_combined_parallel.
13162         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
13163         Adjust callers.
13164         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
13165         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
13166         (new_omp_context): Set default_kind to
13167         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
13168         (omp_region_type): New enum.
13169         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
13170         fields, add region_type.
13171         (new_omp_context): Take region_type as argument instead of is_parallel
13172         and is_combined_parallel.
13173         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
13174         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
13175         ctx->is_combined_parallel checks.
13176         (gimplify_omp_task): New function.
13177         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
13178         OMP_CLAUSE_UNTIED.
13179         * omp-low.c (extract_omp_for_data): Use schedule(static)
13180         for schedule(auto).  Handle pointer and unsigned iterators.
13181         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
13182         Add loops argument.  Extract data for collapsed OMP_FOR loops.
13183         (expand_parallel_call): Assert sched_kind isn't auto,
13184         map runtime schedule to index 3.
13185         (struct omp_for_data_loop): New type.
13186         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
13187         Add loop, loops, collapse and iter_type fields.
13188         (workshare_safe_to_combine_p): Disallow combined for if
13189         iter_type is unsigned long long.  Don't combine collapse > 1 loops
13190         unless all bounds and steps are constant.  Adjust extract_omp_for_data
13191         caller.
13192         (expand_omp_for_generic): Handle pointer, unsigned and long long
13193         iterators.  Handle collapsed OMP_FOR loops.  Adjust
13194         for struct omp_for_data changes.  If libgomp function doesn't return
13195         boolean_type_node, add comparison of the return value with 0.
13196         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
13197         pointer, unsigned and long long iterators.  Adjust for struct
13198         omp_for_data changes.
13199         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
13200         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
13201         unsigned long long.  Allocate loops array, pass it to
13202         extract_omp_for_data.  For collapse > 1 loops use always
13203         expand_omp_for_generic.
13204         (omp_context): Add sfield_map and srecord_type fields.
13205         (is_task_ctx, lookup_sfield): New functions.
13206         (use_pointer_for_field): Use is_task_ctx helper.  Change first
13207         argument's type from const_tree to tree.  Clarify comment.
13208         In OMP_TASK disallow copy-in/out sharing.
13209         (build_sender_ref): Call lookup_sfield instead of lookup_field.
13210         (install_var_field): Add mask argument.  Populate both record_type
13211         and srecord_type if needed.
13212         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
13213         in srecord_type.
13214         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
13215         and DECL_FIELD_OFFSET.
13216         (scan_sharing_clauses): Adjust install_var_field callers.  For
13217         firstprivate clauses on explicit tasks allocate the var by value in
13218         record_type unconditionally, rather than by reference.
13219         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
13220         Use is_taskreg_ctx instead of is_parallel_ctx.
13221         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
13222         (create_omp_child_function_name): Add task_copy argument, use
13223         *_omp_cpyfn* names if it is true.
13224         (create_omp_child_function): Add task_copy argument, if true create
13225         *_omp_cpyfn* helper function.
13226         (scan_omp_parallel): Adjust create_omp_child_function callers.
13227         Rename parallel_nesting_level to taskreg_nesting_level.
13228         (scan_omp_task): New function.
13229         (lower_rec_input_clauses): Don't run constructors for firstprivate
13230         explicit task vars which are initialized by *_omp_cpyfn*.
13231         Pass outer var ref to omp_clause_default_ctor hook if
13232         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
13233         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
13234         OMP_CLAUSE_REDUCTION_INIT.
13235         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
13236         avoid duplicate setting of fields.  Handle
13237         OMP_CLAUSE_PRIVATE_OUTER_REF.
13238         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
13239         copy-out if TREE_READONLY, only copy-in.
13240         (expand_task_copyfn): New function.
13241         (expand_task_call): New function.
13242         (struct omp_taskcopy_context): New type.
13243         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
13244         New functions.
13245         (lower_omp_parallel): Rename to...
13246         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
13247         Call create_task_copyfn if srecord_type is needed.  Adjust
13248         sender_decl type.
13249         (task_shared_vars): New variable.
13250         (check_omp_nesting_restrictions): Warn if work-sharing,
13251         barrier, master or ordered region is closely nested inside OMP_TASK.
13252         Add warnings for barrier if closely nested inside of work-sharing,
13253         ordered, or master region.
13254         (scan_omp_1): Call check_omp_nesting_restrictions even for
13255         GOMP_barrier calls.  Rename parallel_nesting_level to
13256         taskreg_nesting_level.  Handle OMP_TASK.
13257         (lower_lastprivate_clauses): Even if some lastprivate is found on a
13258         work-sharing construct, continue looking for them on parent parallel
13259         construct.
13260         (lower_omp_for_lastprivate): Add lastprivate clauses
13261         to the beginning of dlist rather than end.  Adjust for struct
13262         omp_for_data changes.
13263         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
13264         not after it.  Handle collapsed OMP_FOR loops, adjust for
13265         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
13266         (get_ws_args_for): Adjust extract_omp_for_data caller.
13267         (scan_omp_for): Handle collapsed OMP_FOR
13268         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
13269         (lower_omp_single_simple): If libgomp function doesn't return
13270         boolean_type_node, add comparison of the return value with 0.
13271         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
13272         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
13273         (parallel_nesting_level): Rename to...
13274         (taskreg_nesting_level): ... this.
13275         (is_taskreg_ctx): New function.
13276         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
13277         of is_parallel_ctx.
13278         (execute_lower_omp): Rename parallel_nesting_level to
13279         taskreg_nesting_level.
13280         (expand_omp_parallel): Rename to...
13281         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
13282         Call omp_task_call for OMP_TASK regions.
13283         (expand_omp): Adjust caller, handle OMP_TASK.
13284         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
13286         * bitmap.c (bitmap_default_obstack_depth): New variable.
13287         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
13288         if argument is NULL and bitmap_default_obstack is already initialized.
13289         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
13290         at the end.
13291         * matrix-reorg.c (matrix_reorg): Likewise.
13293 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
13295         * config/i386/i386.md (*indirect_jump): Macroize using P
13296         mode iterator.  Remove !TARGET_64BIT from insn constraints.
13297         (*tablejump_1): Ditto.
13298         (*indirect_jump_rex64): Remove insn pattern.
13299         (*tablejump_1_rex64): Ditto.
13300         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
13301         and eh_return_si insn patterns.
13303 2008-06-06  Richard Guenther  <rguenther@suse.de>
13305         * tree-ssa-structalias.c (merge_smts_into): Remove.
13306         (find_what_p_points_to): Do not bother to compute the
13307         points-to set for pt_anything pointers.
13308         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
13309         for pt_anything pointers is ok.
13311 2008-06-06  Jan Hubicka  <jh@suse.cz>
13313         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
13315 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13317         * cgraph.c: Fix typos in comments.
13318         (cgraph_availability_names): Fix string typo.
13319         * fold-const.c: Fix typos in comments.
13320         (fold_binary): Fix typo in warning.
13321         * genautomata.c: Fix typos in comments.
13322         (check_presence_pattern_sets): Fix typo in local variable.
13323         (output_description): Fix typo in output.
13324         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
13325         * hwint.h: Likewise.
13326         * matrix-reorg.c (check_allocation_function): Likewise.
13327         * omega.c (smooth_weird_equations): Likewise.
13328         * auto-inc-dec.c: Fix typos in comments.
13329         * bb-reorder.c: Likewise.
13330         * builtins.c: Likewise.
13331         * c-common.c: Likewise.
13332         * c-cppbuiltin.c: Likewise.
13333         * c-parser.c: Likewise.
13334         * c-pretty-print.c: Likewise.
13335         * cfgcleanup.c: Likewise.
13336         * cfgexpand.c: Likewise.
13337         * cfghooks.c: Likewise.
13338         * cfglayout.c: Likewise.
13339         * cfgloopmanip.c: Likewise.
13340         * cgraphunit.c: Likewise.
13341         * coverage.c: Likewise.
13342         * dbxout.c: Likewise.
13343         * df-byte-scan.c: Likewise.
13344         * df-core.c: Likewise.
13345         * df-problems.c: Likewise.
13346         * df-scan.c: Likewise.
13347         * dfp.c: Likewise.
13348         * dominance.c: Likewise.
13349         * domwalk.c: Likewise.
13350         * dse.c: Likewise.
13351         * dwarf2out.c: Likewise.
13352         * emit-rtl.c: Likewise.
13353         * et-forest.c: Likewise.
13354         * function.c: Likewise.
13355         * function.h: Likewise.
13356         * gcc.c: Likewise.
13357         * gcov-io.c: Likewise.
13358         * gcov.c: Likewise.
13359         * gcse.c: Likewise.
13360         * genattrtab.c: Likewise.
13361         * ggc-page.c: Likewise.
13362         * gimplify.c: Likewise.
13363         * gthr-lynx.h: Likewise.
13364         * haifa-sched.c: Likewise.
13365         * ipa-cp.c: Likewise.
13366         * ipa-inline.c: Likewise.
13367         * ipa-prop.h: Likewise.
13368         * ipa-pure-const.c: Likewise.
13369         * ipa-struct-reorg.c: Likewise.
13370         * ipa-struct-reorg.h: Likewise.
13371         * ipa-type-escape.c: Likewise.
13372         * ipa.c: Likewise.
13373         * loop-doloop.c: Likewise.
13374         * mips-tfile.c: Likewise.
13375         * mkmap-flat.awk: Likewise.
13376         * mkmap-symver.awk: Likewise.
13377         * modulo-sched.c: Likewise.
13378         * omp-low.c: Likewise.
13379         * optabs.c: Likewise.
13380         * optabs.h: Likewise.
13381         * opts.c: Likewise.
13382         * passes.c: Likewise.
13383         * postreload-gcse.c: Likewise.
13384         * postreload.c: Likewise.
13385         * predict.c: Likewise.
13386         * pretty-print.h: Likewise.
13387         * profile.c: Likewise.
13388         * protoize.c: Likewise.
13389         * ra-conflict.c: Likewise.
13390         * real.c: Likewise.
13391         * recog.c: Likewise.
13392         * regclass.c: Likewise.
13393         * regs.h: Likewise.
13394         * reload.c: Likewise.
13395         * rtl-error.c: Likewise.
13396         * rtlanal.c: Likewise.
13397         * scan.h: Likewise.
13398         * sched-rgn.c: Likewise.
13399         * see.c: Likewise.
13400         * stmt.c: Likewise.
13401         * target.h: Likewise.
13402         * tree-dfa.c: Likewise.
13403         * tree-eh.c: Likewise.
13404         * tree-flow-inline.h: Likewise.
13405         * tree-inline.c: Likewise.
13406         * tree-into-ssa.c: Likewise.
13407         * tree-loop-distribution.c: Likewise.
13408         * tree-nested.c: Likewise.
13409         * tree-parloops.c: Likewise.
13410         * tree-pass.h: Likewise.
13411         * tree-pretty-print.c: Likewise.
13412         * tree-profile.c: Likewise.
13413         * tree-scalar-evolution.c: Likewise.
13414         * tree-sra.c: Likewise.
13415         * tree-ssa-alias-warnings.c: Likewise.
13416         * tree-ssa-ccp.c: Likewise.
13417         * tree-ssa-coalesce.c: Likewise.
13418         * tree-ssa-dom.c: Likewise.
13419         * tree-ssa-dse.c: Likewise.
13420         * tree-ssa-forwprop.c: Likewise.
13421         * tree-ssa-live.c: Likewise.
13422         * tree-ssa-live.h: Likewise.
13423         * tree-ssa-loop-im.c: Likewise.
13424         * tree-ssa-loop-ivopts.c: Likewise.
13425         * tree-ssa-loop-niter.c: Likewise.
13426         * tree-ssa-loop-prefetch.c: Likewise.
13427         * tree-ssa-phiopt.c: Likewise.
13428         * tree-ssa-phiprop.c: Likewise.
13429         * tree-ssa-sccvn.c: Likewise.
13430         * tree-ssa-ter.c: Likewise.
13431         * tree-ssa-threadupdate.c: Likewise.
13432         * tree-ssa.c: Likewise.
13433         * tree-vect-analyze.c: Likewise.
13434         * tree-vect-transform.c: Likewise.
13435         * tree-vectorizer.c: Likewise.
13436         * tree-vn.c: Likewise.
13437         * tree-vrp.c: Likewise.
13438         * tree.c: Likewise.
13439         * tree.def: Likewise.
13440         * tree.h: Likewise.
13441         * unwind-dw2-fde.c: Likewise.
13442         * unwind.inc: Likewise.
13443         * value-prof.c: Likewise.
13444         * vmsdbgout.c: Likewise.
13446 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
13448         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
13449         always place FP constants in the TOC for TARGET_POWERPC64.
13450         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
13452 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
13454         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
13455         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
13456         enable for TARGET_E500_DOUBLE.
13457         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
13458         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
13459         floating-point modes like integer modes for E500 double.
13460         (rs6000_legitimate_offset_address_p): Likewise.
13461         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
13462         addressing for DDmode for E500 double.
13463         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
13464         modes as using 64-bits of registers for E500 double.
13465         (spe_build_register_parallel): Do not handle DDmode or TDmode.
13466         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
13467         specially for E500 double.
13468         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
13469         TDmode for E500 double.
13470         (rs6000_gimplify_va_arg): Only handle SDmode in registers
13471         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
13472         (rs6000_split_multireg_move): Do not handle TDmode specially for
13473         E500 double.
13474         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
13475         using 64-bit registers for E500 double.
13476         (emit_frame_save): Do not handle DDmode specially for E500 double.
13477         (gen_frame_mem_offset): Likewise.
13478         (rs6000_function_value): Do not call spe_build_register_parallel
13479         for DDmode or TDmode.
13480         (rs6000_libcall_value): Likewise.
13481         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
13482         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
13483         for E500 double.
13485 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
13487         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
13488         in comments.
13490 2008-06-04  Junjie Gu <jgu@tensilica.com>
13492         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
13493         comparison for frame pointers.
13495 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
13497         PR target/27386
13498         * config/avr/avr.h (PUSH_ROUNDING): Remove.
13500 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
13502         PR target/30243
13503         * builtins.c (expand_builtin_signbit): Don't take lowpart when
13504         register is already smaller or equal to required mode.
13506 2008-06-04  Xinliang David Li  <davidxl@google.com>
13508         * tree-call-cdce.c: New file.
13509         (cond_dead_built_in_calls): New static variable.
13510         (input_domain): New struct.
13511         (check_pow): New function.
13512         (check_builtin_call): Ditto.
13513         (check_target_format): Ditto.
13514         (is_call_dce_candidate): Ditto.
13515         (gen_one_condition): Ditto.
13516         (gen_conditions_for_domain): Ditto.
13517         (get_domain): Ditto.
13518         (gen_conditions_for_pow_cst_base): Ditto.
13519         (gen_conditions_for_pow_int_base): Ditto.
13520         (gen_conditions_for_pow): Ditto.
13521         (get_no_error_domain): Ditto.
13522         (gen_shrink_wrap_conditions): Ditto.
13523         (shrink_wrap_one_built_in_call): Ditto.
13524         (shink_wrap_conditional_dead_built_in_calls): Ditto.
13525         (tree_call_cdce): Ditto.
13526         (gate_call_cdce): Ditto.
13527         (pass_call_cdce): New gimple pass.
13528         * passes.c: (init_optimization_passes): New pass.
13529         * tree-pass.h: New pass declaration.
13530         * opts.c (decode_options): New flag setting.
13531         * common.opt: Add -ftree-builtin-call-dce flag.
13532         * Makefile.in: Add new source file.
13533         * tempvar.def: New tv_id.
13534         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
13536 2008-06-04  Richard Guenther  <rguenther@suse.de>
13538         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
13539         (is_call_clobbered): Always check var_ann->call_clobbered.
13540         (mark_call_clobbered): Always set var_ann->call_clobbered.
13541         (clear_call_clobbered): Always clear var_ann->call_clobbered.
13542         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
13543         (reset_alias_info): Clear call clobbering info on MTAGs and
13544         globals as well.
13545         (set_pt_anything): Set pt_global_mem.
13546         (create_tag_raw): Adjust comment.
13547         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
13549 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
13550             Maxim Kuvyrkov  <maxim@codesourcery.com>
13552         * config/m68k/m68k.opt (mxgot): New option.
13553         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
13554         (m68k_output_addr_const_extra): New.
13555         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
13556         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
13557         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
13558         * doc/invoke.texi (M680x0 Options): Document -mxgot.
13560 2008-06-04  Richard Guenther  <rguenther@suse.de>
13562         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
13563         negative or non-representable offsets.
13565 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
13567         * config/i386/i386.c (ix86_gen_leave): New.
13568         (ix86_gen_pop1): Likewise.
13569         (ix86_gen_add3): Likewise.
13570         (ix86_gen_sub3): Likewise.
13571         (ix86_gen_sub3_carry): Likewise.
13572         (ix86_gen_one_cmpl2): Likewise.
13573         (ix86_gen_monitor): Likewise.
13574         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
13575         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
13576         ix86_gen_one_cmpl2 and ix86_gen_monitor.
13577         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
13578         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
13579         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
13580         (ix86_expand_epilogue): Updated.
13581         (print_operand): Handle integer register operand for 'z'.
13582         (ix86_expand_strlensi_unroll_1): Likewise.
13583         (ix86_expand_strlen): Likewise.
13584         (ix86_expand_builtin): Likewise.
13585         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
13586         mov{q}/mov{l} and add{q}/add{l}.
13588 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
13590         * config/i386/i386.md (P): New mode iterator.
13591         (SFmode push_operand splitter): Macroize DImode and SImode pushes
13592         using P mode iterator.
13593         (DFmode push_operand splitter): Ditto.
13594         (XFmode push_operand splitter): Ditto.
13595         (DFmode float_extend SFmode push_operand splitter): Ditto.
13596         (XFmode float_extend SFmode push_operand splitter): Do not generate
13597         SImode pushes for 64bit target.  Macroize Dimode and SImode
13598         pushes using P mode iterator.
13599         (XFmode float_extend DFmode push_operand splitter): Ditto.
13601 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
13603         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
13604         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
13605         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
13606         return type to int.
13607         (ix86_call_abi_override): Remove check for call_used_regs.
13609 2008-06-03  Richard Guenther  <rguenther@suse.de>
13611         * tree-ssa-structalias.c (find_func_aliases): Add constraints
13612         for the lhs of calls if the return type contains pointers.
13614 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
13616         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
13617         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
13618         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
13619         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
13620         of cfun and DEFAULT_ABI to deceide abi mode.
13621         (DEFAULT_ABI): New.
13622         (REG_PARM_STACK_SPACE): Removed.
13623         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
13624         (STACK_BOUNDARY): Use default target to deceide stack boundary.
13625         * config/i386/i386-protos.h (ix86_cfun_abi): New.
13626         (ix86_function_abi): Likewise.
13627         (ix86_function_type_abi): Likewise.
13628         (ix86_call_abi_override): Likewise.
13629         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
13630         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
13631         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
13632         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
13633         specific defines.
13634         (X86_64_REGPARM_MAX): New.
13635         (X86_64_SSE_REGPARM_MAX): New.
13636         (X64_REGPARM_MAX): New.
13637         (X64_SSE_REGPARM_MAX): New.
13638         (X86_32_REGPARM_MAX): New.
13639         (X86_32_SSE_REGPARM_MAX): New.
13640         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
13641         (ix86_function_regparm): Handle user calling abi.
13642         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
13643         by DEFAULT_ABI versus SYSV_ABI check.
13644         (ix86_reg_parm_stack_space): New.
13645         (ix86_function_type_abi): New.
13646         (ix86_call_abi_override): New.
13647         (ix86_function_abi): New.
13648         (ix86_cfun_abi): New.
13649         (init_cumulative_args): Call abi specific initialization.
13650         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
13651         (function_arg_64): Extend SSE_REGPARM_MAX check.
13652         (function_arg (): Remove TARGET_64BIT_MS_ABI.
13653         (ix86_pass_by_reference): Likewise.
13654         (ix86_function_value_regno_p): Likewise.
13655         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
13656         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
13657         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
13658         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
13659         (setup_incoming_varargs_64): Adjust regparm for call abi.
13660         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
13661         (ix86_va_start): Likewise.
13662         (ix86_gimplify_va_arg): Likewise.
13663         (ix86_expand_prologue): Likewise.
13664         (output_pic_addr_const): Likewise.
13665         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
13666         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
13667         (x86_output_mi_thunk): Likewise.
13668         (x86_function_profiler): Likewise.
13669         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
13670         (SYSV_ABI, MS_ABI): New constants.
13671         (DEFAULT_ABI): New.
13672         (init_regs): Add prototype of function in regclass.c file.
13673         (OVERRIDE_ABI_FORMAT): New.
13674         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
13675         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
13676         (OUTGOING_REG_PARM_STACK_SPACE): New.
13677         (ix86_reg_parm_stack_space): New prototype.
13678         (CUMULATIVE_ARGS): Add call_abi member.
13679         (machine_function): Add call_abi member.
13680         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
13681         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
13683 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
13685         PR target/34879
13686         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
13687         (avr_builtin_setjmp_frame_value): New function.
13688         * config/avr/avr.md (nonlocal_goto_receiver): Define.
13689         (nonlocal_goto): Define.
13691 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
13693         * config/mips/mips.c (mips_emit_loadgp): Return early if
13694         there is nothing do to, otherwise emit a blockage if
13695         !TARGET_EXPLICIT_RELOCS || crtl->profile.
13696         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
13698 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13700         * configure.ac: Drop unneeded backslash ending up in config.in.
13701         * acinclude.m4: Likewise.
13702         * config.in: Regenerate.
13704 2008-05-26  Jan Hubicka  <jh@suse.cz>
13706         * predict.c (maybe_hot_frequency_p): Break out of...
13707         (maybe_hot_bb_p): ... here.
13708         (maybe_hot_edge_p): New.
13709         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
13710         * basic-block.h (maybe_hot_edge_p): Declare.
13712 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
13714         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
13715         (*cmpfp_<mode>_cc): Ditto.
13716         (*fp_jcc_8<mode>_387): Ditto.
13717         (*fop_<MODEF:mode>_2_i387): Ditto.
13718         (*fop_<MODEF:mode>_3_i387): Ditto.
13719         (*fop_xf_2_i387): Ditto.
13720         (*fop_xf_3_i387): Ditto.
13722 2008-06-02  Tomas Bily  <tbily@suse.cz>
13724         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
13726 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
13728         * config/mips/mips.c (mips_valid_offset_p): New function.
13729         (mips_valid_lo_sum_p): Likewise.
13730         (mips_classify_address): Use them.
13731         (mips_force_address): New function.
13732         (mips_legitimize_address): Use it.
13733         * config/mips/mips.md (MOVE128): New mode iterator.
13734         (movtf): Require TARGET_64BIT.  Remove empty strings.
13735         (*movtf_internal): Rename to...
13736         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
13737         of "R" and use {,fp}{load,store} attributes instead of "multi".
13738         Use a separate define_split.
13739         (*movtf_mips16): New pattern.
13741 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
13743         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
13744         * config/mips/mips.c (mips_expand_before_return): New function.
13745         (mips_expand_epilogue): Call it.
13746         * config/mips/mips.md (return): Turn into a define_expand.
13747         (*return): New insn.
13749 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
13751         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
13752         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
13753         functions.  Do not emit uses and clobbers of CONCATs; individually
13754         use and clobber their operands.
13755         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
13756         gen_clobber, emit_use and gen_use.
13757         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
13758         (expand_builtin_return): Likewise.
13759         * cfgbuild.c (count_basic_blocks): Likewise.
13760         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
13761         * explow.c (emit_stack_restore): Likewise.
13762         * expmed.c (extract_bit_field_1): Likewise.
13763         * expr.c (convert_move, emit_move_complex_parts): Likewise.
13764         (emit_move_multi_word, store_constructor): Likewise.
13765         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
13766         (thread_prologue_and_epilogue_insns): Likewise.
13767         * lower-subreg.c (resolve_simple_move): Likewise.
13768         * optabs.c (widen_operand, expand_binop): Likewise.
13769         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
13770         * reload.c (find_reloads): Likewise.
13771         * reload1.c (eliminate_regs_in_insn): Likewise.
13772         * stmt.c (expand_nl_goto_receiver): Likewise.
13773         * config/alpha/alpha.md (builtin_longjmp): Likewise.
13774         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
13775         * config/arm/arm.c (arm_load_pic_register): Likewise.
13776         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
13777         * config/arm/arm.md (untyped_return): Likewise.
13778         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
13779         * config/avr/avr.c (expand_prologue): Likewise.
13780         * config/bfin/bfin.c (do_unlink): Likewise.
13781         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
13782         * config/cris/cris.c (cris_expand_prologue): Likewise.
13783         * config/darwin.c (machopic_indirect_data_reference): Likewise.
13784         (machopic_legitimize_pic_address): Likewise.
13785         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
13786         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
13787         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
13788         (ix86_expand_convert_uns_didf_sse): Likewise.
13789         (ix86_expand_vector_init_general): Likewise.
13790         * config/ia64/ia64.md (eh_epilogue): Likewise.
13791         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
13792         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
13793         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
13794         (config/iq2000/iq2000.c): Likewise.
13795         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
13796         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
13797         (builtin_longjmp): Likewise.
13798         * config/mn10300/mn10300.md (call, call_value): Likewise.
13799         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
13800         * config/pdp11/pdp11.md (abshi2): Likewise.
13801         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
13802         * config/s390/s390.c (s390_emit_prologue): Likewise.
13803         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
13804         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
13805         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
13806         * config/sh/sh.c (prepare_move_operands): Likewise.
13807         (output_stack_adjust, sh_expand_epilogue): Likewise.
13808         (sh_set_return_address, sh_expand_t_scc): Likewise.
13809         * config/sparc/sparc.c (load_pic_register): Likewise.
13810         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
13811         * config/spu/spu.c (spu_expand_epilogue): Likewise.
13812         * config/v850/v850.c (expand_epilogue): Likewise.
13814 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
13816         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
13817         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
13818         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
13819         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
13820         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
13821         stack pointer register.
13822         (output_movhi): Remove code for interrupt specific writing to the
13823         stack pointer register.
13825 2008-05-31  Richard Guenther  <rguenther@suse.de>
13827         PR tree-optimization/34244
13828         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
13829         (tree_expr_nonzero_warnv_p): Likewise.
13830         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
13831         ssa_name_nonnegative_p.
13832         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
13833         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
13834         not tree_expr_nonzero_warnv_p.
13836         PR tree-optimization/36262
13837         Revert
13838         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
13840         PR tree-optimization/34244
13841         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
13842         (record_numbers_of_iterations): New function.
13843         (execute_vrp): Cache the numbers of iterations of loops.
13844         * tree-scalar-evolution.c (scev_reset_except_niters):
13845         New function.
13846         (scev_reset): Use scev_reset_except_niters.
13847         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
13849 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
13851         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
13852         __WORKAROUND_RETS when appropriate.
13854 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
13856         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
13857         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
13858         mode iterator.
13859         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
13860         *fop_df_comm_sse insn patterns using MODEF mode iterator.
13861         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
13862         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
13863         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
13864         *fop_df_1_mixed insn patterns using MODEF mode iterator.
13865         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
13866         *fop_df_1_sse insn patterns using MODEF mode iterator.
13867         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
13868         *fop_df_1_i387 insn patterns using MODEF mode iterator.
13869         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
13870         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
13871         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
13872         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
13873         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
13874         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
13875         (*fop_xf_4_i387): Use <MODE> for mode attribute.
13876         (*fop_xf_5_i387): Ditto.
13877         (*fop_xf_6_i387): Ditto.
13879 2008-05-30  Richard Guenther  <rguenther@suse.de>
13881         * builtins.c (build_string_literal): Avoid generating
13882         a non-gimple_val result.
13884 2008-05-30  DJ Delorie  <dj@redhat.com>
13886         * exec-tool.in: Use an environment variable (private) instead of a
13887         file (shared) as a semaphore, so as to not break parallel builds.
13889 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
13891         * optabs.c (maybe_encapsulate_block): Remove.
13892         (emit_libcall_block): Adjust accordingly.
13893         * optabs.h (maybe_encapsulate_block): Remove prototype.
13895         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
13896         Don't use maybe_encapsulate_block.
13898 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
13900         * config/rs6000/rs6000.c (rs6000_legitimize_address,
13901         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
13902         rtx is a SYMBOL_REF before calling get_pool_constant.
13904 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
13906         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
13908 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
13910         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
13911         rather than OS names to choose INO_T_EQ definition.
13912         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
13913         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
13915 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
13917         PR target/36348
13918         * config/darwin-f.c: New.
13919         * config/t-darwin: Added rule to build darwin-f.o.
13920         * config.gcc: Defined new variable, fortran_target_objs.
13921         (*-*-darwin*): Set fortran_target_objs.
13922         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
13923         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
13924         * configure: Regenerated.
13926 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
13928         PR target/35771
13929         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
13930         canonical type if needed.
13932 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
13934         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
13936 2008-05-29  Richard Guenther  <rguenther@suse.de>
13938         PR tree-optimization/36343
13939         PR tree-optimization/36346
13940         PR tree-optimization/36347
13941         * tree-flow.h (clobber_what_p_points_to): Declare.
13942         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
13943         pointed-to variable is dereferenced is irrelevant to whether
13944         the pointer can access the pointed-to variable.
13945         (clobber_what_p_points_to): New function.
13946         * tree-ssa-alias.c (set_initial_properties): Use it.
13947         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
13948         call clobber check for NMTs.
13950 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
13952         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
13953         for printing gcov_type.
13955 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
13957         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
13958         and the eh region information.
13959         * value-prof.c (gimple_move_stmt_histograms): New function.
13960         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
13962 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
13964         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
13966 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
13968         * value-prof.c (tree_ic_transform): Print counts.
13969         * tree-profile.c (tree_gen_ic_func_profiler):
13970         Clear __gcov_indreict_call_callee variable to avoid misattribution
13971         of the profile.
13973 2008-05-28  Rafael Espindola  <espindola@google.com>
13975         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
13976         invalid sharing.
13978 2008-05-28  Richard Guenther  <rguenther@suse.de>
13980         PR tree-optimization/36339
13981         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
13982         and clobbering code out of the loop.
13984 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
13986         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
13987         letters defined.
13989         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
13990         s390_contiguous_bitmask_p, s390_symref_operand_p,
13991         s390_check_symref_alignment, s390_reload_larl_operand,
13992         s390_reload_symref_address): New functions.
13993         (s390_branch_condition_mnemonic): Support compare and branch
13994         instructions.
13995         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
13996         and 'W' constraints.
13997         (s390_secondary_reload): Add secondary reloads for unaligned
13998         symbol refs or symbol refs to floating point or QI/TI mode
13999         integer values.
14000         (legitimate_address_p): Accept symbol references as addresses.
14001         (s390_expand_insv): Use rotate and insert selected bits
14002         instruction for insv when building for z10.
14003         (print_operand_address): Handle symbol ref addresses.
14004         (print_operand): Output modifier 'c' added for signed byte values.
14005         (s390_encode_section_info): Mark symbol refs with
14006         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
14008         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
14009         (length attribute): RRF, RRR have 4 byte length.
14010         (FPALL, INTALL): New mode iterators added.
14011         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
14012         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
14013         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
14014         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
14015         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
14016         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
14017         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
14018         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
14019         instructions.
14020         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
14021         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
14022         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
14023         reload<INTALL:mode><P:mode>_toreg_z10,
14024         reload<FPALL:mode><P:mode>_tomem_z10,
14025         reload<FPALL:mode><P:mode>_toreg_z10,
14026         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
14027         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
14028         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
14029         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
14030         definition.
14031         (movmem, clrmem, cmpmem): New splitters added.
14033         * config/s390/predicates.md (larl_operand): Use
14034         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
14035         SYMBOL_REF_ALIGN1_P.
14036         (s390_signed_integer_comparison,
14037         s390_unsigned_integer_comparison): New predicates.
14039         * config/s390/s390-protos.h (s390_check_symref_alignment,
14040         s390_contiguous_bitmask_p, s390_reload_larl_operand,
14041         s390_reload_symref_address,
14042         s390_compare_and_branch_condition_mask): Prototypes added.
14044         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
14045         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
14046         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
14048 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
14050         * config/s390/s390.c (z10_cost): New cost function for z10.
14051         (s390_handle_arch_option, override_options): Support -march=z10 switch.
14052         (s390_issue_rate): Adjust issue rate for z10.
14053         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
14054         (processor_flags): Add PF_Z10.
14055         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
14056         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
14057         * gcc/config.gcc: Add z10.
14059 2008-05-28  Richard Guenther  <rguenther@suse.de>
14061         PR tree-optimization/36291
14062         * tree-flow. h (struct gimple_df): Remove var_anns member.
14063         * tree-flow-inline.h (gimple_var_anns): Remove.
14064         (var_ann): Simplify.
14065         * tree-dfa.c (create_var_ann): Simplify.
14066         (remove_referenced_var): Clear alias info from var_anns of globals.
14067         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
14068         (delete_tree_ssa): Clear alias info from var_anns of globals.
14069         Do not free var_anns.
14070         (var_ann_eq): Remove.
14071         (var_ann_hash): Likewise.
14073 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
14075         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
14076         and loongson2f entries.
14077         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
14078         * config/mips/mips.h (processor_type): Add Loongson-2E
14079         and Loongson-2F entries.
14080         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
14081         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
14082         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
14083         * doc/invoke.texi (MIPS Options): Document loongson2e
14084         and loongson2f processor names.
14086 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
14088         PR target/35767
14089         PR target/35771
14090         * config/i386/i386.c (ix86_function_arg_boundary): Use
14091         alignment of canonical type.
14092         (ix86_expand_vector_move): Check unaligned memory access for
14093         all SSE modes.
14095 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
14097         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
14098         Moved to the front of file.
14100 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
14101             H.J. Lu  <hongjiu.lu@intel.com>
14103         * dwarf2out.c (current_fde): New.
14104         (add_cfi): Use it.
14105         (lookup_cfa:): Likewise.
14106         (dwarf2out_end_epilogue): Likewise.
14107         (dwarf2out_note_section_used): Likewise.
14109 2008-05-27  Michael Matz  <matz@suse.de>
14111         PR c++/27975
14112         * c.opt (Wenum-compare): New warning option.
14113         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
14115 2008-05-27  Michael Matz  <matz@suse.de>
14117         PR middle-end/36326
14118         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
14119         non-BLKmode types.
14120         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
14121         into memory as tail calls.
14123 2008-05-27  Richard Guenther  <rguenther@suse.de>
14125         PR tree-optimization/36339
14126         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
14127         pointers cause all addressable variables to be call clobbered.
14129 2008-05-27  Richard Guenther  <rguenther@suse.de>
14131         PR tree-optimization/36245
14132         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
14134 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
14136         * config/s390/s390.md: Replace all occurences of the 'm'
14137         constraint with 'RT'.
14139 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
14141         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
14142         definitions added.
14143         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
14144         "*movdi_64".
14145         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
14146         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
14147         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
14149 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
14151         * reload.c: (find_reloads): Skip alternatives according to the
14152         "enabled" attribute. Constify the constraint variable.
14153         * recog.c (get_attr_enabled): Add default implementation.
14154         (extract_insn): Set the alternative_enabled_p array
14155         in the recog_data struct.
14156         (preprocess_constraints, constrain_operands): Skip
14157         alternatives according to the "enabled" attribute
14158         * recog.h (struct recog_data): New field alternative_enabled_p.
14159         (skip_alternative): New inline function.
14160         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
14161         (record_reg_classes): Skip alternative according to the
14162         "enabled" attribute.
14164         * doc/md.texi: Add documention for the "enabled" attribute.
14166 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
14168         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
14169         * postreload.c (reload_cse_simplify_operands): Replace 'm'
14170         constraint with TARGET_MEM_CONSTRAINT.
14171         * recog.c (asm_operand_ok, preprocess_constraints,
14172         constrain_operands): Likewise.
14173         * regclass.c (record_reg_classes): Likewise.
14174         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
14175         * reload1.c (maybe_fix_stack_asms): Likewise.
14176         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
14177         * recog.h: Adjust comment.
14178         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
14179         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
14180         * doc/md.texi: Add a note to description of 'm' constraint.
14181         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
14183 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
14185         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
14186         that the bitfield is of integral type before testing its precision.
14188 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
14189             Sa Liu  <saliu@de.ibm.com>
14191         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
14192         __modti3, __udivti3, __umodti3 and __udivmodti4.
14193         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
14194         that implement TImode mul and div functions.
14195         * config/spu/multi3.c: New. Implement __multi3.
14196         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
14197         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
14198         functions on SPU.
14200 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
14202         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
14203         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
14204         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
14205         tls_sysv_suffix): New mode and mode attribute iterators.
14206         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
14207         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
14208         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
14209         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
14210         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
14211         iterators.
14213 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
14215         PR tree-optimization/36329
14216         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
14217         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
14218         * cgraphbuild.c (initialize_inline_failed): Use the latter
14219         macro in lieu of the former.
14220         * ipa-inline.c (cgraph_mark_inline): Likewise.
14221         (cgraph_decide_inlining_of_small_function): Likewise.
14222         (cgraph_decide_inlining): Likewise.
14223         (cgraph_decide_inlining_incrementally): Likewise.
14225 2008-05-26  Tristan Gingold  <gingold@adacore.com>
14226             Anatoly Sokolov  <aesok@post.ru>
14228         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
14229         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
14230         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
14231         optimization for 'avr6' architecture.
14233 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
14235         PR target/34932
14236         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
14238 2008-05-26  Richard Guenther  <rguenther@suse.de>
14240         * tree-ssa-sccvn.c (expr_has_constants): Declare.
14241         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
14243 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
14245         PR middle-end/36253
14246         * caller-save.c (insert_restore): Verify alignment of spill space.
14247         (insert_save): Likewise.
14248         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
14249         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
14250         (STACK_SLOT_ALIGNMENT): Likewise.
14251         * function.c (LOCAL_ALIGNMENT): Removed.
14252         (get_stack_local_alignment): New.
14253         (assign_stack_local): Use it.  Set alignment on stack slot.
14254         (assign_stack_temp_for_type): Use get_stack_local_alignment.
14255         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
14256         (STACK_SLOT_ALIGNMENT): New.
14257         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
14258         stack slot in XFmode.
14260         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
14262 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
14264         PR/36321
14265         * config/i386/i386.md (allocate_stack_worker_64): Make sure
14266         argument operand in rax isn't removed.
14268 2008-05-26  Richard Guenther  <rguenther@suse.de>
14270         PR middle-end/36300
14271         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
14272         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
14274 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
14276         PR bootstrap/36331
14277         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
14279 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
14281         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
14282         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
14284 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
14286         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
14287         build a trampoline if we don't want one.
14288         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
14289         return zero for nested functions if we don't want a trampoline.
14291 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
14293         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
14295 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
14297         PR fortran/18428
14298         * c.opt: Removed undocumented option '-lang-fortran'.
14299         * c-common.h: Removed global variable 'lang_fortran'.
14300         * c-opts.c (c_common_handle_option): Removed code to handle
14301         option '-lang-fortran'. Updated includes.
14302         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
14303         definition of '__GFORTRAN__'.
14304         (define__GNUC__): Reimplemented to use BASEVER and
14305         cpp_define_formatted.
14306         (builtin_define_with_value_n): Removed.
14307         * c-incpath.h: Renamed to ...
14308         * incpath.h: ... this.
14309         * c-incpath.c: Renamed to ...
14310         * incpath.c: ... this. Updated includes.
14311         * fix-header.c: Updated includes.
14312         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
14313         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
14314         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
14316 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
14318         * tree.h: Update the table of flags used on tree nodes.
14319         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
14320         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
14321         (FORCED_LABEL): Add access check.
14322         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
14323         (ASM_INPUT_P): Likewise.
14324         (ASM_VOLATILE_P): Likewise.
14325         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
14326         (OMP_SECTION_LAST): Access private_flag directly.
14327         (OMP_RETURN_NOWAIT): Likewise.
14328         (OMP_PARALLEL_COMBINED): Likewise.
14329         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
14330         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
14331         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
14332         deprecated_flag directly.
14334 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
14336         * final.c (frame_pointer_needed): Removed.
14337         * flags.h (frame_pointer_needed): Likewise.
14339         * function.h (rtl_data): Add frame_pointer_needed.
14340         (frame_pointer_needed): New.
14342 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
14344         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
14346 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
14348         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
14349         SRC is a REG.
14351 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
14353         * c-common.c (strip_array_types): Move function to..
14354         * tree.c: ..here.
14355         (get_inner_array_type): Delete.
14356         * c-common.h (strip_array_types): Move declaration to..
14357         * tree.h: ..here.
14358         (get_inner_array_type): Delete.
14359         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
14360         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
14361         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
14362         * config/pa/pa.c (emit_move_sequence): Likewise.
14364 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
14366         * config/i386/i386.md (*sse_prologue_save_insn): Set length
14367         attribute to 34.
14369 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
14371         * function.c: Include target hook for nonlocal_goto frame value.
14373 2008-05-24  Richard Guenther  <rguenther@suse.de>
14375         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
14376         variable can be only accessed through a pointer or a union.
14378 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14380         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
14381         * doc/extend.texi: Likewise.
14383 2008-05-23  DJ Delorie  <dj@redhat.com>
14385         * config/m32c/jump.md (untyped_call): Add.
14387         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
14388         for A24 to PSImode.
14389         (m32c_address_cost): Detail costs for indirect offsets.
14391 2008-05-23  Rafael Espindola  <espindola@google.com>
14393         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
14394         if a node is a SUBREG.
14395         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
14396         is a SUBREG.
14398 2008-05-23  Paul Brook  <paul@codesourcery.com>
14399             Carlos O'Donell  <carlos@codesourcery.com>
14401         * doc/extend.texi: Clarify use of __attribute__((naked)).
14402         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
14403         * target.h (gcc_target): Add allocate_stack_slots_for_args.
14404         * function.c (use_register_for_decl): Use
14405         targetm.calls.allocate_stack_slots_for_args.
14406         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
14407         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
14408         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
14410 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
14412         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
14414 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
14416         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
14417         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
14418         is only rounded once.
14420 2008-05-23  Richard Guenther  <rguenther@suse.de>
14422         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
14424 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
14425             Jakub Jelinek  <jakub@redhat.com>
14427         PR target/36079
14428         * configure.ac: Handle --enable-cld.
14429         * configure: Regenerated.
14430         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
14431         * config/i386/i386.h (struct machine_function): Add needs_cld field.
14432         (ix86_current_function_needs_cld): New define.
14433         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
14434         (cld): New isns pattern.
14435         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
14436         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
14437         * config/i386/i386.opt (mcld): New option.
14438         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
14439         TARGET_CLD and ix86_current_function_needs_cld.
14440         (override_options): Use -mcld by default for 32-bit code if
14441         USE_IX86_CLD.
14443         * doc/install.texi (Options specification): Document --enable-cld.
14444         * doc/invoke.texi (Machine Dependent Options)
14445         [i386 and x86-64 Options]: Add -mcld option.
14446         (Intel 386 and AMD x86-64 Options): Document -mcld option.
14448 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
14449         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
14450         (return_in_memory_64): Likewise.
14451         (return_in_memory_ms_64): Likewise.
14453 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14455         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
14456         * builtins.c (fold_builtin_fpclassify): New.
14457         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
14458         * builtins.def (BUILT_IN_FPCLASSIFY): New.
14459         * c-common.c (handle_type_generic_attribute): Adjust to accept
14460         fixed arguments before an elipsis.
14461         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
14462         * doc/extend.texi: Document __builtin_fpclassify.
14464 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
14466         * omp-low.c (gate_expand_omp_ssa): Remove.
14467         (pass_expand_omp_ssa): Remove.
14468         (gate_expand_omp): Do not check for flag_openmp_ssa.
14469         * common.opt (-fopenmp-ssa): Remove.
14470         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
14472 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
14474         * config/sh/sh.opt (mfixed-range): New option.
14475         * config/sh/sh-protos.h (sh_fix_range): Declare.
14476         * config/sh/sh.c (sh_fix_range): New function.
14477         * config/sh/sh.h (sh_fixed_range_str): Declare.
14478         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
14479         is not empty.
14480         * doc/invoke.texi (SH Options): Document -mfixed-range.
14482 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
14484         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
14485         it before the redeclaration.
14487 2008-05-22  Anatoly Sokolov <aesok@post.ru>
14489         * config/avr/avr.c (get_sequence_length): Add new function.
14490         (expand_prologue, expand_epilogue): Remove duplicate code.
14492 2008-05-22  Rafael Espindola  <espindola@google.com>
14494         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
14495         sharing.
14497 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
14499         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
14500         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
14502         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
14503         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
14504         (vect_update_misalignment_for_peel): Likewise.
14505         (vector_alignment_reachable_p): Likewise.
14506         * tree-vect-transform.c (vectorizable_load): Likewise.
14507         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
14508         (get_vectype_for_scalar_type): Pass mode of scalar_type
14509         to UNITS_PER_SIMD_WORD.
14511         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
14512         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
14513         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
14514         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
14515         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
14517 2008-05-22  Ira Rosen  <irar@il.ibm.com>
14519         PR tree-optimization/36293
14520         * tree-vect-transform.c (vect_transform_strided_load): Don't check
14521         if the first load must be skipped because of a gap.
14523 2008-05-22  Richard Guenther  <rguenther@suse.de>
14525         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
14526         more cases of offset disambiguation that is possible if
14527         strict-aliasing rules apply.
14528         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
14529         for basic offset and type-based disambiguation.
14531 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14533         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
14534         ix86_expand_vector_set on V16QImode for SSE4.1.
14536 2008-05-21  Tom Tromey  <tromey@redhat.com>
14538         * c.opt (Wimport): Mark as undocumented.
14539         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
14540         -Wno-import.
14541         (Warning Options): Likewise.
14542         * doc/cppopts.texi: Don't mention -Wimport.
14544 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
14546         PR tree-optimization/36287
14547         PR tree-optimization/36286
14548         * lambda-code.c (build_access_matrix): Do not use the loop->num
14549         for computing the number of induction variables: use the loop depth
14550         instead.
14552 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
14554         PR/36280
14555         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
14556         option -f(no-)leading-underscore.
14558 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14560         * config/i386/i386.c (ix86_expand_vector_init_general): Use
14561         GET_MODE_NUNITS (mode).
14563 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
14565         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
14566         (-mmulhw): Add 464 to description.
14567         (-mdlmzb): Likewise.
14568         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
14569         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
14570         464fp entries.
14571         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
14572         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
14573         * config/rs6000/rs6000.md: Update comments for 464.
14575 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
14577         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
14579 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14581         * config/i386/sse.md (vec_extractv4sf): Removed.
14582         (vec_extractv2df): Likewise.
14583         (vec_extractv2di): Likewise.
14584         (vec_extractv4si): Likewise.
14585         (vec_extractv8hi): Likewise.
14586         (vec_extractv16qi): Likewise.
14587         (vec_extract<mode>): New.
14589 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14591         * config/i386/sse.md (vec_setv4sf): Removed.
14592         (vec_setv2df): Likewise.
14593         (vec_setv2di): Likewise.
14594         (vec_setv4si): Likewise.
14595         (vec_setv8hi): Likewise.
14596         (vec_setv16qi): Likewise.
14597         (vec_set<mode>): New.
14599 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14601         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
14602         goto for vec_concat and vec_interleave.
14604 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14606         * config/i386/sse.md (vec_initv4sf): Removed.
14607         (vec_initv2df): Likewise.
14608         (vec_initv2di): Likewise.
14609         (vec_initv4si): Likewise.
14610         (vec_initv8hi): Likewise.
14611         (vec_initv16qi): Likewise.
14612         (vec_init<mode>): New.
14614 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
14616         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
14618 2008-05-21  Tom Tromey  <tromey@redhat.com>
14620         * ggc-zone.c (lookup_page_table_if_allocated): New function.
14621         (zone_find_object_offset): Likewise.
14622         (gt_ggc_m_S): Likewise.
14623         (highest_bit): Likewise.
14624         * ggc-page.c (gt_ggc_m_S): New function.
14625         * stringpool.c (string_stack): Remove.
14626         (init_stringpool): Update.
14627         (ggc_alloc_string): Use ggc_alloc.
14628         (maybe_delete_ident): New function.
14629         (ggc_purge_stringpool): Likewise.
14630         (gt_ggc_m_S): Remove.
14631         * ggc-common.c (ggc_protect_identifiers): New global.
14632         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
14633         ggc_protect_identifiers.
14634         * ggc.h (ggc_protect_identifiers): Declare.
14635         (gt_ggc_m_S): Update.
14636         (ggc_purge_stringpool): Declare.
14637         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
14638         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
14639         special case.
14640         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
14642 2008-05-21  David S. Miller  <davem@davemloft.net>
14644         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
14645         tmake_file.
14647 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
14649         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
14650         once finished.
14652 2008-05-20  David Daney  <ddaney@avtrex.com>
14654         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
14655         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
14656         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
14657         UNSPEC_UPDATE_GOT_VERSION): Renumber.
14658         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
14659         (atomic_hiqi_op): New define_code_iterator.
14660         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
14661         mips_expand_compare_and_swap_12.
14662         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
14663         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
14664         (sync_<optab><mode>, sync_old_<optab><mode>,
14665         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
14666         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
14667         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
14668         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
14669         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
14670         (test_and_set_12): New insn.
14671         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
14672         sync_new_<optab><mode>, sync_old_nand<mode>,
14673         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
14674         clobber to operand 0 for SI and DI mode insns.
14675         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
14676         mips_gen_fn_4): New typedefs.
14677         (mips_gen_fn_ptrs): Define new union type.
14678         (mips_expand_compare_and_swap_12): Remove declaration.
14679         (mips_expand_atomic_qihi): Declare function.
14680         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
14681         (mips_expand_atomic_qihi): ... this.  Use new generator function
14682         parameter.
14683         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
14684         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
14685         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
14686         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
14687         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
14688         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
14689         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
14690         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
14691         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
14692         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
14693         New macros.
14695 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
14697         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
14698         the missing break.
14700 2008-05-20  Anatoly Sokolov <aesok@post.ru>
14702         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
14703         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
14704         (avr_attribute_table): Add 'OS_main' function attribute.
14705         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
14706         functions with 'OS_main' attribute.
14708 2008-05-20  Richard Guenther  <rguenther@suse.de>
14710         PR tree-optimization/35204
14711         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
14712         helper, split out from ...
14713         (DFS): ... here.  Make the DFS walk non-recursive.
14715 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
14716             Jan Sjodin  <jan.sjodin@amd.com>
14718         PR tree-optimization/36181
14719         * tree-parloops.c (loop_has_vector_phi_nodes): New.
14720         (parallelize_loops): Don't parallelize when the loop has vector
14721         phi nodes.
14723 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
14724             Sebastian Pop  <sebastian.pop@amd.com>
14726         * tree-loop-linear.c (gather_interchange_stats): Look in the access
14727         matrix, and never look at the tree representation of the memory
14728         accesses.
14729         (linear_transform_loops): Computes parameters and access matrices.
14730         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
14731         when fails.
14732         (access_matrix_get_index_for_parameter): New.
14733         * tree-data-ref.h (struct access_matrix): New.
14734         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
14735         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
14736         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
14737         am_vector_index_for_loop): New.
14738         (struct data_reference): Add field access_matrix.
14739         (DR_ACCESS_MATRIX): New.
14740         (compute_data_dependences_for_loop): Update declaration.
14741         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
14742         * lambda.h (lambda_vector_vec_p): Declared.
14743         * lambda-code.c: Depend on pointer-set.h.
14744         (lambda_collect_parameters_from_af, lambda_collect_parameters,
14745         av_for_af_base, av_for_af, build_access_matrix,
14746         lambda_compute_access_matrices): New.
14747         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
14749 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
14751         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
14752         $SOURCEDIR/include.
14754 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
14755             Sebastian Pop  <sebastian.pop@amd.com>
14757         PR tree-optimization/36206
14758         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
14759         FOLD_CONVERSIONS.
14760         (instantiate_scev_1): Rename flags to fold_conversions.
14761         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
14762         outeside instantiation_loop.
14763         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
14764         (evolution_function_is_affine_or_constant_p): Removed.
14765         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
14766         instantiate_scev.
14767         (analyze_siv_subscript): Pass in the loop nest number.
14768         Call evolution_function_is_affine_in_loop instead of
14769         evolution_function_is_affine_p.
14770         (analyze_overlapping_iterations): Pass in the loop nest number.
14772 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
14773             Sebastian Pop  <sebastian.pop@amd.com>
14775         PR tree-optimization/36206
14776         * tree-chrec.h (chrec_fold_op): New.
14777         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
14778         and other trees.
14780 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
14782         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
14783         (DIRS_EQ): New.
14784         (remove_duplicates): Do not set inode on non-inode systems.
14785         Use DIRS_EQ.
14787 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
14789         * config.gcc (tm_file): Update comments about relative pathnames.
14791 2008-05-20  Richard Guenther  <rguenther@suse.de>
14793         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
14794         * tree-ssa-sccvn.c (process_scc): Likewise.
14795         * tree-ssa-sink.c (execute_sink_code): Likewise.
14796         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
14797         * tree-vrp.c (process_assert_insertions): Likewise.
14798         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
14799         (perform_tree_ssa_dce): Likewise.
14800         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
14801         (dump_dominator_optimization_stats): Likewise.
14802         * tree-vectorizer.c (vectorize_loops): Likewise.
14804 2008-05-20  Richard Guenther  <rguenther@suse.de>
14806         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
14808 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
14810         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
14811         (ix86_i386elf_return_in_memory): Likewise.
14812         (ix86_i386interix_return_in_memory): Likewise.
14813         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
14814         (SUBTARGET_RETURN_IN_MEMORY): New.
14815         * config/i386/i386elf.h: Likewise.
14816         * config/i386/ptx4-i.h: Likewise.
14817         * config/i386/sol2-10.h: Likewise.
14818         * config/i386/sysv4.h: Likewise.
14819         * config/i386/vx-common.h: Likewise.
14820         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
14821         * config/i386/i386.c (ix86_return_in_memory): Made static and
14822         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
14823         (ix86_i386elf_return_in_memory): Removed.
14824         (ix86_i386interix_return_in_memory): Removed.
14825         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
14826         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
14828 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
14830         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
14832 2008-05-19  Xinliang David Li  <davidxl@google.com>
14834         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
14835         * opts.c: Ditto.
14836         * common.opt: Ditto.
14837         * doc/invoke.texi: Ditto.
14839 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
14841         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
14842         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
14844 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
14846         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
14847         sizes of operand array from 8/4 to 4/2.
14848         (ix86_expand_vector_init_general): Change size of operand array
14849         from 32 to 16.  Remove op0, op1 and half_mode.
14851 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
14853         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
14854         (ix86_expand_vector_init_interleave): Likewise.
14855         (ix86_expand_vector_init_general): Use them.  Assert
14856         word_mode == SImode when n_words == 4.
14858 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
14860         * config/i386/i386.c (ix86_secondary_reload): New static function.
14861         (TARGET_SECONDARY_RELOAD): New define.
14862         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
14863         * config/i386/i386.md (reload_outqi): Remove.
14865 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14867         PR middle-end/35509
14868         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
14869         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
14870         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
14871         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
14872         (fold_builtin_1): Likewise.
14873         * builtins.def (BUILT_IN_ISINF_SIGN): New.
14874         c-common.c (check_builtin_function_arguments): Handle
14875         BUILT_IN_ISINF_SIGN.
14876         * doc/extend.texi: Document __builtin_isinf_sign.
14877         * fold-const.c (operand_equal_p): Handle COND_EXPR.
14879 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
14881         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
14882         EH cleanup at the end of the pass, search for those that have been
14883         turned into forwarder blocks and do the cleanup on their successor.
14885 2008-05-18  Richard Guenther  <rguenther@suse.de>
14887         * tree-cfg.c (verify_gimple_expr): Allow conversions from
14888         pointers to sizetype and vice versa.
14890 2008-05-18 Xinliang David Li   <davidxl@google.com>
14892         * gcc/tree-ssa-dce.c: Coding style fix.
14893         (check_pow): Documentation comment.
14894         (check_log): Documenation comment. Coding style fix.
14895         (is_unnecessary_except_errno_call): Ditto.
14896         (gen_conditions_for_pow): Ditto.
14897         (gen_conditions_for_log): Ditto.
14898         (gen_shrink_wrap_conditions): Ditto.
14899         (shrink_wrap_one_built_in_calls): Ditto.
14900         * gcc/doc/invoke.texi: Better documentation string.
14901         * ChangeLog: Fix wrong change log entries from
14902         May 17 checkin on function call DCE.
14904 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
14906         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
14908 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
14910         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
14911         * df-problems.c (simulation routines): Fixed block comment to
14912         properly say how to add forwards scanning functions.
14914 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
14916         * tree-inline.c (setup_one_parameter): Remove dead code.
14918 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
14920         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
14921         a BIT_AND_EXPR only for an INTEGER_TYPE.
14923 2008-05-17 Xinliang David Li   <davidxl@google.com>
14925         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
14926         (check_pow, check_log, is_unnecessary_except_errno_call): New
14927         functions to check for eliminating math functions that are pure
14928         except for setting errno.
14929         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
14930         general condition expressions for shrink-wrapping pow/log calls.
14931         (gen_shrink_wrap_conditions): Ditto.
14932         (shrink_wrap_one_built_in_call): Ditto.
14933         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
14934         (mark_operand_necessary): If debugging, output if OP is necessary.
14935         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
14936         unnecessary.
14937         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
14938         opt level >= 2.
14939         * gcc/common.opt: New user flag -ftree-builtin-dce.
14940         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
14942 2008-05-16  David S. Miller  <davem@davemloft.net>
14944         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
14945         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
14947 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
14949         PR target/36246
14950         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
14952 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
14954         * ifcvt.c (dead_or_predicable): Rename
14955         df_simulate_one_insn_backwards to df_simulate_one_insn.
14956         * recog.c (peephole2_optimize): Ditto.
14957         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
14958         Ditto.
14959         * df.h: Rename df_simulate_one_insn_backwards to
14960         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
14961         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
14962         scanning of defs and uses.
14963         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
14964         (df_simulate_one_insn_forwards): Removed.
14966 2008-05-16  Doug Kwan  <dougkwan@google.com>
14968         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
14969         QNaN & SNaN.
14970         (real_from_string): Handle NaNs and Inf as approriate.
14972 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
14974         * doc/gty.texi (Source Files Containing Type Information): Note
14975         that headers should appear first in the gtfiles list.
14977 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
14979         * tree.def (COND_EXEC): Properly documented this code.
14981 2008-05-16  Diego Novillo  <dnovillo@google.com>
14983         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
14984         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
14985         the new field.
14987 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
14989         * tree-ssa-dse (max_stmt_uid): Removed.
14990         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
14991         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
14992         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
14993         * function.h (cfun.last_stmt_uid): New field.
14994         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
14995         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
14996         New functions.
14997         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
14998         (create_stmt_ann): Initialize the ann->uid field.
14999         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
15000         with new calls.
15001         * tree-flow.h (renumber_gimple_stmt_uids): New function.
15003 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
15005         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
15006         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
15007         (init_empty_tree_cfg): Call it.
15009 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
15011         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
15012         Update all users.
15014 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
15016         * doc/invoke.text (-fdump-tree-*-verbose): New option.
15017         * tree-dump.c (dump_options): New verbose option.
15018         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
15019         Add verbose dump.
15020         * tree-pass.h (TDF_VERBOSE): New dump flag.
15021         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
15022         (tree-flow.h): Added include.
15023         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
15025 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
15027         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
15029         From Jie Zhang  <jie.zhang@analog.com>
15030         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15031         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
15032         mcpu=bf561-none and mcpu=bf561-0.2.
15033         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15034         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
15035         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
15036         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
15037         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
15038         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
15039         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
15040         option.
15041         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
15042         (cputype_selected): Remove.
15043         (bfin_handle_option): Don't use cputype_selected.
15044         (override_options): When no mcpu option, enable all workarounds.
15045         Don't use bfin_workarounds.
15046         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
15047         processor type.
15048         (DEFAULT_CPU_TYPE): Don't define.
15050 2008-05-16  Richard Guenther  <rguenther@suse.de>
15052         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
15053         on deletion of the last stmt.
15055 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15057         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
15058         V8HImode for SSE2 and V16QImode for SSE4.1.
15060 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
15062         * cgraph.h (compute_inline_parameters): Made public.
15063         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
15064         variable_generate_summary, function_write_summary,
15065         variable_write_summary, variable_read_summary.  Added generate_summary,
15066         write_summary, read_summary.
15067         * cgraphunit.c (cgraph_process_new_functions): Changed call from
15068         pass_ipa_inline.function_generate_summary, to
15069         compute_inline_parameters.
15070         * ipa-inline.c (compute_inline_parameters): Made public and added
15071         node parameter.
15072         (compute_inline_parameters_for_current): New function.
15073         (pass_inline_param): Now calls compute_inline_parameters_for_current.
15074         (inline_generate_summary): Removed parameter and made to loop over
15075         all cgraph nodes.
15076         (pass_ipa_inline): Updated for new IPA_PASS structure.
15077         * passes.c (execute_ipa_summary_passes): Now is called once per
15078         pass rather than once per node*pass.
15080 2008-05-15  Anatoly Sokolov <aesok@post.ru>
15082         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
15083         avr_have_mul_p, avr_asm_only_p): Remove variables.
15084         (avr_override_options): Remove initialization of removed variables.
15085         (avr_file_start):  Convert removed variables to fields of
15086         'struct base_arch_s *avr_current_arch'.
15087         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
15088         (AVR_HAVE_MUL): (Ditto.).
15089         (AVR_HAVE_MOVW): (Ditto.).
15090         (AVR_HAVE_LPMX): (Ditto.).
15091         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
15092         avr_asm_only_p): Remove declaration.
15094 2008-05-15  Diego Novillo  <dnovillo@google.com>
15096         * config/arm/arm.c (arm_return_in_memory): Fix return type.
15097         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
15099 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
15101         PR middle-end/36194
15102         * combine.c (check_conversion): Rename back to check_promoted_subreg.
15103         Don't call record_truncated_value from here.
15104         (record_truncated_value): Turn it into a for_each_rtx callback.
15105         (record_truncated_values): New function.
15106         (combine_instructions): Call note_uses with record_truncated_values.
15107         Change name of check_conversion to check_promoted_subreg.
15109 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
15111         * doc/sourcebuild.texi: Document support for torture tests.
15113 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
15115         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
15116         to alternative 4 of operand 2.
15118 2008-05-15  Richard Guenther  <rguenther@suse.de>
15120         * tree-pass.h (current_pass): Declare.
15121         (get_pass_for_id): Likewise.
15122         * passes.c (passes_by_id, passes_by_id_size): New globals.
15123         (set_pass_for_id): New function.
15124         (get_pass_for_id): Likewise.
15125         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
15126         (execute_function_todo): Flush per function statistics.
15127         * toplev.c (compile_file): Init statistics.
15128         (general_init): Do early statistics initialization.
15129         (finalize): Finish statistics.
15130         * statistics.h (statistics_early_init): Declare.
15131         (statistics_init): Likewise.
15132         (statistics_fini): Likewise.
15133         (statistics_fini_pass): Likewise.
15134         (statistics_counter_event): Likewise.
15135         (statistics_histogram_event): Likewise.
15136         * statistics.c: New file.
15137         * Makefile.in (OBJS-common): Add statistics.o.
15138         (statistics.o): Add dependencies.
15139         * doc/invoke.texi (-fdump-statistics): Document.
15141         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
15142         (insert): Likewise.
15143         (execute_pre): Use statistics_counter_event.
15144         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
15145         (substitute_and_fold): Increment it.  Use statistics_counter_event.
15147 2008-05-15  Diego Novillo  <dnovillo@google.com>
15149         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
15151         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
15152         * tree-ssa-alias.c (new_type_alias): Remove references to
15153         sub-variables from comment.
15154         * tree-ssa-operands.c (swap_tree_operands): Likewise.
15156 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
15158         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
15159         attribute to 1 only for insertps alternative.
15161 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
15163         * config/bfin/bfin.md (loadbytes): New pattern.
15164         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
15165         (bfin_init_builtins): Initialize it.
15166         (bdesc_1arg): Add it.
15168 2008-05-15  Sa Liu  <saliu@de.ibm.com>
15170         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
15171         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
15172         * testsuite/lib/target-supports.exp: Add
15173         check_effective_target_fortran_integer_16.
15175 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
15177         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
15178         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
15179         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
15180         (TARGET_RETURN_IN_MEMORY): Define.
15182 2008-05-15  Richard Guenther  <rguenther@suse.de>
15184         PR middle-end/36244
15185         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
15186         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
15187         represent unmodifiable vars.
15189 2008-05-15  Richard Guenther  <rguenther@suse.de>
15191         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
15192         INDIRECT_REF and TARGET_MEM_REF.
15193         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
15194         TARGET_MEM_REF.
15196 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
15197             H.J. Lu  <hongjiu.lu@intel.com>
15199         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
15200         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
15201         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
15202         insn alternatives.  Add missing alternatives.
15203         (*vec_concatv2di_rex64_sse4_1): Likewise.
15204         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
15205         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
15206         Require TARGET_SSE.
15208 2008-05-15  Richard Guenther  <rguenther@suse.de>
15210         PR tree-optimization/36009
15211         PR tree-optimization/36204
15212         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
15213         (determine_invariantness_stmt): Record the loop a store is
15214         always executed in.
15215         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
15216         dependency.
15218 2008-05-15  Richard Guenther  <rguenther@suse.de>
15220         PR tree-optimization/34330
15221         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
15222         through the pointer will alias the SMT.
15224 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
15226         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
15228 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
15230         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
15232 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
15233             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
15235         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
15236         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
15237         (vashl_optab): New optab for vector/vector shifts.
15238         (vashr_optab): Ditto.
15239         (vlshr_optab): Ditto.
15240         (vrotl_optab): Ditto.
15241         (vrotr_optab): Ditto.
15242         (optab_subtype): New enum for optab_for_tree_code call.
15243         (optab_for_tree_code): Add enum optab_subtype argument.
15245         * optabs.c (optab_for_tree_code): Take an additional argument to
15246         distinguish between a vector shift by a scalar and vector shift by
15247         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
15248         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
15249         vector shift by a vector.
15250         (expand_widen_pattern_expr): Pass additional argument to
15251         optab_for_tree_code.
15253         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
15254         vrotl_optab, vrotr_optab.
15256         * expr.c (expand_expr_real_1): Update calls to
15257         optab_for_tree_code to distinguish between vector shifted by a
15258         scalar and vector shifted by a vector.
15259         * tree-vectorizer.c (supportable_widening_operation): Ditto.
15260         (supportable_narrowing_operation): Ditto.
15261         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
15262         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
15263         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
15264         (vect_create_epilog_for_reduction): Ditto.
15265         (vectorizable_reduction): Ditto.
15266         (vectorizable_operation): Ditto.
15267         (vect_strided_store_supported): Ditto.
15268         (vect_strided_load_supported): Ditto.
15269         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
15270         * expmed.c (expand_shift): Ditto.
15272         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
15273         scalar type.
15274         (ashr@var{m}3): Ditto.
15275         (vashl@var{m}3): Document new vector/vector shift standard name.
15276         (vashr@var{m}3): Ditto.
15277         (vlshr@var{m}3): Ditto.
15278         (vrotl@var{m}3): Ditto.
15279         (vrotr@var{m}3): Ditto.
15281         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
15282         (PPERM_INVERT): Ditto.
15283         (PPERM_REVERSE): Ditto.
15284         (PPERM_REV_INV): Ditto.
15285         (PPERM_ZERO): Ditto.
15286         (PPERM_ONES): Ditto.
15287         (PPERM_SIGN): Ditto.
15288         (PPERM_INV_SIGN): Ditto.
15289         (PPERM_SRC1): Ditto.
15290         (PPERM_SRC2): Ditto.
15292         * config/i386/sse.md (mulv2di3): Add SSE5 support.
15293         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
15294         allows a memory operand to be the value being added, and split it
15295         to improve vectorization.
15296         (sse5_pmacsdqh_mem): Ditto.
15297         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
15298         (sse5_mulv2div2di3_high): Ditto.
15299         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
15300         (vec_pack_trunc_v4si): Ditto.
15301         (vec_pack_trunc_v2di): Ditto.
15302         (sse5_pcmov_<mode>): Remove code that tried to use use
15303         andps/andnps instead of pcmov.
15304         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
15305         pmacsdqh instructions.
15306         (vec_widen_smult_lo_v4si): Ditto.
15308         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
15309         (PPERM_INVERT): Ditto.
15310         (PPERM_REVERSE): Ditto.
15311         (PPERM_REV_INV): Ditto.
15312         (PPERM_ZERO): Ditto.
15313         (PPERM_ONES): Ditto.
15314         (PPERM_SIGN): Ditto.
15315         (PPERM_INV_SIGN): Ditto.
15316         (PPERM_SRC1): Ditto.
15317         (PPERM_SRC2): Ditto.
15318         (ix86_expand_sse_movcc): Move the SSE5 test after the if
15319         true/false tests.
15320         (ix86_expand_int_vcond): If SSE5 generate all possible integer
15321         comparisons.
15322         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
15323         says ignore whether the last reference is a memory operand.
15325 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
15326             Paolo Bonzini <bonzini at gnu dot org>
15328         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
15329         shift patterns.
15331         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
15332         (vlshr<mode>3): Rename from vlshr<mode>3.
15333         (vashr<mode>3): Rename from vashr<mode>3.
15334         (mulv4sf3): Change the names of vector shift patterns.
15335         (mulv4si3): Ditto.
15336         (negv4sf2): Ditt.
15338         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
15339         shift insns.
15341         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
15342         (SI_SHLHI): Ditto.
15343         (SI_SHL): Ditto.
15344         (SI_SHLI): Ditto.
15345         (SI_ROTH): Ditto.
15346         (SI_ROTHI): Ditto.
15347         (SI_ROT): Ditto.
15348         (SI_ROTI): Ditto.
15349         (SPU_RL_0): Ditto.
15350         (SPU_RL_1): Ditto.
15351         (SPU_RL_2): Ditto.
15352         (SPU_RL_3): Ditto.
15353         (SPU_RL_4): Ditto.
15354         (SPU_RL_5): Ditto.
15355         (SPU_RL_6): Ditto.
15356         (SPU_RL_7): Ditto.
15357         (SPU_SL_0): Ditto.
15358         (SPU_SL_1): Ditto.
15359         (SPU_SL_2): Ditto.
15360         (SPU_SL_3): Ditto.
15361         (SPU_SL_4): Ditto.
15362         (SPU_SL_5): Ditto.
15363         (SPU_SL_6): Ditto.
15364         (SPU_SL_7): Ditto.
15366         * config/spu/spu.md (v): New iterator macro to add v for vector types.
15367         (floatunssidf2_internal): Change vector/vector shift names.
15368         (floatunsdidf2_internal): Ditto.
15369         (mulv8hi3): Ditto.
15370         (ashrdi3): Ditto.
15371         (ashrti3): Ditto.
15372         (cgt_df): Ditto.
15373         (cgt_v2df): Ditto.
15374         (dftsv): Ditto.
15375         (vashl<mode>3): Rename from ashl<mode>3.
15376         (vashr<mode>3): Rename from ashr<mode>3.
15377         (vlshr<mode>3): Rename from lshr<mode>3.
15378         (vrotl<mode>3): Rename from rotl<mode>3.
15380 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
15382         PR target/36224
15383         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
15384         multiply gives the wrong value when doing widening multiplies.
15385         (vec_widen_smult_lo_v4si): Ditto.
15387 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
15389         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
15390         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
15391         emit_library_call_value.
15392         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
15393         * tree.h (ECF_LIBCALL_BLOCK): Removed.
15394         * calls.c (initialize_argument_information, precompute_arguments,
15395         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
15396         (precompute_arguments): Removed flags parameter.
15397         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
15399 2008-05-14  Richard Guenther  <rguenther@suse.de>
15401         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
15402         Make sure to register the store if the use is a PHI_NODE.
15404 2008-05-14  Olivier Hainque  <hainque@adacore.com>
15406         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
15407         memory if the component is to be referenced in BLKmode according
15408         to get_inner_reference.
15410 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
15412         * calls.c (emit_library_call_value_1): Restore code clearing
15413         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
15415 2008-05-14  Olivier Hainque  <hainque@adacore.com>
15416             Nicolas Roche  <roche@adacore.com>
15418         * configure.ac: Add support for a "gcc_subdir" variable in
15419         config-lang.in, to denote a subdirectory where the language/GCC
15420         integration files are to be found.
15421         * configure: Regenerate.
15423 2008-05-14  Ira Rosen  <irar@il.ibm.com>
15425         PR tree-optimization/36098
15426         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
15427         value for the first load in the group in case of a gap.
15428         (vect_build_slp_tree): Check that there are no gaps in loads.
15430 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
15432         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
15433         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
15434         expand_copysign_bit, ): Change call to emit_no_conflict_block to
15435         emit_insn and remove unneeded code to construct extra args.
15436         (emit_no_conflict_block): Removed.
15437         * optabls.h: (emit_no_conflict_block): Removed.
15438         * cse.c (cse_extended_basic_block): Remove search for
15439         REG_NO_CONFLICT note.
15440         * global.c: Removed incorrect comment added in revision 117.
15441         * expr.c (convert_move): Change call to emit_no_conflict_block to
15442         emit_insn.
15443         * recog.c: Change comments so that they do not mention
15444         REG_NO_CONFLICT.
15445         * local_alloc.c (combine_regs): Removed last parameter.
15446         (no_conflict_p): Removed.
15447         (block_alloc): Removed note, no_conflict_combined_regno and set
15448         local vars. Removed all code to process REG_NO_CONFLICT blocks.
15449         (combine_regs): Removed already_dead and code to look for
15450         REG_NO_CONFLICT notes.
15451         * lower_subreg (remove_retval_note): Removed code to look for
15452         REG_NO_CONFLICT block.
15453         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
15454         (resolve_clobber): Remove code to process libcalls that have
15455         REG_NO_CONFLICT notes.
15456         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
15457         case.
15458         * combine.c (can_combine_p, distribute_notes):  Removed
15459         REG_NO_CONFLICT case.
15460         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
15461         to emit_insns.
15462         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
15463         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
15464         Ditto.
15465         * reg-notes.def (NO_CONFLICT): Removed.
15467 2008-05-14  David S. Miller  <davem@davemloft.net>
15469         * config/sparc/sparc.c (sparc_profile_hook): If
15470         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
15471         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
15472         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
15474 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
15476         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
15478 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
15480         PR target/36222
15481         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
15482         and op1 expansion before vector concat to have less live pseudos.
15484 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
15486         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
15487         ix86_expand_vector_set if supported.
15489 2008-05-13  Diego Novillo  <dnovillo@google.com>
15490             Kenneth Zadeck  <zadeck@naturalbridge.com>
15492         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
15494         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
15495         phinodes_print_statistics, init_ssanames, fini_ssanames,
15496         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
15497         release_ssa_name, release_defs, replace_ssa_name_symbol,
15498         ssanames_print_statistics): Move ...
15499         * tree-flow.h: ... here.
15500         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
15501         Use FN instead of cfun.
15502         (make_ssa_name_fn): Rename from make_ssa_name.
15503         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
15504         * tree-flow-inline.h (make_ssa_name): Move from
15505         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
15506         * omp-low.c (expand_omp_parallel):
15507         * tree-flow-inline.h (redirect_edge_var_map_result):
15508         * tree-ssa.c (init_tree_ssa): Add argument FN.
15509         Use it instead of cfun.  Update all users.
15511 2008-05-13  Tom Tromey  <tromey@redhat.com>
15513         PR preprocessor/22168:
15514         * doc/cpp.texi (Top): Update menu.
15515         (Alternatives to Wrapper #ifndef): New node.
15516         (Other Directives): Document deprecation.
15517         (Obsolete Features): Remove menu.
15518         (Assertions): Merge node into Obsolete Features.
15519         (Obsolete once-only headers): Move earlier; rename to Alternatives
15520         to Wrapper #ifndef.
15521         * doc/cppopts.texi: Update.
15522         * c.opt (Wdeprecated): Enable for C and ObjC.
15523         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
15524         (C++ Dialect Options): Move -Wno-deprecated from here to...
15525         (Warning Options): ... here.
15527 2008-05-13  Richard Guenther  <rguenther@suse.de>
15529         PR middle-end/36227
15530         * fold-const.c (fold_sign_changed_comparison): Do not allow
15531         changes in pointer-ness.
15533 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
15535         PR target/24713
15536         * config/sh/sh.c (sh_expand_prologue): Don't clear
15537         RTX_FRAME_RELATED_P for push insns.
15539 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
15541         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
15543 2008-05-12  Anatoly Sokolov <aesok@post.ru>
15545         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
15546         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
15547         Use 'machine->is_leaf' instead of 'leaf_func_p'.
15549 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
15551         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
15552         (*vec_concatv4sf_sse): This.
15553         (*sse2_concatv2si): Renamed to ...
15554         (*vec_concatv2si_sse2): This.
15555         (*sse1_concatv2si): Renamed to ...
15556         (*vec_concatv2si_sse): This.
15557         (*vec_concatv2di_rex): Renamed to ...
15558         (*vec_concatv2di_rex64): This.
15559         (*vec_concatv2si_sse4_1): New.
15560         (*vec_concatv2di_rex64_sse4_1): Likewise.
15562 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
15564         PR rtl-optimization/36111
15565         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
15566         that was created for swappable operands.
15568 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
15570         PR ada/36001
15571         * Makefile.in: Substitute GNATMAKE and GNATBIND.
15572         * configure.ac: Add call to ACX_PROG_GNAT.
15574 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
15576         * optc-gen.awk: Fix comment typo.
15578 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
15580         * pretty-print.c (pp_integer_with_precision): Use
15581         HOST_LONG_LONG_FORMAT.
15583 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
15585         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
15587 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
15589         * config/i386/i386.c (bdesc_ptest): Removed.
15590         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
15591         (bdesc_args): Add __builtin_ia32_ptestz128,
15592         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
15593         (ix86_init_mmx_sse_builtins): Updated.
15594         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
15595         (ix86_expand_builtin): Updated.
15597 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
15599         * tree-cfg.c (valid_fixed_convert_types_p): New function.
15600         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
15602 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
15604         * value-prof.c (interesting_stringop_to_profile): Do not
15605         return early for BUILT_IN_MEMPCPY.
15607 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
15609         * calls.c (expand_call): Don't use callgraph to increase
15610         preferred_stack_boundary.
15612         * cgraph.h (cgraph_rtl_info): Use unsigned on
15613         preferred_incoming_stack_boundary.
15615         * final.c (rest_of_clean_state): Use unsigned on
15616         preferred_stack_boundary.
15618 2008-05-09  Tom Tromey  <tromey@redhat.com>
15620         PR preprocessor/22231:
15621         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
15622         proceeding.
15624 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
15626         PR tree-optimization/36129
15627         * tree-ssa-ccp.c: Include value-prof.h.
15628         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
15629         built-in function was folded to a constant.
15630         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
15632 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
15633             Sebastian Pop  <sebastian.pop@amd.com>
15635         * tree-scalar-evolution.c: Document instantiate_scev.
15636         (instantiate_parameters_1): Renamed instantiate_scev_1.
15637         Don't use the same loop for instantiation_loop and evolution_loop.
15638         (instantiate_scev): New.
15639         (instantiate_parameters): Moved...
15640         (resolve_mixers): Update call to instantiate_scev_1 to pass the
15641         same loop twice.  Maintains the semantics for this function.
15642         * tree-scalar-evolution.h (instantiate_scev): Declare.
15643         (instantiate_parameters): ...here.  Now static inline.
15644         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
15645         instead of resolve_mixers.
15647 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
15649         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
15651 2008-05-09  Tomas Bily  <tbily@suse.cz>
15653         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
15654         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
15655         * tree-ssa-structalias.c (get_constraint_for): Likewise.
15656         * c-common.c (c_common_truthvalue_conversion): Likewise.
15657         * tree-object-size.c (compute_object_offset): Likewise.
15658         * tree-inline.c (estimate_num_insns_1): Likewise.
15659         * varasm.c (const_hash_1, compare_constant, copy_constant)
15660         (compute_reloc_for_constant, output_addressed_constants)
15661         (initializer_constant_valid_p): Likewise.
15662         * c-omp.c (check_omp_for_incr_expr): Likewise.
15663         * gimplify.c (gimplify_expr): Likewise.
15664         * c-typeck.c (c_finish_return): Likewise.
15665         * tree-vectorizer.c (supportable_widening_operation)
15666         (supportable_narrowing_operation): Likewise.
15667         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
15668         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
15669         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
15670         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
15671         (descr_info_loc): Likewise.
15672         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
15673         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
15674         (fold_unary): Likewise.
15675         * builtins.c (get_pointer_alignment): Likewise.
15676         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
15677         (instantiate_parameters_1): Likewise.
15678         * tree.c (expr_align, stabilize_reference): Likewise.
15679         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
15680         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
15681         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
15682         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15683         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
15684         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
15685         Likewise.
15686         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
15687         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
15688         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
15689         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
15690         (forward_propagate_comparison)
15691         (tree_ssa_forward_propagate_single_use_vars): Likewise.
15692         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
15693         * emit-rtl.c (component_ref_for_mem_expr)
15694         (set_mem_attributes_minus_bitpos): Likewise.
15695         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
15696         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
15697         Likewise.
15698         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
15699         (build_function_call, pointer_diff, build_compound_expr)
15700         (c_finish_return): Likewise.
15701         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
15702         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
15703         Likewise.
15704         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
15705         * expr.c (is_aligning_offset): Likewise.
15706         * tree-ssa-alias.c (is_escape_site): Likewise.
15707         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
15708         (check_all_va_list_escapes): Likewise.
15709         * tree-ssa-loop-ivopts.c (determine_base_object)
15710         (determine_common_wider_type): Likewise.
15711         * dojump.c (do_jump): Likewise.
15712         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
15713         * tree-gimple.c (is_gimple_cast): Likewise.
15714         * fold-const.c (decode_field_reference, )
15715         (fold_sign_changed_comparison, fold_unary, fold_comparison)
15716         (fold_binary): Likewise.
15717         * tree-ssa-alias-warnings.c (find_alias_site_helper)
15718         (already_warned_in_frontend_p): Likewise.
15719         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
15720         * tree.c (really_constant_p, get_unwidened): Likewise.
15721         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
15722         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
15723         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
15724         Likewise.
15725         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
15726         CONVERT_EXPR_P.
15727         (CONVERT_EXPR_P): Define.
15728         (CASE_CONVERT): Define.
15730 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
15732         PR middle-end/36117
15733         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
15734         (delete_unmarked_insns): When deleting a call, call
15735         delete_unreachable_blocks.
15736         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
15737         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
15739 2008-05-08  Richard Guenther  <rguenther@suse.de>
15741         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
15742         (-ftree-salias): Likewise.
15743         (salias-max-implicit-fields): Remove param documentation.
15744         (salias-max-array-elements): Likewise.
15745         * tree-pass.h (pass_create_structure_vars): Remove.
15746         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
15747         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
15748         * tree-ssa-alias.c (create_structure_vars): Remove.
15749         (gate_structure_vars): Likewise.
15750         (pass_create_structure_vars): Likewise.
15751         (gate_build_alias): Likewise.
15752         (pass_build_alias): Adjust to run always and dump the function.
15753         * common.opt (ftree-salias): Hide.
15754         * passes.c (init_optimization_passes): Remove
15755         pass_create_structure_vars, adjust comment.
15756         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
15757         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
15758         * opts.c (decode_options): Do not set flag_tree_salias.
15759         (common_handle_option): Add OPT_ftree_salias to the backward
15760         compatibility section.
15762 2008-05-08  Richard Guenther  <rguenther@suse.de>
15764         * tree-flow-inline.h (var_can_have_subvars): Move ...
15765         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
15766         * tree-flow.h (var_can_have_subvars): Remove.
15767         (push_fields_onto_fieldstack): Remove.
15768         (sort_fieldstack): Likewise.
15769         (struct fieldoff): Move ...
15770         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
15771         alias_set and base_for_components fields.
15772         (sort_fieldstack): Make static.
15773         (push_fields_onto_fieldstack): Likewise.  Remove code that
15774         handles anything but RECORD_TYPEs.  Remove alias_set and
15775         base_for_components handling.
15776         (create_variable_info_for): Adjust.
15778 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
15780         * common.opt (Wframe-larger-than=): Shorten the help message
15781         to one line.
15782         * doc/invoke.texi (Wframe-larger-than=): Add more description.
15784 2008-05-08  Rafael Espindola  <espindola@google.com>
15786         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
15787         trap.
15788         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
15789         trap and that both operands are gimple values.
15790         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
15791         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
15792         is a fp operation.
15794 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
15796         * read-rtl.c (join_c_conditions): Return the first string if the
15797         two strings are equal.
15799 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
15801         * gensupport.h (pred_data): Add a "num_codes" field.
15802         (add_predicate_code): Declare.
15803         * gensupport.c (add_predicate_code): New function.
15804         (std_pred_table): Add an "allows_const_p" field.
15805         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
15806         Remove the (incomplete) list of such codes from the codes field.
15807         (init_predicate_table): Use add_predicate_code.  Add all
15808         RTX_CONST_OBJs if allows_const_p is true.
15809         * genrecog.c (process_define_predicate): Use add_predicate_code.
15811 2008-05-08  David Daney  <ddaney@avtrex.com>
15812             Richard Sandiford  <rsandifo@nildram.co.uk>
15814         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
15815         special case of constant zero operands.
15816         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
15817         old and new values.  Special case constant zero values.
15818         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
15819         fails.
15820         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
15821         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
15823 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
15825         PR target/36090
15826         * simplify-rtx.c (simplify_plus_minus): Create CONST of
15827         similar RTX_CONST_OBJ before CONST_INT.
15829 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
15831         * stmt.c (expand_stack_restore): Change sa mode if needed.
15833 2008-05-08  Richard Guenther  <rguenther@suse.de>
15835         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
15836         return type to bool.
15837         (ix86_sol10_return_in_memory): Likewise.
15838         (ix86_i386elf_return_in_memory): Likewise.
15839         (ix86_i386interix_return_in_memory): Likewise.
15840         * config/i386/i386.c (ix86_return_in_memory): Likewise.
15841         (ix86_sol10_return_in_memory): Likewise.
15842         (ix86_i386elf_return_in_memory): Likewise.
15843         (ix86_i386interix_return_in_memory): Likewise.
15845 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
15847         PR bootstrap/36180
15848         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
15849         fndecl argument.
15850         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
15851         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
15852         declared in front.
15854 2008-05-08  Richard Guenther  <rguenther@suse.de>
15856         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
15857         * tree-data-ref.h (struct dr_alias): Remove subvars field.
15858         (DR_SUBVARS): Remove.
15859         * tree-dfa.c (dump_subvars_for): Remove.
15860         (debug_subvars_for): Likewise.
15861         (dump_variable): Do not dump subvars.
15862         (remove_referenced_var): Do not remove subvars.
15863         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
15864         (lookup_subvars_for_var): Remove.
15865         (get_subvars_for_var): Likewise.
15866         (get_subvars_at): Likewise.
15867         (get_first_overlapping_subvar): Likewise.
15868         (overlap_subvar): Likewise.
15869         * tree-flow.h (subvar_t): Remove.
15870         (struct var_ann_d): Remove subvars field.
15871         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
15872         argument.  Remove special handling of SFTs.
15873         (compute_tag_properties): Likewise.
15874         (set_initial_properties): Likewise.
15875         (compute_call_clobbered): Likewise.
15876         (count_mem_refs): Likewise.
15877         (compute_memory_partitions): Likewise.
15878         (compute_flow_insensitive_aliasing): Likewise.
15879         (setup_pointers_and_addressables): Likewise.
15880         (new_type_alias): Likewise.
15881         (struct used_part): Remove.
15882         (used_portions): Likewise.
15883         (struct used_part_map): Likewise.
15884         (used_part_map_eq): Likewise.
15885         (used_part_map_hash): Likewise.
15886         (free_used_part_map): Likewise.
15887         (up_lookup): Likewise.
15888         (up_insert): Likewise.
15889         (get_or_create_used_part_for): Likewise.
15890         (create_sft): Likewise.
15891         (create_overlap_variables_for): Likewise.
15892         (find_used_portions): Likewise.
15893         (create_structure_vars): Likewise.
15894         * tree.def (STRUCT_FIELD_TAG): Remove.
15895         * tree.h (MTAG_P): Adjust.
15896         (struct tree_memory_tag): Remove base_for_components and
15897         unpartitionable flags.
15898         (struct tree_struct_field_tag): Remove.
15899         (SFT_PARENT_VAR): Likewise.
15900         (SFT_OFFSET): Likewise.
15901         (SFT_SIZE): Likewise.
15902         (SFT_NONADDRESSABLE_P): Likewise.
15903         (SFT_ALIAS_SET): Likewise.
15904         (SFT_UNPARTITIONABLE_P): Likewise.
15905         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
15906         (union tree_node): Remove sft field.
15907         * alias.c (get_alias_set): Remove special handling of SFTs.
15908         * print-tree.c (print_node): Remove handling of SFTs.
15909         * tree-dump.c (dequeue_and_dump): Likewise.
15910         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
15911         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
15912         * tree-predcom.c (set_alias_info): Do not set subvars.
15913         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
15914         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
15915         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
15916         (add_vars_for_offset): Remove.
15917         (add_virtual_operand): Remove special handling of SFTs.
15918         (add_call_clobber_ops): Likewise.
15919         (add_call_read_ops): Likewise.
15920         (get_asm_expr_operands): Likewise.
15921         (get_modify_stmt_operands): Likewise.
15922         (get_expr_operands): Likewise.
15923         (add_to_addressable_set): Likewise.
15924         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
15925         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
15926         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
15927         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
15928         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
15929         (tree_node_structure): Likewise.
15930         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
15931         handling of SFTs.
15932         (find_what_p_points_to): Likewise.
15934 2008-05-08  Sa Liu  <saliu@de.ibm.com>
15936         * config/spu/spu.md: Fixed subti3 pattern.
15938 2008-05-08  Richard Guenther  <rguenther@suse.de>
15940         PR middle-end/36154
15941         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
15942         sure to create a representative for trailing arrays for PTA.
15944 2008-05-08  Richard Guenther  <rguenther@suse.de>
15946         PR middle-end/36172
15947         * fold-const.c (operand_equal_p): Two objects which types
15948         differ in pointerness are not equal.
15950 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
15952         * calls.c (compute_argument_block_size): Add argument tree fndecl.
15953         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
15954         (emit_library_call_value_1): Add new variable fndecl initialized by
15955         NULL_TREE. It should be the decl type of orgfun, but this information
15956         seems not to be available here, so it uses the default calling abi.
15957         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
15958         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
15959         by TARGET_RETURN_IN_MEMORY.
15960         * config/i386/i386-interix.h: Likewise.
15961         * config/i386/i386.h: Likewise.
15962         * config/i386/i386elf.h: Likewise.
15963         * config/i386/ptx4-i.h: Likewise.
15964         * config/i386/sol2-10.h: Likewise.
15965         * config/i386/sysv4.h: Likewise.
15966         * config/i386/vx-common.h: Likewise.
15967         * config/cris/cris.h: Removed #if 0 clause.
15968         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
15969         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
15970         argument.
15971         (ix86_sol10_return_in_memory): Likewise.
15972         (ix86_i386elf_return_in_memory): New.
15973         (ix86_i386interix_return_in_memory): New.
15974         * config/mt/mt-protos.h (mt_return_in_memory): New.
15975         * config/mt/mt.c: Likewise.
15976         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
15977         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
15978         * config/bfin/bfin.h: Likewise.
15979         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
15980         argument.
15981         * config/bfin/bfin.c: Likewise.
15982         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
15983         * config/alpha/unicosmk.h: Likewise.
15984         * config/i386/cygming.h: Likewise.
15985         * config/iq2000/iq2000.h: Likewise.
15986         * config/mips/mips.h: Likewise.
15987         * config/mn10300/mn10300.h: Likewise.
15988         * config/rs6000/rs6000.h: Likewise.
15989         * config/score/score.h: Likewise.
15990         * config/spu/spu.h: Likewise.
15991         * config/v850/v850.h: Likewise.
15992         * defaults.h: Likewise.
15993         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
15994         * expr.c (emit_block_move): Adjust use of
15995         OUTGOING_REG_PARM_STACK_SPACE.
15996         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
15997         OUTGOING_REG_PARM_STACK_SPACE.
15998         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
16000 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
16002         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
16003         on OMP_RETURN for OMP_FOR.
16005         PR debug/35896
16006         * dwarf2out.c (dw_expand_expr, common_check): Removed.
16007         (fortran_common): New function.
16008         (gen_variable_die): Call fortran_common instead of common_check,
16009         adjust for it returning tree instead of rtx.  Formatting.
16011 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
16013         PR rtl/7335
16014         PR rtl/33826
16015         * see.c (see_copy_insn): Copy new pure const attributes for new call.
16016         * c-decl.c (merge_decls): Ditto.
16017         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
16018         to RTL_CONST_OR_PURE_CALL_P.
16019         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
16020         Initialized DECL_LOOPING_CONST_PURE.
16021         (process_call_operands): Set tree_side_effects properly.
16022         * tree.h (TREE_READONLY_DECL_P): Removed.
16023         (DECL_IS_PURE): Renamed to DECL_PURE_P.
16024         (DECL_LOOPING_OR_CONST_P): New macro.
16025         (struct tree_function_decl): Added looping_const_or_pure_p.
16026         (ECF_*) Renumbered.
16027         (ECF_LOOPING_OR_CONST_P): New macro.
16028         * rtlanal.c (pure_const_p): Removed.
16029         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
16030         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
16031         to RTL_CONST_CALL_P.
16032         * ipa-pure-const.c (pure_const_state_e): Added looping field.
16033         (check_decl, check_tree, check_call, scan_function): Initialize
16034         looping.
16035         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
16036         (static_execute): Set looping true for recursive functions.
16037         Undo setting state to IPA_NEITHER for recursive functions.
16038         * cse.c (cse_insn):
16039         * ifcvt.c (noce_can_store_speculate_p): Changed
16040         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
16041         RTL_CONST_OR_PURE_CALL_P.
16042         * dse.c (scan_insn): Ditto.
16043         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
16044         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
16045         RTL_CONST_OR_PURE_CALL_P.
16046         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
16047         pure_call_p to RTL_CONST_CALL_P.
16048         * gimplify.c (gimplify_call_expr): Clear side effects for
16049         non-looping pure and constant calls.
16050         * calls.c (emit_call_1): Set rtl flags from ecf flags.
16051         (flags_from_decl_or_type): Set ecf flags from decl flags.
16052         (initialize_argument_information): Turn off
16053         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
16054         Change const to pure if callee_copies is true rather than just
16055         turning off const.
16056         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
16057         way of marking pure calls.
16058         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
16059         Remove hack that was supposed to fix pr7335 and remove old
16060         way of marking pure calls.
16061         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
16062         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
16063         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
16064         RTL_CONST_OR_PURE_CALL_P.
16065         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
16066         * loop-invariant.c (find_exits, find_invariant_bb): Changed
16067         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
16068         * sched-deps.c (schedule_analyze): Ditto.
16069         * rtl.h (struct rtx_def): Use call field, unchanging field, and
16070         return_val field of calls to represent pure and const function info.
16071         (CONST_OR_PURE_CALL_P): Deleted macro.
16072         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
16073         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
16074         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
16075         TREE_READONLY.
16076         * tree-optimize.c (execute_fixup_cfg): Added test for
16077         ECF_LOOPING_CONST_OR_PURE.
16078         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
16079         DECL_PURE_P.
16080         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
16081         effects for looping pure or const calls.
16082         (verify_gimple_expr): Added verification code.
16083         * config/alpha/alpha.c (alpha_legitimize_address,
16084         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
16085         RTL_CONST_CALL_P.
16086         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
16087         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
16088         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
16089         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
16090         RTL_CONST_OR_PURE_CALL_P.
16091         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
16092         and const calls to be deleted.
16094 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
16096         PR target/35714
16097         * config/i386/mmx.md (mmx_subv2sf3): New expander.
16098         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
16099         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
16100         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
16101         to handle nonimmediate operands.
16102         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
16103         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
16104         to handle nonimmediate operands.
16105         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
16106         (mmx_pmulhrwv4hi3): New expander.  Use
16107         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16108         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
16109         (sse2_umulv1siv1di3): New expander.  Use
16110         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16111         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
16112         (mmx_eq<mode>3): New expander.  Use
16113         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16114         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
16115         (mmx_uavgv8qi3): New expander.  Use
16116         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16117         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
16118         (mmx_uavgv4hi3): New expander.  Use
16119         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16121         * config/i386/sse.md
16122         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
16123         to handle nonimmediate operands.
16124         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
16125         to handle nonimmediate operands.
16126         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
16127         to handle nonimmediate operands.
16128         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
16129         to handle nonimmediate operands.
16130         (sse2_unpckhpd_exp): New expander.  Use
16131         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16132         (sse2_unpcklpd_exp): New expander.  Use
16133         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16134         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
16135         to handle nonimmediate operands.
16136         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
16137         to handle nonimmediate operands.
16138         (*sse2_<plusminus_insn><mode>3): Rename from
16139         sse2_<plusminus_insn><mode>3 insn pattern.
16140         (sse2_<plusminus_insn><mode>3): New expander.  Use
16141         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16142         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
16143         (sse2_umulv2siv2di3): New expander.  Use
16144         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16145         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
16146         (sse4_1_mulv2siv2di3): New expander.  Use
16147         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16148         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
16149         (sse2_pmaddwd): New expander.  Use
16150         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16151         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
16152         (sse2_eq<mode>3): New expander.  Use
16153         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16154         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
16155         (sse4_1_eqv2di3): New expander.  Use
16156         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16157         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
16158         (sse2_uavgv16qi3): New expander.  Use
16159         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16160         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
16161         (sse2_uavgv16qi3): New expander.  Use
16162         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16163         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
16164         (sse2_uavgv8hi3): New expander.  Use
16165         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16166         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
16167         (ssse3_pmulhrswv8hi3): New expander.  Use
16168         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16169         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
16170         (ssse3_pmulhrswv4hi3): New expander.  Use
16171         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16173         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
16174         (<sse>_vmmul<mode>3): Ditto.
16175         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
16176         (divv2df3): Ditto.
16177         (ssse3_pmaddubsw128): Use register_operand for operand 1.
16178         (ssse3_pmaddubsw): Ditto.
16180         * config/i386/i386.c (struct_builtin_description)
16181         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
16182         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
16183         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
16184         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
16185         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
16186         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
16187         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
16188         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
16189         (ix86_fixup_binary_operands): Assert that src1
16190         and src2 must have the same mode when swapped.
16191         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
16192         and ix86_binary_operator_ok.  Do not force operands in registers
16193         when optimizing.
16195 2008-05-07  Jan Hubicka  <jh@suse.cz>
16197         * cgraph.c (dump_cgraph_node): Update.
16198         * cgraph.h (cgraph_local_info): Break out inline summary.
16199         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
16200         hook.
16201         * ipa-inline (inline_summary): New accestor function.
16202         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
16203         cgraph_decide_inlining, compute_inline_parameters): Update.
16204         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
16206 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
16208         Cleanup ColdFire scheduling support and add V4 pipeline model.
16210         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
16211         (define_attr cpu): Add cfv4 value.
16212         (define_attr type, define_attr type1): Merge into a single 'type'
16213         attribute.  Update all uses.
16214         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
16215         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
16216         Update all uses.
16217         (define_attr opx_mem, define_attr opy_mem): Remove.
16218         (define_attr op_mem): Clean up, update comment.
16219         (define_attr size): Use specific values instead of general int.
16220         (define_attr guess, define_attr split): Remove.  Update all uses.
16221         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
16222         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
16223         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
16224         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
16225         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
16226         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
16227         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
16228         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
16229         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
16230         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
16231         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
16232         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
16233         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
16234         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
16235         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
16236         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
16237         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
16238         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
16239         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
16240         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
16241         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
16242         Update or set attributes.
16243         (stack_tie): New fake instruction.
16245         * config/m68k/m68k.h (TUNE_CFV4): New macro.
16246         (m68k_sched_attr_size): Update declaration.
16247         (m68k_sched_attr_type2): Remove.
16248         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
16249         Declare new bypass predicates.
16251         * config/m68k/m68k.c (m68k_sched_issue_rate,
16252         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
16253         implementations.
16254         (TARGET_SCHED_ISSUE_RATE,
16255         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
16256         (override_options): Handle scheduling for ColdFire V4 core.
16257         (m68k_expand_prologue): Emit stack_tie.
16258         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
16259         'OP_TYPE_FPN'.  Update all uses.
16260         (sched_guess_p): Remove.
16261         (sched_address_type): Handle symbolic addresses.
16262         (sched_get_operand): New static function.
16263         (sched_operand_type): Merge into sched_attr_op_type.
16264         (sched_attr_op_type): Handle FP registers, handle quick constants,
16265         update.
16266         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
16267         (m68k_sched_attr_size): Update.  Move logic to ...
16268         (sched_get_attr_size_int): New static function.
16269         (sched_get_opxy_mem_type): New static function.
16270         (m68k_sched_attr_op_mem): Update.
16271         (m68k_sched_attr_type2): Remove.
16272         (sched_cfv4_bypass_data): New static variable.
16273         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
16274         (m68k_sched_issue_rate): Implement scheduler hook.
16275         (struct _sched_ib: enabled_p): New field.
16276         (m68k_sched_variable_issue): Update.  Handle V4.
16277         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
16278         sched_dump_class_func_t, sched_dump_split_class,
16279         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
16280         sched_dump_dfa_class, m68k_sched_dump): Remove.
16281         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
16282         hook.
16283         (m68k_sched_init_global): Remove statisctics dumping, introduce
16284         sanity check that all instructions have pipeline reservations.  Handle
16285         ColdFire V4 core.
16286         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
16287         Handle ColdFire V4 core.
16288         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
16289         New static functions.
16290         (m68k_sched_address_bypass_p): New bypass predicate.
16291         (sched_get_indexed_address_scale): New static function.
16292         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
16294         * cf.md: Update comments.
16295         (define_attr type2): Remove.  Use 'type' attribute instead.
16296         Update all uses.
16297         (cf_ib): Rename to cfv123_ib.  Update all uses.
16298         (cf_oep): Rename to cfv123_oep.  Update all uses.
16299         (cf_chr): Rename to cfv123_chr.  Update all uses.
16300         (cf_mem): Rename to cfv123_mem.  Update all uses.
16301         (cf_mac): Move to more appropriate place.
16302         (cfv123_guess): New automaton and cpu_unit.
16303         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
16304         Update uses of 'size' attribute.  Handle before reload scheduling.
16305         (cfv123_guess): New dummy reservation for unhandled instructions.
16306         (cfv4_*): Pipeline description of ColdFire V4 core.
16307         (ignore): New reservation to handle 'ignore' type.
16309 2008-05-07  Ian Lance Taylor  <iant@google.com>
16311         PR middle-end/36013
16312         * gimplify.c (find_single_pointer_decl_1): Don't look through
16313         indirections.
16314         (find_single_pointer_decl): Adjust comments.
16316 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
16318         PR middle-end/36137
16319         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
16320         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
16322         PR middle-end/36106
16323         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
16324         integral type rather than floating point, then VIEW_CONVERT_EXPR
16325         to the floating point type.
16327 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
16329         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
16330         TFmode op0 to register.
16332 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
16334         * c-decl.c (grokdeclarator): Comment typo.
16336 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
16338         * tree-flow.h: Remove prototype for computed_goto_p.
16339         * tree-cfg.c (computed_goto_p): Make static.
16341 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
16343         PR target/35657
16344         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
16345         (contains_aligned_value_p): This.  Handle _Decimal128.
16346         (ix86_function_arg_boundary): Only align _Decimal128 to its
16347         natural boundary and handle it properly.
16349 2008-05-06  Martin Jambor  <mjambor@suse.cz>
16351         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
16352         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
16353         (ipcp_method_set_orig_node): Removed.
16354         (ipcp_cval_get_cvalue_type): Removed.
16355         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
16356         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
16357         (ipcp_cval_set_cvalue_type): Removed.
16358         (ipcp_cval_get_cvalue): Removed.
16359         (ipcp_cval_set_cvalue): Removed.
16360         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
16361         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
16362         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
16363         (ipcp_cval_meet): Renamed to ipa_lattice_meet
16364         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
16365         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
16366         (ipcp_get_ith_lattice): Changed parameters.
16367         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
16368         (ipcp_lattice_from_jfunc): Changed parameters.
16369         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
16370         (ipcp_method_cval_print): Added temporary variable info.
16371         (ipcp_redirect): Removed already unused local variable caller.
16372         (ipcp_redirect): New temporary variable orig_callee_info
16373         (ipcp_redirect): Removed newly unused local variable callee.
16374         (ipcp_redirect): Removed (a bit confusing) local variable type.
16375         (ipcp_insert_stage): Added local variable info.
16376         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
16377         renamed too
16378         (ipcp_formal_create): Removed.
16379         (ipcp_method_cval_set): Removed.
16380         (ipcp_propagate_stage): Renamed lattice variables.
16381         (ipcp_method_cval_set_cvalue_type): Removed.
16382         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
16383         (ipcp_print_all_lattices): Changed printed strings to refer to
16384         lattices rather than cvals.
16385         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
16386         (ipcp_propagate_const): Changed formal parameters.
16387         (build_const_val): Changed formal parameters.
16388         (ipcp_insert_stage): Removed useless variable cvalue
16389         (build_const_val): Changed formal parameters.
16390         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
16391         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
16392         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
16393         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
16394         (ipcp_print_func_profile_counts): Changed string from "method" to
16395         "function"
16396         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
16397         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
16398         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
16399         (ipcp_structures_print): Renamed to ipcp_print_all_structures
16400         (ipcp_profile_print): Renamed to ipcp_print_profile_data
16401         (ipcp_lat_is_const): Changed parameters and made inline.
16402         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
16403         (ipcp_redirect): Renamed to ipcp_need_redirect_p
16404         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
16405         the predicate condition directly
16406         (ipcp_propagate_stage): Added local variable args. Removed local
16407         variable callee.  (Both are mere code simplifications.)
16408         (ipcp_method_dont_insert_const): Renamed to
16409         ipcp_node_not_modifiable_p.
16410         (ipcp_node_not_modifiable_p): Made inline.
16411         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
16412         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
16413         (ipcp_print_all_lattices): Removed variable cvalue
16414         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
16415         Updated comments.
16417 2008-05-06  Olivier Hainque  <hainque@adacore.com>
16419         * tree-sra.c (try_instantiate_multiple_fields): Early return
16420         if field has POINTER_TYPE.
16422 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
16424         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
16425         by using 'q' specifier for instruction.
16426         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
16428 2008-05-06  Anatoly Sokolov <aesok@post.ru>
16430         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
16431         Change mode of zero_extract from QImode to HImode.
16432         (sign bit tests peepholes): (Ditto.).
16434 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
16436         * config/i386/mmx.md: Remove double backslashes from asm templates.
16437         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
16438         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
16439         to handle nonimmediate operands.
16440         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
16441         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
16442         to handle nonimmediate operands.
16443         (*mmx_<code>v2sf3_finite): New insn pattern.
16444         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
16445         (mmx_<code>v2sf3): New expander.  Use
16446         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16447         (mmx_<plusminus_insn><mode>3): New expander.  Use
16448         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16449         (*mmx_<plusminus_insn><mode>3): New insn pattern.
16450         (mmx_add<mode>3): Removed.
16451         (mmx_ssadd<mode>3): Ditto.
16452         (mmx_usadd<mode>3): Ditto.
16453         (mmx_sub<mode>3): Ditto.
16454         (mmx_sssub<mode>3): Ditto.
16455         (mmx_ussub<mode>3): Ditto.
16456         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
16457         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
16458         to handle nonimmediate operands.
16459         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
16460         insn pattern.
16461         (mmx_smulv4hi3_highpart): New expander.  Use
16462         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16463         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
16464         insn pattern.
16465         (mmx_umulv4hi3_highpart): New expander.  Use
16466         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16467         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
16468         (mmx_<code>v4hi3): New expander.  Use
16469         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16470         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
16471         (mmx_<code>v8qi3): New expander.  Use
16472         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16473         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
16474         (mmx_<code><mode>3): New expander.  Use
16475         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
16477 2008-05-05  Jan Hubicka  <jh@suse.cz>
16479         PR tree-optimization/36118
16480         * passes.c (pass_init_dump_file): Fix dump header.
16482 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16484         PR middle-end/36141
16485         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
16486         VCE for function decls.
16488 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
16490         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
16492 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
16494         * config/i386/i386.md (sat_plusminus): New.
16495         (plusminus_insn): Likewise.
16496         (plusminus_mnemonic): Likewise.
16497         (addsub): Removed.
16498         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
16499         (*<addsub><mode>3_cc_overflow): Renamed to ...
16500         (*<plusminus_insn><mode>3_cc_overflow): This.
16501         (*<addsub>si3_zext_cc_overflow): Renamed to ...
16502         (*<plusminus_insn>si3_zext_cc_overflow): This.
16504         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
16505         (<plusminus_insn><mode>3): This.
16506         (*<addsub><mode>3): Renamed to ...
16507         (*<plusminus_insn><mode>3): This.
16508         (<sse>_vm<addsub><mode>3): Renamed to ...
16509         (<sse>_vm<plusminus_insn><mode>3): This.
16510         (sse3_h<addsub>v4sf3): Renamed to ...
16511         (sse3_h<plusminus_insn>v4sf3): This.
16512         (sse3_h<addsub>v2df3): Renamed to ...
16513         (sse3_h<plusminus_insn>v2df3): This.
16514         (<plusminus_insn><mode>3): New.
16515         (*<plusminus_insn><mode>3): Likewise.
16516         (sse2_<plusminus_insn><mode>3): Likewise.
16517         (add<mode>): Removed.
16518         (*add<mode>3): Likewise.
16519         (sse2_ssadd<mode>3): Likewise.
16520         (sse2_usadd<mode>3): Likewise.
16521         (sub<mode>3): Likewise.
16522         (*sub<mode>3): Likewise.
16523         (sse2_sssub<mode>3): Likewise.
16524         (sse2_ussub<mode>3): Likewise.
16526 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
16528         * gthr-single.h: Add in required interface elements as per gthr.h.
16529         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
16530         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
16531         Generalize UNUSED macro.
16532         (__gthread_once): Add.
16533         (__gthread_key_create): Add.
16534         (__gthread_key_delete): Add.
16535         (__gthread_getspecific): Add.
16536         (__gthread_setspecific): Add.
16538 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
16540         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
16541         the same size types for the indirect reference on the rhs, then
16542         create a VCE.
16544 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
16546         * config/i386/i386.md
16547         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
16548         one insn template instead of template series.
16549         (*xordi_1_rex64): Ditto.
16550         (*xordi_2_rex64): Ditto.
16552 2008-05-05  Ira Rosen  <irar@il.ibm.com>
16554         PR tree-optimization/36119
16555         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
16556         in case of SLP.
16558 2008-06-04  Jan Hubicka  <jh@suse.cz>
16560         tree-optimization/36100
16561         * tree-pass.h (pass_O0_always_inline): Declare.
16562         * ipa-inline.c (inline_transform): Remove dead code.
16563         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
16564         pass_O0_always_inline): New.
16565         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
16567 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
16569         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
16570         mnemonic in this_param move for TARGET_64BIT.
16572 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
16574         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
16575         (*strmovsi_rex_1): Ditto.
16576         (*strsetsi_1): Ditto.
16577         (*strsetsi_rex_1): Ditto.
16579         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
16580         adddicc expanders using SWI mode iterator.
16582 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
16584         PR target/36121
16585         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
16586         argument handling.
16588 2008-05-04  David S. Miller  <davem@davemloft.net>
16590         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
16591         (sparc*-*-linux*): Use linux.h in tm_file.
16592         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
16593         compiler defaulting to 32-bit.
16594         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
16595         no longer needed.
16596         * config/sparc/linux.h: Remove definitions now obtained
16597         properly from linux.h
16598         * config/sparc/linux64.h: Likewise.
16599         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
16600         don't want this setting for 32-bit builds in a biarch compiler.
16601         * doc/install.texi: Add sparc-linux to list of targets
16602         supporting --enable-targets=all.
16604 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
16606         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
16608 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
16610         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
16611         after V4SI_FTYPE_V8HI.
16612         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
16613         case V4SI_FTYPE_V2DF.
16615 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
16617         * doc/invoke.texi (max-flow-memory-locations): Removed.
16618         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
16620 2008-05-03  Richard Guenther  <rguenther@suse.de>
16622         PR middle-end/34973
16623         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
16625 2008-05-02  David S. Miller  <davem@davemloft.net>
16627         * config.gcc (need_64bit_hwint): Document libcpp dependency.
16629 2008-05-02  Simon Baldwin <simonb@google.com>
16631         PR bootstrap/36108
16632         * c-common.h (warn_array_subscript_range): Removed.
16633         * c-common.c (warn_array_subscript_range): Ditto.
16634         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
16635         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
16637 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
16639         * config/i386/i386.c (ix86_special_builtin_type): New.
16640         (bdesc_special_args): Likewise.
16641         (ix86_expand_special_args_builtin): Likewise.
16642         (ix86_init_mmx_sse_builtins): Updated.
16643         (ix86_expand_builtin): Updated.
16644         (ix86_expand_store_builtin): Removed.
16645         (ix86_expand_unop_builtin): Likewise.
16647         * config/i386/mm3dnow.h (__v2sf): Moved to ...
16648         * config/i386/mmintrin.h (__v2sf): Here.
16650         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
16651         const __v2sf.
16652         (_mm_loadl_pi): Likewise.
16653         (_mm_storeh_pi): Replace __v2si with __v2sf.
16654         (_mm_storel_pi): Likewise.
16656         * doc/extend.texi: Correct __builtin_ia32_loadhps,
16657         __builtin_ia32_loadlps, __builtin_ia32_storehps,
16658         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
16659         __builtin_ia32_loadlpd.
16661 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
16663         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
16664         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
16665         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
16666         (ix86_init_mmx_sse_builtins): Updated.
16667         (ix86_expand_args_builtin): Likewise.
16668         (ix86_expand_builtin): Likewise.
16669         (ix86_expand_unop1_builtin): Renamed to ...
16670         (ix86_expand_unop_vec_merge_builtin): This.
16672 2008-05-01  Jan Hubicka  <jh@suse.cz>
16674         PR bootstrap/36100
16675         * ipa-inline.c (inline_generate_summary): Make static.
16676         (inline_transform): Do not call inlining at -O0; make static.
16677         * passes.c (execute_todo): Add sanity check.
16678         (execute_one_ipa_transform_pass): Execute proper flags.
16680 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
16682         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
16683         (DECL_NONADDRESSABLE_P): Likewise.
16684         * alias.c (record_component_aliases): Fix comment.
16686 2008-05-01  Simon Baldwin <simonb@google.com>
16688         * c-common.h (warn_array_subscript_range): New function.
16689         * c-common.c (warn_array_subscript_range): Ditto.
16690         * tree-vrp.c (check_array_ref): Corrected code to agree with
16691         comment, ignoring only arrays of size 0 or size 1.
16692         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
16694 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
16696         * config/i386/i386.c (ix86_builtin_type): Replace
16697         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
16698         (bdesc_args): Updated.
16699         (ix86_init_mmx_sse_builtins): Likewise.
16700         (ix86_expand_args_builtin): Likewise.
16702         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
16703         with __v1di.
16705         * doc/extend.texi: Correct __builtin_ia32_palignr.
16707 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
16709         PR target/36095
16710         * config/i386/i386.c (bdesc_crc32): Removed.
16711         (ix86_expand_crc32): Likewise.
16712         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
16713         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
16714         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
16715         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
16716         UINT_FTYPE_UINT_UCHAR.
16717         (bdesc_args): Updated. Add crc32 builtins.
16718         (ix86_init_mmx_sse_builtins): Updated.
16719         (ix86_expand_args_builtin): Updated to support subreg.
16721         * doc/extend.texi: Correct __builtin_ia32_crc32di.
16723 2008-05-01  Jan Hubicka  <jh@suse.cz>
16725         * tree-pass.h (opt_pass): Add IPA_PASS.
16726         (varpool_node, cgraph_node): Forward declare.
16727         (ipa_opt_pass): Define.
16728         (pass_ipa_inline): Turn into ipa_opt_pass.
16729         (pass_apply_inline): Remove.
16730         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
16731         (apply_inline): Turn into ....
16732         (inline_transform): ... this one.
16733         (inline_generate_summary): New function.
16734         (pass_apply_inline): Remove.
16735         * function.h (ipa_opt_pass): Forward declare structure; typedef;
16736         vector.
16737         (struct function): Add ipa_transforms_to_apply.
16738         * passes.c (register_one_dump_file): Work on IPA_PASS.
16739         (init_optimization_passes): Remove pass_inline_parameters and
16740         pass_apply_inline.
16741         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
16742         (execute_one_pass) ... here; apply transforms when possible.
16743         (add_ipa_transform_pass, execute_ipa_summary_asses,
16744         execute_one_ipa_transform_pass): New.
16745         (execute_ipa_pass_list): Update for IPA_PASS type.
16747 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
16749         * config/i386/i386.c (ix86_builtin_type): Add
16750         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
16751         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
16752         (bdesc_args): Add SSE4a builtins.
16753         (ix86_init_mmx_sse_builtins): Updated.
16754         (ix86_expand_args_builtin): Likewise.
16755         (ix86_expand_builtin): Likewise.
16757 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
16759         * config/i386/i386.c (ix86_builtin_type): Add
16760         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
16761         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
16762         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
16763         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
16764         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
16765         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
16766         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
16767         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
16768         and DI_FTYPE_DI_DI_INT.
16769         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
16770         (ix86_init_mmx_sse_builtins): Updated.
16771         (ix86_expand_args_builtin): Likewise.
16772         (ix86_expand_builtin): Likewise.
16773         (ix86_expand_binop_imm_builtin): Removed.
16775         * doc/extend.texi: Correct __builtin_ia32_palignr128.
16777 2008-04-30  Richard Guenther  <rguenther@suse.de>
16779         PR tree-optimization/32921
16780         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
16782 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
16784         * config/arm/arm.c (arm_unwind_emit): Use
16785         crtl->all_throwers_are_sibcalls instead of
16786         cfun->all_throwers_are_sibcalls.
16787         (arm_output_fn_unwind): Likewise.
16788         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
16789         instead of cfun->uses_pic_offset_table.
16790         (frv_expand_prologue): Likewise.
16791         (frv_frame_pointer_required): Likewise.
16792         (frv_expand_fdpic_call): Likewise.
16793         (frv_emit_movsi): Likewise.
16794         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
16795         cfun->returns_pcc_struct instead of
16796         current_function_returns_pcc_struct.
16797         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
16798         instead of cfun->calls_eh_return.
16799         (m32c_pushm_popm): Likewise.
16800         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
16801         "extern" declaration.
16803 2008-04-30  Richard Guenther  <rguenther@suse.de>
16805         PR tree-optimization/21636
16806         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
16807         constant address.
16808         (evaluate_stmt): Print the likely value.
16809         (ccp_visit_stmt): Avoid excessive vertical spacing.
16811 2008-04-30  Rafael Espindola  <espindola@google.com>
16813         * builtins.c (fold_call_expr): Return realret.
16814         * tree-ssa-threadedge.c
16815         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
16816         __builtin_object_size.
16818 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
16820         * gcc.c (wrapper_string): New variable.
16821         (insert_wrapper): New function.
16822         (execute): New option -wrapper.
16823         * doc/invoke.texi (Overall Options): New driver option -wrapper.
16825 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
16827         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
16828         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
16829         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
16830         from...
16831         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
16832         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
16833         config/rs6000/e500crtres64gprctr.asm,
16834         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
16835         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
16836         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
16837         config/rs6000/e500crtsav64gprctr.asm,
16838         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
16839         config/rs6000/e500crtsavg64gprctr.asm: New files.
16840         * config/rs6000/t-ppccomm: Add build rules for new files.
16841         (LIB2FUNCS_STATIC_EXTRA): Add new files.
16842         * config/rs6000/t-netbsd: Add build rules for new files.
16843         (LIB2FUNCS_STATIC_EXTRA): New variable.
16844         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
16845         (CRTSAVRES_DEFAULT_SPEC): Likewise.
16846         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
16848 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
16850         * config/i386/i386.c (ix86_builtin_type): Add
16851         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
16852         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
16853         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
16854         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
16855         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
16856         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
16857         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
16858         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
16859         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
16860         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
16861         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
16862         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
16863         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
16864         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
16865         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
16866         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
16867         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
16868         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
16869         V1DI_FTYPE_V2SI_V2SI.
16870         (bdesc_2arg): Moved to ...
16871         (bdesc_args): Here.
16872         (ix86_init_mmx_sse_builtins): Updated.
16873         (ix86_expand_args_builtin): Updated.  Take a pointer
16874         to const struct builtin_description.  Handle comparison
16875         builtin functions.
16876         (ix86_expand_sse_compare): Take a new argument for swapping operands.
16877         (ix86_expand_builtin): Updated.
16879         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
16880         (ssse3_pmaddubsw128): This.
16881         (ssse3_pmaddubswv4hi3): Renamed to ...
16882         (ssse3_pmaddubsw): This.
16884         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
16885         (__builtin_ia32_packssdw128): Likewise.
16886         (__builtin_ia32_packuswb128): Likewise.
16887         (__builtin_ia32_pmaddubsw): Likewise.
16888         (__builtin_ia32_pmaddubsw128): Likewise.
16890 2008-04-30  Richard Guenther  <rguenther@suse.de>
16892         PR tree-optimization/14847
16893         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
16894         (recognize_bits_test): Use it.
16895         (recognize_single_bit_test): Likewise.
16897 2008-04-30  Martin Jambor  <mjambor@suse.cz>
16899         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
16900         instead of setting number of formal parameters to zero.
16901         (ipcp_init_stage): Do not set the number of actual parameters to zero
16902         either.
16903         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
16904         which are called with variable number of arguments.
16905         (ipcp_insert_stage): Explicitely skipping all nodes which are
16906         called with variable number of arguments.
16907         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
16908         number of parameters.
16910         * ipa-prop.h (struct ipa_node_params): Added flag
16911         called_with_var_arguments
16912         (ipa_set_param_count): Added.  Changed sole setter to use it.
16913         (ipa_get_param_count): Added.  All readers of param_count
16914         converted to use it instead.
16915         (ipa_set_called_with_variable_arg): Added.
16916         (ipa_is_called_with_var_arguments): Added.
16917         (ipa_get_ith_param): Added.  All readers of param_decls converted
16918         to use it instead.
16919         (ipa_set_cs_argument_count): Added, sole writer to argument_count
16920         changed to use it.
16921         (ipa_get_cs_argument_count): Added, all readers of argument_count
16922         changed to cal it.
16923         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
16924         to use it.
16926         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
16927         (struct ipcp_lattice): Renamed cval_type to type
16928         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
16930         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
16931         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
16932         (ipcp_insert_stage): Changed the type of variable cvalue to tree
16933         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
16934         (build_const_val): Changed the type of parameter cvalue to tree
16935         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
16936         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
16938         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
16939         constant
16941         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
16942         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
16943         (ipa_add_method): Renamed to ipa_push_func_to_list
16944         (ipa_remove_method): Renamed to ipa_pop_func_from_list
16945         (ipa_callsite_param_count): Removed.
16946         (ipa_callsite_param_count_set): Removed.
16947         (ipa_callsite_param): Removed.
16948         (ipa_callsite_callee): Removed.
16949         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
16950         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
16951         (ipa_method_formal_count): Removed.
16952         (ipa_method_formal_count_set): Removed.
16953         (ipa_method_get_tree): Removed.
16954         (ipa_method_tree_map_create): Removed.
16955         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
16956         (ipa_create_param_decls_array): Creates the array itself
16957         (ipa_create_param_decls_array): Temporary variable info instead of
16958         a few dereferences.
16959         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
16960         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
16961         (get_type): Removed.
16962         (ipa_jf_get_info_type): Removed.
16963         (ipa_node_create): Renamed to ipa_create_node_params
16964         (ipa_free): Renamed to ipa_free_all_node_params
16965         (ipa_nodes_create): Renamed to ipa_create_all_node_params
16966         (ipa_edges_create): Renamed to ipa_create_all_edge_args
16967         (ipa_edges_free): Renamed to ipa_free_all_edge_args
16968         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
16969         (ipa_free_all_node_params): Deallocation to jump_functions moved to
16970         ipa_free_all_edge_args
16971         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
16972         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
16973         (ipa_create_methodlist_node): Removed.
16974         (ipa_methodlist_method): Removed.
16975         (ipa_methodlist_method_set): Removed.
16976         (ipa_methodlist_next_method): Removed.
16977         (ipa_methodlist_next_method_set): Removed.
16978         (ipa_method_is_modified): Removed.
16979         (ipa_method_modify_create): Removed.
16980         (ipa_method_modify_init): Temporary variable info instead of a few
16981         dereferences.
16982         (ipa_detect_param_modifications): Temporary variable info instead of
16983         a few dereferences.
16984         (ipa_compute_jump_functions): Temporary variable info instead of
16985         a few dereferences.
16986         (ipa_method_modify_set): Removed.
16987         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
16988         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
16989         than craph_node as the first parameter.
16990         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
16991         (ipa_method_modify_init): Removed.
16992         (ipa_compute_jump_functions): Added a temp variable instead of
16993         repeatadly dereferencing the cgraph_edge.aux pointer
16994         (ipa_callsite_param_set_type): Removed.
16995         (ipa_compute_jump_functions): i renamed to index and moved to
16996         an inner block
16997         (ipa_callsite_param_set_info_type_formal): Removed.
16998         (ipa_callsite_param_set_info_type): Removed.
16999         (ipa_callsite_param_map_create): Removed.
17000         (ipa_callsite_tree): Removed.
17001         (ipa_callsite_caller): Removed.
17002         (ipa_pop_func_from_list): return_method removed to return_func
17004         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
17005         prefixed all values with IPA_. Changed all users.
17006         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
17007         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
17008         and FORMAL_IPATYPE IPA_PASS_THROUGH.
17009         (union parameter_info): Renamed to jump_func_value.
17010         (union jump_func_value): Renamed value to constant
17011         (struct ipa_jump_func): Renamed info_type to value
17012         (struct ipa_node): Renamed to ipa_node_params
17013         (struct ipa_node_params): Renamed ipa_arg_num to param_count
17014         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
17015         (struct ipa_node_params): Renamed ipa_mod to modified_flags
17016         (struct ipa_edge): Renamed to ipa_edge_args
17017         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
17018         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
17019         (struct ipa_methodlist): Renamed to ipa_func_list
17020         (struct ipa_func_list): method_p renamed to node, next_method
17021         renamed to next
17022         (ipa_methodlist_p): Removed, switched all users to struct pointer
17023         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
17025 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
17027         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
17028         (rs6000_emit_epilogue): Use backchain to restore only when we
17029         have a large frame.  Make use of frame pointer to restore if we
17030         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
17032 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
17034         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
17035         Add mode to zero_extract.
17036         (sign bit tests peepholes): (Ditto.).
17038 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
17040         * config/i386/i386.c (ix86_builtins): Replace Prescott New
17041         Instructions in comments with SSE3.
17042         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
17043         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
17044         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
17045         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
17046         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
17047         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
17048         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
17049         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
17050         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
17051         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
17052         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
17053         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
17054         (bdesc_sse_args): Renamed to ...
17055         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
17056         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
17057         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
17058         IX86_BUILTIN_FABSQ.
17059         (bdesc_1arg): Moved to ...
17060         (bdesc_args): Here.
17061         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
17062         Instructions in comments with SSE3.
17063         (ix86_expand_sse_operands_builtin): Renamed to ...
17064         (ix86_expand_args_builtin): This.  Updated.
17065         (ix86_expand_unop1_builtin): Update comments.
17066         (ix86_expand_builtin): Updated.
17068 2008-04-29  Richard Guenther  <rguenther@suse.de>
17070         PR tree-optimization/36078
17071         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
17072         Update virtual SSA form after cleaning up the CFG.
17074 2008-04-29  Richard Guenther  <rguenther@suse.de>
17076         PR middle-end/15255
17077         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
17079 2008-04-29  Richard Guenther  <rguenther@suse.de>
17081         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
17082         (compute_may_aliases): Do not call finalize_ref_all_pointers.
17083         (compute_flow_insensitive_aliasing): Do not treat
17084         PTR_IS_REF_ALL pointers special.
17085         (get_smt_for): Likewise.
17086         (may_alias_p): Re-structure.
17087         (is_escape_site): A ref-all pointer conversion is not an escape site.
17088         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
17089         PTR_IS_REF_ALL pointers special.
17090         * tree-ssa-structalias.h (struct alias_info): Remove
17091         ref_all_symbol_mem_tag field.
17092         (PTR_IS_REF_ALL): Remove.
17094 2008-04-29  Richard Guenther  <rguenther@suse.de>
17096         PR middle-end/36077
17097         * fold-const.c (extract_muldiv_1): In combining division constants
17098         make sure to never overflow.
17100 2008-04-29  Nick Clifton  <nickc@redhat.com>
17102         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
17104 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17106         PR bootstrap/35169
17107         * optc-gen.awk: Work around HP-UX/IA awk bug.
17109 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
17111         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
17112         2008-04-25 commit.
17114 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
17116         PR target/36073
17117         * config/i386/i386.md
17118         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
17119         Change operand 1 predicate to nonimmediate_operand.
17121 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
17123         PR debug/36060
17124         * dwarf2out.c (struct die_struct): Mark as chain_circular through
17125         die_sub field.
17126         * gengtype.c (walk_type, write_func_for_structure): Handle
17127         chain_circular.
17128         * doc/gty.texi: Document chain_circular.
17130 2008-04-28  Richard Guenther  <rguenther@suse.de>
17132         PR tree-optimization/36066
17133         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
17134         SCEV and loop.
17136 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
17138         PR target/36064
17139         * config/i386/i386.md
17140         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
17141         Use match_scratch instead of match_operand for operands 3 and 4.
17143 2008-04-27  Richard Guenther  <rguenther@suse.de>
17145         PR tree-optimization/18754
17146         PR tree-optimization/34223
17147         * tree-pass.h (pass_complete_unrolli): Declare.
17148         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
17149         loop size before and after unconditionally of UL_NO_GROWTH in effect.
17150         Rewrite loop into loop closed SSA form if it is not already.
17151         (tree_unroll_loops_completely): Re-structure to iterate over
17152         innermost loops with intermediate CFG cleanups.
17153         Unroll outermost loops only if requested or the code does not grow
17154         doing so.
17155         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
17156         loops are available.
17157         (tree_vectorize): Instead do so here.
17158         (tree_complete_unroll): Also unroll outermost loops.
17159         (tree_complete_unroll_inner): New function.
17160         (gate_tree_complete_unroll_inner): Likewise.
17161         (pass_complete_unrolli): New pass.
17162         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
17163         uses outside of the loop.
17164         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
17165         form if it is available.
17166         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
17167         * passes.c (init_optimization_passes): Schedule complete inner
17168         loop unrolling pass before the first CCP pass after final inlining.
17170 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
17172         * targhooks.h (default_emutls_var_fields,
17173         default_emutls_var_init): Declare.
17174         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
17175         * target.h (struct gcc_target): Add struct emutls member.
17176         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
17177         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
17178         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
17179         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
17180         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
17181         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
17182         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
17183         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
17184         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
17185         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
17186         emit debug information.
17187         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
17188         * varasm.c: Include targhooks.h.
17189         (emutls_object_section, emutls_tmpl_section): New.
17190         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
17191         (EMUTLS_SEPARATOR): New.
17192         (prefix_name): New.
17193         (get_emutls_object_name): New.
17194         (default_emutls_var_fields): New, broken out of ...
17195         (get_emutls_object_type): ... here.  Adjust to use target hooks.
17196         (get_emutls_init_templ_addr): Adjust to use target hooks.
17197         (emutls_decl): Adjust to use target hooks.
17198         (emutls_finish): Likewise.
17199         (default_emutls_var_init): New, broken out of ...
17200         (assemble_variable): ... here.  Adjust to use target hooks.
17201         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
17202         SECCAT_EMUTLS_TMPL.
17203         * c-common.c (handle_section_attribute): Prevent overriding
17204         sections for emulated tls with special sections.
17205         * config/i386/i386.c (x86_64_elf_select_section): Add
17206         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
17207         (x86_64_elf_unique_section): Likewise.
17208         * config/vxworks.c: Include tree.h.
17209         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
17210         (vxworks_override_options): Set TLS scheme.
17211         * doc/tm.texi (Emulated TLS): New node.
17213 2008-04-26  Simon Baldwin <simonb@google.com>
17215         PR c/35652
17216         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
17217         with propagated string constants.
17219 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
17221         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
17222         constraint for operand 2 when operand 0 is memory operand.
17223         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
17224         operand 0 is memory operand.
17225         (fix_trunc<mode>_i387_with_temp): Ditto.
17226         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
17227         operand 2 when operand 1 is memory operand.
17228         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
17229         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
17230         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
17231         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
17232         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
17233         operands 2,3 and 4 when operand 1 is memory operand.
17234         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
17235         is memory operand.
17236         (fistdi2_floor_with_temp): Ditto.
17237         (fist<mode>2_floor_with_temp): Ditto.
17238         (fistdi2_ceil_with_temp): Ditto.
17239         (fist<mode>2_ceil_with_temp): Ditto.
17240         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
17242 2008-04-26  David Daney  <ddaney@avtrex.com>
17244         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
17245         unspec_volitile.
17246         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
17247         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
17248         UNSPEC_UPDATE_GOT_VERSION): Renumber.
17249         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
17250         (compare_and_swap_12): New insn.
17251         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
17252         * config/mips/mips.c (mips_force_binary): New function.
17253         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
17254         (mips_expand_compare_and_swap_12): New function.
17255         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
17257 2008-04-25  Jan Hubicka  <jh@suse.cz>
17259         PR testsuite/35843
17260         * cfgexpand.c (pass_expand): Turn into RTL pass.
17261         * passes.c (execute_one_pass): Do pass typechecking after execution.
17262         * tree-pass.h (pass_expand): Turn into RTL pass.
17264         * function.h (struct rtl_data): Move here fields
17265         accesses_prior_frames, calls_eh_return, saves_all_registers,
17266         has_nonlocal_goto, has_asm_statement, is_thunk,
17267         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
17268         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
17269         arg_pointer_save_area_init from struct function; turn into bool.
17270         (struct function): Move
17271         calls_eh_return, saves_all_registers, has_nonlocal_goto,
17272         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
17273         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
17274         tail_call_emit, arg_pointer_save_area_init
17275         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
17276         (current_function_returns_struct, current_function_returns_pcc_struct,
17277         current_function_calls_setjmp, current_function_calls_alloca,
17278         current_function_accesses_prior_frames,
17279         current_function_calls_eh_return, current_function_is_thunk,
17280         current_function_stdarg, current_function_profile,
17281         current_function_limit_stack, current_function_uses_pic_offset_table,
17282         current_function_uses_const_pool, current_function_has_nonlocal_label,
17283         current_function_saves_all_registers,
17284         current_function_has_nonlocal_goto,
17285         current_function_has_asm_statement): Remove accesor macros.
17286         * ra-conflict.c (global_conflicts): Update.
17287         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
17288         (suitable_for_tail_call_opt_p): Update.
17289         * builtins.c (expand_builtin_return_addr): Update.
17290         (expand_builtin_setjmp_setup): Update.
17291         (expand_builtin_nonlocal_goto): Update.
17292         * final.c (final_start_function): Update.
17293         (profile_function): Update.
17294         (leaf_function_p): Update.
17295         (only_leaf_regs_used): Update.
17296         * df-scan.c (df_get_exit_block_use_set): Update.
17297         * dojump.c (clear_pending_stack_adjust): Update.
17298         * tree-stdarg.c (gate_optimize_stdarg): Update.
17299         * gimple-low.c (lower_function_body): Update.
17300         * global.c (compute_regsets): Update.
17301         (global_alloc): Update.
17302         * dwarf2out.c (dwarf2out_begin_prologue): Update.
17303         * expr.c (expand_assignment): Update.
17304         * dse.c (dse_step0): Update.
17305         (dse_step1): Update.
17306         * c-decl.c (store_parm_decls): Update.
17307         * local-alloc.c (combine_regs): Update.
17308         (find_free_reg): Update.
17309         * function.c (assign_parms_augmented_arg_list): Update.
17310         (assign_parm_find_data_types): Update.
17311         (assign_parms): Update.
17312         (allocate_struct_function): Update.
17313         (expand_function_start): Update.
17314         (expand_function_end): Update.
17315         (get_arg_pointer_save_area): Update.
17316         (thread_prologue_and_epilogue_insns): Update.
17317         (rest_of_match_asm_constraints): Update.
17318         * stor-layout.c (variable_size): Update.
17319         * gcse.c (gcse_main): Update.
17320         (bypass_jumps): Update.
17321         * gimplify.c (gimplify_function_tree): Update.
17322         * calls.c (emit_call_1): Update.
17323         (expand_call): Update.
17324         * bt-load.c (compute_defs_uses_and_gen): Update.
17325         * except.c (sjlj_assign_call_site_values): Update.
17326         (sjlj_emit_function_enter): Update.
17327         (can_throw_external): Update.
17328         (set_nothrow_function_flags): Update.
17329         (expand_builtin_unwind_init): Update.
17330         (expand_eh_return): Update.
17331         (convert_to_eh_region_ranges): Update.
17332         (output_function_exception_table): Update.
17333         * emit-rtl.c (gen_tmp_stack_mem): Update.
17334         * cfgexpand.c (expand_used_vars): Update.
17335         (tree_expand_cfg): Update.
17336         * cfgcleanup.c (rest_of_handle_jump): Update.
17337         * explow.c (allocate_dynamic_stack_space): Update.
17338         * varasm.c (assemble_start_function): Update.
17339         (force_const_mem): Update.
17340         (mark_constant_pool): Update.
17341         * tree-optimize.c (tree_rest_of_compilation): Update.
17342         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
17343         * tree-cfg.c (notice_special_calls): Update.
17344         (is_ctrl_altering_stmt): Update.
17345         (tree_can_make_abnormal_goto): Update.
17346         (tree_purge_dead_abnormal_call_edges): Update.
17347         * config/alpha/predicates.md: Update.
17348         * config/alpha/alpha.c (alpha_sa_mask): Update.
17349         (alpha_sa_size): Update.
17350         (alpha_does_function_need_gp): Update.
17351         (alpha_expand_prologue): Update.
17352         (alpha_start_function): Update.
17353         (alpha_output_function_end_prologue): Update.
17354         (alpha_expand_epilogue): Update.
17355         * config/frv/frv.c (frv_stack_info): Update.
17356         (frv_expand_epilogue): Update.
17357         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
17358         (s390_register_info): Update.
17359         (s390_frame_info): Update.
17360         (s390_init_frame_layout): Update.
17361         (s390_can_eliminate): Update.
17362         (save_gprs): Update.
17363         * config/spu/spu.c (spu_split_immediate): Update.
17364         (need_to_save_reg): Update.
17365         (spu_expand_prologue): Update.
17366         (spu_expand_epilogue): Update.
17367         * config/sparc/sparc.md: Update.
17368         * config/sparc/sparc.c (eligible_for_return_delay): Update.
17369         (sparc_tls_got): Update.
17370         (legitimize_pic_address): Update.
17371         (sparc_emit_call_insn): Update.
17372         (sparc_expand_prologue): Update.
17373         (output_return): Update.
17374         (print_operand): Update.
17375         (sparc_function_ok_for_sibcall): Update.
17376         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
17377         * config/m32r/m32r.md: Update.
17378         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
17379         (m32r_compute_frame_size): Update.
17380         (m32r_expand_prologue): Update.
17381         (m32r_expand_epilogue): Update.
17382         (m32r_legitimize_pic_address): Update.
17383         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
17384         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
17385         * config/i386/i386.c (ix86_frame_pointer_required): Update.
17386         (gen_push): Update.
17387         (ix86_save_reg): Update.
17388         (ix86_compute_frame_layout): Update.
17389         (ix86_expand_prologue): Update.
17390         (ix86_expand_epilogue): Update.
17391         * config/sh/sh.c (output_stack_adjust): Update.
17392         (calc_live_regs): Update.
17393         (sh5_schedule_saves): Update.
17394         (sh_expand_prologue): Update.
17395         (sh_expand_epilogue): Update.
17396         (sh_setup_incoming_varargs): Update.
17397         (sh_allocate_initial_value): Update.
17398         (sh_get_pr_initial_val): Update.
17399         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
17400         * config/sh/sh.md (label:): Update.
17401         * config/avr/avr.c (out_movhi_mr_r): Update.
17402         * config/crx/crx.h (enum): Update.
17403         * config/xtensa/xtensa.h (along): Update.
17404         * config/stormy16/stormy16.c Update.
17405         (xstormy16_compute_stack_layout): Update.
17406         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
17407         (fr30_expand_prologue): Update.
17408         * config/cris/cris.c (cris_conditional_register_usage): Update.
17409         (cris_reg_saved_in_regsave_area): Update.
17410         (cris_initial_frame_pointer_offset): Update.
17411         (cris_simple_epilogue): Update.
17412         (cris_expand_prologue): Update.
17413         (cris_expand_epilogue): Update.
17414         (cris_expand_pic_call_address): Update.
17415         (cris_asm_output_symbol_ref): Update.
17416         (cris_asm_output_label_ref): Update.
17417         * config/cris/cris.md Update.
17418         * config/iq2000/iq2000.c (compute_frame_size): Update.
17419         (iq2000_expand_epilogue): Update.
17420         * config/mt/mt.h (save_direction): Update.
17421         * config/mn10300/mn10300.c (mn10300_function_value): Update.
17422         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
17423         (ia64_secondary_reload_class): Update.
17424         * config/m68k/m68k.c (m68k_save_reg): Update.
17425         (m68k_expand_prologue): Update.
17426         (m68k_expand_epilogue): Update.
17427         (legitimize_pic_address): Update.
17428         * config/rs6000/rs6000.c (rs6000_got_register): Update.
17429         (first_reg_to_save): Update.
17430         (first_altivec_reg_to_save): Update.
17431         (compute_vrsave_mask): Update.
17432         (compute_save_world_info): Update.
17433         (rs6000_stack_info): Update.
17434         (spe_func_has_64bit_regs_p): Update.
17435         (rs6000_ra_ever_killed): Update.
17436         (rs6000_emit_eh_reg_restore): Update.
17437         (rs6000_emit_allocate_stack): Update.
17438         (rs6000_emit_prologue): Update.
17439         (rs6000_emit_epilogue): Update.
17440         (rs6000_output_function_epilogue): Update.
17441         (output_profile_hook): Update.
17442         (rs6000_elf_declare_function_name): Update.
17443         * config/rs6000/rs6000.h (rs6000_args): Update.
17444         * config/rs6000/rs6000.md: Update.
17445         * config/mcore/mcore.c (mcore_expand_prolog): Update.
17446         * config/arc/arc.c (arc_output_function_epilogue): Update.
17447         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
17448         * config/darwin.c (machopic_function_base_name): Update.
17449         * config/score/score3.c (score3_compute_frame_size): Update.
17450         (rpush): Update.
17451         (rpop): Update.
17452         (score3_epilogue): Update.
17453         * config/score/score7.c (score7_compute_frame_size): Update.
17454         (score7_prologue): Update.
17455         (score7_epilogue): Update.
17456         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
17457         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
17458         * config/arm/arm.c (use_return_insn): Update.
17459         (require_pic_register): Update.
17460         (arm_load_pic_register): Update.
17461         (arm_compute_save_reg0_reg12_mask): Update.
17462         (arm_compute_save_reg_mask): Update.
17463         (thumb1_compute_save_reg_mask): Update.
17464         (output_return_instruction): Update.
17465         (arm_output_function_prologue): Update.
17466         (arm_output_epilogue): Update.
17467         (arm_get_frame_offsets): Update.
17468         (arm_expand_prologue): Update.
17469         (thumb_pushpop): Update.
17470         (thumb_exit): Update.
17471         (thumb1_expand_prologue): Update.
17472         (thumb1_expand_epilogue): Update.
17473         (arm_unwind_emit): Update.
17474         (arm_output_fn_unwind): Update.
17475         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
17476         * config/arm/arm.md: Update.
17477         * config/pa/pa.md: Update.
17478         * config/pa/pa.c (legitimize_pic_address): Update.
17479         (compute_frame_size): Update.
17480         (hppa_expand_prologue): Update.
17481         (hppa_expand_epilogue): Update.
17482         (borx_reg_operand): Update.
17483         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
17484         (HARD_REGNO_RENAME_OK): Update.
17485         * config/mips/mips.c (mips_global_pointer): Update.
17486         (mips_save_reg_p): Update.
17487         (mips_compute_frame_info): Update.
17488         (mips_frame_pointer_required): Update.
17489         (mips_expand_prologue): Update.
17490         (mips_expand_epilogue): Update.
17491         (mips_can_use_return_insn): Update.
17492         (mips_reorg_process_insns): Update.
17493         * config/v850/v850.c (compute_register_save_size): Update.
17494         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
17495         * config/mmix/mmix.c (along): Update.
17496         (mmix_expand_epilogue): Update.
17497         * config/bfin/bfin.c (legitimize_pic_address): Update.
17498         (must_save_p): Update.
17499         (stack_frame_needed_p): Update.
17500         (add_to_reg): Update.
17501         (bfin_expand_prologue): Update.
17502         * stmt.c (expand_asm_operands): Update.
17503         * reload1.c (reload): Update.
17504         (init_elim_table): Update.
17506 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
17508         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
17510 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
17512         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
17513         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
17514         (mov<mode>): Removed.
17515         (*movv4sf_internal): Likewise.
17516         (*movv2df_internal): Likewise.
17518 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
17520         * config.gcc (crx-*-elf): Remove deprecation.
17522 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
17524         * config/i386/cygming-crtend.c (register_frame_ctor): Register
17525         __gcc_deregister_frame with atexit.
17526         (deregister_frame_dtor): Remove.
17528 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
17529             Nathan Sidwell  <nathan@codesourcery.com>
17531         * config/rs6000/rs6000.opt (mspe): Remove Var property.
17532         (misel): Likewise.
17533         * config/rs6000/rs6000.h (rs6000_spe): Declare.
17534         (rs6000_isel): Likewise.
17535         * config/rs6000/rs6000.c (rs6000_spe): New variable.
17536         (rs6000_isel): New variable.
17537         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
17539 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
17541         PR c++/35758
17542         * c-common.c (handle_vector_size_attribute): Call
17543         lang_hooks.types.reconstruct_complex_type instead of
17544         reconstruct_complex_type.
17545         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
17546         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
17547         * langhooks.h (struct lang_hooks_for_types): Add
17548         reconstruct_complex_type hook.
17549         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
17550         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
17552 2008-04-24  Richard Guenther  <rguenther@suse.de>
17554         * c-common.h (check_builtin_function_arguments): Declare.
17555         * c-common.c (validate_nargs): New function.
17556         (check_builtin_function_arguments): Likewise.
17557         * c-typeck.c (build_function_call): Call
17558         check_builtin_function_arguments.
17559         * builtins.c (fold_builtin_classify): Remove error reporting code.
17560         (fold_builtin_unordered_cmp): Likewise.
17561         (fold_builtin_1): Likewise.
17562         (fold_builtin_n): Likewise.
17564 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
17566         PR tree-optimization/36008
17567         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
17568         the original op1, rather than delta by step.
17570 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
17571             Sebastian Pop  <sebastian.pop@amd.com>
17573         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
17574         eliminate_local_variables_stmt, eliminate_local_variables,
17575         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
17576         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
17577         of code delimited by two edges in the CFG.
17578         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
17579         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
17580         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
17581         the case of parallelisation of reductions.
17582         (expr_invariant_in_region_p): New.
17584         * tree-flow.h (gather_blocks_in_sese_region): Declared.
17585         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
17587 2008-04-24  Ira Rosen  <irar@il.ibm.com>
17588             Richard Guenther  <rguenther@suse.de>
17590         PR tree-optimization/36034
17591         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
17592         incapable of dealing with loads with gaps.
17594 2008-04-24  Rafael Espindola  <espindola@google.com>
17596         * tree-flow.h (vrp_evaluate_conditional): Change signature.
17597         * tree-ssa-propagate.c (fold_predicate_in): Update call to
17598         vrp_evaluate_conditional.
17599         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
17600         (vrp_evaluate_conditional): Split the cond argument.
17601         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
17602         (simplify_stmt_for_jump_threading): Update call to
17603         vrp_evaluate_conditional.
17605 2008-04-24  Ira Rosen  <irar@il.ibm.com>
17607         PR tree-optimization/35982
17608         * tree-vect-analyze.c (vect_check_interleaving): Check that the
17609         interleaved data-refs are of the same type.
17611 2008-04-24  Danny Smith  <dannysmith@users.net>
17613         * c-format.c (check_format_info_main): Use strncmp rather than a
17614         magic prefix to handle multichar length specs.
17615         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
17616         Don't prefix "I64" and "I32" with '\0'.
17618 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
17620         PR target/36015
17621         * config/i386/i386.c (init_cumulative_args): Don't pass anything
17622         in registers for -m32 only if stdarg_p (fntype).
17624 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
17626         PR rtl-optimization/36006
17627         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
17628         temp to op0 in order to avoid invalid rtx sharing.
17630 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
17632         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
17633         check TREE_INVARIANT.
17634         * tree-gimple.c (is_gimple_address): New.
17635         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
17636         * tree-gimple.h (is_gimple_address): New.
17637         * tree.h (decl_address_invariant_p): New.
17638         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
17639         (build_string): Likewise.
17640         (decl_address_invariant_p): New, from is_gimple_invariant_address.
17641         (tree_invariant_p_1): Likewise.
17642         (save_expr): Use it.
17643         (tree_invariant_p): New.
17644         (skip_simple_arithmetic): Use it.
17645         (stabilize_reference_1): Use it.
17646         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
17647         simplify.
17648         (build1_stat): Drop code to compute TREE_INVARIANT.
17649         (build2_stat): Drop code to compute TREE_INVARIANT.
17650         (build3_stat): Drop code to compute TREE_INVARIANT.
17651         (build4_stat): Drop code to compute TREE_INVARIANT.
17652         (build5_stat): Drop code to compute TREE_INVARIANT.
17653         (build7_stat): Drop code to compute TREE_INVARIANT.
17654         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
17655         * tree.h (struct tree_base): Remove invariant_flag.
17656         (TREE_INVARIANT): Remove.
17657         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
17658         (fold_builtin_expect): Check TREE_CONSTANT.
17659         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
17660         * c-tree.h (c_expr_to_decl): Drop third parameter.
17661         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
17662         (build_c_cast): Don't set TREE_INVARIANT.
17663         (pop_init_level): Don't set TREE_INVARIANT.
17664         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
17665         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
17666         TREE_CONSTANT.
17667         (gimplify_init_constructor): Don't set TREE_INVARIANT.
17668         (gimplify_addr_expr): Adjust comment.
17669         * tree-mudflap.c (mf_build_string):
17670         * print-tree.c (print_node): Don't print TREE_INVARIANT.
17671         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
17672         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
17673         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
17674         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
17675         * langhooks.h (struct lang_hooks): Drop third parameter from
17676         expr_to_decl.
17678 2008-04-23  Richard Guenther  <rguenther@suse.de>
17680         PR tree-optimization/27799
17681         PR tree-optimization/32921
17682         PR tree-optimization/32624
17683         * tree-ssa-structalias.c (merge_smts_into): Only merge the
17684         SMTs aliases and the tag itself into the solution.
17685         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
17686         merge the points-to solution back into the SMT aliases.
17687         (may_alias_p): Use alias_set_subset_of instead of
17688         aliases_conflict_p.  A pointer which points to
17689         memory with alias set zero may access any variable.
17691 2008-04-23  Richard Guenther  <rguenther@suse.de>
17693         * alias.c (alias_set_subset_of): Correctly handle asking
17694         if zero is a subset of an alias set with zero child.
17695         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
17696         (compute_flow_insensitive_aliasing): Correctly walk all
17697         pointers.  Do not unnecessarily union sets.
17699 2008-04-23  Richard Guenther  <rguenther@suse.de>
17701         PR middle-end/36021
17702         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
17704 2008-04-22  Tomas Bily  <tbily@suse.cz>
17706         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
17707         unreachable case.
17708         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
17709         NON_LVALUE_EXPR.
17710         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
17711         * tree-ssa-structalias.c (get_constraint_for): Likewise.
17712         * tree-inline.c (estimate_num_insns_1): Likewise.
17713         * varasm.c (const_hash_1, compare_constant, copy_constant)
17714         (compute_reloc_for_constant, output_addressed_constants): Likewise.
17715         * emit-rtl.c (component_ref_for_mem_expr)
17716         (set_mem_attributes_minus_bitpos): Likewise.
17717         * expr.c (highest_pow2_factor, expand_expr_real_1, )
17718         (is_aligning_offset): Likewise.
17719         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
17720         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
17721         * dojump.c (do_jump): Likewise.
17722         * builtins.c (get_pointer_alignment, get_memory_rtx)
17723         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
17724         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
17726 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
17728         PR rtl-optimization/36017
17729         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
17730         expanding the library call.
17732 2008-04-22  Ian Lance Taylor  <iant@google.com>
17734         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
17735         than size_in_bytes.
17737 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
17739         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
17740         of LR/CTR moves for Power6.
17742 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
17744         PR middle-end/36003
17745         * passes.c (init_optimization_passes): Remove
17746         pass_fast_rtl_byte_dce.
17748 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
17750         PR target/29096
17751         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
17752         builtin functions to generate faster code.
17753         (_mm_cvtpu16_ps): Ditto.
17754         (_mm_cvtpi32x2_ps): Ditto.
17756 2008-04-22  Nick Clifton  <nickc@redhat.com>
17758         * common.opt (ftree-loop-distribution): Add Optimization
17759         attribute.
17761         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
17762         (frv_expand_builtin_va_start): Likewise.
17764         * config/arm/arm.c (thumb_find_work_register): Fix location of
17765         argument register count.
17767 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
17769         Support scheduling for ColdFire V1 and V3 microarchitecture.
17770         Improve scheduling of multiplication instructions.
17772         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
17773         (mac): New instruction attribute.
17774         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
17775         (m68k_sched_mac): New variable.
17776         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
17777         Handle cfv1 and cfv3.
17778         (max_insn_size): New static variable.
17779         (struct _sched_ib): New type.
17780         (sched_ib): New static variable.
17781         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
17782         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
17783         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
17784         Update.
17785         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
17786         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
17787         new variables.  Update.
17788         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
17789         Add modeling of cfv3 instruction buffer.  Update.
17790         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
17791         * config/m68k/m68k.h (TUNE_CFV3): New macro.
17792         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
17793         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
17794         a particular reservation applies to.
17795         (type2): Reorganize attribute values.  Rename alu to alu_reg,
17796         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
17797         to mul_l and mul_w.
17798         (cf_ib_*): Simplify description of instruction buffer.
17799         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
17800         (cf_mem): Split into cf_mem1 and cf_mem2.
17801         (cf_v2_move_??): Rename to cfv12_alu_??.
17802         (cf_v2_move_l_??): Rename to cfv12_omove_??.
17803         (cf_v2_mul_??): Remove reservations.
17804         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
17805         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
17806         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
17807         appropriate place.
17808         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
17809         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
17810         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
17811         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
17812         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
17813         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
17814         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
17815         expansions of the above reservations for instructions of sizes
17816         1, 2 and 3 words.
17818 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
17820         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
17822 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
17824         * coverage.c: Include tree-pass.h.
17825         (coverage_counter_alloc): Print da_file_name to the dump file.
17827 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
17829         * sbitmap.c (sbitmap_range_empty_p): New function.
17830         * sbitmap.h (sbitmap_range_empty_p): New function.
17831         * bitmap.h: Now includes obstack.h.
17833 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
17834             Kenneth Zadeck  <zadeck@naturalbridge.com>
17836         * dbgcnt.def (ra_byte_scan): Added.
17837         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
17838         when the last hit happens for a counter.
17839         * timevar.def (TV_DF_BYTE_LR): New variable.
17840         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
17841         * passes.c (pass_fast_rtl_byte_dce): New pass.
17842         * fwprop.c (update_df): Added mode to call df_ref_create.
17843         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
17844         DF_REF_EXTRACT_OFFSET.
17845         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
17846         DF_BYTE_LR_OUT, df_byte_lr): New macro.
17847         (df_mm): New enum.
17848         (df_ref_extract): Added mode field.
17849         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
17850         DF_REF_EXTRACT_OFFSET.
17851         (DF_REF_EXTRACT_MODE): New macro.
17852         (df_byte_lr_bb_info): New structure.
17853         (df_print_byte_regset, df_compute_accessed_bytes,
17854         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
17855         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
17856         df_byte_lr_simulate_uses,
17857         df_byte_lr_simulate_artificial_refs_at_top,
17858         df_byte_lr_simulate_artificial_refs_at_end,
17859         df_compute_accessed_bytes): New function.
17860         (df_ref_create): Add parameter.
17861         (df_byte_lr_get_bb_info): New inline function.
17862         * df-scan.c (df_ref_record, df_uses_record,
17863         df_ref_create_structure): Added mode parameter.
17864         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
17865         df_defs_record, df_uses_record, df_get_conditional_uses,
17866         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
17867         df_entry_block_defs_collect, df_exit_block_uses_collect):
17868         Added mode parameter to calls to df_ref_record, df_uses_record,
17869         df_ref_create_structure.
17870         (df_ref_equal_p, df_ref_compare): Added test for modes.
17871         (df_ref_create_structure): Added code to set mode.  Renamed
17872         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
17873         DF_REF_EXTRACT_OFFSET.
17874         * df-core.c (df_print_byte_regset): New function.
17875         * df-byte-scan.c: New file.
17876         * df-problems.c (df_rd_transfer_function): Removed unnecessary
17877         calls to BITMAP_FREE.
17878         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
17879         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
17880         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
17881         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
17882         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
17883         df_byte_lr_local_compute, df_byte_lr_init,
17884         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
17885         df_byte_lr_transfer_function, df_byte_lr_free,
17886         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
17887         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
17888         df_byte_lr_simulate_uses,
17889         df_byte_lr_simulate_artificial_refs_at_top,
17890         df_byte_lr_simulate_artificial_refs_at_end): New function.
17891         * dce.c (byte_dce_process_block): New function.
17892         (dce_process_block): au is now passed in rather than computed
17893         locally.  Changed loops that look at artificial defs to not look
17894         for conditional or partial ones, because there never are any.
17895         (fast_dce): Now is able to drive byte_dce_process_block or
17896         dce_process_block depending on the kind of dce being done.
17897         (rest_of_handle_fast_dce): Add parameter to fast_dce.
17898         (rest_of_handle_fast_byte_dce): New function.
17899         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
17900         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
17902 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
17904         PR fortran/35019
17905         * gcc.h: Added fortran options that take arguments to
17906         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
17907         macros.
17909 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
17911         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
17912         scalarization if on the LHS and not a full access.
17914 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17916         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
17918 2008-04-18  Rafael Espindola  <espindola@google.com>
17920         * tree-vrp.c (find_case_label_index): Fix the binary search.
17921         (find_case_label_range): New.
17922         (vrp_visit_switch_stmt): Use find_case_label_range.
17923         (simplify_switch_using_ranges): Use find_case_label_range.
17925 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
17927         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
17928         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
17930 2008-04-18  Tom Tromey  <tromey@redhat.com>
17932         PR libcpp/15500:
17933         * doc/cpp.texi (Implementation-defined behavior): Mention
17934         -finput-charset.
17936 2008-04-18  Ian Lance Taylor  <iant@google.com>
17938         * fold-const.c (pointer_may_wrap_p): New static function.
17939         (fold_comparison): Add another test for pointer overflow.  Use
17940         pointer_may_wrap_p to disable some false positives.
17942 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
17944         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
17945         (fname_as_string): Match updated cpp_interpret_string prototype.
17946         (fix_string_type): Support char16_t* and char32_t*.
17947         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
17948         derivative) nodes.  Register as builtin if C++0x.
17949         (c_parse_error): Support CPP_CHAR{16,32}.
17950         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
17951         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
17952         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
17953         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
17954         CTI_CHAR32_ARRAY_TYPE>: New elements.
17955         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
17956         char32_type_node, signed_char32_type_node, char16_array_type_node,
17957         char32_array_type_node): New defines.
17958         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
17959         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
17960         (lex_string): Support CPP_STRING{16,32}, match updated
17961         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
17962         (lex_charconst): Support CPP_CHAR{16,32}.
17963         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
17964         and CPP_STRING{16,32}.
17966 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
17968         PR bootstrap/35457
17969         * aclocal.m4: Regenerate.
17970         * configure: Regenerate.
17972 2008-04-18  Jan Hubicka  <jh@suse.cz>
17974         * except.c (dw2_size_of_call_site_table,
17975         sjlj_size_of_call_site_table): Use vector API for call_site_record.
17977         * cgraphbuild.c (build_cgraph_edges): Update.
17978         * tree-pass.h: Update comment.
17979         * final.c (leaf_function_p): Update.
17980         (leaf_renumber_regs): Update.
17981         (rest_of_clean_state): Update.
17982         * omp-low.c (expand_omp_parallel): Update.
17983         * ipa-reference.c (analyze_function): Update.
17984         * reorg.c (find_end_label): Update.
17985         (optimize_skip): Update.
17986         (fill_simple_delay_slots): Update.
17987         (fill_simple_delay_slots): Update.
17988         (make_return_insns): Update.
17989         (dbr_schedule): Update.
17990         * gimple-low.c (record_vars_into): Update.
17991         * cfgbuild.c (make_edges): Update.
17992         * function.c (assign_stack_local): Update.
17993         (assign_parm_adjust_stack_rtl): Update.
17994         (locate_and_pad_parm): Update.
17995         (allocate_struct_function): Do not initialize stack_alignment_needed
17996         and preferred_stack_boundary here.
17997         (stack_protect_prologue): Update.
17998         (stack_protect_epilogue): Update.
17999         (expand_function_start): Initialize stack_alignment_needed,
18000         preferred_stack_boundary and max_jumptable_ents.
18001         (expand_function_end): Update.
18002         (free_after_compilation): Do not NULLify epilogue_delay_list.
18003         * function.h (struct rtl_data): Add stack_protect_guard,
18004         stack_alignment_needed,
18005         preferred_stack_boundary, epilogue_delay_list.
18006         (struct function): Remove value_histograms, stack_alignment_needed,
18007         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
18008         last_label_uid,
18009         unexpanded_var_list, stack_protect_guard.
18010         (current_function_epilogue_delay_list): Remove.
18011         * ipa-type-escape.c (analyze_function): Update.
18012         * gimplify.c (pop_gimplify_context): Update comment.
18013         * calls.c (expand_call): Update.
18014         (emit_library_call_value_1): Update.
18015         * except.c (set_nothrow_function_flags): Update.
18016         * cfgexpand.c (get_decl_align_unit): Update.
18017         (create_stack_guard): Update.
18018         (estimated_stack_frame_size): Update.
18019         (expand_used_vars): Update.
18020         (tree_expand_cfg): Free histogram earliers, init expansion variables.
18021         * explow.c (allocate_dynamic_stack_space): Update.
18022         * tree-ssa-live.c (remove_unused_locals): Update.
18023         * varasm.c (mark_constant_pool): Update.
18024         * tree-inline.c (remap_decls): Update.
18025         (initialize_cfun): Update.
18026         (declare_return_variable): Update.
18027         (inline_forbidden_p): Update.
18028         (expand_call_inline): Update.
18029         (declare_inline_vars): Update.
18030         (tree_function_versioning): Update.
18031         * tree-flow.h (value_histograms): New.
18032         (VALUE_HISTOGRAMS): New macro.
18033         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
18034         last_label_uid.
18035         * tree-cfg.c (set_bb_for_stmt): Update.
18036         (replace_by_duplicate_decl): Update.
18037         (move_block_to_fn): Update.
18038         (new_label_mapper): Update.
18039         (dump_function_to_file): Update.
18040         * ipa-struct-reorg.c (build_data_structure): Update.
18041         * cfgrtl.c (print_rtl_with_bb): Update.
18042         * reload1.c (reload): Update.
18043         (reload): Update.
18044         * config/i386/i386.c (setup_incoming_varargs_64,
18045         ix86_compute_frame_layout): Update.
18046         * config/arc/arc.c (arc_output_function_epilogue): Update.
18048 2008-04-18  Marius Strobl <marius@FreeBSD.org>
18050         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
18051         for FreeBSD as well.
18052         * gthr-posix95.h: Likewise.
18054 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
18056         PR rtl-optimization/35838
18057         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
18058         out the byte offset of the first subreg.
18060 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
18062         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
18063         to split_ti instead of three separate calls with single member arrays.
18064         (subti3 splitter): Ditto.
18065         (adddi3 splitter): Ditto with split_di.
18066         (subdi3 splitter): Ditto.
18067         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
18068         two separate calls with single member arrays.  Swap match_dup
18069         operands 1 and 2 to better fit into the array.
18070         (negdi2 splitter): Ditto with split_di.
18071         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
18072         two separate calls with single member arrays.  Swap match_dup operands
18073         6 and 7 to better fit into the array.
18075 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
18077         * config/i386/i386.c (sse_builtin_type): New.
18078         (bdesc_sse_args): Likewise.
18079         (bdesc_sse_3arg): Removed.
18080         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
18081         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
18082         IX86_BUILTIN_ROUNDPS.
18083         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
18084         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
18085         IX86_BUILTIN_ROUNDPS.
18086         (ix86_expand_sse_4_operands_builtin): Removed.
18087         (ix86_expand_sse_operands_builtin): New.
18088         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
18089         and CODE_FOR_sse4_1_roundps.
18090         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
18091         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
18093 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
18095         PR target/35907
18096         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
18097         regs before frame pop when needed.  If use_backchain_to_restore_sp
18098         then load backchain into a temp reg to restore vr and vrsave.  Add
18099         code to restore vr after frame pop if possible.
18101 2008-04-17  Richard Guenther  <rguenther@suse.de>
18103         * tree-vn.c (expressions_equal_p): Do not check type
18104         equality or compatibility before calling operand_equal_p.
18105         * fold-const.c (operand_equal_p): Check equivalence of
18106         integer constants before bailing out due to signedness or
18107         precision differences.
18108         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
18109         spurious differences in type qualification.  Ignore types
18110         for COMPONENT_REFs at all.
18112 2008-04-17  Christian Bruel  <christian.bruel@st.com>
18114         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
18115         msw_skip comparison.
18117 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
18119         PR c/35739
18120         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
18121         reg type.
18123         PR tree-optimization/35899
18124         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
18125         rather than TREE_OPERAND.
18127 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
18129         PR target/35944
18130         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
18131         temporary registers.  Change operand predicate to general_operand.
18132         (remainderxf3): Ditto.
18134 2008-04-16  Richard Guenther  <rguenther@suse.de>
18136         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
18137         * tree-affine.c (aff_combination_expand): Look through some
18138         conversions.
18140 2008-04-15  Doug Kwan  <dougkwan@google.com>
18142         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
18143         for hex printing.
18144         * tree-pretty-print.c (dump_generic_node): Ditto.
18145         * final.c (output_addr_const): Ditto.
18146         * dwarf2out.c (output_cfi): Ditto.
18147         * c-pretty-print.c (pp_c_integer_constant): Ditto.
18148         * print-rtl.c (print_rtx): Ditto.
18149         * print-tree.c (print_node_brief, print_node): Ditto.
18150         * c-common.c (match_case_to_enum_1): Ditto.
18151         * sched-vis.c (print_value): Ditto.
18152         * config/i386/i386.c (print_operand): Cast to long unsigned int
18153         for hex printing.
18155 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
18156         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
18157         MS Windows VirtualProtect function.
18159 2008-04-15  Jan Hubicka  <jh@suse.cz>
18161         * gengtype.c (write_root): Param_is argument is OK.
18162         * expr.c (expand_expr_real_1): Update call of get_exception_*.
18163         * function.h: Include varray.h
18164         (rtl_eh): New stucture based on except.c one.
18165         (call_site_record): New forward declaration and vector type.
18166         * calls.c (emit_call_1): Do not call
18167         note_current_region_may_contain_throw.
18168         * except.c (eh_status): Remove cur_region, try_region since they are
18169         unused.
18170         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
18171         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
18172         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
18173         Remove call_site_data_used, call_site_data_size.
18174         Turn call_site_record into vector in function.h.
18175         (note_current_region_may_contain_throw): Remove.
18176         (get_exception_pointer, get_exception_filter): Do not take struct
18177         function argument; update.
18178         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
18179         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
18180         build_post_landing_pads, dw2_build_landing_pads,
18181         sjlj_assign_call_site_values, sjlj_mark_call_sites,
18182         sjlj_emit_function_enter, sjlj_emit_function_enter,
18183         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
18184         sjlj_build_landing_pads, finish_eh_generation,
18185         remove_exception_handler_label, remove_eh_handler,
18186         maybe_remove_eh_handler, add_reachable_handler,
18187         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
18188         add_action_record, collect_one_action_chain, add_call_site,
18189         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
18190         sjlj_output_call_site_table, output_function_exception_table,
18191         * except.h (note_current_region_may_contain_throw): Remove
18192         (get_exception_pointer, get_exception_filter): Do not take struct
18193         function argument.
18194         * Makefile.in (GTFILES): Put varargs before struct function.
18196 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
18198         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
18199         punt for STRING_CST.
18200         (get_constraint_for): Deal with STRING_CST here instead.
18202 2008-04-15  Richard Guenther  <rguenther@suse.de>
18204         * tree-ssa-propagate.c (substitute_and_fold): Substitute
18205         statements in a basic-block with a backward walk.  Do not
18206         substitute into dead statements but instead remove those.
18208 2008-04-15  Richard Guenther  <rguenther@suse.de>
18210         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
18211         to zero, thus disable creation of SFTs.
18213 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
18215         * tree-predcom.c (suitable_reference_p): Return false if the
18216         reference can throw.
18218 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
18220         PR c/35751
18221         * c-decl.c (finish_decl): If extern or static var has variable
18222         size, set TREE_TYPE (decl) to error_mark_node.
18224 2008-04-15  Rafael Espindola  <espindola@google.com>
18226         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
18227         variable arg1.
18229 2008-04-15  Richard Guenther  <rguenther@suse.de>
18231         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
18232         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
18233         (visit_reference_op_load): Do walk vuse-vdef chains on
18234         vn_reference_lookup.
18235         (visit_reference_op_store): But do not here.
18236         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
18237         vn_reference_lookup.
18238         (vn_lookup_with_vuses): But do so here.
18240 2008-04-14  Ian Lance Taylor  <iant@google.com>
18242         * fold-const.c (fold_overflow_warning): Remove assertion.
18244 2008-04-15  Ben Elliston  <bje@au.ibm.com>
18246         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
18247         temp1 local variables.
18249 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
18251         PR target/35661
18252         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
18253         ".text.unlikely" section as executable.
18255 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
18257         * config/ia64/ia64.c (rtx_needs_barrier): Handle
18258         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
18259         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
18260         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
18261         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
18262         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
18263         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
18265 2008-04-14  Ian Lance Taylor  <iant@google.com>
18267         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
18268         * fold-const.c (fold_comparison): If appropriate, test
18269         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
18270         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
18271         reassociating a pointer type.
18272         * doc/invoke.texi (Optimize Options): Document that
18273         -fstrict-overflow applies to pointer wraparound.
18275 2008-04-13  Jan Hubicka  <jh@suse.cz>
18277         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
18279 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
18281         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
18282         we are going to "save the world".
18284 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
18286         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
18287         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
18288         operand 0 constraint, not "=".
18290 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
18292         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
18294 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
18296         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
18297         of size of positions_needed * CHAR_BIT.
18299 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
18301         PR middle-end/35897
18302         * dse.c (store_info): Change positions_needed to unsigned
18303         HOST_WIDE_INT.
18304         (lowpart_bitmask): New.
18305         (record_store): Cast to unsigned HOST_WIDE_INT for
18306         positions_needed.  Assert width <= size of positions_needed *
18307         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
18308         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
18309         lowpart_bitmask to set mask.
18311 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
18313         * config/bfin/constraints.md: New file.
18314         * config/bfin/bfin.md: Include it.
18315         (adddi3): Use satisfies_constraint functions instead of the old macros.
18316         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
18317         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
18318         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
18319         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
18320         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
18321         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
18322         EXTRA_CONSTRAINT): Delete.
18323         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
18324         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
18325         of the old macros.
18326         * config/bfin/bfin.c: Include "tm-constrs.h".
18327         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
18328         Use satisfies_constraint functions instead of the old macros.
18329         * doc/md.texi (Blackfin Constraints): Update file name reference.
18331 2008-04-11  Richard Guenther  <rguenther@suse.de>
18333         PR tree-optimization/35869
18334         * tree-vrp.c (execute_vrp): Move switch statement update after
18335         jump threading.  Schedule another cfg cleanup run.
18337 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
18339         PR c/35744
18340         * attribs.c (decl_attributes): Return early on errorneous node.
18342 2008-04-10  Oleg Ryjkov  <olegr@google.com>
18344         * tree.h (struct tree_base): Added a new flag default_def_flag.
18345         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
18347 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
18349         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
18351 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18353         PR target/35768
18354         * pa.md: Define mode iterator P.  Define mode attribute dwc.
18355         (dcacheflush): Update pattern to use iterator P and attribute dwc.
18356         (icacheflush): Likewise.
18357         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
18358         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
18360 2008-04-11  Ben Elliston  <bje@au.ibm.com>
18362         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
18364 2008-04-10  Rafael Espindola  <espindola@google.com>
18366         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
18367         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
18368         (extract_range_from_expr): The same.
18370 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
18372         * config/mips/mips.md (GPR2): New mode iterator.
18373         (seq): Add comment.
18374         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
18375         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
18376         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
18377         Rewrite these to take two modes, the mode of comparison and the
18378         mode of the destination.
18379         * config/mips/mips.c (mips_expand_scc): Instead of having
18380         paradoxical subreg as destination, expand "narrowing" scc if mode
18381         of comparison is SI and target is requested in DI mode.
18382         (mips_emit_int_order_test): Update comment.  Make mode of
18383         comparison match CMP0 rather than TARGET.  When creating inverse
18384         target use mode of TARGET.
18386 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
18388         * gcov-dump.c (tag_summary): Only print summaries for the first
18389         GCOV_COUNTERS_SUMMABLE counters.
18391 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
18393         * config/i386/i386.md (absneg): New code iterator.
18394         (absnegprefix): New code attribute.
18395         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
18396         patterns using absneg code iterator.
18397         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
18398         using absneg code iterator.
18399         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
18400         *neg<mode>2 patterns using absneg code iterator.
18401         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
18402         *negextendsfdf2 patterns using absneg code iterator.
18403         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
18404         *negextendsfxf2 patterns using absneg code iterator.
18405         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
18406         *negextendsfdf2 patterns using absneg code iterator.
18407         * config/i386/sse.md (<code><mode>2): Macroize expander from
18408         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
18410 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
18412         * config/s390/s390.h: Remove the remains of the recent search
18413         & replace action of current_function_outgoing_args_size.
18415 2008-04-10  Ira Rosen  <irar@il.ibm.com>
18417         PR tree-optimization/35821
18418         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
18419         NEW_STMT_LIST is not NULL.
18421 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
18423         PR libstdc++/35597
18424         * toplev.c (process_options): Remove -ffunction-sections debugging
18425         warning.
18427 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
18429         PR middle-end/PR28690
18430         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
18431         than gen_rtx_fmt_ee to perform more canonicalizations.
18433 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18435         PR driver/35665
18436         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
18438 2008-04-09  Richard Guenther  <rguenther@suse.de>
18440         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
18441         (dump_function_to_file): Dump function arguments with types.
18443 2008-04-08  Richard Guenther  <rguenther@suse.de>
18445         * fold-const.c (fold_widened_comparison): Do not allow
18446         sign-changes that change the result.
18448 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
18450         PR target/35839
18451         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
18452         kinds of indirect references.
18454 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
18456         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
18457         GNU Fortran language string.
18459 2008-04-08  Rafael Espindola  <espindola@google.com>
18461         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
18462         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
18463         * tree.h (tree_call_nonnegative_warnv_p): New.
18465 2008-04-08  Jan Hubicka  <jh@suse.cz>
18467         * function.c (free_after_compilation): Clear out regno_reg_rtx
18468         pointer.
18470 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
18472         Revert
18473         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
18475         PR middle-end/PR28690
18476         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
18477         same precedence as REG_POINTER and MEM_POINTER operands.
18479 2008-04-08  Richard Guenther  <rguenther@suse.de>
18481         PR middle-end/35834
18482         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
18483         for adding index to base.
18485 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
18487         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
18488         (MINGW_ENABLE_EXECUTE_STACK): New.
18489         (IN_LIBGCC2): For libgcc include windows.h file for
18490         function declarations.
18492 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
18494         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
18495         and tem2 if tem1 is not a REG or MULT.
18497 2008-04-08  Jan Hubicka  <jh@suse.cz>
18499         * function.h (incomming_args): Break out of struct function.
18500         (function_subsections): Break out of struct function.
18501         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
18502         return_rtx and hard_reg_initial_vals from struct function.
18503         Kill inl_max_label_num.
18504         (current_function_pops_args, current_function_args_info,
18505         current_function_args_size, current_function_args_size,
18506         current_function_pretend_args_size,
18507         current_function_outgoing_args_size,
18508         current_function_internal_arg_pointer, current_function_return_rtx):
18509         Kill compatibility accestor macros.
18510         * builtins.c (expand_builtin_apply_args_1): Update.
18511         (expand_builtin_next_arg): Update.
18512         * df-scan.c (df_get_call_refs): Update.
18513         * dbxout.c (dbxout_function_end): Update.
18514         * dwarf2out.c (dwarf2out_switch_text_section): Update.
18515         (output_line_info): Update.
18516         (secname_for_decl): Update.
18517         (dwarf2out_var_location): Update.
18518         * function.c (free_after_compilation): Update.
18519         (assign_parm_find_stack_rtl): Update.
18520         (assign_parms): Update.
18521         (expand_dummy_function_end): Update.
18522         (expand_function_end): Update.
18523         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
18524         (expand_call): Update.
18525         (emit_library_call_value_1): Update.
18526         (store_one_arg): Update.
18527         * varasm.c (initialize_cold_section_name): Update.
18528         (unlikely_text_section): Update.
18529         (unlikely_text_section_p): Update.
18530         (assemble_start_function): Update.
18531         (assemble_end_function): Update.
18532         (default_section_type_flags): Update.
18533         (switch_to_section): Update.
18534         * integrate.c (set_decl_abstract_flags): Update.
18535         (get_hard_reg_initial_val): Update.
18536         (has_hard_reg_initial_val): Update.
18537         (allocate_initial_values): Update.
18538         * resource.c (init_resource_info): Update.
18539         * config/alpha/alpha.c (NUM_ARGS): Update.
18540         (direct_return): Update.
18541         (alpha_va_start): Update.
18542         (alpha_sa_size): Update.
18543         (alpha_initial_elimination_offset): Update.
18544         (alpha_expand_prologue): Update.
18545         (alpha_start_function): Update.
18546         (alpha_expand_epilogue): Update.
18547         (unicosmk_initial_elimination_offset):
18548         * config/alpha/alpha.md (call expander): Update.
18549         * config/s390/s390.c (s390_register_info): Update.
18550         (s390_register_info): Update.
18551         (s390_frame_info): Update.
18552         (s390_initial_elimination_offset): Update.
18553         (s390_build_builtin_va_list): Update.
18554         (s390_va_start): Update.
18555         * config/spu/spu.c (direct_return): Update.
18556         (spu_expand_prologue): Update.
18557         (spu_initial_elimination_offset): Update.
18558         (spu_build_builtin_va_list): Update.
18559         (spu_va_start): Update.
18560         * config/sparc/sparc.c (sparc_init_modes): Update.
18561         (sparc_compute_frame_size): Update.
18562         (function_value): Update.
18563         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
18564         * config/i386/i386.md (return expander): Update.
18565         * config/i386/i386.c (ix86_va_start): Update.
18566         (ix86_can_use_return_insn_p): Update.
18567         (ix86_compute_frame_layout): Update.
18568         (ix86_expand_epilogue): Update.
18569         * config/sh/sh.c (output_stack_adjust): Update.
18570         (calc_live_regs): Update.
18571         (sh_expand_prologue): Update.
18572         (sh_builtin_saveregs): Update.
18573         (sh_va_start): Update.
18574         (initial_elimination_offset): Update.
18575         (sh_allocate_initial_value): Update.
18576         (sh_function_ok_for_sibcall): Update.
18577         (sh_get_pr_initial_val): Update.
18578         * config/sh/sh.md (return expander): Update.
18579         * config/avr/avr.c (frame_pointer_required_p): UPdate.
18580         * config/crx/crx.c (crx_compute_frame): UPdate.
18581         (crx_initial_elimination_offset): UPdate.
18582         * config/xtensa/xtensa.c (compute_frame_size): Update
18583         (xtensa_builtin_saveregs): Update.
18584         (xtensa_va_start): Update.
18585         (order_regs_for_local_alloc): Update.
18586         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
18587         (xstormy16_expand_builtin_va_start): Update.
18588         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
18589         * config/m68hc11/m68hc11.md (return expanders): Update.
18590         * config/m68hc11/m68hc11.c (expand_prologue): Update.
18591         (expand_epilogue): Update.
18592         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
18593         (cris_simple_epilogue): Update.
18594         (cris_expand_prologue): Update.
18595         (cris_expand_epilogue): Update.
18596         * config/iq2000/iq2000.c (iq2000_va_start): Update.
18597         (compute_frame_size): Update.
18598         * config/mt/mt.c (mt_compute_frame_size): Update.
18599         * config/mn10300/mn10300.c (expand_prologue): Update.
18600         (expand_epilogue): Update.
18601         (initial_offset): Update.
18602         (mn10300_builtin_saveregs):
18603         * config/mn10300/mn10300.md (return expander): Update.
18604         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
18605         (ia64_initial_elimination_offset): Update.
18606         (ia64_initial_elimination_offset): Update.
18607         (ia64_expand_prologue): Update.
18608         * config/m68k/m68k.md (return expander): Update.
18609         * config/rs6000/rs6000.c (rs6000_va_start): Update.
18610         (rs6000_stack_info): Update.
18611         * config/mcore/mcore.c (layout_mcore_frame): Update.
18612         (mcore_expand_prolog): Update.
18613         * config/arc/arc.c (arc_compute_frame_size): Update.
18614         * config/score/score3.c (score3_compute_frame_size): Update.
18615         * config/score/score7.c (score7_compute_frame_size): Update.
18616         * config/arm/arm.c (use_return_insn): Update.
18617         (thumb_find_work_register): Update.
18618         (arm_compute_save_reg_mask): Update.
18619         (arm_output_function_prologue): Update.
18620         (arm_output_epilogue): Update.
18621         (arm_size_return_regs): Update.
18622         (arm_get_frame_offsets): Update.
18623         (arm_expand_prologue): Update.
18624         (thumb_exit): Update.
18625         (thumb_unexpanded_epilogue): Update.
18626         (thumb1_output_function_prologue): Update.
18627         * config/pa/pa.md (return expander): Update.
18628         * config/pa/pa.c (compute_frame_size): Update.
18629         (hppa_builtin_saveregs): Update.
18630         * config/mips/mips.c (mips_va_start): Update.
18631         (mips16_build_function_stub): Update.
18632         (mips_compute_frame_info): Update.
18633         (mips_restore_gp): Update.
18634         (mips_output_function_prologue): Update.
18635         (mips_expand_prologue): Update.
18636         * config/v850/v850.c (compute_frame_size): Update.
18637         (expand_prologue): * config/mmix/mmix.c (along): update.
18638         (mmix_initial_elimination_offset): update.
18639         (mmix_reorg): update.
18640         (mmix_use_simple_return): update.
18641         (mmix_expand_prologue): update.
18642         (mmix_expand_epilogue): Update.
18643         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
18644         (emit_link_insn): Update.
18646 2008-04-08  Anatoly Sokolov <aesok@post.ru>
18648         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
18649         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
18650         instructions.
18651         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
18652         atmega103 device.
18654 2008-04-07  Jan Hubicka  <jh@suse.cz>
18656         * function.h (rtl): Rename to x_rtl.
18657         (crtl): New define.
18658         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
18659         frame_offset, stack_check_probe_note, arg_pointer_save_area,
18660         used_temp_slots avail_temp_slots, temp_slot_level,
18661         nonlocal_goto_handler_labels): Update accesstors.
18662         (rtl): New global variable.
18663         (struct function): Move some fileds to rtl_data.
18664         (get_arg_pointer_save_area): Update prototype.
18665         * builtins.c (expand_builtin_setjmp_receiver): Update call of
18666         get_arg_pointer_save_area.
18667         * expr.c (init_expr): Update
18668         * function.c (get_frame_size): Update
18669         (assign_stack_local): Update
18670         (expand_function_end): Update.
18671         (get_art_pointer_save_area): Update
18672         * function.h
18673         * emit-rtl.c (rtl): Declare.
18674         (regno_reg_rtx): Declare.
18675         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
18676         Update.
18677         (gen_reg_rtx): Update.
18678         * varasm.c (n_deferred_constatns): Update accestor.
18679         (init_varasm_status): Do not allocate varasm_status.
18680         (force_const_mem, get_pool_size, output_constant_pool): Update.
18681         * stmt.c (force_label_rtx): Do not use x_ prefixes.
18682         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
18683         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
18684         * sparc/sparc.h (INIT_EXPANDERS): Update.
18685         * ia64/ia64.h (INIT_EXPANDERS): Update.
18687 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
18689         * reload.c (push_secondary_reload): Add missing break to for loop.
18691 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
18693         PR middle-end/PR28690
18694         * rtlanal.c: Update copyright years.
18695         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
18696         as REG_POINTER and MEM_POINTER operands.
18697         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
18698         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
18699         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
18700         * gcse.c: Update copyright years.
18701         (pre_delete): Call gen_reg_rtx_and_attrs.
18702         (hoist_code): Likewise.
18703         (build_store_vectors): Likewise.
18704         (delete_store): Likewise.
18705         * loop-invariant.c (move_invariant_reg): Likewise.
18706         Update copyright years.
18708 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
18710         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
18711         control string instead of quoted.
18713 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
18715         * doc/rtl.texi: Rewrite of subreg section.
18717 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
18719         PR/35842
18720         * config/i386/i386.c (legitimize_pic_address): Add treating
18721         of dllimport SYM_REF's.
18722         (legitimize_dllimport_symbol): Add prototype.
18724 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
18726         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
18727         reference in constructor with non self-referential type.
18729 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
18731         Removal of Return with Depressed Stack Pointer support
18732         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
18733         (ECF_SP_DEPRESSED): Likewise.
18734         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
18735         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
18736         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
18737         (expand_call): Do not test ECF_SP_DEPRESSED.
18738         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
18739         * function.c (keep_stack_depressed): Delete.
18740         (handle_epilogue_set): Likewise.
18741         (update_epilogue_consts): Likewise.
18742         (emit_equiv_load): Likewise.
18743         (thread_prologue_and_epilogue_insns): Remove support for Return with
18744         Depressed Stack Pointer.
18745         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
18747 2008-04-06  Richard Guenther  <rguenther@suse.de>
18749         PR tree-optimization/35400
18750         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
18751         information from SSA_NAMEs.
18753 2008-04-06  Anatoly Sokolov <aesok@post.ru>
18755         * config/avr/avr.h (avr_mega_p): Remove declaration.
18756         (AVR_MEGA): Remove macro.
18757         * config/avr/avr.c (avr_mega_p): Remove variable.
18758         (avr_override_options): Remove inicializion of avr_mega_p.
18759         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
18760         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
18761         (avr_jump_mode): (Ditto.).
18762         (avr_output_progmem_section_asm_op): (Ditto.).
18763         (avr_asm_init_sections): (Ditto.).
18764         (avr_asm_init_sections): (Ditto.).
18765         (avr_rtx_costs): (Ditto.).
18766         * config/avr/avr.md: (Ditto.).
18767         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
18768         '__AVR_MEGA__'.
18770 2008-04-06  Richard Guenther  <rguenther@suse.de>
18772         PR tree-optimization/35842
18773         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
18774         is_gimple_invariant_address.
18776 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18778         * gcc.c (default_compilers): Sync Fortran extensions list with
18779         that in fortran/lang-specs.h.
18780         * doc/invoke.texi: Likewise.
18781         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
18782         * dwarf2out.c (gen_compile_unit_die): Likewise.
18784 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
18786         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
18788 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
18790         PR target/12329
18791         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
18792         attribute is used for nested functions.
18794 2008-04-05  Jan Hubicka  <jh@suse.cz>
18796         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
18798         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
18799         letter argument.
18800         (dump_files): Update.
18801         (enable_rtl_dump_file): Do not accept letter argument.
18802         * tree-pass.h (dump_file_info): Remove letter argument.
18803         * toplev.c (decode_d_option): Update -da handling.
18804         * toplev.h (enable_rtl_dump_file): Update prototype.
18805         * passes.c (register_one_dump_file): Do not accept IPA argument; work
18806         it out based on pass type.
18807         (register_dump_files_1): Likewise.
18808         (init_optimization_passes): Update register_one_dump_file calls.
18809         (execute_one_pass): Sanity check that IPA passes are called at IPA
18810         level and RTL passes at RTL level.
18811         (execute_pass_list): IPA pass can not be after or subpass of
18812         GIMPLE/RTL pass.
18813         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
18814         disallov RTL subpasses of IPA subpasses.
18816 2008-04-05  Ben Elliston  <bje@au.ibm.com>
18818         * tree-cfg.c (need_fake_edge_p): Return false for calls to
18819         builtins that return exactly once and do not throw. Cache call to
18820         call_expr_flags.
18822 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
18824         PR rtl-optimization/34916
18825         PR middle-end/35519
18826         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
18827         between instruction pairs.
18829 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
18831         * doc/invoke.texi: Document -mbitops for SH.
18832         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
18833         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
18834         * config/sh/sh.c (print_operand): Add %t operand code.
18835         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
18836         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
18837         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
18838         (extendqihi2): Likewise.
18839         (movqi_i): Likewise.
18840         (insv): Use bset, bclr and bst instructions for SH2A if possible.
18841         (extv): Use bld instruction for SH2A if possible.
18842         (extzv): Likewise.
18843         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
18844         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
18845         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
18846         (bset.b, bclr.b): Define peepholes.
18847         * config/sh/sh.opt (mbitops): New option.
18849 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
18851         PR target/35620
18852         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
18853         and view convert expression.
18855 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
18857         PR target/35364
18858         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
18860 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
18862         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
18864         * config/i386/cpuid.h (bit_AES): New.
18865         (bit_PCLMUL): Likewise.
18867         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
18868         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
18869         SSE2 if AES or PCLMUL is enabled.
18870         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
18871         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
18872         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
18873         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
18874         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
18875         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
18876         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
18877         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
18878         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
18879         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
18880         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
18881         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
18882         __builtin_ia32_aeskeygenassist128 and
18883         __builtin_ia32_pclmulqdq128.
18884         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
18885         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
18886         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
18888         * config/i386/i386.h (TARGET_AES): New.
18889         (TARGET_PCLMUL): Likewise.
18890         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
18892         * config/i386/i386.md (UNSPEC_AESENC): New.
18893         (UNSPEC_AESENCLAST): Likewise.
18894         (UNSPEC_AESDEC): Likewise.
18895         (UNSPEC_AESDECLAST): Likewise.
18896         (UNSPEC_AESIMC): Likewise.
18897         (UNSPEC_AESKEYGENASSIST): Likewise.
18898         (UNSPEC_PCLMUL): Likewise.
18900         * config/i386/i386.opt (maes): New.
18901         (mpclmul): Likewise.
18903         * config/i386/sse.md (aesenc): New pattern.
18904         (aesenclast): Likewise.
18905         (aesdec): Likewise.
18906         (aesdeclast): Likewise.
18907         (aesimc): Likewise.
18908         (aeskeygenassist): Likewise.
18909         (pclmulqdq): Likewise.
18911         * config/i386/wmmintrin.h: New.
18913         * doc/extend.texi: Document AES and PCLMUL built-in function.
18915         * doc/invoke.texi: Document -maes and -mpclmul.
18917 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
18919         * function.c (free_after_parsing): Replace with
18920         cxx_push_function_context from C++ front-end.
18921         (allocate_struct_function): Don't call langhook.
18922         * langhooks.h (struct lang_hooks_for_functions): Delete.
18923         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
18924         member "function".
18925         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
18926         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
18927         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
18928         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
18929         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
18930         remove LANG_HOOKS_FUNCTION_INITIALIZER.
18931         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
18933         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
18934         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
18936 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
18938         PR c/35440
18939         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
18940         for all types.
18942 2008-04-04  Richard Guenther  <rguenther@suse.de>
18944         PR middle-end/35823
18945         * fold-const.c (optimize_minmax_comparison): Use the correct
18946         type for the constant in the simplified comparison.
18948 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
18950         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
18951         Pass L2 size as "--param l2-cache-size" to the compiler.
18952         (decode_l2_cache): New function to decode L2 cache parameters using
18953         0x8000006 extended cpuid function.
18954         (detect_caches_amd): Determine parameters of L2 cache using
18955         decode_l2_caches function.
18956         (decode_caches_intel): Decode L2 cache parameters.
18957         (detect_caches_intel): Determine L2 cache parameters using
18958         decode_caches_intel and decode_l2_caches functions.
18960 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
18962         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
18963         secondary input reload for subword loads from the constant pool.
18965 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
18967         PR target/35713
18968         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
18969           constants of the appropriate size for runtime calculations.
18971         PR c/35712
18972         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
18973           decimal-float literal constant zero.
18975 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
18977         PR c/35738
18978         * c-parser.c (c_parser_omp_atomic): Call
18979         default_function_array_conversion on the RHS.
18981         PR middle-end/35818
18982         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
18983         call is_variable_sized if decl has incomplete type.
18985 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
18987         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
18989 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
18991         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
18992         iterators.
18993         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
18994         (sgt<u>): Merge sgt and sgtu into new expander.
18995         (sgt, sgtu): Remove expanders.
18996         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
18997         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
18998         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
18999         *sgtu_<mode>_mips16 into new pattern.
19000         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
19001         (sge<u>): Merge sge and sgeu into new expander.
19002         (sge, sgeu): Remove expanders.
19003         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
19004         new pattern.
19005         (*sge_<mode>, second *sge_<mode>): Remove patterns.
19006         (slt<u>): Merge slt and sltu into new expander.
19007         (slt, sltu): Remove expanders.
19008         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
19009         (*slt_<mode>, *sltu_<mode>): Remove patterns.
19010         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
19011         *sltu_<mode>_mips16 into new pattern.
19012         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
19013         (sle<u>): Merge sle and sleu into new expander.
19014         (sle, sleu): Remove expanders.
19015         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
19016         (*sle_<mode>, *sleu_<mode>): Remove patterns.
19017         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
19018         *sleu_<mode>_mips16 into new pattern.
19019         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
19021 2008-04-03  Jan Hubicka  <jh@suse.cz>
19023         PR tree-optimization/35795
19024         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
19025         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
19026         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
19027         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
19028         * score/score3.c (score3_output_mi_thunk): Likewise.
19029         * score/score7.c (score7_output_mi_thunk): Likewise.
19030         * mips/mips.c (mips_output_mi_thunk): Likewise.
19032 2008-04-03  Richard Guenther  <rguenther@suse.de>
19034         * tree-vrp.c (extract_range_from_unary_expr): Handle all
19035         conversions.  Simplify code.
19037 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
19039         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
19041 2008-04-03  Tom Tromey  <tromey@redhat.com>
19042             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19044         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
19045         * config/bfin/t-bfin-linux (generated_files): Add
19046         linux-sysroot-suffix.h.
19047         * doc/install.texi (Prerequisites): Require make 3.80.
19048         * doc/sourcebuild.texi (Front End Directory): Document new
19049         variable.
19050         * Makefile.in (generated_files): New variable.
19051         (ALL_HOST_OBJS): New variable.
19052         ($(ALL_HOST_OBJS)): New target.
19054 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
19056         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
19057         (remap_block): Call id->transform_lang_insert_block instead
19058         of langhook.
19059         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
19060         Set id.transform_lang_insert_block to NULL.
19061         (clone_body): Move to cp/optimize.c
19062         * tree-inline.h (struct copy_body_data): Change
19063         transform_lang_insert_block to function pointer.
19064         (copy_generic_body, copy_decl_no_change): Export.
19065         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
19066         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
19067         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
19069         * c-tree.h (insert_block): Kill.
19070         * c-decl.c (insert_block): Kill.
19072 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
19074         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
19075         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
19076         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
19077         argument.
19078         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
19079         argument, call {push,pop}_function_context from here.
19080         * c-parser.c: Use c_{push,pop}_function_context.
19082         * function.c (push_function_context_to): Move meat ...
19083         (push_function_context): ... here.  Simplify.
19084         * function.c (pop_function_context_from): Move meat ...
19085         (pop_function_context): ... here.  Simplify.
19086         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
19087         leave_nested).
19088         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
19089         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
19090         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
19091         * tree.h (push_function_context_to, pop_function_context_from): Remove.
19093 2008-04-03  Ben Elliston  <bje@au.ibm.com>
19095         * expmed.c (extract_force_align_mem_bit_field): Remove.
19097 2008-04-03  Richard Guenther  <rguenther@suse.de>
19099         PR middle-end/35800
19100         * expr.h (try_casesi): Adjust prototype.
19101         * expr.c (try_casesi): Take fallback label as extra parameter.
19102         Use that for gen_casesi if default_label is NULL.
19103         * stmt.c (expand_case): Pass fallback label to try_casesi,
19104         make sure to fill gaps with a fallback label if default_label
19105         is not present.
19107 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
19109         PR target/35801
19110         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
19112 2008-04-03  Ben Elliston  <bje@au.ibm.com>
19114         * expmed.c (extract_split_bit_field): Remove if (0) code.
19115         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
19116         (do_ds_constraint): Likewise.
19118 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
19120         * doc/cppopts.texi (-dU): Document.
19121         * c-common.h (flag_dump_macros): Update comment.
19122         * c-opts.c (handle_OPT_d): Handle -dU.
19123         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
19124         dump_queued_macros, cb_used_define, cb_used_undef): New.
19125         (init_pp_output): Handle -dU.
19126         (cb_line_change): Call dump_queued_macros.
19127         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
19129 2008-04-02  Anatoly Sokolov <aesok@post.ru>
19131         * config/avr/predicates.md (io_address_operand): New predicate.
19132         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
19133         * config/avr/avr.c (avr_io_address_p): Remove function.
19134         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
19135         'avr_io_address_p' function.
19136         (out_movhi_r_mr): (Ditto.).
19137         (out_movqi_mr_r): (Ditto.).
19138         (out_movhi_mr_r): (Ditto.).
19139         (avr_address_cost): (Ditto.).
19141 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
19143         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
19144         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
19145         in 32bit mode when XMM registers are available to avoid store
19146         forwarding stalls.
19147         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
19148         corresponding post-reload splitters.
19150 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
19152         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
19153         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
19154         __builtin_ia32_roundss.
19155         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
19156         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
19157         __builtin_ia32_roundss.
19158         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
19159         IX86_BUILTIN_SHUFPD here.
19161 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
19163         * config/i386/i386.md (plogic): New.
19164         (plogicprefix): Likewise.
19166         * config/i386/mmx.md (mmx_<code><mode>3): New.
19167         (mmx_and<mode>3): Removed.
19168         (mmx_ior<mode>3): Likewise.
19169         (mmx_xor<mode>3): Likewise.
19171         * config/i386/sse.md (<code><mode>3): New.
19172         (*<code><mode>3): Likewise.
19173         (*<code><mode>3): Likewise.
19174         (<code><mode>3): Likewise.
19175         (*sse_<code><mode>3): Likewise.
19176         (*sse2_<code><mode>3): Likewise.
19177         (<code>tf3): Likewise.
19178         (*<code>tf3): Likewise.
19179         (and<mode>3): Likewise.
19180         (*and<mode>3): Likewise.
19181         (ior<mode>3): Removed.
19182         (*ior<mode>3): Likewise.
19183         (xor<mode>3): Likewise.
19184         (*xor<mode>3): Likewise.
19185         (*and<mode>3): Likewise.
19186         (*ior<mode>3): Likewise.
19187         (*xor<mode>3): Likewise.
19188         (and<mode>3): Likewise.
19189         (*sse_and<mode>3): Likewise.
19190         (*sse2_and<mode>3): Likewise.
19191         (andtf3): Likewise.
19192         (*andtf3): Likewise.
19193         (ior<mode>3): Likewise.
19194         (*sse_ior<mode>3): Likewise.
19195         (*sse2_ior<mode>3): Likewise.
19196         (iortf3): Likewise.
19197         (*iortf3): Likewise.
19198         (xor<mode>3): Likewise.
19199         (*sse_xor<mode>3): Likewise.
19200         (*sse2_xor<mode>3): Likewise.
19201         (xortf3): Likewise.
19202         (*xortf3): Likewise.
19204 2008-04-02  Richard Guenther  <rguenther@suse.de>
19206         PR tree-optimization/14495
19207         PR tree-optimization/34793
19208         * tree-vrp.c (struct switch_update): New structure.
19209         (to_remove_edges, to_update_switch_stmts): New VECs.
19210         (simplify_switch_using_ranges): New function.  Remove not taken
19211         case labels and edges.
19212         (simplify_stmt_using_ranges): Call it.
19213         (identify_jump_threads): Mark edges we have queued for removal
19214         so we don't thread them.
19215         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
19216         case label vector.
19217         * tree-cfg.c (group_case_labels): Deal with missing default label.
19218         (tree_verify_flow_info): Allow missing default label.
19219         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
19220         (emit_case_nodes): Likewise.
19221         (expand_case): Do not rely on the default label to be present.
19222         * expr.c (try_casesi): Deal with NULL default_label.
19223         (do_tablejump): Likewise.
19225 2008-04-02  Richard Guenther  <rguenther@suse.de>
19227         PR tree-optimization/14495
19228         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
19229         SWITCH_EXPR here ...
19230         (vrp_visit_switch_stmt): ... but here (new function).
19231         (find_case_label_index): New helper function.
19232         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
19234 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
19236         * fwprop.c: Fix ISO-C99ism.
19238 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
19240         PR bootstrap/35752
19241         * Makefile.in (objdir): Set it here.
19242         * configure.ac: Not here.  Find dynamic linker characteristics.
19243         * exec-tool.in: Use them.
19244         * aclocal.m4: Regenerate.
19245         * configure: Regenerate.
19247 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
19249         * expr.c (expand_var): Delete it.
19250         * expr.h (expand_var): Delete prototype.
19251         * function.c (expand_function_start): Use expand_decl instead.
19252         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
19253         langhook.
19255 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
19257         PR rtl-optimization/35542
19258         * fwprop.c (forward_propagate_and_simplify): Replace
19259         loc_reg_mentioned_in_p with reg_mentioned_p.
19261 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
19263         PR rtl-optimization/35281
19264         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
19265         (propagate_rtx_1): Handle PR_HANDLE_MEM.
19266         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
19267         (varying_mem_p): Move above propagate_rtx.
19268         (all_uses_available_at): Do not check MEMs.
19270 2008-04-02  Rafael Espindola  <espindola@google.com>
19272         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
19273         (register_edge_assert_for_2): Split the cond argument.
19274         (register_edge_assert_for_1): Adjust for the change in
19275         register_edge_assert_for_2.
19276         (register_edge_assert_for): Split the cond argument.
19277         (find_switch_asserts): Adjust for the change in
19278         register_edge_assert_for.
19280 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
19282         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
19283         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
19284         offsets for 64-bit mingw.
19285         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
19286         abi for x86_64-pc-mingw.
19288 2008-04-02  Richard Guenther  <rguenther@suse.de>
19290         * tree-vrp.c (extract_range_from_assert): Make sure to not
19291         produce range min/max with TREE_OVERFOW set.
19292         If merging a anti-range and a range keep the anti-range if
19293         the range covers all values of the type.
19294         (register_edge_assert_for_2): Only allow sign-changing
19295         conversions in detecting canonical range checks.  Also
19296         register an assert for the unsigned name if useful.
19298         PR tree-optimization/35787
19299         * tree-vrp.c (vrp_val_max): New function.
19300         (vrp_val_min): Likewise.
19301         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
19302         (vrp_val_is_min): Likewise.
19303         (supports_overflow_infinity): Use vrp_val_{min,max}.
19304         (negative_overflow_infinity): Likewise.
19305         (positive_overflow_infinity): Likewise.
19306         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
19307         (is_positive_overflow_infinity): Likewise.
19308         (is_overflow_infinity): Likewise.
19309         (avoid_overflow_infinity): Use vrp_val_{min,max} and
19310         vrp_val_is_{min,max}.
19311         (set_and_canonicalize_value_range): Canonicalize anti-ranges
19312         to ranges if possible.  Avoid empty ranges.
19314 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19316         PR middle-end/35705
19317         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
19318         the expression is a function address.
19320 2008-04-01  George Helffrich  <george@gcc.gnu.org>
19322         PR fortran/35154, fortran/23057
19323         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
19324         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
19325         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
19326         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
19327         in common.
19328         (dbxout_syms): Check for COMMON-based symbol and wrap in
19329         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
19330         in bracket for efficiency.
19332         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
19333         using DW_TAG_common_block + member offset.
19334         (add_pubname_string): New function.
19335         (dw_expand_expr): New function to find block name and offset for
19336         COMMON var.
19337         (common_check): New function to check whether symbol in Fortran COMMON.
19338         (gen_variable_die): If COMMON, use DW_TAG_common_block.
19340 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
19342         PR c/35436
19343         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
19345 2008-04-02  Ben Elliston  <bje@au.ibm.com>
19347         * config/v850/v850.md (casesi): Remove if (0) code.
19348         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
19349         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
19351 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
19353         * config/i386/i386.md (rex64suffix): New mode attribute.
19354         (floathi<mode>2): Disable expander for SSE math.
19355         (*floathi<mode>2_1): New insn insn_and_split pattern.
19356         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
19357         corresponding post-reload splitters.
19358         (*floathi<mode>2_i387): New macroized insn pattern.
19359         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
19360         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
19361         insn_and_split pattern.
19362         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
19363         New macroized instruction patterns and corresponding post-reload
19364         splitters.
19365         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
19366         and corresponding post-reload splitters.
19367         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
19368         New macroized instruction patterns.
19369         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
19370         macroized instruction patterns and corresponding post-reload splitters.
19371         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
19372         corresponding post-reload splitters.
19373         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
19374         New macroized instruction patterns.
19375         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
19376         corresponding post-reload splitters.
19377         (*floatsi<mode>2_i387): New macroized instruction patterns.
19379 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
19381         * config/i386/i386.md (smaxmin): New.
19382         (umaxmin): Likewise.
19383         (maxminiprefix): Likewise.
19384         (maxminfprefix): Likewise.
19385         (<code><mode>3): Likewise.
19386         (smin<mode>3): Removed.
19387         (smax<mode>3): Likewise.
19389         * config/i386/mmx.md (mmx_<code>v2sf3): New.
19390         (mmx_<code>v4hi3): Likewise.
19391         (mmx_<code>v8qi3): Likewise.
19392         (mmx_smaxv2sf3): Removed.
19393         (mmx_sminv2sf3): Likewise.
19394         (mmx_umaxv8qi3): Likewise.
19395         (mmx_smaxv4hi3): Likewise.
19396         (mmx_uminv8qi3): Likewise.
19397         (mmx_sminv4hi3): Likewise.
19399         * config/i386/sse.md (<addsub><mode>3): New.
19400         (*<addsub><mode>3): Likewise.
19401         (<sse>_vm<addsub><mode>3): Likewise.
19402         (<maxmin><mode>3): Likewise.
19403         (*<maxmin><mode>3_finite): Likewise.
19404         (*<maxmin><mode>3): Likewise.
19405         (<sse>_vm<maxmin><mode>3): Likewise.
19406         (sse3_h<addsub>v4sf3): Likewise.
19407         (sse3_h<addsub>v2df3): Likewise.
19408         (<maxmin>v16qi3): Likewise.
19409         (*<maxmin>v16qi3): Likewise.
19410         (<maxmin>v8hi3): Likewise.
19411         (*<maxmin>v8hi3): Likewise.
19412         (*sse4_1_<maxmin><mode>3): Likewise.
19413         (*sse4_1_<maxmin><mode>3): Likewise.
19414         (add<mode>3): Removed.
19415         (*add<mode>3): Likewise.
19416         (<sse>_vmadd<mode>3): Likewise.
19417         (sub<mode>3): Likewise.
19418         (*sub<mode>3): Likewise.
19419         (<sse>_vmsub<mode>3): Likewise.
19420         (smin<mode>3): Likewise.
19421         (*smin<mode>3_finite): Likewise.
19422         (*smin<mode>3): Likewise.
19423         (<sse>_vmsmin<mode>3): Likewise.
19424         (smax<mode>3): Likewise.
19425         (*smax<mode>3_finite): Likewise.
19426         (*smax<mode>3): Likewise.
19427         (<sse>_vmsmax<mode>3): Likewise.
19428         (sse3_haddv4sf3): Likewise.
19429         (sse3_haddv2df3): Likewise.
19430         (sse3_hsubv4sf3): Likewise.
19431         (sse3_hsubv2df3): Likewise.
19432         (umaxv16qi3): Likewise.
19433         (*umaxv16qi3): Likewise.
19434         (smaxv8hi3): Likewise.
19435         (*smaxv8hi3): Likewise.
19436         (*sse4_1_smax<mode>3): Likewise.
19437         (*sse4_1_umax<mode>3): Likewise.
19438         (uminv16qi3): Likewise.
19439         (*uminv16qi3): Likewise.
19440         (sminv8hi3): Likewise.
19441         (*sminv8hi3): Likewise.
19442         (*sse4_1_smin<mode>3): Likewise.
19443         (*sse4_1_umin<mode>3): Likewise.
19445 2008-04-01  Rafael Espindola  <espindola@google.com>
19447         * tree-cfg.c (verify_expr): remove in_phi.
19448         (verify_stmt): Don't call walk_tree with verify_expr. Use
19449         is_gimple_min_invariant instead of is_gimple_val.
19451 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
19453         * doc/include/gpl_v3.texi: Update for manpage generation.
19454         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
19455         gpl.texi.
19456         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
19457         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
19458         gpl_v3.texi instead of gpl.texi.
19459         (gpl.pod): New.
19461 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
19463         PR pch/13675
19464         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
19466 2008-04-01  Rafael Espindola  <espindola@google.com>
19468         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
19469         (extract_code_and_val_from_cond): Use
19470         extract_code_and_val_from_cond_with_ops.
19472 2008-04-01  Jan Hubicka  <jh@suse.cz>
19474         * function.c (free_after_compilation): Free epilogue_delay_list.
19475         (prepare_function_start): Assert that previous compilation was freed.
19477 2008-04-01  Jan Hubicka  <jh@suse.cz>
19478             Jim Wilson  <wilson@tuliptree.org>
19479             Andreas Tobler <andreast@gcc.gnu.org>
19481         PR middle-end/35781
19482         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
19483         rtl.emit instead cfun->emit.
19484         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
19485         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
19487 2008-04-01  Ben Elliston  <bje@au.ibm.com>
19489         * doc/c-tree.texi (Function Basics): Fix grammatical error.
19491 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
19493         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
19494         New options
19495         (fprofile-use): Add var flag_profile_use
19496         * coverage.c (coverage_begin_output): Do not open a gcno file for
19497         output only if -ftest-coverage is set.
19498         Do not add getpwd() to gcda file path.
19499         (build_gcov_info): Check the new flag
19500         flag_profile_datafile_relative_path.
19501         (coverage_init): Use profile_data_prefix.
19502         Read profile counter only if flag_profile_use is set.
19503         * opts.c (common_handle_option): New option fprofile-use=,
19504         fprofile-dir=, fprofile-generate=.
19505         * toplev.c (profile_data_prefix): New variable definition.
19506         * toplev.h (profile_data_prefix): New declaration.
19507         * doc/invoke.tex (Option Summary, Optimization Options):
19508         Add new options.
19510 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
19512         * varasm.c (output_constant_pool_1): In LABEL_REF check,
19513         use tmp consistently.
19515         PR target/35695
19516         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
19517         * config/ia64/ia64.c (rtx_needs_barrier): Handle
19518         UNSPEC_FR_RECIP_APPROX_RES.
19519         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
19521 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
19523         PR c/35750
19524         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
19526 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19528         PR middle-end/30186
19529         * fold-const.c (fold_indirect_ref_1): Support accessing non first
19530         element of the vector via a pointer.
19532 2008-03-31  Ian Lance Taylor  <iant@google.com>
19534         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
19536 2008-03-31  Jan Hubicka  <jh@suse.cz>
19538         * builtins.c (expand_builtin_setjmp_receiver): Update call of
19539         get_arg_pointer_save_area.
19540         * expr.c (init_expr): Just clear out rtl.expr.
19541         * function.c (free_after_compilation): Clear out whole RTL structure.
19542         (get_func_frame_size): Merge into ...
19543         (get_frame_size): ... this one.
19544         (assign_stack_local_1): Merge into ...
19545         (assign_stack_local): ... this one.
19546         (expand_function_end): Update call of get_arg_pointer_save_area.
19547         (get_art_pointer_save_area): Remove cfun argument.
19548         * function.h (emit_status): regno_pointer_align does not need length
19549         attribute. Move x_regno_reg_rtx to ...
19550         (regno_reg_rtx): ... new global array.
19551         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
19552         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
19553         apply_args_value, forced_labels, stack_pointer_delta):
19554         Update accestors.
19555         (struct varasm_status): Move here from varasm.c
19556         (struct rtl_data): New. Move here some fields from struct function.
19557         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
19558         frame_offset, stack_check_probe_note, arg_pointer_save_area,
19559         used_temp_slots avail_temp_slots, temp_slot_level,
19560         nonlocal_goto_handler_labels): Update accesstors.
19561         (rtl): New global variable.
19562         (struct function): Move some fileds to rtl_data.
19563         (get_arg_pointer_save_area): Update prototype.
19564         * emit-rtl.c (rtl): Declare.
19565         (regno_reg_rtx): Declare.
19566         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
19567         Update.
19568         (gen_reg_rtx): Update.
19569         (init_virtual_regs): Do not tate emit_status argument.
19570         (init_emit): Do not allocate emit.
19571         * varasm.c (varasm_statuc): Move to function.h.
19572         (n_deferred_constatns): Update accestor.
19573         (init_varasm_status): Do not allocate varasm_status.
19574         (force_const_mem, get_pool_size, output_constant_pool): Update.
19575         * stmt.c (force_label_rtx): Do not use x_ prefixes.
19576         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
19578 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
19580         PR rtl-optimization/35729
19581         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
19582         references.
19584 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
19586         PR target/32000
19587         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
19588         load/store if memory is unaligned.
19589         (*movti_rex64): Likewise.
19591         * config/i386/predicates.md (misaligned_operand): New.
19593 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
19595         PR tree-opt/35431
19596         * tree-ssa-phiopt.c (conditional_replacement): Return early for
19597         complex types.
19599 2008-03-31  Jan Beulich  <jbeulich@novell.com>
19601         * config/ia64/constraints.md: Add 'j' constraint.
19602         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
19603         (movdi_internal): Likewise.
19605 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
19607         PR c/35748
19608         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
19610 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
19612         PR target/35757
19613         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
19614         proper error message for the third argument on blendpd and
19615         blendps.
19617         * config/i386/sse.md (blendbits): New.
19618         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
19620 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
19622         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
19624 2008-03-30  Richard Guenther  <rguenther@suse.de>
19626         PR middle-end/31023
19627         * fold-const.c (fold_sign_changed_comparison): Do leave
19628         conversions to base-types alone.
19630 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19632         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
19633         the link register if one altivec register is be saved.
19635 2008-03-30  Ben Elliston  <bje@au.ibm.com>
19637         * final.c (final_scan_insn): Remove if (0) code.
19639 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
19641         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
19643 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
19645         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
19646         of V4SFmode to ix86_binary_operator_ok.
19648 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
19650         * config/i386/i386.c (override_options): Initialize
19651         ix86_veclib_handler to ix86_veclibabi_svml when
19652         -mveclibabi=svml is used.
19653         (ix86_veclibabi_svml): New function for SVML ABI style
19654         vectorization support.
19655         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
19657 2008-03-28  Rafael Espindola  <espindola@google.com>
19659         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
19660         (tree_binary_nonnegative_warnv_p): Make it public.
19661         (tree_single_nonnegative_warnv_p): Make it public.
19662         (tree_invalid_nonnegative_warnv_p): Make it public.
19663         (tree_unary_nonzero_warnv_p): Make it public.
19664         (tree_binary_nonzero_warnv_p): Make it public
19665         (tree_single_nonzero_warnv_p): Make it public.
19666         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
19667         (extract_range_from_binary_expr): Split the expr argument.
19668         (extract_range_from_unary_expr): Split the expr argument.
19669         (extract_range_from_comparison): Split the expr argument.
19670         (extract_range_from_expr): Use the new aux functions.
19671         (vrp_evaluate_conditional_warnv): Use
19672         vrp_evaluate_conditional_warnv_with_ops.
19673         * tree.h (tree_unary_nonzero_warnv_p): Declare.
19674         (tree_binary_nonzero_warnv_p): Declare.
19675         (tree_single_nonzero_warnv_p): Declare.
19676         (tree_expr_nonzero_warnv_p): Declare.
19677         (tree_unary_nonnegative_warnv_p): Declare.
19678         (tree_binary_nonnegative_warnv_p): Declare.
19679         (tree_single_nonnegative_warnv_p): Declare.
19680         (tree_invalid_nonnegative_warnv_p): Declare.
19682 2008-03-28  Richard Guenther  <rguenther@suse.de>
19684         PR tree-optimization/30317
19685         PR tree-optimization/30911
19686         PR tree-optimization/34793
19687         * tree-vrp.c (set_and_canonicalize_value_range): New function.
19688         (struct assert_locus_d): New member EXPR.
19689         (register_new_assert_for): Add EXPR parameter to support
19690         ASSERT_EXPR <name, expr OP limit>.
19691         (register_edge_assert_for_1): Adjust callers.
19692         (find_assert_locations): Likewise.
19693         (process_assert_insertions_for): Build condition from expression.
19694         (extract_range_from_assert): Handle ASSERT_EXPRs
19695         of the form ASSERT_EXPR <name, expr OP limit>.
19696         (register_edge_assert_for_2): New helper registering
19697         asserts for comparisons.  Recognize range tests of the form
19698         (unsigned)i - CST1 OP CST2.
19699         (register_edge_assert_for_1): Use it.
19700         (register_edge_assert_for): Likewise.
19701         (needs_overflow_infinity): Integer sub-types
19702         do not need overflow infinities.
19703         (vrp_val_is_max): The extreme values of integer sub-types
19704         are those of the base type.
19705         (vrp_val_is_min): Likewise.
19706         * tree.def (ASSERT_EXPR): Document extra allowed conditional
19707         expressions.
19709 2008-03-28  Nick Clifton  <nickc@redhat.com>
19711         PR target/31110
19712         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
19713         Return GENERAL_REGS for stack adjustment reloads.
19715 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19717         PR target/31334
19718         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
19719         const_vector when all the vectors are constant.
19721 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
19723         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
19724         comparisons.
19725         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
19726         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
19727         (scc_sf): New.
19728         (s<code>_sf): Use new scc_sf attribute for opcode names.
19730 2008-03-27  Tom Tromey  <tromey@redhat.com>
19732         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
19733         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
19734         config/spu/t-spu-elf, config/i386/t-interix,
19735         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
19736         config/i386/x-darwin, config/i386/x-mingw32,
19737         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
19738         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
19739         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
19740         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
19741         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
19742         config/rs6000/x-darwin, config/rs6000/t-rs6000,
19743         config/score/t-score-elf, config/arm/t-strongarm-pe,
19744         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
19745         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
19746         Revert automatic dependency patch.
19748 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
19750         PR target/35657
19751         * config/i386/i386.c (ix86_function_arg_boundary): Align
19752         decimal floating point to its natural boundary.
19754 2008-03-27  Richard Guenther  <rguenther@suse.de>
19756         PR middle-end/35716
19757         * fold-const.c (fold_comparison): Restrict distinct decl
19758         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
19759         solely rely on operand_equal_p.
19761 2008-03-27  Richard Guenther  <rguenther@suse.de>
19763         PR c/32511
19764         * c-common.c (handle_weak_attribute): Reject combination of
19765         weak and inline.
19767 2008-03-27  Richard Guenther  <rguenther@suse.de>
19769         PR tree-optimization/32810
19770         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
19771         conversions from DECL_INITIAL.
19772         (fold_const_aggregate_ref): Likewise from constructor elements.
19774 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
19776         * tree-affine.h (aff_combination_expand): Declare.
19777         (get_inner_reference_aff): Likewise.
19778         * tree-affine.c (aff_combination_expand): Split out from
19779         tree_to_aff_combination_expand.
19780         (get_inner_reference_aff): New function.
19781         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
19782         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
19783         (struct lim_aux_data): sm_done field removed.
19784         (mem_ref_loc_p, mem_ref_locs_p): New types.
19785         (struct mem_ref): Added id, stored, accesses_in_loop,
19786         indep_loop, dep_loop, indep_ref, dep_ref fields.
19787         Removed is_stored, locs and next fields.
19788         (memory_accesses): New variable.
19789         (movement_possibility): Do not allow moving statements
19790         that store to memory.
19791         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
19792         New functions.
19793         (determine_max_movement): For statements with memory references,
19794         find the outermost loop in that the reference is independent.
19795         (move_computations_stmt): Mark the virtual operands for renaming.
19796         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
19797         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
19798         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
19799         add_vop_ref_mapping, create_vop_ref_mapping_loop,
19800         create_vop_ref_mapping, analyze_memory_references,
19801         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
19802         get_all_locs_in_loop, ref_always_accessed_p,
19803         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
19804         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
19805         store_motion_loop, store_motion): New functions.
19806         (struct vop_to_refs_elt): New type.
19807         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
19808         memref_hash, memref_eq, hoist_memory_references): Rewritten.
19809         (schedule_sm): Replaced by...
19810         (execute_sm): ... this.
19811         (determine_lsm_ref, hoist_memory_references,
19812         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
19813         find_more_ref_vops, free_mem_ref, free_mem_refs,
19814         determine_lsm_loop, determine_lsm): Removed.
19815         (tree_ssa_lim_finalize): Free data structures used by store motion.
19816         (tree_ssa_lim): Call analyze_memory_references.  Use
19817         store_motion instead of determine_lsm.
19819 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
19821         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
19822         rename tmake_file to m68hc11/t-m68hc11.
19823         (mcore): Set inhibit_libc to true.
19824         * config.host (alpha*-dec-*vms*): Set extra_programs.
19825         (interix3*): Don't use host_xmake_file.
19826         * configure.ac: Let config.gcc override inhibit_libc.
19827         * configure: Regenerate.
19829         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
19830         * config/t-openbsd-thread: Remove commented out lines.
19832         * config/x-interix: Remove.
19834         * config/m68hc11/t-m68hc11-gas: Rename to...
19835         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
19837         * config/mcore/t-mcore: Remove T_CFLAGS.
19838         * config/mcore/t-mcore-pe: Likewise.
19840 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
19842         * configure.ac: Replace custom __GNU_SOURCE test with
19843         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
19844         * aclocal.m4: Regenerate.
19845         * configure: Regenerate.
19846         * config.in: Regenerate.
19848 2008-03-27  Richard Guenther  <rguenther@suse.de>
19850         * fold-const.c (target.h): Include.
19851         (fold_comparison): Fold comparison of addresses of decls
19852         that bind locally or of constants.  Consolidate address folding code.
19853         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
19854         results from fold_binary_to_constant.
19855         (compare_values_warnv): Likewise.
19857 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
19859         PR middle-end/35429
19860         * fold-const.c (fold_truthop): Check for integeral types when folding
19861         a == 0 && b == 0 and a != 0 || b != 0 .
19863 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
19865         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
19867 2008-03-26  Andreas Schwab  <schwab@suse.de>
19869         * doc/invoke.texi: Fix use of @item vs. @itemx.
19871 2008-03-26  Tom Tromey  <tromey@redhat.com>
19873         * Makefile.in (build/gensupport.o, build/print-rtl.o,
19874         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
19875         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
19876         build/gencodes.o, build/genconditions.o, build/genconfig.o,
19877         build/genconstants.o, build/genemit.o, build/genextract.o,
19878         build/genflags.o, build/genmddeps.o, build/genopinit.o,
19879         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
19880         options.h.
19882 2008-03-26  Richard Guenther  <rguenther@suse.de>
19884         Revert
19885         2008-03-26  Richard Guenther  <rguenther@suse.de>
19887         * fold-const.c (target.h): Include.
19888         (fold_comparison): Fold comparison of addresses of two decls
19889         that bind locally.  Consolidate address folding code.
19891 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19893         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
19894         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
19895         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
19896         dconstsqrt2, dconstthird, dconste and/or dconst10.
19897         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
19898         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
19899         dconstsqrt2, dconste): Delete.
19900         (init_emit_once): Likewise.  Simplify initializing dconstm1.
19901         Constify variable.
19902         * real.c (get_real_const): New.
19903         * real.h (dconst3, dconst10, dconstm2, dconstthird,
19904         dconstsqrt2, dconste): Delete.
19905         (real_value_const, get_real_const): New.
19907 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
19909         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
19911         * config/i386/i386.c (ix86_function_arg_boundary): Check
19912         BIGGEST_ALIGNMENT instead of 128.
19913         (setup_incoming_varargs_64): Likewise.
19915 2008-03-26  Tom Tromey  <tromey@redhat.com>
19917         * Makefile.in (DEPFILES): Add missing '/'.
19919 2008-03-26  Richard Guenther  <rguenther@suse.de>
19921         * fold-const.c (target.h): Include.
19922         (fold_comparison): Fold comparison of addresses of two decls
19923         that bind locally.  Consolidate address folding code.
19925 2008-03-26  Nick Clifton  <nickc@redhat.com>
19927         PR target/31232
19928         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
19929         not allow INT+INT as a legitimate addressing mode.
19931 2008-03-26  Richard Guenther  <rguenther@suse.de>
19933         * tree-flow.h (widen_bitfield): Remove declaration.
19934         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
19935         (widen_bitfield): Remove function.
19936         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
19937         code.
19939 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19941         PR target/31558
19942         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
19943         error_mark_node's.
19945 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
19947         PR rtl-optimization/35232
19948         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
19949         (forget_old_reloads_1, forget_marked_reloads): Don't clear
19950         reg_reloaded_call_part_clobbered here.
19951         (reload_regs_reach_end_p): New function.
19952         (reload_reg_rtx_for_input): New variable.
19953         (reload_reg_rtx_for_output): Likewise.
19954         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
19955         when reassigning a pseudo register.  Load reloadreg from
19956         reload_reg_rtx_for_input, moving the mode and register
19957         calculation to...
19958         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
19959         instead of the original when deciding whether an input reload
19960         would be a no-op or whether an output reload can be deleted.
19961         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
19962         when setting up new_spill_reg_store.  Load it from
19963         reload_reg_rtx_for_output, moving the mode and register
19964         calculation to...
19965         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
19966         instead of the original when deciding whether an output reload
19967         would be a no-op.  Do the same when modifying insn notes.
19968         Use rtx_equal_p instead of == to compare the registers.
19969         (inherit_piecemeal_p): Take a mode and two register numbers
19970         as argument.
19971         (emit_reload_insns): Clear new_spill_reg_store for every hard
19972         register in the reload register.  Remove spill registers
19973         from reg_reloaded_valid before considering whether to record
19974         inheritance information for them.  Use reload_reg_rtx_for_output
19975         instead of reg_rtx when recording output reloads.  Use
19976         reload_reg_rtx_for_input instead of reg_rtx when recording
19977         input reloads.  Set or clear reg_reloaded_call_part_clobbered
19978         at the same time as setting reg_reloaded_valid.
19979         (delete_output_reload): Add a new_reload_reg parameter and use it
19980         instead of rld[j].reg_rtx.
19981         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
19982         calls accordingly.
19984 2008-03-25  Tom Tromey  <tromey@redhat.com>
19986         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
19987         (build/genattr.o): Likewise.
19988         (build/genattrtab.o): Likewise.
19989         (build/gencodes.o): Likewise.
19990         (build/genconfig.o): Likewise.
19991         (build/genconstants.o): Likewise.
19992         (build/genemit.o): Likewise.
19993         (build/genextract.o): Likewise.
19994         (build/genflags.o): Likewise.
19996 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
19998         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
19999         instead of size_int for integer types.
20000         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
20001         to match type of MINUS_EXPR.
20003 2008-03-25  Tom Tromey  <tromey@redhat.com>
20005         * configure: Rebuilt.
20006         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
20007         Makefile.
20009 2008-03-25  Tom Tromey  <tromey@redhat.com>
20011         * config/x-solaris (host-solaris.o): Update.
20012         * config/x-linux (host-linux.o): Update.
20013         * config/x-hpux (host-hpux.o): Update.
20014         * config/x-darwin (host-darwin.o): Update.
20015         * config/v850/t-v850e (v850-c.o): Update.
20016         * config/v850/t-v850 (v850-c.o): Update.
20017         * config/t-vxworks (vxworks.o): Update.
20018         * config/t-sol2 (sol2-c.o, sol2.o): Update.
20019         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
20020         * config/spu/t-spu-elf (spu-c.o): Update.
20021         (spu.o): Remove.
20022         * config/sh/t-symbian (sh-c.o): Update.
20023         (symbian.o): Update.
20024         * config/sh/t-sh (sh-c.o): Update.
20025         * config/score/t-score-elf (score7.o, score3.o): Update.
20026         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
20027         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
20028         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
20029         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
20030         (rs6000.o): Remove.
20031         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
20032         * config/m32c/t-m32c (m32c-pragma.o): Update.
20033         * config/ia64/t-ia64 (ia64-c.o): Update.
20034         * config/i386/x-mingw32 (host-mingw32.o): Update.
20035         * config/i386/x-i386 (driver-i386.o): Update.
20036         * config/i386/x-darwin (host-i386-darwin.o): Update.
20037         * config/i386/x-cygwin (host-cygwin.o): Update.
20038         * config/i386/t-nwld (nwld.o): Update.
20039         * config/i386/t-netware (netware.o): Update.
20040         * config/i386/t-interix (winnt.o): Update.
20041         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
20042         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
20043         msformat-c.o): Update.
20044         * config/bfin/t-bfin-linux (generated_files): Add
20045         linux-sysroot-suffix.h.
20046         * config/arm/t-wince-pe (pe.o): Update.
20047         * config/arm/t-strongarm-pe (pe.o): Update.
20048         * config/arm/t-pe (pe.o): Update.
20049         * config/arm/t-arm (arm-c.o): Update.
20050         * doc/install.texi (Prerequisites): Require make 3.80.
20051         * Makefile.in: Remove .o targets.
20052         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
20053         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
20054         (simple_generated_h, simple_generated_c): Move earlier.
20055         (generated_files): New variable.
20056         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
20057         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
20058         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
20059         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
20060         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
20061         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
20062         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
20063         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
20064         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
20065         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
20066         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
20067         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
20068         (.c.o): Remove.
20069         (COMPILE.base, COMPILE): New variables.
20070         (%.o): New pattern rule.
20071         (ALL_HOST_OBJS): New variable.
20072         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
20073         (dummy-checksum.o, cc1-checksum.o): Remove.
20074         (DRIVER_SHLIB): New variable.
20075         (DRIVER_DEFINES): Use it.
20076         (gencondmd.c): Move out of build/.
20077         (s-conditions): Update.
20078         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
20079         (ALL_BUILD_OBJS): Likewise.
20080         (build/%.o): Use BUILDCOMPILE.
20081         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
20082         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
20083         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
20084         build/gencheck.o, build/gencodes.o, build/genconditions.o,
20085         build/genconfig.o, build/genconstants.o, build/genemit.o,
20086         build/genextract.o, build/genflags.o, build/genmddeps.o,
20087         build/genopinit.o, build/genoutput.o, build/genpeep.o,
20088         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
20089         build/gen-protos.o, build/scan.o, build/fix-header.o,
20090         build/scan-decls.o): Simplify.
20091         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
20092         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
20093         prefix.o, toplev.o): Reduce to variable setting.
20094         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
20095         ($(out_object_file), gcc-options.o): New targets.
20096         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
20097         * configure: Rebuilt.
20098         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
20099         * doc/sourcebuild.texi (Front End Directory): Document new variable.
20101 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
20103         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
20104         complain when we hit an error, return ERROR_MARK_NODE.
20106 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
20108         * config/sh/constraints.md (Pso, Psz): New constraints.
20109         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
20110         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
20112 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
20114         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
20115         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
20117 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
20119         * config/sh/sh.md (prefetch): Add condition for SH2A target.
20120         (prefetch_sh2a): New.
20122 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
20123             Naveen.H.S  <naveen.hs@kpitcummins.com>
20125         * config/sh/constraints.md (I28): New constraint.
20126         * config/sh/sh.c (broken_move): Add support for movi20s.
20127         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
20129 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
20130             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
20131             Naveen.H.S  <naveen.hs@kpitcummins.com>
20133         * config/sh/sh.c (SH_ATTRIBUTES): Define.
20134         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
20135         (print_operand): Handle resbank in %@ operand code.
20136         (sh_encode_section_info): New.
20137         (push_regs): Add conditions for resbank.
20138         (sh_expand_epilogue): Likewise.
20139         (sh_insert_attributes): Likewise.
20140         (sh_attribute_table): Likewise.
20141         (sh_handle_resbank_handler_attribute): New.
20142         (sh2a_handle_function_vector_handler_attribute): New.
20143         (sh2a_is_function_vector_call): New.
20144         (sh2a_get_function_vector_number): New.
20145         (sh2a_function_vector_p): New.
20146         (sh_cfun_resbank_handler_p): New.
20147         * config/sh/sh.md (calli): Emit jsr/n if possible.
20148         (calli_tbr_rel): New.
20149         (calli_pcrel): Emit jsr/n if possible.
20150         (return_i): Emit rts/n if possible.
20151         (call_valuei_tbr_rel): New.
20152         (call_valuei_pcrel): Add condition for SH2A target.
20153         (call_value): Likewise.
20154         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
20155         (sh2a_get_function_vector_number): Likewise.
20156         (sh2a_is_function_vector_call): Likewise.
20157         * doc/extend.texi: Document TBR relative addressing of SH2A.
20158         (resbank): Add description for SH2A.
20160 2008-03-24  Richard Guenther  <rguenther@suse.de>
20162         PR c/22371
20163         * gimplify.c (gimplify_modify_expr): For frontend type-correct
20164         pointer assignments change conversions according to middle-end rules.
20165         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
20166         * configure.ac: Include type checking in yes.
20167         * configure: Regenerate.
20169 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20171         * diagnostic.c (diagnostic_count_diagnostic): Delete.
20172         (diagnostic_report_diagnostic): Update. Handle ICEs here.
20174 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
20176         * gthr-vxworks.h (UNUSED): Define.
20178 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
20180         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
20182 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
20184         * doc/extend.texi (Function Attributes): Add missing comma in the
20185         example of the "alloc_size" attribute.
20187 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
20189         Revert:
20190         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
20192         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
20193         32bit host.
20195         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
20197         PR target/35496
20198         * stor-layout.c (update_alignment_for_field): Set minimum alignment
20199         of the underlying type of a MS bitfield layout to the natural
20200         alignment of the type.
20202         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
20204         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
20205         to their natural alignment to avoid store forwarding stalls.
20207 2008-03-22  Richard Guenther  <rguenther@suse.de>
20209         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
20210         For PHI nodes verify the address is invariant.
20211         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
20212         (get_symbol_constant_value): Use is_gimple_min_invariant.
20213         (maybe_fold_stmt_indirect): Likewise.
20215 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
20217         PR rtl-optimization/33927
20218         * Makefile.in (dse.o): Depend on $(TM_P_H).
20219         * expr.h (extract_low_bits): Declare.
20220         * expmed.c (extract_low_bits): New function.
20221         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
20222         * dse.c: Include tm_p.h.
20223         (find_shift_sequence): Remove the read_reg argument and return the
20224         read value.  Emit the instructions instead of returning them.
20225         Iterate on new_mode rather than calculating it each time.
20226         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
20227         source to NEW_MODE and extract_low_bits to convert the shifted
20228         value to READ_MODE.
20229         (replace_read): Allow the load and store to have different mode
20230         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
20231         or extraction instructions before trying the replacement.  Update
20232         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
20234 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
20236         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
20237         to their natural alignment to avoid store forwarding stalls.
20239 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20241         PR target/27946
20242         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
20243         encouraging but not allowing gprs for input;
20244         change the input constraint to !f#r.
20245         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
20246         gprs for output;
20247         change the output constraint to !f#r.
20249 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
20251         PR target/13958
20252         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
20253         corresponding post-reload splitters.
20254         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
20255         when x87 FP math is selected.
20256         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
20257         New function prototype.
20258         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
20259         unreachable function to ease macroization of insn patterns.
20261 2008-03-21  Martin Jambor  <mjambor@suse.cz>
20263         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
20264         reference dumps if ddr is NULL or dependence is unknown.
20266 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
20268         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
20269         unsigned extension into account.
20270         (ATOMIC_COMPARE_AND_SWAP): Likewise.
20271         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
20272         Do computations on a scratch register.
20274 2008-03-21  Richard Guenther  <rguenther@suse.de>
20276         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
20277         Use is_gimple_min_invariant instead of TREE_INVARIANT.
20278         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
20279         * tree-ssa-dom.c (record_equality): Likewise.
20280         * tree-inline.c (copy_body_r): Likewise.
20281         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
20282         TREE_INVARIANT.
20284 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
20286         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
20287         as 'delete_unused' argument.
20289 2008-03-20  Richard Guenther  <rguenther@suse.de>
20291         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
20292         special casing of constant qualifiers.
20293         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
20294         care about them in general.
20295         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
20296         regardless of their type.
20297         (fold_stmt_r): Forcefully fold *& if we end up with that.
20299 2008-03-20  Paul Brook  <paul@codesourcery.com>
20301         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
20302         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
20303         linker flags.
20304         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
20305         definition.
20306         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
20307         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
20309 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
20311         * common.opt (Wmudflap): New option.
20312         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
20313         (mx_register_decls): Likewise.
20314         (mudflap_finish_file): Likewise.
20315         * doc/invoke.texi: Document -Wno-mudflap.
20317 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
20319         * c-format.c (replace_format_name_to_system_name): New.
20320         (cmp_attribs): New.
20321         (convert_format_name_to_system_name): New.
20322         (decode_format_attr): Add use of convert_format_name_to_system_name.
20323         (format_types_orig): Add gnu_ prefix to names.
20324         (check_format_info_main): Special treating of \0 escaped names for
20325         supporting multi-character format specifiers as I32, I64.
20326         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
20327         (gnu_target_overrides_format_attributes): New.
20328         * c-format.h: Add structure target_ovr_attr to hold
20329         system specific formatter names.
20330         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
20331         msformat-c.o file to c_target_objs and cxx_target_objs.
20332         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
20333         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
20334         (TARGET_N_FORMAT_TYPES): New.
20335         * config/i386/msformat-c.c: New.
20336         * config/i386/t-cygming: Add build rule for msformat-c.o.
20337         * doc/extend.texi: Add new format names gnu_* and ms_* and
20338         further details.
20339         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
20341 2008-03-20  Ira Rosen  <irar@il.ibm.com>
20343         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
20344         optimizations turned on under -O3.
20345         (ftree-vectorize): Add that the flag is turned on with -O3.
20347 2008-03-20  Ben Elliston  <bje@au.ibm.com>
20349         * regmove.c (try_auto_increment): Fix spelling error in comment.
20350         * final.c (final_scan_insn): Likewise.
20352 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
20354         PR target/14552
20355         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
20356         allocator preferences for "y" and "r" class registers.
20357         ("*mov<mode>_internal"): Ditto.
20358         ("*movv2sf_internal_rex64"): Ditto.
20359         ("*movv2sf_internal"): Ditto.
20361 2008-03-19  Michael Matz  <matz@suse.de>
20363         PR middle-end/35616
20364         * calls.c (expand_call): Check overlap of arguments with call
20365         address for sibcalls.
20367 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
20369         PR target/35496
20370         * stor-layout.c (update_alignment_for_field): Set minimum alignment
20371         of the underlying type of a MS bitfield layout to the natural
20372         alignment of the type.
20374 2008-03-19  Jan Hubicka  <jh@suse.cz>
20376         PR other/35094
20377         * toplev.c (decode_d_option): Handle all CPP flags.
20378         * tree-vrp.c: Update tree_pass descriptors.
20379         * regrename.c: Update tree_pass descriptors.
20380         * fwprop.c: Update tree_pass descriptors.
20381         * doc/invoke.texi: Remove documentation of dropped -d? flags.
20382         * tree-into-ssa.c: Update tree_pass descriptors.
20383         * tree-dump.c: Update tree_pass descriptors.
20384         * tree-complex.c: Update tree_pass descriptors.
20385         * tree-dump.h: Update tree_pass descriptors.
20386         * see.c: Update tree_pass descriptors.
20387         * cgraphbuild.c: Update tree_pass descriptors.
20388         * tracer.c: Update tree_pass descriptors.
20389         * tree-loop-distribution.c: Update tree_pass descriptors.
20390         * cgraph.c: Update tree_pass descriptors.
20391         * postreload-gcse.c: Update tree_pass descriptors.
20392         * postreload.c: Update tree_pass descriptors.
20393         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
20394         * tree-tailcall.c: Update tree_pass descriptors.
20395         * tree-pass.h (tree_opt_pass): Rename to ...
20396         (opt_pass) ... this one; add "type" field and remove letter field.
20397         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
20398         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
20399         all_lowering_passes): Update declaration.
20400         * ipa-cp.c: Update tree_pass descriptors.
20401         * final.c: Update tree_pass descriptors.
20402         * omp-low.c: Update tree_pass descriptors.
20403         * tree-ssa-dse.c: Update tree_pass descriptors.
20404         * ipa-reference.c: Update tree_pass descriptors.
20405         * tree-ssa-uncprop.c: Update tree_pass descriptors.
20406         * auto-inc-dec.c: Update tree_pass descriptors.
20407         * reorg.c: Update tree_pass descriptors.
20408         * cgraphunit.c: Update tree_pass descriptors.
20409         * tree-ssa-copyrename.c: Update tree_pass descriptors.
20410         * tree-ssa-ccp.c: Update tree_pass descriptors.
20411         * df-core.c: Update tree_pass descriptors.
20412         * mode-switching.c: Update tree_pass descriptors.
20413         * tree-nomudflap.c: Update tree_pass descriptors.
20414         * modulo-sched.c: Update tree_pass descriptors.
20415         * ipa-pure-const.c: Update tree_pass descriptors.
20416         * cse.c: Update tree_pass descriptors.
20417         * web.c: Update tree_pass descriptors.
20418         * tree-stdarg.c: Update tree_pass descriptors.
20419         * tree-ssa-math-opts.c: Update tree_pass descriptors.
20420         * tree-ssa-dom.c: Update tree_pass descriptors.
20421         * tree-nrv.c: Update tree_pass descriptors.
20422         * tree-ssa-alias.c: Update tree_pass descriptors.
20423         * loop-init.c: Update tree_pass descriptors.
20424         * gimple-low.c: Update tree_pass descriptors.
20425         * ipa-inline.c: Update tree_pass descriptors.
20426         * tree-ssa-sink.c: Update tree_pass descriptors.
20427         * global.c: Update tree_pass descriptors.
20428         * ifcvt.c: Update tree_pass descriptors.
20429         * jump.c: Update tree_pass descriptors.
20430         * predict.c: Update tree_pass descriptors.
20431         * tree-ssa-loop.c: Update tree_pass descriptors.
20432         * recog.c: Update tree_pass descriptors.
20433         * dse.c: Update tree_pass descriptors.
20434         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
20435         * tree-eh.c: Update tree_pass descriptors.
20436         * regmove.c: Update tree_pass descriptors.
20437         * local-alloc.c
20438         * function.c: Update tree_pass descriptors.
20439         * tree-vectorizer.c: Update tree_pass descriptors.
20440         * gcse.c: Update tree_pass descriptors.
20441         * ipa-type-escape.c: Update tree_pass descriptors.
20442         * tree-if-conv.c: Update tree_pass descriptors.
20443         * init-regs.c: Update tree_pass descriptors.
20444         * ipa.c: Update tree_pass descriptors.
20445         * tree-ssa-phiopt.c: Update tree_pass descriptors.
20446         * rtl-factoring.c: Update tree_pass descriptors.
20447         * lower-subreg.c: Update tree_pass descriptors.
20448         * bt-load.c: Update tree_pass descriptors.
20449         * tree-dfa.c: Update tree_pass descriptors.
20450         * except.c: Update tree_pass descriptors.
20451         * emit-rtl.c: Update tree_pass descriptors.
20452         * cfgexpand.c: Update tree_pass descriptors.
20453         * tree-cfgcleanup.c: Update tree_pass descriptors.
20454         * cfgcleanup.c: Update tree_pass descriptors.
20455         * tree-ssa-pre.c: Update tree_pass descriptors.
20456         * tree-sra.c: Update tree_pass descriptors.
20457         * tree-mudflap.c: Update tree_pass descriptors.
20458         * tree-ssa-copy.c: Update tree_pass descriptors.
20459         * cfglayout.c: Update tree_pass descriptors.
20460         * tree-ssa-forwprop.c: Update tree_pass descriptors.
20461         * tree-ssa-dce.c: Update tree_pass descriptors.
20462         * tree-ssa.c: Update tree_pass descriptors.
20463         * regclass.c: Update tree_pass descriptors.
20464         * integrate.c: Update tree_pass descriptors.
20465         * tree-optimize.c: Update tree_pass descriptors.
20466         * tree-ssa-phiprop.c: Update tree_pass descriptors.
20467         * tree-object-size.c: Update tree_pass descriptors.
20468         * combine.c: Update tree_pass descriptors.
20469         * tree-outof-ssa.c: Update tree_pass descriptors.
20470         * bb-reorder.c: Update tree_pass descriptors.
20471         * stack-ptr-mod.c: Update tree_pass descriptors.
20472         * var-tracking.c: Update tree_pass descriptors.
20473         * tree-profile.c: Update tree_pass descriptors.
20474         * tree-vect-generic.c: Update tree_pass descriptors.
20475         * reg-stack.c: Update tree_pass descriptors.
20476         * sched-rgn.c: Update tree_pass descriptors.
20477         * tree-ssa-structalias.c: Update tree_pass descriptors.
20478         * tree-cfg.c: Update tree_pass descriptors.
20479         * passes.c (current_pass): Update declaration.
20480         (finish_optimization_passes): Update.
20481         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
20482         (register_one_dump_file, register_dump_files_1, next_pass_1):
20483         Update arguments.
20484         (init_optimization_passes): Update handling of new types.
20485         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
20486         * ipa-struct-reorg.c: Update tree_pass descriptors.
20487         * tree-ssa-reassoc.c: Update tree_pass descriptors.
20488         * combine-stack-adj.c: Update tree_pass descriptors.
20489         * cfgrtl.c: Update tree_pass descriptors.
20490         * dce.c: Update tree_pass descriptors.
20491         * tree-ssanames.c: Update tree_pass descriptors.
20493 2008-03-19  Richard Guenther  <rguenther@suse.de>
20495         PR middle-end/35609
20496         * tree-ssa.c (walk_data): New structure.
20497         (warn_uninitialized_var): If not always_executed warn with "maybe"
20498         instead of "is".
20499         (execute_early_warn_uninitialized): Compute post-dominators.
20500         Initialize always_executed before processing each basic block.
20502 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
20504         PR target/35504
20505         * config/i386/i386.c (x86_this_parameter): Calculate correct location
20506         of "this" pointer when "regparm = N" or "fastcall" is in effect.
20508 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20510         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
20512 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
20514         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
20515         is true.
20516         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
20517         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
20518         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
20519         target after ignore has been set, and move there also the commputation
20520         of subtarget and original_target.
20521         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
20522         (LANG_HOOKS_INITIALIZER): Remove it.
20523         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
20525 2008-03-18  Richard Guenther  <rguenther@suse.de>
20527         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
20528         found an expression with constants, note that in the VN for the lhs.
20529         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
20530         fold them to constants if possible.  Run cleanup_cfg if done so.
20531         (execute_pre): Return todo.
20532         (do_pre): Likewise.
20533         (execute_fre): Likewise.
20534         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
20535         of constants.
20536         (get_prop_source_stmt): Look through pointer conversions.
20538 2008-03-18  Jan Hubicka  <jh@suse.cz>
20540         * tree-pretty-print.c: Include predict.h.
20541         (dump_generic_node): Dump predictor.
20542         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
20543         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
20544         * gimple-low.c (lower_stmt): Likewise.
20545         * expr.c (expand_expr_real): Likewise.
20546         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
20547         them.
20548         (build_predict_expr, build_predict_expr): New.
20549         * predict.h (predictor_name, build_predict_expr): Update.
20550         * c-typeck.c (c_finish_bc_stmt): Add prediction.
20551         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
20552         * predict.def (PRED_CONTINUE): Update hitrate.
20553         * tree.def (PREDICT_EXPR): Define.
20554         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
20555         do not handle BIND_EXPR.
20556         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
20557         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
20558         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
20559         operands.
20561 2008-03-18  Michael Matz  <matz@suse.de>
20563         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
20565 2008-03-18  Richard Guenther  <rguenther@suse.de>
20567         * tree-gimple.h (is_gimple_invariant_address): Declare.
20568         (is_gimple_constant): Likewise.
20569         * tree-gimple.c (is_gimple_constant): New function.
20570         (is_gimple_invariant_address): Likewise.
20571         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
20572         and is_gimple_invariant_address.
20573         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
20574         previous change.
20575         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
20576         an addressable base.
20578 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
20580         PR middle-end/35611
20581         * gimplify.c (gimplify_expr): Gimplify second operand of
20582         OMP_ATOMIC_LOAD.
20584 2008-03-17  Richard Guenther  <rguenther@suse.de>
20586         PR tree-optimization/19637
20587         * fold-const.c (fold_unary): Remove restrictions of removing
20588         intermediate pointer-conversions (P2)(P1)P0.
20589         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
20590         conversion to void pointer.
20591         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
20593 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
20595         PR debug/31510
20596         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
20597         emulated thread local variables.
20599 2008-03-16  Richard Guenther  <rguenther@suse.de>
20601         PR middle-end/35607
20602         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
20603         expand TREE_INVARIANT operations that are not gimple invariant.
20605 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
20607         * doc/extend.texi (Alignment): Say that the ABI controls
20608         the __alignof__ for non-strict-alignment targets rather
20609         than being a recommendation.
20611 2008-03-15  Paul Brook  <paul@codesourcery.com>
20613         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
20614         annotations.
20615         (arm_output_fn_unwind): Mark functions that can not be unwound.
20617 2008-03-15  Paul Brook  <paul@codesourcery.com>
20619         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
20620         extension instructions.
20622 2008-03-15  Richard Guenther  <rguenther@suse.de>
20624         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
20625         and fold constant aggregate refs.
20626         (fold_const_aggregate_ref): Handle string constants
20627         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
20628         (evaluate_stmt): Simplify now that ccp_fold folds constant
20629         aggregate refs.
20631 2008-03-15  Paul Brook  <paul@codesourcery.com>
20633         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
20634         (extzv): Use gen_extzv_t2.
20635         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
20637 2008-03-15  Richard Guenther  <rguenther@suse.de>
20639         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
20640         (fold_const_aggregate_ref): Likewise.
20641         (get_value): Return NULL if we don't have any values.
20642         (ccp_finalize): Set const_val to NULL after freeing it.
20643         * tree-flow.h (get_symbol_constant_value): Declare.
20644         (fold_const_aggregate_ref): Likewise.
20645         * tree-ssa-sccvn.c (try_to_simplify): Use them.
20647 2008-03-15  Richard Guenther  <rguenther@suse.de>
20649         PR middle-end/35593
20650         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
20651         to not produce negative array indices if not allowed.  Add
20652         parameter to indicate that.
20653         (maybe_fold_offset_to_component_ref): Allow negative array
20654         indices only for the first member of a structure.
20655         (maybe_fold_offset_to_reference): Allow negative array indices.
20656         (maybe_fold_stmt_addition): Likewise.
20658 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
20659             Anatoly Sokolov <aesok@post.ru>
20661         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
20662         (avr_arch): Add ARCH_AVR6.
20663         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
20664         (initial_elimination_offset): Initialize and use 'avr_pc_size'
20665         instead of fixed value 2.
20666         (print_operand_address): Use gs() asm specifier instead of pm().
20667         (avr_assemble_integer): (Ditto.).
20668         (avr_output_addr_vec_elt): (Ditto.).
20669         (print_operand): Handle "!" code.
20670         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
20671         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
20672         (AVR_HAVE_EIJMP_EICALL): Define.
20673         (AVR_3_BYTE_PC): Redefine.
20674         (AVR_2_BYTE_PC): (Ditto.).
20675         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
20676         (LINK_SPEC): Add atmega2560 and atmega2561.
20677         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
20678         (crtm2561.o).
20679         * config/avr/avr.md (call_insn): Use eicall instead of icall
20680         for 3 byte PC devices.
20681         (call_value_insn): (Ditto.).
20682         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
20683         (indirect_jump): Use only for for 2 byte PC devices.
20684         (*tablejump): (Ditto.).
20685         (*indirect_jump_avr6): Add insn.
20686         (*tablejump_rjmp): Don't use for 3 byte PC devices.
20687         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
20688         instead of ijmp for 3 byte PC devices.
20689         (__tablejump2__): (Ditto.).
20690         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
20691         (MULITLIB_DIRNAMES): (Ditto.).
20692         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
20694 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
20696         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
20697         "sse2_umulsidi3".  Use V1DI mode for operand 0.
20698         ("mmx_psadbw"): Use V1DI mode for operand 0.
20699         * config/i386/i386-modes.def (V1SI): New vector mode.
20700         * config/i386/i386.c (struct builtin_description)
20701         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
20702         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
20703         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
20704         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
20705         v1di_ftype_v8qi_v8qi type.
20706         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
20708         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
20709         __builtin_ia32_pmuludq]: Fix the mode of return value.
20711 2008-03-15  Richard Guenther  <rguenther@suse.de>
20713         PR middle-end/35595
20714         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
20715         being a PHI_NODE.
20717 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
20719         * doc/invoke.texi (Option Summary, Xtensa Options): Document
20720         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
20721         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
20722         unless TARGET_SERIALIZE_VOLATILE is enabled.
20723         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
20724         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
20725         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
20727 2008-03-14  Richard Guenther  <rguenther@suse.de>
20729         PR tree-optimization/34172
20730         * tree-flow.h (refs_may_alias_p): Declare.
20731         (get_single_def_stmt): Likewise.
20732         (get_single_def_stmt_from_phi): Likewise.
20733         (get_single_def_stmt_with_phi): Likewise.
20734         * tree-dfa.c (refs_may_alias_p): New function.
20735         (get_single_def_stmt): Likewise.
20736         (get_single_def_stmt_from_phi): Likewise.
20737         (get_single_def_stmt_with_phi): Likewise.
20738         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
20739         (vn_reference_lookup_1): New helper function.
20740         (vn_reference_lookup): Walk the virtual use-def chain to
20741         continue searching for a match if the def does not alias the
20742         reference we are looking for.
20744 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
20746         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
20747         archive and Perzl.  Update The Written Word listing.
20749 2008-03-14  Richard Guenther  <rguenther@suse.de>
20751         PR tree-optimization/34043
20752         PR tree-optimization/33989
20753         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
20754         when doing FRE.
20755         (bitmap_find_leader): Use extra argument to verify dominance
20756         relationship inside a basic-block.
20757         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
20758         (find_leader_in_sets): Adjust.
20759         (create_component_ref_by_pieces): Take extra argument for
20760         dominance check, handle lookup failures.
20761         (find_or_generate_expression): Likewise.
20762         (create_expression_by_pieces): Likewise.
20763         (insert_into_preds_of_block): Adjust.
20764         (create_value_expr_from): If asked for, verify all operands
20765         are in the blocks AVAIL_OUT set.
20766         (make_values_for_stmt): Check for SSA_NAMEs that are life
20767         over an abnormal edge.
20768         (compute_avail): Remove such check.
20769         (do_SCCVN_insertion): New function.
20770         (eliminate): If we do not find a leader suitable for replacement
20771         insert a replacement expression from SCCVN if available.
20772         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
20773         (struct vn_ssa_aux): Add needs_insertion flag.
20774         * tree-ssa-sccvn.c (may_insert): New global flag.
20775         (copy_reference_ops_from_ref): Value-number union member access
20776         based on its size, not type and member if insertion is allowed.
20777         (visit_reference_op_load): For a weak match from union type
20778         punning lookup a view-converted value and insert a SSA_NAME
20779         for that value if that is not found.
20780         (visit_use): Make dumps shorter.  Do not disallow value numbering
20781         SSA_NAMEs that are life over an abnormal edge to constants.
20782         (free_scc_vn): Release inserted SSA_NAMEs.
20783         (run_scc_vn): New flag to specify whether insertion is allowed.
20784         Process SSA_NAMEs in forward order.
20785         * tree-ssa-loop-im.c (for_each_index): Handle invariant
20786         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
20787         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
20788         pointer type to/from integral types that do not change the
20789         precision to regular conversions.
20791 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
20793         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
20794         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
20795         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
20796         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
20797         input arguments and the mode of return value.  Built-in functions
20798         that operate on whole 64-bit MMX register now use V1DI mode.
20800 2008-03-13  Alon Dayan  <alond@il.ibm.com>
20801             Olga Golovanevsky  <olga@il.ibm.com>
20803         PR tree-optimization/35041
20804         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
20805         to locate the right position in a statement.
20807 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
20809         PR target/34000
20810         PR target/35553
20811         * config/i386/xmmintrin.h:  Change all static inline functions to
20812         extern inline and add __gnu_inline__ attribute.
20813         * config/i386/bmintrin.h: Ditto.
20814         * config/i386/smmintrin.h: Ditto.
20815         * config/i386/tmmintrin.h: Ditto.
20816         * config/i386/mmintrin-common.h: Ditto.
20817         * config/i386/ammintrin.h: Ditto.
20818         * config/i386/emmintrin.h: Ditto.
20819         * config/i386/pmmintrin.h: Ditto.
20820         * config/i386/mmintrin.h: Ditto.
20821         * config/i386/mm3dnow.h: Ditto.
20823 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
20825         PR middle-end/35185
20826         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
20827         (lower_omp_2): New function.
20828         (lower_omp_1, lower_omp): Rewritten.
20830 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
20832         PR 35054
20833         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
20834         with the phrase "Microsoft Windows compilers".
20835         (Push/Pop Macro Pragmas): New subsection. Document
20836         #pragma push_macro and pragma pop_macro.
20838 2008-03-12  Paul Brook  <paul@codesourcery.com>
20840         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
20842 2008-03-12  Paul Brook  <paul@codesourcery.com>
20844         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
20845         (thumb2_alusi3_short): Exclude PLUS and MINUS.
20846         (thumb2_addsi_shortim): Rename ...
20847         (thumb2_addsi_short): ... to this.  Allow register operands.
20848         (thumb2_subsi_short): New pattern.
20849         (thumb2_one_cmplsi2_short,
20850         thumb2_negsi2_short): New patterns and peepholes.
20852 2008-03-12  Paul Brook  <paul@codesourcery.com>
20854         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
20856 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
20858         * config/i386/i386.md (int_cond): New code iterator.
20859         (fp_cond): Ditto.
20860         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
20861         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
20862         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
20863         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
20864         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
20865         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
20866         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
20867         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
20869 2008-03-12  Paul Brook  <paul@codesourcery.com>
20871         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
20872         instead of {arm,thumb}_compute_save_reg_mask.
20873         (output_return_instruction): Ditto.
20874         (thumb_unexpanded_epilogue): Ditto.
20875         (thumb1_expand_prologue): Ditto.
20876         (thumb1_output_function_prologue): Ditto.
20877         (arm_set_return_address): Ditto.
20878         (thumb_set_return_address): Ditto.
20879         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
20880         regs to achieve stack alignment.
20881         (thumb1_compute_save_reg_mask): Fix compiler warning.
20882         (arm_output_epilogue): Use offsets->saved_regs_mask.
20883         Adjust stack pointer by poping call clobered registers.
20884         (arm_expand_prologue): Use offsets->saved_regs_mask.
20885         Adjust stack pointer by pushing extra registers.
20886         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
20888 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
20890         PR tree-opt/35422
20891         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
20892         conversion to the operands of a multiplication.
20894 2008-03-12  Richard Guenther  <rguenther@suse.de>
20896         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
20897         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
20898         * timevar.def (TV_TREE_PHIPROP): Add.
20899         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
20900         pass description.  Use TV_TREE_PHIPROP.
20901         * tree-ssa-forwprop.c: Remove phiprop code.
20903 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
20905         PR middle-end/35549
20906         * omp-low.c (maybe_lookup_decl): Constify first argument.
20907         (use_pointer_for_field): Change last argument from bool to
20908         omp_context *.  Disallow shared copy-in/out in nested
20909         parallel if decl is shared in outer parallel too.
20910         (build_outer_var_ref, scan_sharing_clauses,
20911         lower_rec_input_clauses, lower_copyprivate_clauses,
20912         lower_send_clauses, lower_send_shared_vars): Adjust callers.
20914 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
20915             Ira Rosen  <irar@il.ibm.com>
20917         * tree-vectorizer.c (free_stmt_vec_info): New function.
20918         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
20919         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
20920         * tree-vectorizer.h (free_stmt_vec_info): Declare.
20921         * tree-vect-transform.c (vectorizable_conversion): Free
20922         vec_oprnds0 if it was allocated.
20923         (vect_permute_store_chain): Remove unused VECs.
20924         (vectorizable_store): Free VECs that are allocated in the..
20925         function.
20926         (vect_transform_strided_load, vectorizable_load): Likewise.
20927         (vect_remove_stores): Simplify the code.
20928         (vect_transform_loop): Move code to vect_remove_stores().
20929         Call vect_remove_stores() and free_stmt_vec_info().
20931 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20933         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
20934         TARGET_HPUX.  Revise comment.
20935         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
20936         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
20937         Use sr4 variant of `be' instruction when not generating PIC code.
20938         (attr_length_call): Adjust for above change.
20940 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20942         * ipa-reference.c (static_execute): Remove module_statics_const and
20943         associated setting code.
20945 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
20947         PR target/35540
20948         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
20949         predicate for operand 1.
20950         (paritysi2_cmp): Use register_operand predicate for operand 2.
20951         Use earlyclobber modifier for operand 1.  Remove support for
20952         memory operands.
20953         (paritydi2_cmp): Use register_operand predicate for operand 3.
20954         Use earlyclobber modifier for operand 1.  Remove support for
20955         memory operands.
20957 2008-03-11  Paul Brook  <paul@codesourcery.com>
20958             Vladimir Prus  <vladimir@codesourcery.com>
20960         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
20961         (arm_compute_save_reg0_reg12_mask): Always
20962         check if register 11 must be saved.  Always safe hard frame pointer
20963         when frame_pointer_needeed.
20964         (arm_compute_save_reg_mask): Save IP and PC
20965         only with apcs frames.
20966         (arm_output_epilogue): Adjust Thumb2 codepath to
20967         be also invoked and work for ARM non-apcs frames.
20968         (arm_expand_prologue): Don't bother saving IP
20969         for non-apcs frame, since it's not clobbered by
20970         prologue code.  Implement non-apcs frame
20971         layout.
20973 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
20975         PR rtl-optimization/35281
20976         * expr.c (convert_move): Use a new pseudo for the intermediate
20977         from_mode->word_mode result.
20979 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
20981         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
20982         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
20983         * toplev.c (compile_file): Don't call it.
20985 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
20987         PR middle-end/35526
20988         * expr.c (store_expr): Call emit_block_move if the mode
20989         of "temp" RTX is BLKmode.
20991 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20992             Richard Guenther  <rguenther@suse.de>
20994         PR tree-optimization/31358
20995         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
20996         the step with a NULL_TREE.
20997         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
20998         to sizetype if type is a pointer type.
20999         (add_candidate_1): Don't convert the base and step to
21000         the generic type if the orginal type is a pointer type.
21001         (add_iv_value_candidates): Use sizetype for the step
21002         if type is a pointer type.
21003         (cand_value_at): Likewise.
21004         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
21005         for pointer types.
21006         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
21007         Don't convert the tem affine to the type.
21008         (add_elt_to_tree): Use sizetype for the step if a pointer.
21009         Use POINTER_PLUS_EXPR for pointers.
21010         (aff_combination_to_tree): Use sizetype for the step if a
21011         pointer.
21013 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
21015         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
21016         Remove commutativity hint.
21018 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
21020         PR c/35438
21021         PR c/35439
21022         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
21023         errorneous type.  Check that v is a VAR_DECL.
21025         PR middle-end/35099
21026         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
21028 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
21030         PR tree-optimization/35494
21031         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
21032         may be overriden at link and run time.
21034 2008-03-10  Richard Guenther  <rguenther@suse.de>
21036         PR tree-optimization/34677
21037         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
21038         (poolify_tree): Likewise.
21039         (modify_expr_template): Likewise.
21040         (poolify_modify_stmt): Likewise.
21041         (insert_fake_stores): Handle all component-ref style stores
21042         in addition to INDIRECT_REF.  Also handle complex types.
21043         Do not poolify the inserted load.
21044         (realify_fake_stores): Do not rebuild the tree but only
21045         make it a SSA_NAME copy.
21046         (init_pre): Remove initialzation of modify_expr_template.
21047         Do not allocate modify_expr_node_pool.
21048         (fini_pre): Do not free modify_expr_node_pool.
21050 2008-03-10  Paul Brook  <paul@codesourcery.com>
21052         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
21053         to avoid conflicts.
21055 2008-03-10  Paul Brook  <paul@codesourcery.com>
21056             Mark Shinwell  <shinwell@codesourcery.com>
21058         * config/arm/cortex-r4.md: New.
21059         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
21060         insn attributes.
21061         * config/arm/arm.md: Include cortex-r4.md.
21062         (insn): Add smmls, sdiv and udiv values.
21063         (generic_sched): Don't use generic scheduling for Cortex-R4.
21064         (arm_issue_rate): New function.
21065         (TARGET_SCHED_ISSUE_RATE): Define.
21067 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
21069         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
21071 2008-03-10  Richard Guenther  <rguenther@suse.de>
21073         * tree-ssa-pre.c (get_sccvn_value): Simplify.
21074         (compute_avail): Do not add stmt uses to AVAIL_OUT.
21076 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
21078         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
21079         Set default to true.
21081 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21083         * c.opt (Wsynth): Deprecate.
21084         * doc/invoke.texi (Option Summary, Warning Options): Document
21085         -Wno-format-contains-nul.
21087 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
21089         PR target/35496
21090         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
21091         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
21093 2008-03-09  Ira Rosen  <irar@il.ibm.com>
21095         * config/rs6000/rs6000.c (builtin_description): Rename vector
21096         left shift operations.
21097         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
21098         (altivec_vsl<VI_char>): Rename to ...
21099         (ashl<mode>3): ... new name.
21100         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
21101         gen_ashlv4si3.
21102         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
21104 2008-03-08  Richard Guenther  <rguenther@suse.de>
21106         * coverage.h (tree_coverage_counter_addr): Declare.
21107         * coverage.c (tree_coverage_counter_addr): New function.
21108         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
21109         before using again.
21110         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
21111         (tree_gen_one_value_profiler): Likewise.
21112         (tree_gen_ic_profiler): Likewise.
21113         (tree_gen_average_profiler): Likewise.
21114         (tree_gen_ior_profiler): Likewise.
21116 2008-03-08  Richard Guenther  <rguenther@suse.de>
21118         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
21119         (vn_binary_op_insert): Likewise.
21120         (vn_unary_op_lookup): Likewise.
21121         (vn_unary_op_insert): Likewise.
21122         (vn_nary_op_lookup): Declare.
21123         (vn_nary_op_insert): Likewise.
21124         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
21125         and binary hashes, use a single obstack for unary_op_pool
21126         and binary_op_pool.
21127         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
21128         a single struct vn_nary_op_s.  Store tree code length and
21129         a variable number of operands.
21130         (struct vn_reference_op_struct): Remove unused op2.
21131         (vn_reference_op_eq): Do not compare op2.
21132         (vn_reference_op_compute_hash): Do not compute hash of op2.
21133         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
21134         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
21135         with vn_nary_op_compute_hash.
21136         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
21137         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
21138         vn_nary_op_lookup.
21139         (vn_unary_op_insert, vn_binary_op_insert): Replace with
21140         vn_nary_op_insert.
21141         (visit_unary_op): Call nary functions.
21142         (visit_binary_op): Likewise.
21143         (process_scc): Adjust for struct vn_tables_s changes.
21144         (allocate_vn_table): Likewise.
21145         (free_vn_table): Likewise.
21146         * tree-vn.c (vn_add): Call nary functions.
21147         (vn_lookup): Likewise.
21149 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
21151         PR target/35498
21152         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
21153         wdst back after sync_compare_and_swapqhi_internal.
21155 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
21157         PR target/22152
21158         * config/i386/i386-modes.def (V1DI): New vector mode.
21159         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
21160         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
21161         (MMXMODE248): Ditto.
21162         (MMXMODE): Add V1DI mode.
21163         (mmxvecsize): Change DI mode to V1DI mode.
21164         ("mov<mode>): Use MMXMODEI8 mode iterator.
21165         ("*mov<mode>_internal_rex64"): Ditto.
21166         ("*mov<mode>_internal"): Ditto.
21167         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
21168         ("mmx_sub<mode>3"): Ditto.
21169         ("mmx_adddi3"): Remove insn pattern.
21170         ("mmx_subdi3"): Ditto.
21171         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
21172         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
21173         ("mmx_ashl<mode>3"): Ditto.
21174         ("mmx_lshrdi3"): Remove insn pattern.
21175         ("mmx_ashldi3"): Ditto.
21176         * config/i386/i386.c (classify_argument): Handle V1DImode.
21177         (function_arg_advance_32): Ditto.
21178         (function_arg_32): Ditto.
21179         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
21180         mmx_addv1di3 insn pattern.
21181         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
21182         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
21183         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
21184         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
21185         Remove definitions of built-in functions.
21186         (V1DI_type_node): New node.
21187         (v1di_ftype_v1di_int): Ditto.
21188         (v1di_ftype_v1di_v1di): Ditto.
21189         (v2si_ftype_v2si_si): Ditto.
21190         (v4hi_ftype_v4hi_di): Remove node.
21191         (v2si_ftype_v2si_di): Ditto.
21192         (ix86_init_mmx_sse_builtins): Handle V1DImode.
21193         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
21194         Redefine builtins using def_builtin_const with *_ftype_*_int node.
21195         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
21196         Add new builtins using def_builtin_const.
21197         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
21198         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
21199         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
21200         * config/i386/mmintrin.h (__v1di): New typedef.
21201         (_mm_add_si64): Cast arguments to __v1di type.
21202         (_mm_sub_si64): Ditto.
21203         (_mm_sll_pi16): Cast __count to __v4hi type.
21204         (_mm_sll_pi32): Cast __count to __v2si type.
21205         (_mm_sll_si64): Cast arguments to __v1di type.
21206         (_mm_srl_pi16): Cast __count to __v4hi type.
21207         (_mm_srl_pi32): Cast __count to __v2si type.
21208         (_mm_srl_si64): Cast arguments to __v1di type.
21209         (_mm_sra_pi16): Cast __count to __v4hi type.
21210         (_mm_sra_pi32): Cast __count to __v2si type.
21211         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
21212         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
21213         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
21214         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
21215         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
21216         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
21217         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
21218         (_mm_srai_pi32): Use __builtin_ia32_psradi.
21219         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
21220         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
21221         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
21222         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
21224 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
21226         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
21228 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
21230         PR target/35373
21231         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
21232         reg+const addressing for Altivec modes.  Don't generate reg+reg
21233         addressing for TFmode or TDmode quantities.
21235 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
21237         * c-common.c (vector_types_convertible_p): Call langhook
21238         instead of comptypes.
21240 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
21242         PR tree-opt/35402
21243         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
21244         integral and scalar float variables which have a
21245         NULL DECL_INITIAL.
21247 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
21249         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
21250         dwarf_register_span hook when emitting unwind information for
21251         register-to-memory saves.
21252         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
21253         (rs6000_frame_related): Remove call to spe_synthesize_frame.
21255 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
21257         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
21258         for the same VAR_DECL.
21260 2008-03-06  Tom Tromey  <tromey@redhat.com>
21262         * treelang: Delete.
21263         * doc/standards.texi (Standards): Don't mention treelang.
21264         * doc/invoke.texi (Overall Options): Don't mention treelang.
21265         * doc/install.texi (Prerequisites): Don't mention bison or
21266         treelang.
21267         (Configuration): Don't mention treelang.
21268         (Building): Likewise.
21269         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
21271 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
21273         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
21274         word-extractions out of a multi-word object.
21276 2008-03-06  Richard Guenther  <rguenther@suse.de>
21278         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
21279         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
21280         result type and precision.
21281         * expr.c (get_inner_reference): Set unsignedp based on the result
21282         type of BIT_FIELD_REF.
21283         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
21284         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
21285         (try_instantiate_multiple_fields): Likewise.  Use the correct type
21286         for BIT_FIELD_REF.
21287         (sra_build_assignment): Likewise.
21288         (sra_build_elt_assignment): Likewise.
21289         (sra_explode_bitfield_assignment): Likewise.
21290         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
21291         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
21292         set BIT_FIELD_REF_UNSIGNED.
21293         (vectorizable_load): Likewise.
21295 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
21297         * cse.c (cse_extended_basic_block): Invalidate artificial defs
21298         at bb start.
21300 2008-03-06  Richard Guenther  <rguenther@suse.de>
21302         * alias.c (struct alias_set_entry): Move has_zero_child field
21303         to pack with alias_set.
21305 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
21307         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
21308         32bit host.
21310 2008-03-05  Ian Lance Taylor  <iant@google.com>
21312         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
21314 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
21316         * fwprop.c (update_df): Support width and offset parameters of
21317         df_ref_create.
21318         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
21319         global_conflicts): Change DF_REF_EXTRACT to either
21320         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
21321         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
21322         * df-scan.c (df_ref_record, df_defs_record,
21323         df_ref_create_structure, df_def_record_1, df_uses_record,
21324         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
21325         df_bb_refs_collect, df_entry_block_defs_collect,
21326         df_exit_block_uses_collect): Support new width and offset fields.
21327         (ref_extract_pool): New storage pool.
21328         (df_free_ref): New function.
21329         (df_reg_chain_unlink, df_free_collection_rec,
21330         df_sort_and_compress_refs): Call df_free_ref.
21331         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
21332         of df_ref_extract.
21333         (df_ref_create_structure): Allocate df_ref_extract if offset and
21334         width fields are used.
21335         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
21336         (df_uses_record): Get offset and width from ZERO_EXTRACT
21337         and SIGN_EXTRACT.
21338         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
21339         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
21340         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
21341         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
21342         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
21343         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
21344         (df_ref_extract): New structure.
21345         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
21346         (df_ref_create): Add width and offset parameters.
21348 2008-03-05  Richard Guenther  <rguenther@suse.de>
21350         * tree-ssa-structalias.c (get_constraint_for_component_ref):
21351         Use ranges_overlap_p.
21352         (offset_overlaps_with_access): Rename
21353         to ranges_overlap_p and move ...
21354         * tree-flow-inline.h (ranges_overlap_p): ... here.
21356         * tree.h (get_inner_reference, handled_component_p): Update
21357         comments.
21359         * tree.h (record_component_aliases, get_alias_set,
21360         alias_sets_conflict_p, alias_sets_must_conflict_p,
21361         objects_must_conflict_p): Move declarations ...
21362         * alias.h (record_component_aliases, get_alias_set,
21363         alias_sets_conflict_p, alias_sets_must_conflict_p,
21364         objects_must_conflict_p): ... here.
21365         Include coretypes.h.
21366         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
21368 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
21370         * cfg.c: Include tree-flow.h.
21371         (remove_edge_raw): Call redirect_edge_var_map_clear.
21372         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
21373         * tree-flow-inline.h (redirect_edge_var_map_def): New.
21374         (redirect_edge_var_map_result): New.
21375         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
21376         PENDING_STMT use with redirect_edge_var_map_*.
21377         * tree-ssa.c (edge_var_maps): New definition.
21378         (redirect_edge_var_map_add): New.
21379         (redirect_edge_var_map_clear): New.
21380         (redirect_edge_var_map_dup): New.
21381         (redirect_edge_var_map_vector): New.
21382         (redirect_edge_var_map_destroy): New.
21383         (ssa_redirect_edge): Replace PENDING_STMT use with
21384         redirect_edge_var_map_*.
21385         (flush_pending_stmts): Same.
21386         (delete_tree_ssa): Destroy edge var map.
21387         * tree-flow.h (struct _edge_var_map): New.
21388         Define edge_var_map vector type.
21389         Declare redirect_edge_var_map_* prototypes.
21390         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
21391         * tree-cfg.c (reinstall_phi_args): Replace
21392         PENDING_STMT use with redirect_edge_var_map_*.
21394 2008-03-05  Richard Guenther  <rguenther@suse.de>
21396         PR tree-optimization/35472
21397         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
21398         whose single use_stmt has a overlapping set of loaded and
21399         stored symbols as that use_stmt might be a noop assignment then.
21401 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
21403         * gthr-rtems.h: Implement __gthread_mutex_destroy.
21405 2008-03-05  Richard Guenther  <rguenther@suse.de>
21407         PR c++/35336
21408         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
21409         should be constants.
21410         * tree-cfg.c (verify_expr): Verify it.
21411         * fold-const.c (fold_truthop): Remove code generating
21412         BIT_FIELD_REFs of structure bases.
21413         (fold_binary): Likewise.
21414         (fold_ternary): Position and size of BIT_FIELD_REFs are
21415         always host integers.
21416         (make_bit_field_ref): Remove.
21417         (optimize_bit_field_compare): Remove.
21418         (all_ones_mask_p): Remove.
21420 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
21422         PR gcc/33009
21423         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
21424         (split_block_and_df_analyze): New. Split basic block and rebuild
21425         dataflow.
21426         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
21427         SPLIT_BLOCK.
21428         (split_pattern_seq): Likewise.
21429         (erase_matching_seqs): Likewise.
21430         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
21432 2008-03-04  Geoff Keating  <geoffk@apple.com>
21434         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
21435         declaration and code.
21436         (tree_invalid_nonnegative_warnv_p): Likewise.
21438 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
21440         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
21441         examples.  Truncate option-names then causing overfull hbox.
21443 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21445         PR target/35222
21446         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
21447         on hpux10.
21448         * configure: Rebuilt.
21450 2008-03-04  Rafael Espindola  <espindola@google.com>
21452         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
21453         (tree_unary_nonnegative_warnv_p): New.
21454         (tree_binary_nonnegative_warnv_p): New.
21455         (tree_single_nonnegative_warnv_p): New.
21456         (tree_invalid_nonnegative_warnv_p): New.
21457         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
21459 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21461         PR 28322
21462         * opts.c (handle_option): Postpone 'unknown option' errors only for
21463         warning options.
21465 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
21467         PR target/35453
21468         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
21469         (_SIDD_XXX): This.
21471 2008-03-04  Rafael Espindola  <espindola@google.com>
21473         * fold-const.c (tree_unary_nonzero_warnv_p): New.
21474         (tree_binary_nonzero_warnv_p): New.
21475         (tree_single_nonzero_warnv_p): New.
21476         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
21478 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
21480         PR middle-end/35456
21481         * fold-const.c (fold_cond_expr_with_comparison): Prevent
21482         transformations for modes that have signed zeros.
21483         * ifcvt.c (noce_try_abs): Ditto.
21485 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
21487         * config/i386/i386.c (override_options): Force
21488         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
21490 2008-03-04  Jan Hubicka  <jh@suse.cz>
21492         PR c++/35262
21493         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
21494         in last commit.
21496 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
21498         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
21499         label to probe the stack.
21501 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
21503         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
21504         (__gthr_win32_mutex_destroy): Declare.
21505         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
21506         __gthr_win32_mutex_destroy.
21507         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
21509 2008-03-03  Jan Hubicka  <jh@suse.cz>
21511         PR c++/35262
21512         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
21513         aggressive on inlining cold calls.
21515 2008-03-03  Richard Guenther  <rguenther@suse.de>
21517         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
21518         struct copies into the expression table.
21519         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
21520         (try_to_simplify): Likewise.
21521         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
21522         integral and pointer arguments which do not change the
21523         precision to NOP_EXPRs.
21524         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
21525         VIEW_CONVERT_EXPR case.
21527 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
21529         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
21530         defined in a loop at depth 0 is invariant.
21531         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
21532         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
21533         be called at loop depth 0.
21535 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
21537         PR driver/35420
21538         * gcc.c (process_command): Update copyright notice dates.
21539         * gcov.c (print_version): Likewise.
21540         * gcov-dump.c (print_version): Likewise.
21541         * mips-tfile.c (main): Likewise.
21542         * mips-tdump.c (main): Likewise.
21544 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21546         PR 24924
21547         * c-common.c (flag_permissive): Delete.
21548         (constant_expression_warnings): Check flags first.
21549         (constant_expression_error): New.
21550         * c-common.h (flag_permissive): Delete.
21551         (constant_expression_error): Declare.
21552         * flags.h (flag_permissive): Declare. Update description.
21553         * diagnostic.c (pedwarn): Update.
21554         (permerror): New.
21555         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
21556         (permissive_error_kind): New.
21557         * toplev.c (flag_permissive): Define. Update description.
21558         * toplev.h (permissive_error_kind): Declare.
21559         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
21560         (pedwarn_c90): Use pedantic_warning_kind.
21561         * c-opts.c (c_common_post_options): flag_permissive does not affect
21562         flag_pedantic_errors.
21564 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
21566         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
21567         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
21568         __absvsi2, __absvDI2): Use unsigned arithmetic.
21570 2008-03-02  Andi Kleen  <ak@suse.de>
21571             Richard Guenther  <rguenther@suse.de>
21573         * struct-equiv.c: Remove file.
21574         * cfg_cleanup.c (condjump_equiv_p): Remove.
21575         * Makefile.in (OBJS-common): Remove struct-equiv.o.
21576         (struct-equiv.o): Remove rule.
21577         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
21578         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
21579         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
21581 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
21583         * ifcvt.c (noce_process_if_block): Try to handle only the then
21584         block if the else block exists but isn't suitable.
21586 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
21588         PR gcc/35063
21589         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
21590         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
21591         regression from previous patch.
21593 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
21595         PR gcc/35063
21596         * gthr.h: Add __gthread_mutex_destroy as a function that must be
21597         implemented.
21598         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
21599         * gthr-single.h (__gthread_mutex_destroy): Likewise.
21600         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
21601         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
21602         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
21603         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
21604         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
21605         (__gthread_mutex_destroy_function): Rename to
21606         __gthread_mutex_destroy.
21607         * gthr-dce.h (__gthread_mutex_destroy): Call
21608         pthread_mutex_destroy.
21609         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
21610         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
21611         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
21613 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
21615         * df-scan.c (df_ref_chain_change_bb): Simplify.
21616         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
21617         set_block_for_insn if there's any change.
21618         * df.h ((df_insn_change_bb): Fix prototype.
21619         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
21620         df_insn_change_bb, don't call set_block_for_insn.
21621         * emit-rtl.c (reorder_insns): Likewise.
21622         * haifa-sched.c (move_insn): Likewise.
21624 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
21626         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
21628 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
21630         * tree-flow-inline.h (next_readonly_imm_use): Return
21631         NULL_USE_OPERAND_P after the end.
21633 2008-03-01  Richard Guenther  <rguenther@suse.de>
21635         PR tree-optimization/35411
21636         * tree-sra.c (sra_build_assignment): Split conversion to
21637         final type to a separate statement if we are not assigning
21638         to a register.
21640 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
21642         * fold-const.c (fold_convertible_p): Correct the logic to follow
21643         that in fold_convert().
21645 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
21647         PR c++/35315
21648         * tree-inline.c (build_duplicate_type): When we make a
21649         duplicate type, make it unique in the canonical types system.
21651 2008-02-29  Tom Tromey  <tromey@redhat.com>
21653         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
21654         input_file_stack_history, input_file_stack_restored): Remove.
21655         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
21656         * input.h (struct file_stack): Remove.
21657         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
21658         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
21659         Likewise.
21660         * diagnostic.h (struct diagnostic_context) <last_module>: Change
21661         type.
21662         (diagnostic_last_module_changed): Add 'map' argument.
21663         (diagnostic_set_last_function): Likewise.
21664         * diagnostic.c (undiagnostic_report_current_module): Iterate using
21665         line map, not input_file_stack.
21666         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
21668 2008-02-29  Paul Brook  <paul@codesourcery.com>
21670         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
21672 2008-02-29  Paul Brook  <paul@codesourcery.com>
21674         * config/arm/ieee754-df.S (muldf3): Use RET macros.
21676 2008-02-29  Richard Guenther  <rguenther@suse.de>
21678         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
21679         vn_lookup_or_add.
21680         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
21681         value for comparing for a store match.
21682         (simplify_unary_expression): Do nothing for SSA_NAMEs.
21683         (try_to_simplify): Do not do a full-blown reference lookup.
21685 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
21687         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
21688         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
21690         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
21692 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
21694         * tree-loop-linear.c (try_interchange_loops): Compare memory access
21695         strides against cache sizes.
21697 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
21699         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
21700         constant to fpul.
21702 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
21704         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
21705         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
21706         is smaller than the original promoted value.
21707         (simplify_subreg): If OP is a SUBREG, try to preserve its
21708         SUBREG_PROMOTED_VAR_P information.
21710 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
21712         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
21713         (VN_INFO_GET): Allocate new objects on the obstack.
21714         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
21715         for rpo_numbers_temp, for consistency.
21716         (free_scc_vn): Free the obstack.
21718 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
21720         * doc/invoke.texi: Document -ftree-loop-distribution.
21721         * tree-loop-distribution.c: New.
21722         * tree-pass.h (pass_loop_distribution): New.
21723         * graphds.h (struct graph): Add htab_t indices.
21724         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
21725         * tree-vectorizer.c (rename_variables_in_loop): Extern.
21726         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
21727         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
21728         * tree-data-ref.c (debug_data_dependence_relations): New.
21729         (dump_data_dependence_relation): Also print data references.
21730         (free_data_ref): Extern.
21731         (same_access_functions): Moved...
21732         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
21733         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
21734         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
21735         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
21736         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
21737         (stmts_from_loop): Skip LABEL_EXPR.
21738         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
21739         New.
21740         (build_rdg): Initialize rdg->indices htab.
21741         (free_rdg, stores_from_loop, ref_base_address,
21742         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
21743         have_similar_memory_accesses_1, ref_base_address_1,
21744         remove_similar_memory_refs): New.
21745         * tree-data-ref.h: Depend on tree-chrec.h.
21746         (debug_data_dependence_relations, free_data_ref): Declared.
21747         (same_access_functions): ... here.
21748         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
21749         New.
21750         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
21751         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
21752         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
21753         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
21754         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
21755         rdg_vertex_for_stmt): Declared.
21756         (struct rdg_edge): Add level.
21757         (RDGE_LEVEL): New.
21758         (free_rdg, stores_from_loop, remove_similar_memory_refs,
21759         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
21760         Declared.
21761         (rdg_has_similar_memory_accesses): New.
21762         * tree-vect-analyze.c: Remove unused static decls.
21763         * lambda.h (dependence_level): New.
21764         * common.opt (ftree-loop-distribution): New.
21765         * tree-flow.h (mark_virtual_ops_in_bb,
21766         slpeel_tree_duplicate_loop_to_edge_cfg,
21767         rename_variables_in_loop): Declared.
21768         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
21769         (OBJS-common): Add tree-loop-distribution.o.
21770         (tree-loop-distribution.o): New rule.
21771         * tree-cfg.c (mark_virtual_ops_in_bb): New.
21772         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
21773         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
21775 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
21777         PR target/33963
21778         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
21779         other than structures and unions.
21781 2008-02-28  Richard Guenther  <rguenther@suse.de>
21783         Revert:
21784         2008-02-26  Richard Guenther  <rguenther@suse.de>
21786         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
21787         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
21788         (lookup_decl_from_uid): Declare.
21789         (remove_decl_from_map): Likewise.
21790         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
21791         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
21792         (decl_for_uid_map): New global hashtable mapping DECL_UID
21793         to the decl tree.
21794         (init_ttree): Allocate it.
21795         (insert_decl_to_uid_decl_map): New helper function.
21796         (make_node_stat): Insert new decls into the map.
21797         (copy_node_stat): Likewise.
21798         (lookup_decl_from_uid): New function.
21799         (remove_decl_from_map): Likewise.
21800         (print_decl_for_uid_map_statistics): New helper.
21801         (dump_tree_statistics): Call it.
21803         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
21804         (referenced_var_iterator): Adjust.
21805         (FOR_EACH_REFERENCED_VAR): Adjust.
21806         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
21807         (num_referenced_vars): Adjust.
21808         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
21809         (first_referenced_var): Remove.
21810         (end_referenced_vars_p): Likewise.
21811         (next_referenced_var): Likewise.
21812         (referenced_var_iterator_set): New helper function.
21813         * tree-dfa.c (referenced_var_lookup): Adjust.
21814         (referenced_var_check_and_insert): Likewise.
21815         (remove_referenced_var): Likewise.
21816         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
21817         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21818         (verify_call_clobbering): Likewise.
21819         (verify_memory_partitions): Likewise.
21820         (init_tree_ssa): Allocate bitmap instead of hashtable for
21821         referenced_vars.
21822         (delete_tree_ssa): Adjust.
21823         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
21824         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
21825         (compute_tag_properties): Likewise.
21826         (set_initial_properties): Likewise.
21827         (find_partition_for): Likewise.
21828         (update_reference_counts): Likewise.
21829         (dump_may_aliases_for): Likewise.
21830         * tree-ssa-operands.c (add_virtual_operand): Likewise.
21831         (add_call_clobber_ops): Likewise.
21832         (add_call_read_ops): Likewise.
21833         (get_asm_expr_operands): Likewise.
21834         * tree-into-ssa.c (dump_decl_set): Likewise.
21835         (update_ssa): Likewise.
21836         * tree-sra.c (scan_function): Likewise.
21837         (decide_instantiations): Likewise.
21838         (scalarize_parms): Likewise.
21839         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
21840         (dsa_named_for): Likewise.
21841         * tree-ssa-structalias.c (update_alias_info): Likewise.
21842         (merge_smts_into): Likewise.
21844 2008-02-27  David Daney  <ddaney@avtrex.com>
21846         PR target/34409
21847         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
21848         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
21849         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
21850         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
21851         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
21853 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
21855         PR target/25477
21856         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
21857         (BUILT_IN_NEXTTOWARD): Remove.
21858         (BUILT_IN_NEXTTOWARDF): Ditto.
21859         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
21860         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
21862 2008-02-27  Tom Tromey  <tromey@redhat.com>
21864         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
21865         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
21867 2008-02-27  Jan Beulich  <jbeulich@novell.com>
21869         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
21870         update the respective field on newdecl.
21872 2008-02-27  Revital Eres  <eres@il.ibm.com>
21874         PR rtl-optimization/34999
21875         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
21876         crossing edges that ends with a call insn.
21877         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
21878         call insn and clear the EDGE_CROSSING flag of the crossing edge
21879         when fixing fallthru edges.
21881 2008-02-27  Richard Guenther  <rguenther@suse.de>
21883         PR middle-end/35390
21884         * fold-const.c (fold_unary): Return the correct argument,
21885         converted to the result type.
21887 2008-02-27  Richard Guenther  <rguenther@suse.de>
21889         PR middle-end/34971
21890         * expr.c (expand_expr_real_1): Assert on rotates that operate
21891         on partial modes.
21892         * fold-const.c (fold_binary): Use the types precision, not the
21893         bitsize of the mode if folding rotate expressions.  Build rotates
21894         only for full modes.
21896 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
21898         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
21899         and CPP_PRAGMA_EOL.
21900         * c-pragma.c (pragma_ns_name): New typedef.
21901         (registered_pp_pragmas): New variable.
21902         (c_pp_lookup_pragma): New function.
21903         (c_register_pragma_1): If flag_preprocess_only, do nothing
21904         for non-expanded pragmas, for expanded ones push pragma's
21905         namespace and name into registered_pp_pragmas vector.
21906         (c_invoke_pragma_handler): Register OpenMP pragmas even when
21907         flag_preprocess_only, don't register GCC pch_preprocess
21908         pragma if flag_preprocess_only.
21909         * c-opts.c (c_common_init): Call init_pragma even if
21910         flag_preprocess_only.
21911         * c-pragma.c (c_pp_lookup_pragma): New prototype.
21912         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
21913         cpp_register_pragma if flag_preprocess_only.
21915 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21917         PR c/28800
21918         * c-parser.c (c_parser_translation_unit): Warn for empty
21919         translation unit, not empty source file.
21921 2008-02-26  Paul Brook  <paul@codesourcery.com>
21923         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
21924         operand for Thumb-2.
21925         * config/arm/arm.h (reg_class): Add CORE_REGS.
21926         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
21927         (BASE_REG_CLASS): Use CORE_REGS.
21928         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
21929         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
21930         (REGNO_OK_FOR_INDEX_P): Exclude SP.
21931         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
21932         ARM_REGNO_OK_FOR_INDEX_P.
21933         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
21934         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
21935         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
21936         (ldm/stm peepholes): Ditto.
21937         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
21938         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
21939         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
21940         * config/arm/constraints.md: Enable "k" constraint on ARM.
21942 2008-02-27  Ben Elliston  <bje@au.ibm.com>
21944         * config/rs6000/rs6000.c: Annotate cache line size field in all
21945         instances of struct processor_costs.
21947 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
21949         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
21950         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
21951         jump_bypass): New counters.
21952         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
21953         * dce.c (gate_ud_dce): Same.
21954         (gate_fast_dce): Same.
21955         * dse.c (gate_dse1): New function.
21956         (gate_dse2): New function.
21957         (gate_dse): Merge results of new gate functions.
21958         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
21959         (gate_handle_jump_bypass): Add dbg_cnt.
21960         (gate_handle_gcse): Add dbg_cnt.
21961         * ifcvt.c (gate_handle_if_conversion): Same.
21962         (gate_handle_if_after_combine): Same.
21963         (gate_handle_if_after_reload): Same.
21964         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
21966 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
21968         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
21969         line sizes.
21970         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
21972 2008-02-26  Jason Merrill  <jason@redhat.com>
21974         PR c++/35315
21975         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
21976         alone if it's the naming decl for the type's main variant.
21978 2008-02-26  Tom Tromey  <tromey@redhat.com>
21980         * system.h (USE_MAPPED_LOCATION): Poison.
21981         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
21982         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
21983         (make_goto_expr_edges): Likewise.
21984         (remove_bb): Likewise.
21985         (execute_warn_function_return): Likewise.
21986         * basic-block.h (struct edge_def) <goto_locus>: Change type to
21987         location_t.
21988         * c-common.c (fname_decl): Remove old location code.
21989         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
21990         location code.
21991         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
21992         variant.
21993         (ASM_INPUT_SOURCE_LOCATION): Likewise.
21994         (gen_rtx_ASM_INPUT): Likewise.
21995         (gen_rtx_ASM_INPUT_loc): Likewise.
21996         (get_rtx_asm_OPERANDS): Remove.
21997         * cfglayout.c (insn_locators_alloc): Remove old location code.
21998         (set_curr_insn_source_location): Likewise.
21999         (curr_insn_locator): Likewise.
22000         * print-tree.c (print_node): Remove old location code.
22001         * tree-mudflap.c (mf_varname_tree): Remove old location code.
22002         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
22003         * cfgexpand.c (expand_gimple_cond_expr): Don't use
22004         location_from_locus.
22005         (construct_exit_block): Remove old location code.
22006         * emit-rtl.c (force_next_line_note): Remove old location code.
22007         * profile.c (branch_prob): Remove old location code.
22008         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
22009         LOC_LINE): Remove old-location variants.
22010         * langhooks.c (lhd_print_error_function): Remove old location
22011         code.
22012         * configure, config.in: Rebuilt.
22013         * configure.ac (--enable-mapped-location): Remove.
22014         * c-decl.c (c_init_decl_processing): Remove old location code.
22015         (finish_function): Likewise.
22016         * recog.c (decode_asm_operands): Remove old location code.
22017         * c-pch.c (c_common_read_pch): Remove old location code.
22018         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
22019         variants.
22020         * gimple-low.c (lower_function_body): Remove old location code.
22021         * toplev.c (unknown_location): Remove.
22022         (push_srcloc): Remove old-location variant.
22023         (process_options): Remove old location code.
22024         (lang_dependent_init): Likewise.
22025         * input.h (UNKNOWN_LOCATION): Move definition.
22026         (location_t): Undeprecate.
22027         (source_locus): Remove.
22028         (location_from_locus): Remove.
22029         (struct location_s): Remove.
22030         Remove all old-location code.
22031         (input_line, input_filename): Remove.
22032         * final.c (final_scan_insn): Remove old location code.
22033         * diagnostic.c (diagnostic_build_prefix): Remove
22034         USE_MAPPED_LOCATION test.
22035         * tree.h (gimple_stmt) <locus>: Now a location_t.
22036         (tree_exp) <locus>: Likewise.
22037         (DECL_IS_BUILTIN): Remove old-location variant.
22038         (annotate_with_file_line, annotate_with_locus): Likewise.
22039         (expr_locus, set_expr_locus): Update.
22040         * tree.c (build1_stat): Remove old location code.
22041         (last_annotated_node): Remove.
22042         (annotate_with_file_line): Remove old-location variant.
22043         (annotate_with_locus): Likewise.
22044         (expr_location): Remove old location code.
22045         (set_expr_location): Likewise.
22046         (expr_has_location): Likewise.
22047         (expr_locus): Likewise.
22048         (set_expr_locus): Likewise.
22049         (expr_filename): Don't use location_from_locus.
22050         (expr_lineno): Likewise.
22051         * rtl-error.c (location_for_asm): Remove old location code.
22052         * c-lex.c (cb_line_change): Remove old location code.
22053         (fe_file_change): Likewise.
22054         (cb_def_pragma): Likewise.
22055         (c_lex_with_flags): Likewise.
22056         * gengtype.c (do_typedef): Don't special-case location types.
22057         (define_location_structures): Remove.
22058         (main): Don't call define_location_structures.
22059         * tree-pretty-print.c (dump_implicit_edges): Remove old location
22060         code.
22062 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22064         PR 26264
22065         * builtins.def (BUILT_IN_STDARG_START): Remove.
22066         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
22067         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
22068         * tree-inline.c (inline_forbidden_p_1): Likewise.
22070 2008-02-26  Richard Guenther  <rguenther@suse.de>
22072         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
22073         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
22074         (lookup_decl_from_uid): Declare.
22075         (remove_decl_from_map): Likewise.
22076         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
22077         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
22078         (decl_for_uid_map): New global hashtable mapping DECL_UID
22079         to the decl tree.
22080         (init_ttree): Allocate it.
22081         (insert_decl_to_uid_decl_map): New helper function.
22082         (make_node_stat): Insert new decls into the map.
22083         (copy_node_stat): Likewise.
22084         (lookup_decl_from_uid): New function.
22085         (remove_decl_from_map): Likewise.
22086         (print_decl_for_uid_map_statistics): New helper.
22087         (dump_tree_statistics): Call it.
22089         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
22090         (referenced_var_iterator): Adjust.
22091         (FOR_EACH_REFERENCED_VAR): Adjust.
22092         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
22093         (num_referenced_vars): Adjust.
22094         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
22095         (first_referenced_var): Remove.
22096         (end_referenced_vars_p): Likewise.
22097         (next_referenced_var): Likewise.
22098         (referenced_var_iterator_set): New helper function.
22099         * tree-dfa.c (referenced_var_lookup): Adjust.
22100         (referenced_var_check_and_insert): Likewise.
22101         (remove_referenced_var): Likewise.
22102         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
22103         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22104         (verify_call_clobbering): Likewise.
22105         (verify_memory_partitions): Likewise.
22106         (init_tree_ssa): Allocate bitmap instead of hashtable for
22107         referenced_vars.
22108         (delete_tree_ssa): Adjust.
22109         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
22110         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22111         (compute_tag_properties): Likewise.
22112         (set_initial_properties): Likewise.
22113         (find_partition_for): Likewise.
22114         (update_reference_counts): Likewise.
22115         (dump_may_aliases_for): Likewise.
22116         * tree-ssa-operands.c (add_virtual_operand): Likewise.
22117         (add_call_clobber_ops): Likewise.
22118         (add_call_read_ops): Likewise.
22119         (get_asm_expr_operands): Likewise.
22120         * tree-into-ssa.c (dump_decl_set): Likewise.
22121         (update_ssa): Likewise.
22122         * tree-sra.c (scan_function): Likewise.
22123         (decide_instantiations): Likewise.
22124         (scalarize_parms): Likewise.
22125         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
22126         (dsa_named_for): Likewise.
22127         * tree-ssa-structalias.c (update_alias_info): Likewise.
22128         (merge_smts_into): Likewise.
22130 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22132         PR 34351
22133         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
22134         * c-opts.c (c_common_handle_option): Wall enables
22135         Wvolatile-register-var.
22136         * common.opt: Move Wvolatile-register-var to...
22137         * c.opt: ...here.
22139 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22141         * common.opt (Wlarger-than=): New.
22142         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
22143         -Wlarger-than=.
22144         * opts.c (common_handle_option): Handle -Wlarger-than=.
22145         * optc-gen.awk: Likewise.
22146         * opth-gen.awk: Likewise.
22147         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
22148         * tree-optimize.c (tree_rest_of_compilation): Likewise.
22150 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
22152         * c-common.c (match_case_to_enum_1): Add appropriate
22153         OPT_W* parameter to warning.
22154         (c_do_switch_warnings): Likewise.
22155         * c-typeck.c (warning_init): Add one more parameter following
22156         'warning' function.
22157         (push_init_level): Update call to warning_init.
22158         (pop_init_level): Likewise.
22159         (add_pending_init): Likewise.
22160         (output_init_element: Likewise.
22162 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22164         PR 28322
22165         * toplev.c (toplev_main): If there are warnings or error, print
22166         errors for ignored options.
22167         * opts.c (ignored_options): New static variable.
22168         (postpone_unknown_option_error): New.
22169         (print_ignored_options): New.
22170         (handle_option): Postpone errors for unknown -Wno-* options.
22171         * opts.h (print_ignored_options): Declare.
22173 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
22175         * config/mips/mips.md (loadgp_blockage, blockage): Change type
22176         to "ghost".
22178 2008-02-25  Richard Guenther  <rguenther@suse.de>
22180         Revert:
22181         2008-02-25  Richard Guenther  <rguenther@suse.de>
22183         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
22184         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
22185         (lookup_decl_from_uid): Declare.
22186         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
22187         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
22188         (decl_for_uid_map): New global hashtable mapping DECL_UID
22189         to the decl tree.
22190         (init_ttree): Allocate it.
22191         (insert_decl_to_uid_decl_map): New helper function.
22192         (make_node_stat): Insert new decls into the map.
22193         (copy_node_stat): Likewise.
22194         (lookup_decl_from_uid): New function.
22195         (print_decl_for_uid_map_statistics): New helper.
22196         (dump_tree_statistics): Call it.
22198         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
22199         (referenced_var_iterator): Adjust.
22200         (FOR_EACH_REFERENCED_VAR): Adjust.
22201         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
22202         (num_referenced_vars): Adjust.
22203         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
22204         (first_referenced_var): Remove.
22205         (end_referenced_vars_p): Likewise.
22206         (next_referenced_var): Likewise.
22207         (referenced_var_iterator_set): New helper function.
22208         * tree-dfa.c (referenced_var_lookup): Adjust.
22209         (referenced_var_check_and_insert): Likewise.
22210         (remove_referenced_var): Likewise.
22211         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
22212         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22213         (verify_call_clobbering): Likewise.
22214         (verify_memory_partitions): Likewise.
22215         (init_tree_ssa): Allocate bitmap instead of hashtable for
22216         referenced_vars.
22217         (delete_tree_ssa): Adjust.
22218         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
22219         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22220         (compute_tag_properties): Likewise.
22221         (set_initial_properties): Likewise.
22222         (find_partition_for): Likewise.
22223         (update_reference_counts): Likewise.
22224         (dump_may_aliases_for): Likewise.
22225         * tree-ssa-operands.c (add_virtual_operand): Likewise.
22226         (add_call_clobber_ops): Likewise.
22227         (add_call_read_ops): Likewise.
22228         (get_asm_expr_operands): Likewise.
22229         * tree-into-ssa.c (dump_decl_set): Likewise.
22230         (update_ssa): Likewise.
22231         * tree-sra.c (scan_function): Likewise.
22232         (decide_instantiations): Likewise.
22233         (scalarize_parms): Likewise.
22234         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
22235         (dsa_named_for): Likewise.
22236         * tree-ssa-structalias.c (update_alias_info): Likewise.
22237         (merge_smts_into): Likewise.
22239 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
22241         PR fortran/29549
22242         * doc/invoke.texi (-fcx-limited-range): Document new option.
22243         * toplev.c (process_options): Handle -fcx-fortran-rules.
22244         * common.opt: Add documentation for -fcx-fortran-rules.
22246 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
22248         PR c/35162
22249         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
22250         actual behaviour and C99.
22252 2008-02-26  Ben Elliston  <bje@au.ibm.com>
22254         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
22255         (ASM_CPU_POWER6_SPEC): Likewise.
22256         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
22257         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
22258         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
22260 2008-02-25  Richard Guenther  <rguenther@suse.de>
22262         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
22263         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
22264         (lookup_decl_from_uid): Declare.
22265         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
22266         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
22267         (decl_for_uid_map): New global hashtable mapping DECL_UID
22268         to the decl tree.
22269         (init_ttree): Allocate it.
22270         (insert_decl_to_uid_decl_map): New helper function.
22271         (make_node_stat): Insert new decls into the map.
22272         (copy_node_stat): Likewise.
22273         (lookup_decl_from_uid): New function.
22274         (print_decl_for_uid_map_statistics): New helper.
22275         (dump_tree_statistics): Call it.
22277         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
22278         (referenced_var_iterator): Adjust.
22279         (FOR_EACH_REFERENCED_VAR): Adjust.
22280         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
22281         (num_referenced_vars): Adjust.
22282         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
22283         (first_referenced_var): Remove.
22284         (end_referenced_vars_p): Likewise.
22285         (next_referenced_var): Likewise.
22286         (referenced_var_iterator_set): New helper function.
22287         * tree-dfa.c (referenced_var_lookup): Adjust.
22288         (referenced_var_check_and_insert): Likewise.
22289         (remove_referenced_var): Likewise.
22290         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
22291         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22292         (verify_call_clobbering): Likewise.
22293         (verify_memory_partitions): Likewise.
22294         (init_tree_ssa): Allocate bitmap instead of hashtable for
22295         referenced_vars.
22296         (delete_tree_ssa): Adjust.
22297         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
22298         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
22299         (compute_tag_properties): Likewise.
22300         (set_initial_properties): Likewise.
22301         (find_partition_for): Likewise.
22302         (update_reference_counts): Likewise.
22303         (dump_may_aliases_for): Likewise.
22304         * tree-ssa-operands.c (add_virtual_operand): Likewise.
22305         (add_call_clobber_ops): Likewise.
22306         (add_call_read_ops): Likewise.
22307         (get_asm_expr_operands): Likewise.
22308         * tree-into-ssa.c (dump_decl_set): Likewise.
22309         (update_ssa): Likewise.
22310         * tree-sra.c (scan_function): Likewise.
22311         (decide_instantiations): Likewise.
22312         (scalarize_parms): Likewise.
22313         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
22314         (dsa_named_for): Likewise.
22315         * tree-ssa-structalias.c (update_alias_info): Likewise.
22316         (merge_smts_into): Likewise.
22318 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
22320         PR target/35258
22321         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
22322         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
22323         * alias.h (nonoverlapping_memrefs_p): Likewise.
22325 2008-02-25  Jan Beulich  <jbeulich@novell.com>
22327         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
22328         * config/i386/netware-libgcc.exp: Add __bswap?i2,
22329         __emultls_get_address, __emultls_register_common,
22330         __floatundi?f, and _Unwind_GetIPInfo.
22331         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
22332         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
22333         (gen_regparm_prefix): Likewise.
22334         (i386_nlm_encode_section_info): Sync with
22335         config/i386/winnt.c:i386_pe_encode_section_info().
22336         (i386_nlm_maybe_mangle_decl_assembler_name): New.
22337         i386_nlm_mangle_decl_assembler_name): New.
22338         (netware_override_options): New.
22339         * config/i386/netware.h (netware_override_options): Declare.
22340         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
22341         (i386_nlm_mangle_decl_assembler_name): Declare.
22342         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
22344 2008-02-25  Ben Elliston  <bje@au.ibm.com>
22346         PR other/32948
22347         * c-decl.c (grokdeclarator): Remove unused local variables
22348         `typedef_type' and `type_as_written'.
22349         * bb-reorder.c
22350         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
22351         unused local variable `has_hot_blocks'.
22352         (fix_crossing_conditional_branches): Remove unused local variable
22353         `prev_bb'.
22355 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
22357         PR middle-end/19984
22358         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
22359         using DEF_C99_BUILTIN.
22360         (BUILT_IN_NANF): Ditto.
22361         (BUILT_IN_NANL): Ditto.
22363 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
22364             Revital Eres  <eres@il.ibm.com>
22366         * modulo-sched.c (calculate_must_precede_follow): Address TODO
22367         regarding the order of two dependent insns in the same row.
22369 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
22371         * stor-layout.c (layout_decl): Do not bump the alignment of a
22372         bit-field to more than byte alignment if it is packed.
22374 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
22376         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
22377         e300c2 and e300c3.
22379 2008-02-24  Diego Novillo  <dnovillo@google.com>
22381         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
22383         PR 33738
22384         * tree-vrp.c (vrp_evaluate_conditional): With
22385         -Wtype-limits, emit a warning when comparing against a
22386         constant outside the natural range of OP0's type.
22387         * c.opt (Wtype-limits): Move ...
22388         * common.opt (Wtype-limits): ... here.
22390 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
22392         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
22393         * config/rs6000/e300c2c3.md: New file.
22394         * config/rs6000/rs6000.c (processor_costs): Add new costs for
22395         e300c2 and e300c3.
22396         (rs6000_override_options): Add e300c2 and e300c3 cases to
22397         processor_target_table. Do not allow usage of Altivec or Spe
22398         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
22399         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
22400         * config/rs6000/rs6000.h (processor_type): Add
22401         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
22402         (ASM_CPU_SPEC): Add e300c2 and e300c3.
22403         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
22404         and ppce300c3. Include e300c2c3.md.
22406 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
22408         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
22409         instead of TARGET_STRICT_ALIGN.
22411 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
22413         * explow.c (memory_address): Assert that the generated address is
22414         valid.
22416 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
22418         PR target/25477
22419         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
22420         * config/darwin-ppc-ldouble-patch.def: New file.
22421         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
22422         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
22423         SUBTARGET_INIT_BUILTINS if defined.
22424         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
22425         New functions.
22427 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22429         PR rtl-opt/33512
22430         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
22431         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
22433 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
22435         PR pch/35027
22436         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
22437         file" warning condtional on -Winvalid-PCH.
22439 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
22441         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
22443 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
22445         PR target/22076
22446         PR target/34256
22447         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
22448         prevent reload from using MMX registers.
22449         (*mov<mode>_internal): Ditto.
22450         (*movv2sf_internal_rex64): Ditto.
22451         (*movv2sf_internal): Ditto.
22453 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22455         PR documentation/31569
22456         * doc/install.texi2html: Use makeinfo --no-number-sections.
22458 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
22460         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
22461         ensure that we can address an entire entity > 8 bytes.  Don't
22462         generate reg+reg addressing for such data.
22464 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
22466         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
22467         strings when optimizing for size, unless the target cares about
22468         alignment.
22470 2008-02-22  Tom Tromey  <tromey@redhat.com>
22472         * regclass.c (current_pass): Remove declaration.
22474 2008-02-22  Anatoly Sokolov <aesok@post.ru>
22476         * config/avr/libgcc.S (__RAMPZ__): Define.
22477         (__do_copy_data): Add for devices with 128KB code memory.
22479 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
22481         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
22482         Use spe_abi.
22483         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
22485 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
22487         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
22488         GENNONACR_REGS.
22490 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22492         PR c/19999
22493         * c-typeck.c (build_binary_op): Warn about floating point
22494         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
22496 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
22498         PR target/34526
22499         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
22500         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
22501         add vrsave.
22502         (rs6000_override_options): Set altivec_abi as default, not override,
22503         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
22504         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
22505         is used; use new member spe_abi.
22506         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
22507         spe_abi and altivec_abi.
22509 2008-02-22  Tomas Bily  <tbily@suse.cz>
22511         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
22513 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22515         PR bootstrap/35273
22516         * config.build (build_file_translate): Set to `CMD //c' only if
22517         it works.
22518         * Makefile.in (build_file_translate): Improve comment.
22520 2008-02-21  Jan Hubicka  <jh@suse.cz>
22522         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
22523         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
22524         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
22526 2008-02-21  Michael Matz  <matz@suse.de>
22528         PR target/35264
22529         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
22531 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
22533         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
22534         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
22535         as insn constraint.
22536         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
22537         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
22538         SSE_VEC_FLOAT_MODE_P as insn constraint.
22539         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
22540         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
22541         sse4a_movntdf using MODEF mode iterator.
22542         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
22543         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
22544         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
22545         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
22546         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
22547         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
22548         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
22550 2008-02-21  Richard Guenther  <rguenther@suse.de>
22552         * tree.def (PAREN_EXPR): New tree code.
22553         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
22554         and PAREN_EXPR.
22555         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
22556         * expr.c (expand_expr_real_1): Likewise.
22557         * tree-inline.c (estimate_num_insns_1): Likewise.
22558         * tree-complex.c (expand_complex_move): Likewise.
22559         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
22560         as plain x.
22562 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
22564         PR target/35225
22565         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
22567 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
22569         PR target/35190
22570         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
22572         * config/sh/sh.c (find_barrier): Don't go past
22573         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
22575 2008-02-20  DJ Delorie  <dj@redhat.com>
22577         * config/h8300/h8300.md (insv): Force source operand to be a register.
22579         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
22580         as a jump, not as a plain insn.
22582 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
22584         * doc/invoke.texi (Warning Options): Add new option
22585         -Wframe-larger-than=.
22586         (-Wframe-larger-than): Document.
22588         * flags.h (warn_frame_larger_than, frame_larger_than_size):
22589         Add declarations for new option variables.
22591         * final.c (final_start_function): Check the frame size
22592         before emission and issue a Wframe-larger-than warning.
22594         * opts.c (warn_frame_larger_than, frame_larger_than_size):
22595         Add definitions for new option variables.
22596         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
22598         * common.opt (Wframe-larger-than=): New option.
22600 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
22602         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
22603         (<sse>_div<mode>3): Ditto.
22604         (<sse>_vmdiv<mode>3): Ditto.
22605         (<sse>_vmsqrt<mode>2): Ditto.
22606         (*smax<mode>3): Ditto.
22607         (sse5_frcz<mode>2): Ditto.
22608         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
22609         as insn constraint.
22611 2008-02-20  Richard Guenther  <rguenther@suse.de>
22613         PR middle-end/35265
22614         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
22615         be happy with INTEGRAL_TYPE_P.
22617 2008-02-20  Richard Guenther  <rguenther@suse.de>
22619         * fold-const.c (split_tree): Associate floatig-point expressions
22620         if flag_associative_math is set.
22622 2008-02-20  Richard Guenther  <rguenther@suse.de>
22624         * tree.h (fold_real_zero_addition_p): Declare.
22625         * fold-const.c (fold_real_zero_addition_p): Export.
22626         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
22627         floating-point operations with zero and one.
22629 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
22631         * doc/install.texi: Correct references to CFLAGS, replacing them
22632         with BOOT_CFLAGS.  Document flags used during bootstrap for
22633         target libraries.
22635 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
22637         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
22638         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
22639         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
22640         insn constraint.
22641         (smin<mode>3): Ditto from similar patterns.
22642         (smax<mode>3): Ditto.
22643         (*ieee_smin<mode>3): Ditto.
22644         (*ieee_smax<mode>3): Ditto.
22645         * config/i386/sse.md (sse): New mode attribute.
22646         (mov<mode>): Macroize expander from movv4sf and movv2df using
22647         SSEMODEF2P mode iterator.
22648         (<sse>_movnt<mode>): Ditto from similar patterns. Use
22649         SSE_VEC_FLOAT_MODE_P as insn constraint.
22650         (storent<mode>): Ditto.
22651         (storent<mode>): Macroize expander from storentsf and storentdf using
22652         MODEF mode iterator.
22653         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
22654         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
22655         (abs<mode>2): Ditto from similar patterns.
22656         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
22657         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
22658         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
22659         (<sse>_vmsqrt<mode>2): Ditto.
22660         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
22661         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
22662         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
22663         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
22664         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
22665         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
22666         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
22667         insn constraint.
22668         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
22669         iterator and SSE_FLOAT_MODE_P as insn constraint.
22670         (<sse>_ucomi): Ditto from similar patterns.
22671         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
22672         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
22673         SSE_VEC_FLOAT_MODE_P as insn constraint.
22674         (vcond<mode>): Ditto from similar patterns.
22675         (and<mode>3, *and<mode>3): Ditto.
22676         (<sse>_nand<mode>3): Ditto.
22677         (ior<mode>3, *ior<mode>3): Ditto.
22678         (xor<mode>3, *xor<mode>3): Ditto.
22679         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
22680         iterator and SSE_FLOAT_MODE_P as insn constraint.
22681         (*nand<mode>3): Ditto from similar patterns.
22682         (*ior<mode>3): Ditto.
22683         (*xor<mode>3): Ditto.
22685 2008-02-20  Ira Rosen  <irar@il.ibm.com>
22687         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
22688         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
22689         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
22691 2008-02-19  Jan Hubicka  <jh@suse.cz>
22693         * predict.c (tree_bb_level_predictions): Remove variable next
22694         mistakely introduced by previous commit.
22696 2008-02-19  Jan Hubicka  <jh@suse.cz>
22698         * predict.c (predict_paths_leading_to): Rewrite.
22699         (predict_paths_for_bb): New.
22700         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
22702 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22704         PR bootstrap/35218
22705         * Makefile.in (build_file_translate): New.
22706         (gcc-vers.texi): Use it for translating $(abs_srcdir).
22707         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
22708         * configure.ac (build_file_translate): Substitute it.
22709         * configure: Regenerate.
22711 2008-02-19  Jan Hubicka  <jh@suse.cz>
22713         PR rtl-optimization/34408
22714         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
22715         invalid sharing.
22717 2008-02-19  Jan Hubicka  <jh@suse.cz>
22719         PR middle-end/28779
22720         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
22721         call_expr.
22723 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
22725         PR Ada/35186
22726         * config/i386/i386-modes.def: Revert the last DI alignment
22727         change until Ada people can look into it.
22729 2008-02-19  Nick Clifton  <nickc@redhat.com>
22731         * opts.c (print_specific_help): Fix typo in --help text.
22733 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
22735         PR target/35239
22736         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
22737         32-bit inline asm without asm alternatives for host GCC < 3.0.
22739 2008-02-19  Richard Guenther  <rguenther@suse.de>
22741         PR tree-optimization/34989
22742         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
22743         Allow propagation to INDIRECT_REF if we can simplify only.
22745 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22747         * c-common.c (warn_for_collisions_1): Use appropriate option when
22748         warning.
22750 2008-02-19  Nick Clifton  <nickc@redhat.com>
22752         PR other/31349
22753         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
22754         (handle_options): Fix indentation.
22755         (print_filtered_help): If no language-specific options were
22756         displayed tell the user how to list all the options supported by
22757         the language's front-end.
22758         (print_specific_help): Fix indentation and remove duplicate line.
22759         (common_handle_option): Handle the -v option.
22760         For --help enable the display of undocumented options if the -v
22761         switch has been included on the command line.
22762         For --help= check for overlaps in the arguments between the option
22763         classes and the language names and issue a warning when they
22764         cannot be disambiguated.
22765         * c.opt (v): Pass on to the common option handler.
22767 2008-02-19  Revital Eres  <eres@il.ibm.com>
22769         * modulo-sched.c (sms_schedule): Change dump message when
22770         create_ddg function fails.
22771         (try_scheduling_node_in_cycle): Rename row to cycle.
22772         (print_partial_schedule): Rename CYCLE to ROW.
22774 2008-02-19  Christian Bruel  <christian.bruel@st.com>
22775             Zdenek Dvorak  <ook@ucw.cz>
22777         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
22779 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
22781         PR target/33555
22782         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
22783         (*x86_movdicc_0_m1_se): Ditto.
22785 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
22787         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
22788         (CMPtype): Define as __gcc_CMPtype.
22789         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
22790         (CMPtype): Define as __gcc_CMPtype.
22792 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
22794         Support valgrind 3.3 for --enable-checking=valgrind.
22795         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
22796         here.
22797         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
22798         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
22799         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
22800         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
22801         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
22802         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
22803         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
22804         respectively.
22805         * ggc-zone.c: Similar.
22806         * ggc-page.c: Similar.
22808 2008-02-19  Paul Brook  <paul@codesourcery.com>
22810         PR target/35071
22811         * config/arm/ieee754-df.S: Fix do_it typo.
22812         * config/arm/ieee754-sf.S: Fix do_it typo.
22814 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
22816         PR target/35189
22817         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
22818         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
22819         (OPTION_MASK_ISA_SSE_SET): Likewise.
22820         (OPTION_MASK_ISA_SSE2_SET): Likewise.
22821         (OPTION_MASK_ISA_SSE3_SET): Likewise.
22822         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
22823         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
22824         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
22825         (OPTION_MASK_ISA_SSE4_SET): Likewise.
22826         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
22827         (OPTION_MASK_ISA_SSE5_SET): Likewise.
22828         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
22829         (OPTION_MASK_ISA_MMX_UNSET): Updated.
22830         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
22831         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
22832         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
22833         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
22834         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
22835         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
22836         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
22837         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
22838         (OPTION_MASK_ISA_SSE4): Removed.
22839         (ix86_handle_option): Turn on bits in ix86_isa_flags and
22840         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
22841         (override_options): Don't turn on implied SSE/MMX bits in
22842         ix86_isa_flags.
22844 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
22846         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
22847         32bit host.
22849 2008-02-18  Joey Ye  <joey.ye@intel.com>
22851         PR middle-end/34921
22852         * tree-nested.c (insert_field_into_struct): Set type alignment
22853         to field alignment if the former is less than the latter.
22855 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
22857         * BASE-VER: Set to 4.4.0.
22859 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22861         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
22862         * doc/cfg.texi: Likewise.
22863         * doc/extend.texi: Likewise.
22864         * doc/gty.texi: Likewise.
22865         * doc/invoke.texi: Likewise.
22866         * doc/loop.texi: Likewise.
22867         * doc/md.texi: Likewise.
22868         * doc/passes.texi: Likewise.
22869         * doc/rtl.texi: Likewise.
22870         * doc/sourcebuild.texi: Likewise.
22871         * doc/tm.texi: Likewise.
22872         * doc/tree-ssa.texi: Likewise.
22874 2008-02-17  Richard Guenther  <rguenther@suse.de>
22876         PR middle-end/35227
22877         * tree-complex.c (init_parameter_lattice_values): Handle parameters
22878         without default definition.
22880 2008-02-17  Richard Guenther  <rguenther@suse.de>
22882         PR tree-optimization/35231
22883         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
22884         if A | B != 1.
22886 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
22888         Revert:
22889         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
22890         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
22891         libgcc_cmp_return mode.
22893 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22895         PR c/28368
22896         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
22898 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
22900         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
22901         multilibs.
22903 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22905         * doc/c-tree.texi: Use `@.' where appropriate.
22906         * doc/extend.texi: Likewise.
22907         * doc/install.texi: Likewise.
22908         * doc/invoke.texi: Likewise.
22909         * doc/loop.texi: Likewise.
22910         * doc/makefile.texi: Likewise.
22911         * doc/md.texi: Likewise.
22912         * doc/passes.texi: Likewise.
22913         * doc/standards.texi: Likewise.
22914         * doc/tm.texi: Likewise.
22916 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
22918         PR middle-end/35196
22919         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
22920         in entry_bb.
22921         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
22922         rather than in entry_bb.
22924 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
22926         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
22927         libgcc_cmp_return mode.
22929 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
22931         PR middle-end/35130
22932         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
22933         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
22935 2008-02-15  Richard Guenther  <rguenther@suse.de>
22936             Zdenek Dvorak  <ook@ucw.cz>
22938         PR tree-optimization/35164
22939         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
22940         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
22941         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
22942         Only propagate addresses which do not have abnormal SSA_NAMEs
22943         in their operands.
22945 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
22947         PR target/35088
22948         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
22950 2008-02-15  Jan Hubicka  <jh@suse.cz>
22952         PR middle-end/35149
22953         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
22955 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
22957         PR middle-end/34621
22958         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
22959         when calculating alignment_pad.
22961 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
22963         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
22964         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
22965         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
22966         and STACK_BOUNDARY define.
22968 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
22970         PR preprocessor/35061
22971         * c-pragma.c (handle_pragma_pop_macro): Check that
22972         pushed_macro_table has been allocated.
22974 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
22976         PR middle-end/35136
22977         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
22978         (force_gimple_operand): Likewise.
22979         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
22980         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
22981         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
22982         (find_interesting_uses_address): Check addressability and alignment
22983         of the base expression only after substituting bases of IVs into it.
22985 2008-02-14  Michael Matz  <matz@suse.de>
22987         PR target/34930
22988         * function.c (instantiate_virtual_regs_in_insn): Reload address
22989         before falling back to reloading the whole operand.
22991 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
22993         * config/s390/s390.c (s390_mainpool_start): Emit the pool
22994         before the first section switch note.
22996 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22998         * doc/bugreport.texi: Update copyright years.
22999         * doc/c-tree.texi: Likewise.
23000         * doc/cfg.texi: Likewise.
23001         * doc/cpp.texi: Likewise.
23002         * doc/cppinternals.texi: Likewise.
23003         * doc/fragments.texi: Likewise.
23004         * doc/frontends.texi: Likewise.
23005         * doc/gcc.texi: Likewise.
23006         * doc/gty.texi: Likewise.
23007         * doc/hostconfig.texi: Likewise.
23008         * doc/implement-c.texi: Likewise.
23009         * doc/libgcc.texi: Likewise.
23010         * doc/loop.texi: Likewise.
23011         * doc/makefile.texi: Likewise.
23012         * doc/options.texi: Likewise.
23013         * doc/passes.texi: Likewise.
23014         * doc/rtl.texi: Likewise.
23015         * doc/sourcebuild.texi: Likewise.
23016         * doc/standards.texi: Likewise.
23017         * doc/tree-ssa.texi: Likewise.
23018         * doc/trouble.texi: Likewise.
23020         * doc/extend.texi: Use @: or add comma where appropriate.
23021         * doc/invoke.texi: Likewise.
23022         * doc/tm.texi: Likewise.
23024 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
23026         PR target/34393
23027         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
23028         to a reg.
23030 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
23032         * doc/md.texi (clz, ctz): Add reference.
23033         * doc/rtl.texi (clz, ctz): Likewise.
23035 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23037         PR other/35148
23038         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
23039         srcdir.
23041 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
23043         * config/s390/s390.c (struct constant_pool): New field
23044         emit_pool_after added.
23045         (s390_mainpool_start): Set the emit_pool_after flag according
23046         to the section switch notes.
23047         (s390_mainpool_finish): Consider emit_pool_after when emitting
23048         the literal pool at the end of the function.
23049         (s390_chunkify_start): Force literal pool splits at section
23050         switch notes.
23052 2008-02-13  Michael Matz  <matz@suse.de>
23054         PR debug/35065
23055         * var-tracking.c (clobber_variable_part): Correctly traverse the
23056         list.
23058 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23060         PR 29673
23061         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
23062         Add -fdump-ipa-inline.
23063         * tree-dump.c (dump_files): Remove tree-inlined dump.
23064         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
23066 2008-02-12  Richard Guenther  <rguenther@suse.de>
23068         PR tree-optimization/35171
23069         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
23070         default defs.
23072 2008-02-12  Richard Guenther  <rguenther@suse.de>
23074         PR middle-end/35163
23075         * fold-const.c (fold_widened_comparison): Use get_unwidened in
23076         value-preserving mode.  Disallow final truncation.
23078 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
23080         PR middle-end/35136
23081         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
23082         code from here to...
23083         (force_gimple_operand): ...here.
23085 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
23087         PR c++/35144
23088         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
23089         non-compatible pointers.
23090         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
23091         different FIELD_DECLs, try harder by comparing field offsets, sizes
23092         and types.
23094         PR inline-asm/35160
23095         * function.c (match_asm_constraints_1): Don't replace the same input
23096         multiple times.
23098 2008-02-12  Anatoly Sokolov <aesok@post.ru>
23100         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
23101         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
23102         (expand_epilogue): Restore RAMPZ register.
23103         * config/avr/avr.md (RAMPZ_ADDR): New constant.
23105 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
23107         * config/i386/cygwin.asm: (__alloca): Correct calling
23108         convention and alignment.
23109         (__chkstk): Force 8 byte stack alignment.
23111 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
23112             Richard Guenther  <rguenther@suse.de>
23114         PR tree-optimization/33992
23115         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
23116         the zero we compare against.
23118 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
23120         PR libfortran/35063
23121         * gthr-win32.h (__gthread_mutex_destroy_function): New function
23122         to CloseHandle after unlocking to prevent accumulation of handle
23123         count.
23125 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23127         PR middle_end/34150
23128         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
23129         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
23130         and update LABEL_NUSES during and after reload.
23132 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
23134         PR middle-end/34627
23135         * combine.c (simplify_if_then_else): Make sure the comparison is
23136         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
23138 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
23140         PR bootstrap/35051
23141         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
23142         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
23143         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
23144         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
23145         * tree.h (get_type_static_bounds): Likewise.
23147 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23149         * doc/invoke.texi (Option Summary, C++ Dialect Options)
23150         (Objective-C and Objective-C++ Dialect Options, Warning Options):
23151         Make -Wfoo language annotations match what the compiler outputs.
23153 2008-02-08  Sa Liu  <saliu@de.ibm.com>
23155         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
23156         intrinsics spu_convts, spu_convtu, spu_convtf.
23158 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
23160         * doc/extend.texi (Function Attributes) <noinline>: Mention
23161         asm ("") as method to keep calls.
23163 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23165         PR other/32754
23166         * doc/options.texi (Options): Replace references to opts.sh with
23167         optc-gen.awk.
23168         * opts-common.c: Likewise.
23169         * optc-gen.awk: Likewise.
23171 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
23173         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
23175 2008-02-07  Richard Henderson  <rth@redhat.com>
23177         PR rtl-opt/33410
23178         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
23179         EXPR_LIST for the REG_EQUAL instead of a comparison with a
23180         funny mode.
23182 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
23184         PR tree-optimization/35085
23185         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
23186         for operand entry oe2 in addition to operand entry oe3 in order to
23187         expose more opportunities for vectorizer sum reduction.
23189 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23191         PR other/35107
23192         * Makefile.in (LIBS): Remove $(GMPLIBS).
23193         (cc1-dummy, cc1): Add $(GMPLIBS).
23195 2008-02-06  Jan Hubicka  <jh@suse.cz>
23197         PR target/23322
23198         * i386.md (moddf_integer): Do not produce partial memory stalls for
23199         targets where it hurts.
23201 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
23203         PR target/35083
23204         * optabs.c (expand_float): Do not check for decimal modes when
23205         expanding unsigned integer through signed conversion.
23207 2008-02-06  Nick Clifton  <nickc@redhat.com>
23209         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
23210         inside the clobber with a match_operand and duplicated operand
23211         number in the constraint.
23212         (ineqbranchsi): Delete redundant comment.
23214 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
23216         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
23217         builtin_define ("__USE_INIT_FINI__").
23218         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
23219         -msx multilibs.
23220         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
23222 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23224         PR documentation/30330
23225         * doc/invoke.texi (C++ Dialect Options)
23226         (Objective-C and Objective-C++ Dialect Options, Warning Options):
23227         For each warning option -Wfoo that allows -Wno-foo, ensure both
23228         -Wfoo and -Wno-foo are listed in the option index.  Fix index
23229         entry of -Wswitch-default, index -Wnormalized= including the
23230         `=', and -Wlarger-than-@var{len} including @var{len}.
23232 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
23234         * config/i386/i386.md (floatunssisf2): Use
23235         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
23236         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
23237         Macroize expander using MODEF mode iterator.
23239 2008-02-05  Diego Novillo  <dnovillo@google.com>
23241         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
23243         PR 33738
23244         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
23246 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23248         PR other/35070
23249         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
23251 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
23253         PR target/35084
23254         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
23255         to indicate if a message should be generated.
23256         (init_cumulative_args): Updated.
23257         (function_value_32): Likewise.
23259 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
23261         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
23263 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
23265         PR target/35083
23266         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
23267         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
23269 2008-02-04  Diego Novillo  <dnovillo@google.com>
23271         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
23273         PR 33738
23274         * tree-vrp.c (vrp_evaluate_conditional): With
23275         -Wtype-limits, emit a warning when comparing against a
23276         constant outside the natural range of OP0's type.
23278 2008-02-04  Richard Guenther  <rguenther@suse.de>
23280         PR middle-end/33631
23281         * expr.c (count_type_elements): Give for unions instead of
23282         guessing.
23284 2008-02-04  Richard Guenther  <rguenther@suse.de>
23286         PR middle-end/35043
23287         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
23288         to TYPE_DOMAINs base type instead of using bitsizetype here.
23290 2008-02-03  Jason Merrill  <jason@redhat.com>
23292         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
23294 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23296         PR other/29972
23297         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
23298         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
23299         (RS/6000 and PowerPC Options): Fix typos and markup.
23300         * doc/passes.texi (Tree-SSA passes): Likewise.
23302 2008-02-02  Michael Matz  <matz@suse.de>
23304         PR target/35045
23305         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
23306         from record_last_reg_set_info.
23307         (record_last_reg_set_info): Take an RTX argument, iterate over all
23308         constituent hardregs.
23309         (record_last_set_info, record_opr_changes): Change calls to
23310         new signature or to record_last_reg_set_info_regno.
23312 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
23314         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
23316 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
23318         PR rtl-optimization/34773
23319         * reg-notes.def (EQUAL): Mention significance of combination of
23320         REG_EQUAL and REG_RETVAL.
23321         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
23322         insn that has a REG_RETVAL.
23324 2008-02-01  Roger Sayle  <roger@eyesopen.com>
23326         PR bootstrap/33781
23327         * configure.ac (--enable-fixed-point): Disable unless explicitly
23328         requested on IRIX.
23329         * configure: Regenerate.
23331 2008-02-01  Richard Guenther  <rguenther@suse.de>
23333         PR other/35042
23334         * invoke.texi (-finline-limit): Remove no longer true parts
23335         of the documentation.  Note that there is no default value.
23337 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
23338             Mark Mitchell  <mark@codesourcery.com>
23339             Ben Elliston  <bje@au.ibm.com>
23341         PR c/29326
23342         * doc/extend.texi (Other Builtins): Document.
23344 2008-01-31  Tom Browder <tom.browder@gmail.com>
23346         * doc/c-tree.texi (Types): Fix grammar.
23347         (Expression trees): Ditto.
23348         * doc/passes.texi (Tree-SSA passes): Ditto.
23350         * doc/configterms.texi (Configure Terms): Fix typo.
23351         * doc/cpp.texi (Common Predefined Macros): Ditto.
23352         * doc/md.texi (Machine Constraints): Ditto.
23354         * doc/makefile.texi (Makefile): Add comma.
23356 2008-01-31  Tom Browder  <tom.browder@gmail.com>
23357             Gerald Pfeifer  <gerald@pfeifer.com>
23359         * doc/sourcebuild.texi (Front End): Remove references to CVS
23360         and CVSROOT/modules.
23361         (Texinfo Manuals): Replace reference to CVS by one to SVN.
23362         (Back End): Remove reference to CVS.
23364 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
23366         PR target/34900
23367         * config/mips/mips.c (gen_load_const_gp): New function, taking a
23368         comment from...
23369         (mips16_gp_pseudo_reg): ...here.
23370         * config/mips/mips.md (load_const_gp): Replace with...
23371         (load_const_gp_<mode>): ...this :P-based insn.
23373 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23375         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
23376         options. Minor fixes.
23377         (-std): Move reference to standards closer to where language
23378         standards are first mentioned.
23380 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
23382         PR rtl-optimization/34995
23383         * reload.c (alternative_allows_const_pool_ref): Take an rtx
23384         parameter and return a bool.  If the rtx parameter is nonnull,
23385         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
23386         (find_reloads): Update call accordingly.  Pass the new operand
23387         if it needed no address reloads, otherwise pass null.
23389 2008-01-30  Richard Henderson  <rth@redhat.com>
23391         PR c/34993
23392         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
23393         for unbounded arrays.
23395 2008-01-30  Silvius Rus  <rus@google.com>
23397         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
23399 2008-01-30  Jan Hubicka  <jh@suse.cz>
23401         PR target/34982
23402         * i386.c (init_cumulative_args): Use real function declaration when
23403         calling locally.
23405 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
23407         PR rtl-optimization/34998
23408         * global.c (build_insn_chain): Treat non-subreg_lowpart
23409         SUBREGs of pseudos as clobbering all the words covered by the
23410         SUBREG, not just all the bytes.
23411         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
23412         original df_ref rather than an extract parameter.
23413         (global_conflicts): Update call accordingly.
23415 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
23417         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
23418         the overflow check to make it easier to read.
23419         (__fixtfdi): Change the type of the ll member in union
23420         long_double to UDItype_x.
23422 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
23424         PR middle-end/34969
23425         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
23426         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
23427         * tree-inline.c (fold_marked_statements): Call
23428         cgraph_update_edges_for_call_stmt if folding a call statement.
23429         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
23430         debug_generic_stmt calls, reset it back afterwards.
23432         PR c/35017
23433         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
23434         static decls.
23435         * c-typeck.c (build_external_ref): Don't pedwarn about
23436         static vars in current function's scope.
23438 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
23440         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
23442 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
23444         PR c/35002
23445         * ipa-struct-reorg.c: Fix spelling.
23446         * params.def: Ditto.
23448 2008-01-29  Richard Guenther  <rguenther@suse.de>
23450         PR middle-end/35006
23451         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
23452         field.
23453         * tree-inline.c (remap_type): Increment remapping_type_depth
23454         around remapping types.
23455         (copy_body_r): Only add referenced variables if they are referenced
23456         from code, not types.
23458 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
23460         PR c++/34055
23461         PR c++/34103
23462         PR c++/34219
23463         PR c++/34606
23464         PR c++/34753
23465         PR c++/34754
23466         PR c++/34755
23467         PR c++/34919
23468         PR c++/34961
23469         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
23470         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
23472 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
23474         PR target/34412
23475         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
23476         pointer for tiny stack.
23478 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
23480         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
23482 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
23484         * config/vx-common.h: Fix typo in comment.
23486 2008-01-28  Ian Lance Taylor  <iant@google.com>
23488         PR c++/34862
23489         PR c++/33407
23490         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
23491         coalesce pointers if they have different DECL_NO_TBAA_P values.
23492         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
23493         between variables with different DECL_NO_TBAA_P values.
23495 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
23497         PR 31535
23498         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
23499         are not legitimate small data references on SPE targets.
23501 2008-01-28  David Daney  <ddaney@avtrex.com>
23503         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
23505 2008-01-28  David Daney  <ddaney@avtrex.com>
23507         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
23509 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
23511         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
23512         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
23513         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
23514         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
23515         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
23516         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
23517         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
23518         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
23520 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
23522         * basic-block.h (condjump_equiv_p): Fix comment.
23524 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
23526         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
23527         print_generic_stmt_indented): Fix comment.
23529 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
23531         * configure.ac (__stack_chk_fail): Add detecion for availability
23532         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
23533         * configure: Regenerate.
23535 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
23537         PR middle-end/34688
23538         * final.c (output_addr_const): Handle TRUNCATE.
23540 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
23542         PR target/34711
23543         * tree-ssa-loop-ivopts.c (comp_cost): New type.
23544         (zero_cost, infinite_cost): New constants.
23545         (struct cost_pair): Change type of cost to comp_cost.
23546         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
23547         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
23548         New functions.
23549         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
23550         split_address_cost, ptr_difference_cost, difference_cost,
23551         get_computation_cost_at, get_computation_cost,
23552         determine_use_iv_cost_generic, determine_use_iv_cost_address,
23553         determine_use_iv_cost_condition, determine_use_iv_costs,
23554         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
23555         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
23556         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
23557         Change type of cost to comp_cost.
23558         (determine_iv_cost): Increase cost of non-original ivs, instead
23559         of decreasing the cost of original ones.
23560         (get_address_cost): Indicate the complexity of the addressing mode
23561         in comp_cost.
23562         (try_add_cand_for): Prefer using ivs not specific to some object.
23563         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
23565 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
23566             Janis Johnson  <janis187@us.ibm.com>
23568         PR target/34814
23569         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
23570         (TARGET_INSTANTIATE_DECLS): Likewise.
23571         * target.h (expand_to_rtl_hook): New target hook.
23572         (instantiate_decls): Likewise.
23573         * function.c (instantiate_decl): Make non-static.  Rename to...
23574         (instantiate_decl_rtl): ... this.
23575         (instantiate_expr): Use instantiate_decl_rtl.
23576         (instantiate_decls_1): Likewise.
23577         (instantiate_decls): Likewise.
23578         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
23579         * function.h (instantiate_decl_rtl): Add prototype.
23580         * cfgexpand.c (target.h): New include.
23581         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
23582         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
23583         (TARGET_INSTANTIATE_DECLS): Likewise.
23584         (TARGET_INITIALIZER): New target hooks added.
23585         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
23586         New prototype.
23587         * config/rs6000/rs6000.c (tree-flow.h): New include.
23588         (machine_function): Add sdmode_stack_slot field.
23589         (rs6000_alloc_sdmode_stack_slot): New function.
23590         (rs6000_instantiate_decls): Likewise.
23591         (rs6000_secondary_memory_needed_rtx): Likewise.
23592         (rs6000_check_sdmode): Likewise.
23593         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
23594         (TARGET_INSTANTIATE_DECLS): Likewise.
23595         (rs6000_hard_regno_mode_ok): Allow SDmode.
23596         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
23597         (rs6000_emit_move): Handle SDmode.
23598         (function_arg_advance): Likewise.
23599         (function_arg): Likewise.
23600         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
23601         SDmode var args for 32-bit compiles.
23602         (rs6000_secondary_reload_class): Handle SDmode.
23603         (rs6000_output_function_epilogue): Likewise.
23604         (rs6000_function_value): Simplify if statement.
23605         (rs6000_libcall_value): Likewise.
23606         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
23607         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
23608         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
23609         (movsd_hardfloat): New define_insn.
23610         (movsd_softfloat): Likewise.
23611         (movsd_store): Likewise.
23612         (movsd_load): Likewise.
23613         (extendsddd2): Likewise.
23614         (extendsdtd2): Likewise.
23615         (truncddsd2): Likewise.
23616         (movdd_hardfloat64): Fixup comment.
23617         (UNSPEC_MOVSD_LOAD): New constant.
23618         (UNSPEC_MOVSD_STORE): Likewise.
23620 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
23622         PR c++/34965
23623         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
23624         TRUTH_XOR_EXPR.
23625         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
23626         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
23627         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
23628         and TRUTH_XOR_EXPR.
23630 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
23632         PR target/34794
23633         * config.gcc: Separate AIX 5.3 from AIX 6.1.
23634         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
23635         __LONGDOUBLE128 too.
23636         * config/rs6000/aix61.h: New file.
23638 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
23640         PR rtl-optimization/34959
23641         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
23642         popcount and parity rtxes the same mode as their operand.
23643         Truncate or extend the result to the return value's mode
23644         if necessary.
23646 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
23648         PR target/34981
23649         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
23650         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
23651         to GOT_VERSION_REGNUM.
23652         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
23653         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
23654         * config/mips/mips.c (mips_emit_call_insn): New function.
23655         (mips_call_tls_get_addr): Call mips_expand_call directly.
23656         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
23657         emit_call_insn.
23658         (mips16_build_call_stub): Likewise.  Return the call insn or null.
23659         (mips_expand_call): Update the call to mips16_build_call_stub
23660         accordingly and a remove redundant condition.  Assert that MIPS16
23661         stubs do not use lazy binding.  Use mips_emit_call_insn and return
23662         the call insn.
23663         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
23664         TARGET_USE_GOT.
23665         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
23666         (mips_avoid_hazard): Remove hazard_set handling.
23667         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
23668         (UNSPEC_RESTORE_GP): ...this.
23669         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
23670         (FAKE_CALL_REGNO): Rename to...
23671         (GOT_VERSION_REGNUM): ...this.
23672         (type): Add "ghost" value.  Add an associated insn reservation.
23673         (hazard_set): Remove.
23674         (exception_receiver): Rename to...
23675         (restore_gp): ...this and update the unspec identifier accordingly.
23676         (exception_receiver, nonlocal_got_receiver): New expanders.
23677         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
23678         FAKE_CALL_REGNO.  Remove hazard_set attribute.
23679         (set_got_version, update_got_version): New patterns.
23681 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
23683         PR target/34970
23684         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
23686 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
23688         PR other/31955
23689         * doc/install.texi2html: Generate gcc-vers.texi.
23691 2008-01-25  DJ Delorie  <dj@redhat.com>
23693         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
23695 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
23697         * config/c4x: Remove directory.
23698         * config.gcc (crx-*, mt-*): Mark obsolete.
23699         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
23700         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
23701         sh-*-rtemscoff*): Remove cases.
23702         * defaults.h (C4X_FLOAT_FORMAT): Remove.
23703         * real.c (encode_c4x_single, decode_c4x_single,
23704         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
23705         c4x_extended_format): Remove.
23706         * real.h (c4x_single_format, c4x_extended_format): Remove.
23707         * doc/extend.texi (interrupt, naked): Remove mention of attributes
23708         on C4x.
23709         (Pragmas): Remove comment about c4x pragmas.
23710         * doc/install.texi (c4x): Remove target-specific instructions.
23711         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
23712         * doc/md.texi (Machine Constraints): Remove C4x documentation.
23713         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
23714         refer to C4x source files as examples.
23715         (C4X_FLOAT_FORMAT): Remove documentation.
23717 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
23719         * config/bfin/bfin.c (override_options): Reorder tests so that
23720         flag_pic gets enabled for -msep-data.
23722 2008-01-25  Richard Guenther  <rguenther@suse.de>
23724         PR middle-end/32244
23725         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
23726         to its bitfield precision if required.
23728 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
23730         PR middle-end/33880
23731         * tree-nested.c (walk_omp_for): New function.
23732         (convert_nonlocal_reference, convert_local_reference): Call
23733         walk_omp_for on OMP_FOR.
23734         (convert_call_expr): Call walk_body on OMP_FOR's
23735         OMP_FOR_PRE_INIT_BODY.
23737 2008-01-25  Richard Guenther  <rguenther@suse.de>
23739         PR tree-optimization/34966
23740         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
23741         default defs and PHI_NODEs we have to insert after the
23742         defining statement.
23744 2008-01-24  Nick Clifton  <nickc@redhat.com>
23746         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
23747         Provide a default definition.
23748         (LIBGCC2_UNITS_PER_WORD): Likewise.
23750         * config/stormy16/stormy16.c: Include df.h for the prototype
23751         for df_regs_ever_live_p.
23752         (xstormy16_expand_builtin_va_start): Convert the stack offset
23753         into a component_ref and then use POINTER_PLUS_EXPR to add it
23754         to the incoming_virtual_args_rtx.
23755         (xstormy16_gimplify_va_arg_expr): Rename to
23756         xstormy16_gimplify_va_arg_expr.
23757         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
23758         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
23759         xstormy16_gimplify_va_arg_expr.
23760         Fix up some formatting issues.
23762         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
23763         Move to predicates.md.
23764         (xs_hi_general_operand): Likewise.
23765         (xs_hi_nonmemory_operand): Likewise.
23766         * config/stormy16/predicates.md:
23767         (xstormy16_carry_plus_operand): New predicate.
23768         (xs_hi_general_operand): New predicate.
23769         (xs_hi_nonmemory_operand): New predicate.
23770         * config/stormy16/stormy16-protos.h:
23771         (xstormy16_carry_plus_operand): Delete prototype.
23772         (xs_hi_general_operand): Likewise.
23773         (xs_hi_nonmemory_operand): Likewise.
23775         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
23776         modifiers as they are no longer needed and they can trigger
23777         reload spill failures.
23779         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
23780         with a match_operand in order to help reload.
23782         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
23783         constraint with 'e' for the 8th alternative as this version of
23784         the mov.w instruction only accepts the lower 8 registers.
23786 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
23788         PR target/34856
23789         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
23790         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
23791         vector elements.
23793 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
23795         PR middle-end/33333
23796         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
23798 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
23800         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
23801         New functions.
23802         (remove_structure): Update allocations list before removing structure.
23804 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
23806         * ipa-struct-reorg.c (is_safe_cond_expr,
23807         create_new_stmts_for_cond_expr): Use integer_zerop function,
23808         that recognize not only zero-pointer, but zero-integer too.
23810 2008-01-25  Ben Elliston  <bje@au.ibm.com>
23812         PR other/22232
23813         * fixproto: Escape "." in sed expression that strips leading "./".
23815 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
23817         PR driver/34904
23818         * gcc.c (SWITCH_OK): Removed.
23819         (SWITCH_LIVE): Changed to bit.
23820         (SWITCH_FALSE): Likewise.
23821         (SWITCH_IGNORE): Likewise.
23822         (switchstr): Change live_cond to unsigned int.
23823         (process_command): Replace SWITCH_OK with 0.
23824         (do_self_spec): Likewise.
23825         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
23826         (give_switch): Likewise.
23827         (used_arg): Likewise.
23828         (do_spec_1): Set the SWITCH_IGNORE bit.
23829         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
23830         bits.  Set the SWITCH_LIVE bit.
23832 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
23834         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
23836 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
23838         PR tree-optimization/34472
23839         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
23840         parameter to a "bool *" and set *DATA to false if there is
23841         an unsafe access.  Do not delete the structure here.
23842         (check_cond_exprs): Delete it here instead.
23843         (check_cond_exprs, exclude_cold_structs): Do not increase
23844         I when removing a structure.
23846 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
23848         PR target/34856
23849         * config/i386/i386.c (ix86_expand_vector_init): Consider only
23850         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
23852 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
23854         PR middle-end/34934
23855         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
23856         a fixed vector for stack.
23858 2008-01-24  Ben Elliston  <bje@au.ibm.com>
23860         PR c++/25701
23861         * doc/gcc.texi (Software development): Add a direntry for g++.
23863 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
23865         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
23866         stale and straggling -fforce-addr comments above.
23868         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
23869         define.
23870         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
23871         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
23873 2008-01-23  Michael Matz  <matz@suse.de>
23875         PR debug/34895
23876         * dwarf2out.c (force_type_die): Use modified_type_die instead of
23877         gen_type_die.
23879 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
23881         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
23882         malloc result type.
23884 2008-01-23 Anatoly Sokolov <aesok@post.ru>
23886         * config/avr/avr.c (avr_current_arch): New variable.
23887         (avr_arch_types): Add 'avr31' and 'avr51' entries.
23888         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
23889         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
23890         (avr_override_options): Init 'avr_current_arch'.
23891         (base_arch_s): Move from here...
23892         * config/avr/avr.h (base_arch_s): ... here. Add new members
23893         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
23894         'mega' to 'have_jmp_call'.
23895         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
23896         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
23897         macros.
23898         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
23899         architectures.
23900         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
23901         MULTILIB_MATCHES): Ditto.
23903 2008-01-23  Richard Guenther  <rguenther@suse.de>
23905         PR middle-end/31529
23906         * cgraphunit.c (cgraph_reset_node): Always mark the node
23907         not reachable if it is not queued already.
23909 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
23911         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
23912         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
23913         (cputype_selected): New static variable.
23914         (bfin_handle_option): Set it if -mcpu is used.
23915         (override_option): Select default set of workarounds if no cpu type
23916         selected on the command line.
23917         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
23919         From  Michael Frysinger  <michael.frysinger@analog.com>
23920         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
23921         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
23923         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
23924         for bf547, bf523, bf524, and bf526.
23925         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
23926         bf526.
23927         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
23928         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
23929         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
23930         __ADSPBF547__ and __ADSPBF54x__ for bf547.
23931         * doc/invoke.texi (Blackfin Options): Document that
23932         -mcpu now accept bf547, bf523, bf524, and bf526.
23934 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
23936         PR rtl-optimization/34628
23937         * combine.c (try_combine): Stop and undo after the first combination
23938         if an autoincrement side-effect on the first insn has effectively
23939         been lost.
23941 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
23943         PR target/34529
23944         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
23945         Offset addresses are not valid for Altivec or paired float modes.
23947 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
23949         PR c++/34607
23950         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
23951         if DECL_INITIAL (decl) is error_mark_node.
23953         PR c++/34914
23954         * c-common.c (handle_vector_size_attribute): Only allow
23955         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
23956         the same way as pointer, array etc. types.
23957         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
23959         PR c++/34917
23960         * tree.c (build_type_attribute_qual_variant): Call
23961         build_qualified_type if attributes are equal, but quals are not.
23963 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
23965         PR 32102
23966         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
23967         * flags.h (warn_strict_aliasing): Remove.
23968         (warn_strict_overflow): Remove.
23969         * opts.c (warn_strict_aliasing): Remove.
23970         (warn_strict_overflow): Remove.
23971         * c-opts.c (c_common_handle_option): -Wall only sets
23972         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
23973         (c_common_post_options): Give default values to -Wstrict-aliasing
23974         and -Wstrict-overflow if they are uninitialized.
23975         * common.opt (Wstrict-aliasing): Specify Var and Init.
23976         (Wstrict-overflow): Likewise.
23978 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
23980         PR rtl-optimization/26854
23981         PR rtl-optimization/34400
23982         PR rtl-optimization/34884
23983         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
23984         DF_RD->gen.
23985         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
23986         (df_rd_bb_info.expanded_lr_out): Deleted
23987         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
23988         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
23989         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
23990         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
23991         Removed code to allocate, initialize or free expanded_lr_out.
23992         (df_rd_bb_local_compute_process_def): Restructured to make more
23993         understandable.
23994         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
23995         sets if the sets are being trimmed.
23997 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
23999         PR bootstrap/32287
24000         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
24001         (as_vers): Likewise.
24002         * configure: Regenerated.
24004 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24006         PR middle-end/33092
24007         * tree-pass.h (pass_build_alias): New pass.
24008         * tree-ssa-alias.c (gate_build_alias): New.
24009         (pass_build_alias): New.
24010         * passes.c (init_optimization_passes): Add pass_build_alias after
24011         pass_create_structure_vars.
24013 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
24015         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
24016         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
24017         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
24018         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
24019         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
24020         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
24021         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
24022         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
24023         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
24024         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
24025         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
24026         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
24027         * config/s390/s390.md (FP_ALL): New mode iterator.
24028         (_d): New mode attribute.
24029         ("*signbit<mode>2>"): Changed mode of first operand.
24030         ("isinf<mode>2"): Changed mode of first operand.
24031         ("*TDC_insn"): Adaptation for DFP modes.
24033 2008-01-22  Ben Elliston  <bje@au.ibm.com>
24035         * tree.c (check_qualified_type): Improve function description.
24037 2008-01-21  Jason Merrill  <jason@redhat.com>
24039         PR c++/34196
24040         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
24041         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
24042         if it is set.
24044 2008-01-21  DJ Delorie  <dj@redhat.com>
24046         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
24047         return zero.
24049 2008-01-21  Richard Guenther  <rguenther@suse.de>
24051         PR middle-end/34856
24052         * tree-cfg.c (verify_expr): Allow all invariant expressions
24053         instead of just constant class ones as reference argument.
24054         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
24055         like any other constant.
24056         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
24058 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
24060         * regmove.c (fixup_match_1): Update call crossed frequencies.
24062 2008-01-21  Richard Guenther  <rguenther@suse.de>
24064         PR c/34885
24065         * tree-inline.c (setup_one_parameter): Deal with mismatched
24066         types using a VIEW_CONVERT_EXPR.
24068 2008-01-21  Alon Dayan  <alond@il.ibm.com>
24069             Olga Golovanevsky  <olga@il.ibm.com>
24071         PR tree-optimization/34701
24072         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
24073         when the structure size is not a power of 2.
24075 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
24077         * doc/install.texi: Add doc for --enable-checking=df.
24079 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
24081         PR rtl-optimization/34808
24082         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
24084 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
24086         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
24087         input.
24089 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
24091         PR rtl-optimization/26854
24092         PR rtl-optimization/34400
24093         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
24094         DF_RD->gen.
24095         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
24096         (df_rd_bb_info.expanded_lr_out): New.
24097         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
24098         * loop_iv.c (iv_analysis_loop_init): Ditto.
24099         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
24100         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
24101         Added code to allocate, initialize or free expanded_lr_out.
24102         (df_rd_bb_local_compute_process_def): Restructured to make
24103         more understandable.
24104         (df_rd_confluence_n): Add code to do nothing with fake edges and
24105         code to no apply invalidate_by_call sets if the sets are being trimmed.
24106         (df_lr_local_finalize): Renamed to df_lr_finalize.
24107         (df_live_local_finalize): Renamed to df_live_finalize.
24109 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
24111         PR target/34831
24112         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
24113         deciding whether to use reciprocal instructions.
24115 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
24117         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
24118         dwarf2out_note_section_used if cold_text_section is NULL.
24120 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
24122         PR gcov-profile/34610
24123         * tree-cfg.c (make_edges): Mark both outgoing edges from
24124         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
24125         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
24126         from OMP_FOR and OMP_CONTINUE outgoing edges.
24128         * tree-profile.c (tree_profiling): Return early if
24129         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
24130         at the end.
24131         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
24132         from cfun to child_cfun.
24133         * function.h (struct function): Add after_tree_profile bit.
24135 2008-01-19 Anatoly Sokolov <aesok@post.ru>
24137         * config/avr/avr.S (_exit): Disable interrupt.
24139 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
24140             Steven Bosscher  <stevenb.gcc@gmail.com>
24142         PR rtl-optimization/26854
24143         PR rtl-optimization/34400
24144         * df-problems.c (df_live_scratch): New scratch bitmap.
24145         (df_live_alloc): Allocate df_live_scratch when doing df_live.
24146         (df_live_reset): Clear the proper bitmaps.
24147         (df_live_bb_local_compute): Only process the artificial defs once
24148         since the order is not important.
24149         (df_live_init): Init the df_live sets only with the variables
24150         found live by df_lr.
24151         (df_live_transfer_function): Use the df_lr sets to prune the
24152         df_live sets as they are being computed.
24153         (df_live_free): Free df_live_scratch.
24155 2008-01-18  Ian Lance Taylor  <iant@google.com>
24157         * common.opt: Add fmerge-debug-strings.
24158         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
24159         flag_merge_debug_strings rather than flag_merge_constants.
24160         * doc/invoke.texi (Option Summary): Mention
24161         -fmerge-debug-strings.
24162         (Debugging Options): Document -fmerge-debug-strings.
24164 2008-01-18  Ian Lance Taylor  <iant@google.com>
24166         PR c++/33407
24167         * tree.h (DECL_IS_OPERATOR_NEW): Define.
24168         (struct tree_function_decl): Add new field operator_new_flag.
24169         * tree-inline.c (expand_call_inline): When inlining a call to
24170         operator new, force the return value to go into a variable, and
24171         set DECL_NO_TBAA_P on that variable.
24172         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
24174 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
24176         PR debug/34484
24177         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
24178         DWARF2_DEBUGGING_INFO.
24179         (dwarf2out_note_section_used): Ditto.  Add prototype.
24180         (have_multiple_function_sections, text_section_used,
24181         cold_text_section_used, *cold_text_sections): Move declarations
24182         before their uses.
24184 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
24186         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
24187         field and add signal_ra.
24188         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
24189         assignments to frame state pc.  Move end of stack check after
24190         MD_FALLBACK_FRAME_STATE_FOR.
24191         (uw_update_context_1): Use frame state signal_regs if set, instead
24192         of checking signal_frame flag.
24193         (uw_update_context): Use frame state signal_ra if set.
24194         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
24195         * config/xtensa/linux-unwind.h: New file.
24197 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
24199         * modulo-sched.c (get_sched_window): Fix comment typo.
24201 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
24203         PR tree-optimization/34648
24204         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
24206 2008-01-17  Anatoly Sokolov <aesok@post.ru>
24208         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
24209         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
24211 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
24213         PR rtl-optimization/34400
24214         * df-core.c (df_worklist_dataflow_overeager,
24215         df_worklist_dataflow_doublequeue): New functions.
24216         (df_worklist_dataflow): Two different worklist solvers.
24217         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
24218         New param.
24220 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
24222         PR testsuite/34821
24223         * doc/invoke.texi: Document the dependence on pthread for fopenmp
24224         and ftree-parallelize-loops.
24226 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
24228         PR rtl-optimization/34826
24229         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
24231 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
24233         * global.c (find_reg): Mark the eh regs as used if necessary.
24234         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
24235         * ra.h (struct allocno): no_eh_reg field added.  Changed
24236         no_stack_reg type to bitfield.
24238 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
24240         * tree.c (substitute_in_expr): Add missing 'break'.
24242 2008-01-17  Richard Guenther  <rguenther@suse.de>
24244         PR tree-optimization/34825
24245         * tree-ssa-math-opts.c (is_division_by): Do not recognize
24246         x / x as division to handle.
24248 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24250         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
24251         "-pthread" is specified.
24252         * pa-hpux11.h (LIB_SPEC): Likewise.
24254 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
24255             Peter Bergner  <bergner@vnet.ibm.com>
24257         PR rtl-optimization/33796
24258         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
24260 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24262         PR libgfortran/34699
24263         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
24264         static links.
24265         * pa-hpux10.h (LINK_SPEC): Likewise.
24266         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
24268 2008-01-16  Richard Guenther  <rguenther@suse.de>
24270         PR middle-end/32628
24271         * fold-const.c (fold_convert_const_int_from_int): Do not
24272         set overflow if that occured only because of a sign extension
24273         change when converting from/to a sizetype with the same
24274         precision and signedness.
24276 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
24278         PR debug/34249
24279         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
24280         location address to the correct place.  Update copyright year.
24282 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
24284         * lambda-code.c (lambda_transform_legal_p): Handle the case of
24285         no dependences in the dependence_relations vector.
24287 2008-01-16  Jan Hubicka  <jh@suse.cz>
24289         PR rtl-optimization/31396
24290         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
24291         * cfg.c (dump_reg_info): Print it.
24292         * regs.h (struct reg_info_t): add freq_calls_crossed.
24293         (REG_FREQ_CALLS_CROSSED): New macro.
24294         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
24295         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
24296         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
24297         regmove_optimize): Update call crossed frequencies.
24298         * local-alloc.c (struct qty): Add freq_calls_crossed.
24299         (alloc_qty): Copute freq_calls_crossed.
24300         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
24301         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
24302         * ra.h (struct allocno): Add freq_calls_crossed.
24304 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
24306         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
24307         libgomp when compiling with ftree-parallelize-loops.
24308         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
24310 2008-01-16  Richard Guenther  <rguenther@suse.de>
24312         PR tree-optimization/34769
24313         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
24314         * tree.c (int_cst_value): Instead make this function more
24315         permissive in what it accepts as valid input.  Document this
24316         function always sign-extends the value.
24318 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
24319             Richard Guenther  <rguenther@suse.de>
24321         PR c/34668
24322         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
24323         (gimple_fold_indirect_ref_rhs): ... this.
24324         (gimple_fold_indirect_ref): New function with foldings
24325         that preserve lvalueness.
24326         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
24327         * tree-flow.h (gimple_fold_indirect_ref): Declare.
24328         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
24329         to fold an INDIRECT_REF, fall back to the old use of
24330         fold_indirect_ref_1.
24332 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
24334         * tree-data-ref.c (subscript_dependence_tester_1): Call
24335         free_conflict_function.
24336         (compute_self_dependence): Same.
24338 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
24340         PR debug/34249
24341         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
24342         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
24343         function global.
24344         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
24345         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
24346         for DWARF2_UNWIND_INFO targets.
24348 2008-01-16  Richard Guenther  <rguenther@suse.de>
24350         PR c/34768
24351         * c-typeck.c (common_pointer_type): Do not merge inconsistent
24352         type qualifiers for function types.
24354 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
24356         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
24357         loop_iterator li from previous commit.
24359 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
24361         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
24363 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
24365         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
24366         (parallelize_loops): Don't parallelize irreducible components.
24368 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24370         PR c++/24924
24371         * c-opts (c_common_post_options): Do not enable CPP
24372         flag_pedantic_errors by default.
24374 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
24376         PR rtl-optimization/31944
24377         * cse.c (remove_pseudo_from_table): New function.
24378         (merge_equiv_classes): Use above function to remove pseudo-registers.
24379         (invalidate): Likewise.
24381 2008-01-13  Richard Guenther  <rguenther@suse.de>
24383         PR middle-end/34601
24384         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
24385         instead of TYPE_MODE to deal with calls from expand_one_error_var.
24387 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
24389         * gcse.c (cprop_jump): Call validate_unshare_change instead of
24390         validate_change to unshare the source of the PC set.
24392 2008-01-12  Jan Hubicka  <jh@suse.cz>
24394         PR middle-end/32135
24395         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
24396         references above array bounds.  This might trigger bounds checks for
24397         pointers to arrays.
24399 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
24401         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
24402         new_replaceable_dependencies.
24404 2008-01-12  Doug Kwan  <dougkwan@google.com>
24406         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
24407         instead of OPT_Wreturn_type in warning due to ignored return type
24408         qualifiers.
24409         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
24410         options included in -Wextra.
24411         * c.opt: New option -Wignored_qualifiers.
24412         * doc/invoke.texi (Warning Options, -Wextra): Add new option
24413         -Wignore_qualifiers.
24414         (-Wignored-qualifiers): Document.
24415         (-Wreturn-type): Remove description of functionality now handled
24416         by -Wignored-qualifiers.
24418 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
24420         PR ada/33788
24421         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
24422         NOP_EXPR if it is between integral types with the same precision.
24424 2008-01-12  Jan Hubicka  <jh@suse.cz>
24426         PR other/28023
24427         * invoke.texi (max-inline-recursive-depth): Fix default value.
24429 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
24431         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
24432         correct type.
24434 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
24436         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
24438 2008-01-11  James E. Wilson  <wilson@specifix.com>
24440         PR target/26015
24441         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
24443 2008-01-11  Anatoly Sokolov <aesok@post.ru>
24445         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
24446         save/restore frame pointer register and don't use 'call-prologues'
24447         optimization in function with "OS_task" attribute.
24449 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
24451         PR middle-end/31309
24452         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
24453         when copying to memory.
24455 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
24457         PR rtl-optimization/30905
24458         * cfgcleanup.c: Include dce.h
24459         (crossjumps_occured): New global variable.
24460         (try_crossjump_bb): Exit loop after finding a fallthru edge.
24461         If something changed, set crossjumps_occured to true.
24462         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
24463         Don't add/remove fake edges to exit here...
24464         (cleanup_cfg): ...but do it here, when crossjumping.
24465         Run a fast DCE when successful crossjumps occured in the latest
24466         iteration of try_optimize_cfg.
24468 2008-01-11  Richard Guenther  <rguenther@suse.de>
24470         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
24471         (struct vn_unary_op_s): Likewise.
24472         (vn_reference_insert): Free old reference on hash collision.
24474 2008-01-10  Raksit Ashok  <raksit@google.com>
24476         PR rtl-optimization/27971
24477         * combine.c (find_split_point): Split PLUS expressions which are
24478         inside a MEM rtx, and whose first operand is complex.
24480 2008-01-10  DJ Delorie  <dj@redhat.com>
24482         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
24483         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
24484         (m32c_hard_regno_ok): Call the underlying function.
24486 2008-01-10  Richard Guenther  <rguenther@suse.de>
24488         PR middle-end/34683
24489         * tree-cfg.c (tree_merge_blocks): Do not go through the
24490         full-blown folding and stmt updating path if we just deal
24491         with virtual operands.
24492         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
24493         test for abnormal SSA_NAMEs.
24495 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
24497         PR middle-end/34641
24498         * reload.c (push_reload): Add assertions.  All constants from
24499         reg_equiv_constant should have been used for replacing the respective
24500         pseudo earlier.
24501         (find_reloads_address): Invoke find_reloads_address_part for
24502         constant taken from the reg_equiv_constant array.
24504 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
24506         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
24507         field (valnum) the first in the struct.  Replace bools with
24508         unit bit fields.
24510 2008-01-10  Richard Guenther  <rguenther@suse.de>
24512         PR tree-optimization/34651
24513         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
24514         types and ordering for masking and converting.
24516 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
24518         PR tree-optimization/34017
24519         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
24520         also for PHI_NODE expressions.
24522 2008-01-09  Jan Hubicka  <jh@suse.cz>
24524         PR tree-optimization/34708
24525         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
24526         based on number of case labels.
24527         (init_inline_once): Remove switch_cost.
24528         * tree-inline.h (eni_weights_d): Remove switch_cost.
24530 2008-01-09  Richard Guenther  <rguenther@suse.de>
24531         Andrew Pinski  <andrew_pinski@playstation.sony.com>
24533         PR middle-end/30132
24534         * gimplify.c (gimplify_cond_expr): Do not create an addressable
24535         temporary if an rvalue is ok or an lvalue is not required.
24537 2008-01-09  Richard Guenther  <rguenther@suse.de>
24539         PR middle-end/34458
24540         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
24541         adjust return type.
24543 2008-01-09  Richard Guenther  <rguenther@suse.de>
24545         PR middle-end/34679
24546         * tree.c (host_integerp): Check for sizetype only if the
24547         type is an integer type.
24549 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
24551         PR debug/26364
24552         * opts.c (decode_options): Disable inlining of functions called
24553         once if not in unit-at-a-time mode.
24555 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
24557         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
24559 2008-01-08  Richard Guenther  <rguenther@suse.de>
24561         PR middle-end/31863
24562         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
24563         out early if the result will be unused.
24565 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
24567         PR target/34709
24568         Revert:
24570         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
24571         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
24572         for TARGET_RECIP.
24574 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
24576         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
24577         for vectorization tuned.
24579 2008-01-08  Richard Guenther  <rguenther@suse.de>
24581         PR tree-optimization/34683
24582         * tree-ssa-operands.c (operand_build_cmp): Export.
24583         * tree-ssa-operands.h (operand_build_cmp): Declare.
24584         * tree-vn.c (vuses_compare): Remove.
24585         (sort_vuses): Use operand_build_cmp.
24586         (sort_vuses_heap): Likewise.
24587         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
24588         to re-use old VEC if available.  Do not sort already sorted VUSEs.
24589         (vdefs_to_vec): Do not sort already sorted VDEFs.
24591 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
24593         PR middle-end/34694
24594         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
24596 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
24598         PR target/34702
24599         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
24600         limitations of reciprocal sequences on x86 targets.
24602 2008-01-08  Richard Guenther  <rguenther@suse.de>
24604         PR tree-optimization/34683
24605         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
24607 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
24609         PR target/34622
24610         * config/darwin.c (darwin_mergeable_string_section): Don't use
24611         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
24613 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
24615         PR target/34682
24616         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
24617         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
24618         predicates of op0 and op1 to register_operand.
24619         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
24620         expander using X87MODEF mode iterator.  Change predicates of
24621         op0 and op1 to register_operand.
24622         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
24623         corresponding patterns and macroize using MODEF macro.  Change
24624         predicates of op0 and op1 to register_operand and remove
24625         "m" constraint. Disparage "r" alternative with "!".
24626         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
24627         macroize using X87MODEF macro.  Change predicates of op0 and op1
24628         to register_operand and remove "m" constraint.  Disparage "r"
24629         alternative with "!".
24630         (absneg splitter with memory operands): Remove.
24631         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
24632         patterns and macroize using X87MODEF mode iterator.
24633         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
24634         Change predicate of op1 to register_operand.
24635         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
24636         for memory operands.
24638 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
24640         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
24642 2008-01-07  Richard Guenther  <rguenther@suse.de>
24644         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
24645         fields.
24647 2008-01-07  Richard Guenther  <rguenther@suse.de>
24649         PR tree-optimization/34683
24650         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
24651         VOPs of the needed size to save memory.  Use VEC_quick_push
24652         to save compile-time.
24653         (vdefs_to_vec): Likewise.
24655 2008-01-07  Sa Liu  <saliu@de.ibm.com>
24657         * config/spu/spu.md (divdf3): Genetate inline code for double
24658         division.  The implementation doesn't handle INF or NAN, therefore it
24659         only applies when -ffinite-math-only is given.
24661 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
24663         PR libstdc++/34680
24664         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
24665         * doc/cpp.texi ([Common Predefined Macros]): Document.
24667 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
24669         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
24670         order to use commutative addition instead of subtraction.
24672 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
24673             Mircea Namolaru  <namolaru@il.ibm.com>
24674             Vladimir Yanovsky  <yanov@il.ibm.com>
24675             Revital Eres  <eres@il.ibm.com>
24677         PR tree-optimization/34263
24678         * tree-outof-ssa.c (process_single_block_loop_latch,
24679         contains_tree_r): New functions.
24680         (analyze_edges_for_bb): Call process_single_block_loop_latch
24681         function to empty single-basic-block latch block if possible.
24683 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
24685         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
24686         for TARGET_RECIP.
24687         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
24689 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
24691         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
24693 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
24695         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
24697 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
24699         PR tree-optimization/34618
24700         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
24701         flag from T.
24703 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
24705         PR target/34673
24706         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
24707         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
24708         Update copyright year.
24710         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
24711         Update copyright year.
24712         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
24713         using NR fixup.
24715 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
24717         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
24718         edge does not point to current bb before changing need_assert.
24720 2008-01-04  Richard Guenther  <rguenther@suse.de>
24722         PR middle-end/34029
24723         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
24724         for verifying purposes if they are is_gimple_min_invariant.
24726 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
24728         PR tree-optimization/34448
24729         PR tree-optimization/34465
24730         * gimplify.c (gimplify_init_constructor): Add new parameter
24731         notify_temp_creation.  Use it.
24732         (gimplify_modify_expr_rhs): Take volatiles into account when
24733         optimizing constructors.
24734         Do not optimize constructors if gimplify_init_constructor will dump to
24735         memory.
24736         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
24737         * gcc.c-torture/compile/pr34448.c: New.
24739 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
24741         PR gcov-profile/34609
24742         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
24743         return_slot if result is TREE_ADDRESSABLE.
24745 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
24747         * config/mips/mips.md (sqrt_condition): Tweak comment.
24748         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
24750 2008-01-03  Tom Tromey  <tromey@redhat.com>
24752         PR c/34457
24753         * c-common.c (c_type_hash): Handle VLAs.
24755 2008-01-03  Jan Hubicka  <jh@suse.cz>
24757         PR tree-optimization/31081
24758         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
24759         0 when inlining and not inlining to first basic block.
24760         (remap_decl): When var is initialized to 0, don't set default_def.
24761         (expand_call_inline): Set entry_bb.
24762         * tree-inline.h (copy_body_data): Add entry_bb.
24764 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
24766         PR c++/34619
24767         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
24768         before returning.
24770         PR tree-optimization/29484
24771         * tree-inline.c (inline_forbidden_p_2): New function.
24772         (inline_forbidden_p): Disallow inlining if some static var
24773         has an address of a local LABEL_DECL in its initializer.
24774         * doc/extend.texi (Labels as Values): Document &&foo behaviour
24775         vs. inlining.
24777 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
24779         PR tree-optimization/34635
24780         * tree-data-ref.c (add_other_self_distances): Make sure that the
24781         evolution step is constant.
24783 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
24785         PR middle-end/34608
24786         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
24788 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
24790         * tree-sra.c (scalarize_init): Insert the generate_element_init
24791         statements after the generate_element_zero statements.
24793 2008-01-02  Richard Guenther  <rguenther@suse.de>
24795         PR middle-end/34093
24796         PR middle-end/31976
24797         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
24798         for very large number of operands instead of ICEing.
24800 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
24802         PR target/34013
24803         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
24804         while stack probing.
24806 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
24808         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
24809         in C++0x mode.
24811 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
24813         PR libmudflap/26442
24814         * tree-mudflap.c (mx_register_decls): Guard warning by
24815         !DECL_ARTIFICIAL check.
24817 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
24819         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
24820         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
24821         sse5_perm<mode>): Fix constraints.