OSDN Git Service

PR c/37529
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-09-16  Jakub Jelinek  <jakub@redhat.com>
2
3         PR c/37529
4         * gimplify.c (gimplify_expr) <case GOTO_EXPR>: If gimplification of
5         GOTO_DESTINATION failed, don't create GIMPLE_GOTO.
6
7         PR c++/37530
8         * gimplify.c (gimplify_expr) <case TRY_CATCH_EXPR>: Don't create
9         GIMPLE_TRY if cleanup sequence is empty.
10
11 2008-09-16  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12
13         PR middle-end/37263
14         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Prefer the
15         eliminate IV if the cost are the same.
16
17 2008-09-16  Richard Guenther  <rguenther@suse.de>
18
19         PR middle-end/37380
20         * tree-sra.c (sra_build_assignment): Do not call the gimplifier
21         if not necessary.
22
23 2008-09-16  Richard Guenther  <rguenther@suse.de>
24
25         PR tree-optimization/37508
26         * tree-vrp.c (simplify_truth_ops_using_ranges): Also allow -1.
27
28 2008-09-15  Kaz Kojima  <kkojima@gcc.gnu.org>
29
30         * config/sh/sh.md (movsf_ie): Fix length for TARGET_SH2A.
31
32 2008-09-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
33
34         * config/rs6000/rs6000.md (floatsidf2): Rewrite PowerPC64 case to
35         use gen_floatdidf2 directly.
36         (floatunssidf2): Likewise.
37         (floatsidf_ppc64_mfpgpr): Remove.
38         (floatsidf_ppc64): Remove.
39         (floatunssidf_ppc64): Remove.
40
41 2008-09-15  Jakub Jelinek  <jakub@redhat.com>
42
43         * ira-color.c (finish_cost_update): Free update_cost_queue_elems
44         rather than update_cost_queue.
45
46         * tree-ssa-alias.c (init_alias_info): Call bitmap_obstack_release
47         in every call starting with the second one, instead of only when
48         alias_bitmap_obstack.elements != NULL.
49
50         * tree-predcom.c (filter_suitable_components): Free all refs in
51         act->refs vector before calling release_component.
52         (add_ref_to_chain): Free ref if not adding it to chain->refs.
53
54         * tree-data-ref.c (free_subscripts): Free all subscript objects.
55
56         * tree-loop-linear.c (linear_transform_loops): Initialize
57         lambda_obstack only after calling perfect_loop_nest_depth.
58         Goto free_and_continue instead of just continue for later failures.
59
60         PR middle-end/37479
61         * doc/invoke.texi: Document -fno-dwarf2-cfi-asm.
62
63         PR libmudflap/36397
64         * tree-mudflap.c (mf_xform_derefs_1): Handle VIEW_CONVERT_EXPR.
65
66 2008-09-14  Andreas Schwab  <schwab@suse.de>
67
68         * tree-call-cdce.c (check_target_format): Accept Motorola formats.
69
70 2008-09-14  Jan Hubicka  <jh@suse.cz>
71
72         * invoke.texi (-fconserve-stack): Document.
73         * opts.c (decode_options): Handle conserve_stack.
74         * common.opt (fconvserve_stack): New.
75
76 2008-09-14  David Edelsohn  <edelsohn@gnu.org>
77
78         * config.host: Add x-aix to host_xmake_file.
79         * config/rs6000/t-aix52: Do not override LDFLAGS.
80         * config/rs6000/x-aix: New file.
81
82 2008-09-14  Andy Hutchinson  <hutchinsonandy@aim.com>
83
84         PR target/19636
85         PR target/24894
86         PR target/31644
87         PR target/31786
88         * config/avr/avr.c (legitimate_address_p): Fix problem where subreg
89         is not recognized as a valid register usage. Allow REG_X to be used
90         as a base pointer.
91         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Remove code that
92         forces a reload when using a base register.
93
94 2008-09-14  Danny Smith  <dannysmith@users.sourceforge.net>
95
96         * config/i386/cygming-crtend.c (register_frame_ctor): If
97         DEFAULT_USE_CXA_ATEXIT, register __gcc_deregister_frame
98         directly with atexit.
99         (deregister_frame_ctor): Rename to ...
100         (deregister_frame_dtor): Use to call __gcc_deregister_frame
101         if !DEFAULT_USE_CXA_ATEXIT.
102
103 2008-09-13  Jan Hubicka  <jh@suse.cz>
104
105         * cgraph.c: Include value-prof.h
106         * Makefile.in (cgraph.o): Add value-prof.h dependency.
107
108 2008-09-13  Jan Hubicka  <jh@suse.cz>
109
110         PR middle-end/32581
111         * tree-profile.c (add_abnormal_goto_call_edges): New function.
112         (tree_gen_interval_profiler, tree_gen_pow2_profiler,
113         tree_gen_one_value_profiler, tree_gen_average_profiler,
114         tree_gen_ic_func_profiler, tree_gen_ior_profiler): Use it.
115
116 2008-09-13  Jan Hubicka  <jh@suse.cz>
117
118         * i386.c (ix86_expand_movmem, ix86_expand_movstr): Avoid processing too
119         many bytes on misalligned blocks.
120
121 2008-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
122
123         * doc/cfg.texi: Fix some typos.
124         * doc/extend.texi: Likewise.
125         * doc/install.texi: Likewise.
126         * doc/invoke.texi: Likewise.
127         * doc/rtl.texi: Likewise.
128         * doc/tree-ssa.texi: Likewise.
129
130 2008-09-13  Richard Guenther  <rguenther@suse.de>
131
132         PR middle-end/30141
133         * tree-nested.c (finalize_nesting_tree_1): Generate valid
134         gimple stores for memory rhs.
135
136 2008-09-13  H.J. Lu  <hongjiu.lu@intel.com>
137
138         PR rtl-optimization/37489
139         * cse.c (fold_rtx): Don't return const_true_rtx for float
140         compare if FLOAT_STORE_FLAG_VALUE is undefined.
141
142 2008-09-13  Jan Hubicka  <jh@suse.cz>
143
144         PR tree-optimization/37392
145         * tree-inline.c (remap_gimple_stmt): Do not remap return value.
146
147 2008-09-13  Martin Jambor  <mjambor@suse.cz>
148             Jan Hubicka  <jh@suse.cz>
149
150         * cgraph.c (free_edges): New variable.
151         (NEXT_FREE_EDGE): New macro.
152         (cgraph_free_edge): New function.
153         (cgraph_remove_edge): Call cgraph_remove_edge_1.
154         (cgraph_node_remove_callees): Likewise.
155         (cgraph_node_remove_callers): Likewise.
156         (cgraph_create_edge): Reuse edges from the free list.  Do not
157         update uid if doing so.
158         (cgraph_remove_*_hook): Add free call.
159
160 2008-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
161
162         * ira-color.c (conflict_allocno_vec): Delete.
163         (update_cost_queue_elem): New structure.
164         (update_cost_queue): New variable.
165         (update_cost_queue_tail): Likewise.
166         (update_cost_queue_elems): Likewise.
167         (allocno_update_cost_check): Delete.
168         (initiate_cost_update): Allocate update_cost_queue_elems
169         instead of allocno_update_cost_check.
170         (finish_cost_update): Update the free()s accordingly.
171         (start_update_cost): New function.
172         (queue_update_cost): Likewise.
173         (get_next_update_cost): Likewise.
174         (update_copy_costs_1): Inline into...
175         (update_copy_costs): ...here.  Use a queue instead of recursive calls.
176         Use cover_class instead of ALLOCNO_COVER_CLASS (another_allocno),
177         once we've established they are equal.  Don't allocate update
178         costs if there is nothing to add to them.
179         (update_conflict_hard_regno_costs): Remove ALLOCNO and
180         DIVISOR arguments.  Use a queue instead of recursive calls;
181         process all the allocnos in the initial queue, rather than
182         a single allocno.
183         (assign_hard_reg): Use queue_update_cost instead of
184         conflict_allocno_vec.  Queue coalesced allocnos instead
185         of calling update_conflict_hard_regno_costs for each one.
186         Just call update_conflict_hard_regno_costs once for the
187         entire queue.
188         (ira_color): Remove conflict_allocno_vec handling.
189
190 2008-09-12  Sebastian Pop  <sebastian.pop@amd.com>
191
192         PR tree-optimization/37484
193         * graphite.c (scop_record_loop): Use snprintf instead of sprintf.
194         (save_var_name): Same.
195         (initialize_cloog_names): Same.
196         (initialize_cloog_names): Same.
197
198 2008-09-12  Sebastian Pop  <sebastian.pop@amd.com>
199
200         * tree-scalar-evolution.c (set_instantiated_value): Set instantiated_below.
201
202 2008-09-12  Vladimir Makarov  <vmakarov@redhat.com>
203
204         PR rtl-opt/37377
205
206         * ira-build.c (common_loop_tree_node_dominator): Remove.
207         (copy_live_ranges_to_removed_store_destinations): New function.
208         (regno_top_level_allocno_map): Move to top level from ...
209         (ira_flattening): ... here.  Use
210         copy_live_ranges_to_removed_store_destinations.
211
212         * ira-emit.c (generate_edge_moves): Fix a comment.
213
214 2008-09-12  Anatoly Sokolov  <aesok@post.ru>
215
216         PR target/37466
217         * config/avr/avr.md (movsi_lreg_const peephole2): Add match_dup for
218         scratch register after 'set' pattern.
219
220 2008-09-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
221
222         * emit-rtl.c (set_reg_attrs_from_value): Fix invalid alignment
223         information passed to mark_reg_pointer.
224         * explow.c (force_reg): Likewise.
225
226 2008-09-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
227
228         * config/spu/spu.c (spu_override_options): Default to -mno-safe-hints
229         when building for the celledp architecture.
230
231 2008-09-12  Richard Guenther  <rguenther@suse.de>
232
233         * tree-vrp.c (simplify_truth_ops_using_ranges): Fix types.
234
235 2008-09-12  Eric Botcazou  <ebotcazou@adacore.com>
236
237         PR rtl-optimization/37424
238         * ira-color.c (coalesced_pseudo_reg_slot_compare): Untie by comparing
239         the regnos instead of the addresses.
240
241 2008-09-11  Janis Johnson  <janis187@us.ibm.com>
242
243         * ginclude/float.h (DEC_EVAL_METHOD): Correct the macro name.
244
245 2008-09-11  Richard Guenther  <rguenther@suse.de>
246
247         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Avoid
248         entering the weaker equivalence recording.
249
250         * tree-ssa-phiprop.c (propagate_with_phi): Fix tuplification.
251
252 2008-09-11  Jeff Law <law@redhat.com>
253
254         * reload1.c (alter_reg): Undo the BYTE_BIG_ENDIAN correction performed
255         by assign_stack_local on the IRA path for stack slot sharing
256         as well as the non-IRA path.
257
258 2008-09-11  Uros Bizjak  <ubizjak@gmail.com>
259
260         * config/i386/i386.h: Fix whitespace issues.
261
262 2008-09-11  Martin Jambor  <mjambor@suse.cz>
263
264         * ipa-prop.h (struct ipa_param_flags): Removed.
265         (struct ipa_param_descriptor): New structure.
266         (struct ipa_node_params): ipcp_lattices, param_decls and
267         param_flags moved to ipa_param_description.
268         (ipa_get_ith_param): Renamed to ipa_get_param, changed to access
269         descriptors.  Renamed all users.
270         (ipa_is_ith_param_modified): Renamed to ipa_is_param_modified,
271         changed to access descriptors.  Renamed all users.
272         (ipa_is_ith_param_called): Renamed to ipa_is_param_called, changed
273         to access descriptors. Renamed all users.
274         * ipa-cp.c (ipcp_init_cloned_node): Call
275         ipa_initialize_node_params instead of ipa_count_formal_params and
276         ipa_create_param_decls_array.
277         (ipcp_analyze_node): Likewise.
278         (ipcp_get_ith_lattice): Renamed to ipcp_get_lattice, changed to access
279         descriptors.  Renamed all users.
280         (ipcp_initialize_node_lattices): Remove allocation.
281         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
282         ipa_initialize_node_params instead of ipa_count_formal_params and
283         ipa_create_param_decls_array.
284         * ipa-prop.c (ipa_create_param_decls_array): Renamed to
285         ipa_populate_param_decls, made static, added parameter info,
286         renamed mt to node, removed allocation, changed to use
287         descriptors.
288         (ipa_count_formal_params): Made static, added parameter info,
289         renamed mt to node.
290         (ipa_initialize_node_params): New function.
291         (ipa_check_stmt_modifications): Changed to use descriptors.
292         (ipa_detect_param_modifications): Removed allocation, changed to
293         use descriptors.
294         (ipa_note_param_call): Changed to use descriptors.
295         (ipa_analyze_params_uses): Removed allocation.
296         (ipa_free_node_params_substructures): Changed to use descriptors.
297         (ipa_edge_duplication_hook): Use the unused attribute.
298         (ipa_node_duplication_hook): Use the unused attribute, changed to
299         use descriptors, changed to duplicate descriptors.
300
301         * ipa-inline.c (cgraph_mark_inline_edge): New parameter new_edges,
302         changed all callers.  Call ipa_propagate_indirect_call_infos if doing
303         indirect inlining.  Made static.
304         (cgraph_decide_inlining): Freeing ipa-prop structures after inlining
305         functions called only once.
306         (cgraph_decide_recursive_inlining): Don't call
307         ipa_propagate_indirect_call_infos, pass new_edges to
308         cgraph_mark_inline_edge instead.
309         (cgraph_decide_inlining_of_small_functions): Don't call
310         ipa_propagate_indirect_call_infos, pass new_edges to
311         cgraph_mark_inline_edge instead.
312         (cgraph_decide_inlining): Don't call
313         ipa_propagate_indirect_call_infos.
314         * ipa-prop.c: Check that vectors are allocated.
315
316         * ipa-inline.c (cgraph_mark_inline_edge): Returns boolean, true
317         iff a new cgraph edges have been created.
318         (cgraph_decide_inlining): New variable redo_always_inline.
319         Flattening and always_inlining loop until callgraph stabilizes.
320         * ipa-prop.c (update_call_notes_after_inlining): Returns boolean,
321         true iff new cgraph edges have been created.
322         (propagate_info_to_inlined_callees): Likewise.
323         (ipa_propagate_indirect_call_infos): Likewise.
324
325 2008-09-11  Richard Guenther  <rguenther@suse.de>
326
327         * tree-vectorizer.c (slpeel_add_loop_guard): Fix types.
328         (set_prologue_iterations): Likewise.
329         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
330         Likewise.
331         (vect_update_init_of_dr): Likewise.
332         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Fix
333         type verification.
334         * fold-const.c (fold_unary): Do not generate calculations
335         in sub-types.
336
337 2008-09-11  Paolo Bonzini  <bonzini@gnu.org>
338
339         * dojump.c (do_jump) [BIT_AND_EXPR]: Move below.  Fall through to
340         TRUTH_AND_EXPR for boolean (1-bit precision) expressions.
341         (do_jump) [BIT_IOR_EXPR]: Compile as TRUTH_OR_EXPR.
342
343         * tree-flow.h (simplify_stmt_using_ranges): Accept a GSI, return a bool.
344         * tree-ssa-propagate.c (substitute_and_fold): Pass a GSI to
345         VRP's simplify_stmt_using_ranges.  Do simplify_stmt_using_ranges
346         before finalizing the changes.
347         * tree-vrp.c (extract_range_from_binary_expr): Add limited support
348         for BIT_IOR_EXPR.
349         (simplify_truth_ops_using_ranges): New.
350         (simplify_div_or_mod_using_ranges, simplify_abs_using_ranges,
351         simplify_cond_using_ranges, simplify_switch_using_ranges): Return
352         whether a simplification was made.
353         (simplify_stmt_using_ranges): Ditto, and accept a GSI.  For GS_ASSIGN,
354         use a switch statement and also call simplify_truth_ops_using_ranges.
355
356 2008-09-11  Jan Hubicka  <jh@suse.cz>
357
358         * ggc-common.c (loc_array): Make static.
359         * dce.c (rest_of_handle_ud_dce): Free worklist.
360
361 2008-09-11  Jan Hubicka  <jh@suse.cz>
362
363         * cgraph.c (cgraph_release_function_body): Plug memory leak on
364         ipa_transforms_to_apply and CFG; ggc_free gimple df and struct function
365         so we are sure we do not dangle it forever.
366         * function.c (outer_function_chain, find_function_data): Remove.
367         (function_context_stack): New.
368         (push_function_context, pop_function_context): Update.
369         * function.h (struct function): Remove pointer outer.
370         (outer_function_chain, find_function_data): Remove.
371         * stmt.c (force_label_rtx): Remove dead call of find_function_data.
372
373 2008-09-11  Jan Hubicka  <jh@suse.cz>
374
375         PR middle-end/37448
376         * cgraph.c (cgraph_create_edge): Use !cgraph_edge for sanity check.
377
378 2008-09-11  Jan Hubicka  <jh@suse.cz>
379
380         * tree-ssa-pre.c (phi_translate_1): Fix memory leak
381
382 2008-09-11  Jan Hubicka  <jh@suse.cz>
383
384         * tree-ssa.c (redirect_edge_var_map_clear): Fix formatting.
385         (free_var_map_entry): New function.
386         (redirect_edge_var_map_destroy): Use it.
387
388 2008-09-11  Jan Hubicka  <jh@suse.cz>
389
390         PR middle-end/37448
391         * tree-inline.c (add_lexical_block): Replace with ...
392         (prepend_lexical_block): ... prepend at begginig.
393         (remap_blocks): Use it and reverse later.
394         (expand_call_inline): Use prepend_lexical_block.
395
396 2008-09-11  Jan Hubicka  <jh@suse.cz>
397
398         * gimplify.c (pop_gimplify_context): Free bind_expr_stack.
399
400 2008-09-11  Jan Hubicka  <jh@suse.cz>
401
402         * function.c (free_after_compilation): Call insn_locators_free.
403         * cfglayout.c (insn_locators_free): New function.
404         * rtl.h (insn_locators_free): Declare.
405
406 2008-09-11  Jan Hubicka  <jh@suse.cz>
407
408         * ifcvt.c (check_cond_move_block): Make regs argument pointer to
409         vector pointer.
410         (cond_move_process_if_block): Update call.
411
412 2008-09-11  Jan Hubicka  <jh@suse.cz>
413
414         * toplev.c (dump_memory_report): Call dump_vec_loc_statistics.
415         * vec.c: Include hashtab.h
416         (vec_descriptor, ptr_hash_entry): New structures.
417         (vec_desc_hash, vec_ptr_map): New static variables.
418         (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr, vec_descriptor,
419         register_overhead, free_overhead, vec_heap_free): New functions.
420         (vec_gc_o_reserve_1): ggc_free when resizing to 0.
421         (vec_heap_o_reserve_1): free when resizing to 0; add statistics.
422         (cmp_statistic, add_statistics, dump_vec_loc_statistics): New functions.
423
424 2008-09-11  Ira Rosen  <irar@il.ibm.com>
425
426         PR tree-optimization/37474
427         * tree-vect-analyze.c (vect_supported_load_permutation_p): Check the
428         length of load permutation.
429
430 2008-09-11  Andreas Schwab  <schwab@suse.de>
431
432         * config/m68k/m68k.h (IRA_COVER_CLASSES): Define.
433
434 2008-09-11  Jakub Jelinek  <jakub@redhat.com>
435
436         PR target/37382
437         * expmed.c (extract_low_bits): Avoid creating invalid subregs.
438         * dse.c (find_shift_sequence): Use extract_low_bits instead of
439         simplify_gen_subreg.
440
441 2008-09-11  Ira Rosen  <irar@il.ibm.com>
442
443         * tree-vect-transform.c (vectorizable_store): Use the rhs vector type
444         for alias check.
445
446 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
447
448         PR middle-end/37338
449         * gimplify.c (gimplify_body): Call default_rtl_profile.
450
451         PR target/36904
452         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Return NULL
453         instead of tok->val.node if not expanding to something else.  Handle
454         intervening CPP_PADDING tokens.
455         (altivec_categorize_keyword): Remove unneeded comparisons.
456
457 2008-09-10  Richard Guenther  <rguenther@suse.de>
458
459         * tree-ssa-pre.c (phi_translate_1): Fix memory leak.
460
461 2008-09-10  Richard Guenther  <rguenther@suse.de>
462
463         PR middle-end/37432
464         * tree-inline.c (insert_init_stmt): Make sure to not
465         insert invalid gimple stores.
466
467 2008-09-10  Sebastian Pop  <sebastian.pop@amd.com>
468
469         PR tree-optimization/37388
470         * toplev.c (process_options): Fail and warn when graphite
471         flags are used, but the compiler has not been configured
472         with graphite libraries.
473         * graphite.c (graphite_transform_loops): Remove printfs
474         to dump_file for the case when graphite is not available.
475
476 2008-09-10  H.J. Lu  <hongjiu.lu@intel.com>
477
478         PR target/37434:
479         * config/i386/i386.c (ix86_expand_vector_init_interleave): Force
480         the even element into register.
481         (ix86_expand_vector_init_general): Don't use
482         ix86_expand_vector_init_interleave on V16QImode and V8HImode
483         if we can't move from GPR to SSE register directly.
484
485 2008-09-10  Bernd Schmidt  <bernd.schmidt@analog.com>
486
487         * config/bfin/bfin.c (workaround_speculation): Correct algorithm to
488         not lose track of the number of NOPs needed.  Number of NOPs needed
489         for sync vs. loads workaround was switched; corrected.  Run second
490         pass for all workarounds.  No NOPs needed after call insns.  Change
491         second pass to use find_next_insn_start and find_load helpers in order
492         to properly detect parallel insns.
493         * config/bfin/bfin.md (cbranch_with_nops): Increase length.
494
495 2008-09-10  Jan Hubicka  <jh@suse.cz>
496
497         * value-prof.c (gimple_ic): Fix tuplification bug.
498         * sched-deps.c (sched_insns_conditions_mutex_p): Silence unitialized
499         var warning.
500
501 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
502
503         PR tree-optimization/37353
504         * tree-call-cdce.c (cond_dead_built_in_calls): Remove.
505         (shrink_wrap_conditional_dead_built_in_calls): Add calls argument, use
506         calls instead of cond_dead_built_in_calls.
507         (tree_call_cdce): Add cond_dead_built_in_calls automatic variable,
508         initalize the vector only before adding first entry.  Use VEC_safe_push
509         instead of VEC_quick_push.  Pass cond_dead_built_in_calls to
510         shrink_wrap_conditional_dead_built_in_calls call.
511
512 2008-09-10  Ira Rosen  <irar@il.ibm.com>
513
514         PR tree-optimization/37385
515         * tree-vect-transform.c (vect_create_data_ref_ptr): Add a new argument,
516         and use it as a vector type if not NULL.
517         (vectorizable_store): Call vect_create_data_ref_ptr with the type of
518         vectorized rhs.
519         (vect_setup_realignment): Call vect_create_data_ref_ptr with additional
520         argument.
521         (vectorizable_load): Likewise.
522
523 2008-09-10  Jakub Jelinek  <jakub@redhat.com>
524
525         * config/i386/i386.md (SWI32): New mode iterator.
526         (jcc_fused_1, jcc_fused_2, jcc_fused_3, jcc_fused_4): Use it instead
527         of SWI.
528
529 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
530
531         PR rtl-optimization/37435
532         * caller-save.c (insert_restore, insert_save): Check the mode by
533         reg_save_code.
534
535 2008-09-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
536
537         PR other/37265
538         * dwarf2asm.c (dw2_force_const_mem): Use unstripped symbol name for
539         splay tree lookup.
540         (dw2_output_indirect_constant_1): Use unstripped name in symbol
541         reference.
542
543 2008-09-09  Sandra Loosemore  <sandra@codesourcery.com>
544
545         * doc/invoke.texi (ARM Options): Correct errors in discussion
546         of -mfloat-abi, -mhard-float, and -msoft-float.
547
548 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
549             Jan Hubicka  <jh@suse.cz>
550
551         PR middle-end/37356
552         * tree-inline.c (copy_bb): Insert stmt into copy_basic_block before
553         calling gimple_regimplify_operands on it.  Iterate over all newly
554         added statements, not just the last one.
555         (insert_init_stmt): Insert stmt into seq first, then call
556         gimple_regimplify_operands on it.  Don't create new gimplification
557         context, nor find referenced vars.
558
559 2008-09-09  Jakub Jelinek  <jakub@redhat.com>
560
561         PR other/37419
562         * ipa-prop.h (ipa_propagate_indirect_call_infos): Change last argument
563         to pointer to vector pointer.
564         * ipa-prop.c (ipa_propagate_indirect_call_infos,
565         propagate_info_to_inlined_callees): Likewise.
566         (update_call_notes_after_inlining): Likewise.  Push new indirect edge
567         to *new_edges instead of new_edges.  Reread IPA_EDGE_REF after
568         ipa_check_create_edge_args.
569         * ipa-inline.c (cgraph_decide_recursive_inlining): Change last argument
570         to pointer to vector pointer.
571         (cgraph_decide_inlining_of_small_function): Adjust
572         cgraph_decide_recursive_inlining and ipa_propagate_indirect_call_infos
573         calls.
574
575         PR target/37438
576         * config/i386/i386.md (zero_extendqihi2_movzbl): Enable when optimizing
577         for size, not speed.
578
579         PR rtl-optimization/37408
580         * function.c (assign_parm_find_stack_rtl): Set correct MEM_SIZE
581         if parm is promoted.
582
583 2008-09-09  Sebastian Pop  <sebastian.pop@amd.com>
584
585         PR tree-optimization/37375
586         * tree-scalar-evolution.c (scev_info_str): Add field instantiated_below.
587         (new_scev_info_str, eq_scev_info, find_var_scev_info,
588         set_scalar_evolution, get_scalar_evolution, get_instantiated_value,
589         set_instantiated_value): Pass instantiated_below.
590         (analyze_scalar_evolution_1, analyze_scalar_evolution): Update calls to
591         above functions.
592         (instantiate_scev_1, instantiate_scev): Pass a basic block above which
593         the definitions are not instantiated.
594
595         * tree-scalar-evolution.h (instantiate_scev): Update declaration.
596         (block_before_loop): New.
597         * tree-data-ref.c (dr_analyze_indices): Update uses of instantiate_scev.
598         * graphite.c (block_before_scop): New.
599         (loop_affine_expr, stmt_simple_for_scop_p, harmful_stmt_in_bb): Pass a
600         basic block, not a loop for determining the parameters.
601         (scopdet_edge_info, build_scops_1): Do not pass outermost loop in the
602         scop.
603         (idx_record_params, find_params_in_bb, find_scop_parameters,
604         build_loop_iteration_domains, add_conditions_to_domain): Update calls
605         to instantiate_scev.
606
607         * Makefile.in (cfgloopmanip.o): Add missing dependency on TREE_FLOW_H.
608
609 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
610
611         PR rtl-opt/37333
612
613         * ira-build.c (ira_create_allocno): Setup frequency to 0.
614
615         * ira-color.c (update_conflict_hard_regno_costs): Remove assert.
616         Check zero freq and increase if necessary.
617
618 2008-09-09  Vladimir Makarov  <vmakarov@redhat.com>
619
620         * ira-conflicts.c (process_regs_for_copy): Check that the hard
621         regno is in the right range.  Add comments.
622
623 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
624
625         * Makefile.in (mips-tfile.o-warn): Don't error out on mips-tfile.c
626         warnings.
627         * mips-tfile.c (copy_object): Cast alloca result to int *.
628         * mips-tdump.c (print_symbol): Cast xmalloc return values to
629         proper types.
630         Rename class to sclass.
631         (read_tfile): Cast read_seek return values to proper types.
632         Cast xcalloc return value to proper type.
633
634 2008-09-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
635
636         * config/sol2.h (REGISTER_TARGET_PRAGMAS): Move ...
637         * config/i386/sol2.h (REGISTER_SUBTARGET_PRAGMAS): ... here.
638         * config/sparc/sol2.h (REGISTER_TARGET_PRAGMAS): ... and here.
639
640 2008-09-09  Jan Hubicka  <jh@suse.cz>
641
642         * profile.c (is_edge_inconsistent): Add debug output; ignore
643         negative count on fake edges.
644         (is_inconsistent): Add debug output.
645
646 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
647
648         * haifa-sched.c (advance_one_cycle): Do not print '\n' before printing
649         dump message.
650         (choose_ready): When first insn is chosen from the ready list, also
651         dump it.
652
653 2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
654
655         PR rtl-optimization/37360
656         * haifa-sched.c (max_issue): Do not assert that we never issue more
657         insns than issue_rate.  Add comment.
658
659 2008-09-09  Richard Guenther  <rguenther@suse.de>
660
661         * tree-cfg.c (verify_types_in_gimple_op): Remove.
662         (verify_types_in_gimple_call): Rename to ...
663         (verify_gimple_call): ... this.  Enhance.
664         (verify_types_in_gimple_cond): Remove.
665         (verify_gimple_comparison): New function ...
666         (verify_types_in_gimple_assign): ... split out from here.
667         (verify_types_in_gimple_return): Rename to ...
668         (verify_gimple_return): ... this.  Enhance.
669         (verify_types_in_gimple_switch): Rename to ...
670         (verify_gimple_switch): ... this.  Enhance.
671         (verify_gimple_goto): New function.
672         (verify_types_in_gimple_phi): Rename to ...
673         (verify_gimple_phi): ... this.  Enhance.
674         (verify_types_in_gimple_stmt): Adjust calls to helper functions.
675         Fold in single-statement cases from verify_types_in_gimple_seq_2.
676         (verify_types_in_gimple_seq_2): Remove cases handled in
677         verify_types_in_gimple_stmt.
678
679 2008-09-09  Bernd Schmidt  <bernd.schmidt@analog.com>
680
681         * config/bfin/bfin.c (n_regs_to_save): New static variable.
682         (push_multiple_operation, pop_multiple_operation): Set it.
683         (workaround_rts_anomaly): New function.
684         (workaround_speculation): New function, broken out of bfin_reorg.
685         (bfin_reorg): Call the new functions.
686
687 2008-09-09  Richard Guenther  <rguenther@suse.de>
688
689         PR middle-end/37354
690         PR middle-end/30165
691         * gimplify.c (gimplify_conversion): Change conversions of
692         non-register type to VIEW_CONVERT_EXPRs.
693         (gimplify_addr_expr): If we need to make the operand
694         addressable make sure to use a properly initialized
695         temporary for that so it gets a valid gimple store.
696
697 2008-09-09  Aldy Hernandez  <aldyh@redhat.com>
698
699         * function.h (struct function): Add function_start_locus.
700         * cfgexpand.c (gimple_expand_cfg): Use it.
701         * c-parser.c (c_parser_declaration_or_fndef): Set it.
702
703 2008-09-09  Richard Guenther  <rguenther@suse.de>
704
705         PR tree-optimization/37433
706         * tree-ssa-ccp.c (ccp_fold): Properly guard folding of
707         function calls.
708
709 2008-09-09  Richard Guenther  <rguenther@suse.de>
710
711         PR tree-optimization/37387
712         * tree-ssa-ifcombine.c (ifcombine_iforif): Convert the name
713         and bits to a common type.
714
715 2008-09-09  Nick Clifton  <nickc@redhat.com>
716
717         * config/v850/v850.md (return): Restore frame size restriction.
718
719 2008-09-09  Paolo Bonzini  <bonzini@gnu.org>
720
721         * c-common.c (c_expand_decl): Remove.
722         * c-common.h (anon_aggr_type_p): Remove prototype.
723         (DECL_ANON_UNION_ELEMS): Remove.
724         * c-objc-common.h (LANG_HOOKS_EXPAND_DECL): Remove.
725         * c-decl.c (anon_aggr_type_p): Remove.
726         * langhooks-def.h (LANG_HOOKS_EXPAND_DECL): Remove.
727         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_EXPAND_DECL.
728         * langhooks.h (struct lang_hooks): Remove expand_decl.
729         * langhooks.c (lhd_expand_decl): Remove.
730         * stmt.c (expand_anon_union_decl): Remove.
731         * tree.h (expand_anon_union_decl): Remove prototype.
732
733 2008-08-09  Andy Hutchinson  <hutchinsonandy@aim.com>
734
735         PR target/36609
736         * config/avr/avr.c (avr_reorg): Create RTL for reversed compare with
737         zero.
738         * config/avr/avr.md  (QISI) : Define mode iterator.
739         (negated_tst<mode>) : Redefine as split using mode macro.
740         (reversed_tstqi): Define insn as reversed compare with zero.
741         (reversed_tsthi): Ditto.
742         (reversed_tstsi): Ditto.
743
744 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
745
746         PR middle-end/37393
747         * tree-inline.c (copy_bb): When replacing a gimple_call_va_arg_pack_p
748         call stmt by new_call, clear gimple_bb on stmt after gsi_replace.
749
750         PR middle-end/37414
751         * predict.c (optimize_function_for_size_p): Don't segfault if
752         FUN is NULL.
753         * fold-const.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop,
754         tree_swap_operands_p): Don't test cfun != NULL before calling
755         optimize_function_for_s*_p.
756
757 2008-09-08  Eric Botcazou  <ebotcazou@adacore.com>
758
759         * ira-color.c (ira_reuse_stack_slot): Set slot_num on success at the
760         end of the search.
761
762 2008-09-08  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
763
764         * crx/crx.h (IRA_COVER_CLASSES): Define.
765
766 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
767
768         PR middle-end/37337
769         * tree-ssa-dom.c (optimize_stmt): Call maybe_clean_or_replace_eh_stmt
770         even when a stmt has been gimple_modified_p, but after fold_stmt is
771         not any longer.  Remove unneeded may_have_exposed_new_symbols
772         initializations.
773
774 2008-09-08  Richard Guenther  <rguenther@suse.de>
775
776         PR tree-optimization/37421
777         * tree-ssa-sccvn.c (visit_copy): Make sure to fully
778         valueize the RHS.
779
780 2008-09-08  Jakub Jelinek  <jakub@redhat.com>
781
782         PR middle-end/37415
783         * opts.c (common_handle_option): Handle OPT_ftree_store_ccp.
784
785 2008-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
786
787         PR driver/37409
788         * pa-hpux.h (LINK_SPEC): Strip -fwhole-program.
789         * pa-hpux10.h (LINK_SPEC): Likewise.
790         * pa-hpux11.h (LINK_SPEC): Likewise.
791
792 2008-09-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
793
794         * pa32-regs.h (IRA_COVER_CLASSES): Define.
795         * pa64-regs.h (IRA_COVER_CLASSES): Define.
796
797 2008-09-07  Helge Deller  <deller@gmx.de>
798
799         * pa/linux-atomic.c: New file.
800         * pa/t-linux (LIB2FUNCS_STATIC_EXTRA): Define.
801         * pa/t-linux64 (LIB2FUNCS_STATIC_EXTRA): Define.
802
803 2008-09-07  Richard Guenther  <rguenther@suse.de>
804             Ira Rosen  <irar@il.ibm.com>
805
806         PR tree-optimization/36630
807         * tree-vect-transform.c (vect_update_ivs_after_vectorizer):
808         Call STRIP_NOPS before calling evolution_part_in_loop_num.
809
810 2008-09-07  Dorit Nuzman  <dorit@il.ibm.com>
811             Ira Rosen  <irar@il.ibm.com>
812
813         PR tree-optimization/35642
814         * config/rs6000/altivec.md (mulv8hi3): Implement.
815
816 2008-09-06  Jeff Law <law@redhat.com>
817
818         * h8300/h8300.h (IRA_COVER_CLASSES): Define.
819
820 2008-09-06  Jan Hubicka  <jh@suse.cz>
821
822         PR tree-optimization/14703
823         * tree-ssa-live.c (remove_unused_scope_block_p): Remove ignored
824         declarations.
825         * passes.c (init_optimization_passes): Recompute inline parameters.
826
827 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
828
829         * config/mips/mips.c (mips_function_ok_for_sibcall): Check for
830         DECL being null.
831
832 2008-09-06  Richard Sandiford  <rdsandiford@goolemail.com>
833             Peter Fuerst  <post@pfrst.de>
834
835         * doc/invoke.texi: Document -mr10k-cache-barrier=.
836         * doc/extend.texi: Document __builtin_mips_cache.
837         * config/mips/mips-ftypes.def: Add a (VOID, SI, CVPOINTER) entry.
838         * config/mips/mips.opt (mr10k-cache-barrier=): New option.
839         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
840         __GCC_HAVE_BUILTIN_MIPS_CACHE.
841         (TARGET_CACHE_BUILTIN, ISA_HAS_CACHE): New macros.
842         * config/mips/mips.c (mips_r10k_cache_barrier_setting): New enum.
843         (set_push_mips_isas): New variable.
844         (mips_r10k_cache_barrier): New variable.
845         (cache): New availability predicate.
846         (mips_builtins): Add an entry for __builtin_mips_cache.
847         (mips_build_cvpointer_type): New function.
848         (MIPS_ATYPE_CVPOINTER): New macro.
849         (mips_prepare_builtin_arg): Only use the insn's mode if the rtx's
850         mode is VOIDmode.
851         (r10k_simplified_address_p, r10k_simplify_address)
852         (r10k_uncached_address_p, r10k_safe_address_p)
853         (r10k_needs_protection_p_1, r10k_needs_protection_p_store)
854         (r10k_needs_protection_p_call, r10k_needs_protection_p)
855         (r10k_insert_cache_barriers): New functions.
856         (mips_reorg_process_insns): Delete cache barriers after a
857         branch-likely instruction.
858         (mips_reorg): Call r10k_insert_cache_barriers.
859         (mips_handle_option): Handle OPT_mr10k_cache_barrier_.
860         * config/mips/mips.md (UNSPEC_MIPS_CACHE): New constant.
861         (UNSPEC_R10K_CACHE_BARRIER): Likewise.
862         (mips_cache, r10k_cache_barrier): New define_insns.
863
864 2008-09-06  Richard Sandiford  <rdsandiford@googlemail.com>
865
866         * ira-int.h (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
867         * ira-color.c (setup_allocno_left_conflicts_num): Use
868         hard_reg_set_equal_p instead of a comparison with
869         ira_zero_hard_reg_set.
870         * ira.c (setup_reg_subclasses): Likewise.
871         (setup_cover_and_important_classes): Likewise.
872         (setup_class_translate): Likewise.
873         (setup_reg_class_intersect_union): Likewise.
874         (ira_zero_hard_reg_set, ira_one_hard_reg_set): Delete.
875         (ira_init_once): Don't initialize them.
876
877 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
878
879         * doc/tm.texi (IRA_COVER_CLASSES): Fix a typo.
880
881 2008-09-05  Vladimir Makarov  <vmakarov@redhat.com>
882
883         * ira-color.c (ira_fast_allocation): Permit global allocno allocation.
884
885 2008-09-05  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
886
887         Improved branch hints, safe hints, and scheduling.
888
889         * haifa-sched.c (sched_emit_insn) : Define.
890         * sched-int.h (sched_emit_insn) : Add prototype.
891         * doc/invoke.texi (-mdual-nops, -mhint-max-nops,
892         -mhint-max-distance -msafe-hints) : Document.
893         * config/spu/spu.c (spu_flag_var_tracking): New.
894         (TARGET_SCHED_INIT_GLOBAL, TARGET_SCHED_INIT,
895         TARGET_SCHED_REORDER, TARGET_SCHED_REORDER2,
896         TARGET_ASM_FILE_START): Define.
897         (TARGET_SCHED_ADJUST_PRIORITY): Remove.
898         (STOP_HINT_P, HINTED_P, SCHED_ON_EVEN_P): Define.
899         (spu_emit_branch_hint): Add blocks argument.
900         (insert_branch_hints, insert_nops): Remove.
901         (pad_bb, insert_hbrp_for_ilb_runout, insert_hbrp, in_spu_reorg,
902         uses_ls_unit, spu_sched_init_global, spu_sched_init,
903         spu_sched_reorder, asm_file_start): New functions.
904         (clock_var, spu_sched_length, pipe0_clock,
905         pipe1_clock, prev_clock_var, prev_priority,
906         spu_ls_first, prev_ls_clock): New static variables.
907         * config/spu/spu.h (TARGET_DEFAULT): Add MASK_SAFE_HINTS.
908         * config/spu.md (iprefetch): Add operand, make it clobber MEM.
909         (nopn_nv): Add a non-volatile version of nop.
910         * config/spu/spu.opt (-mdual-nops, -mhint-max-nops,
911         -mhint-max-distance, -msafe-hints): New options.
912
913 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
914             Samuel Tardieu  <sam@rfc1149.net>
915
916         * opts.c (decode_options): Combine nested if statements.
917
918         PR target/37283
919         * opts.c (decode_options): Handle more relationships among
920         unit-at-a-time, toplevel-reorder, and section-anchors.
921
922 2008-09-05  David Daney  <ddaney@avtrex.com>
923
924         * doc/install.texi (--enable-reduced-reflection): Document new option.
925
926 2008-09-05  Bob Wilson  <bob.wilson@acm.org>
927
928         * config/xtensa/predicates.md (nonimmed_operand, mem_operand): Use
929         constantpool_mem_p.
930         (constantpool_operand): New.
931         (move_operand): Disallow sub-word modes for the constant pool.
932         * config/xtensa/xtensa.c (TARGET_SECONDARY_RELOAD): Define.
933         (xtensa_secondary_reload_class): Replace with....
934         (xtensa_secondary_reload): this function.  Remove SIGN_EXTEND check.
935         Set icode for sub-word reloads from the constant pool.
936         * config/xtensa/xtensa.h (SECONDARY_INPUT_RELOAD_CLASS): Delete.
937         (SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
938         * config/xtensa/xtensa.md (reload<mode>_literal): New.
939         * config/xtensa/xtensa-protos.h: Update prototypes.
940
941 2008-09-05  Joseph Myers  <joseph@codesourcery.com>
942
943         * config/mips/mips.h (enum reg_class): Add FRAME_REGS.
944         (REG_CLASS_NAMES): Update.
945         (REG_CLASS_CONTENTS): Update.
946         * config/mips/mips.c (mips_regno_to_class): Use FRAME_REGS instead
947         of ALL_REGS for regs 77 and 78.
948         * function.c (instantiate_virtual_regs_in_insn): Assert that
949         return value of simplify_gen_subreg is not NULL.
950
951 2008-09-05  Paolo Bonzini  <bonzini@gnu.org>
952
953         * emit-rtl.c (gen_rtvec): Rewrite not using gen_rtvec_v.
954         (gen_rtvec_v): Fix coding standards.
955
956 2008-09-04  Jan Hubicka  <jh@suse.cz>
957
958         * i386.c (decide_alg): Be more conservative about optimizing for size.
959
960 2008-09-04  Ian Lance Taylor  <iant@google.com>
961
962         * varasm.c (narrowing_initializer_constant_valid_p): New
963         static function.
964         (initializer_constant_valid_p): Call it.
965
966 2008-09-04  Jeff Law  <law@redhat.com>
967
968         * fold-const.c (native_encode_real): Fix computation of WORDS.
969         (native_interpret_real): Likewise.
970
971 2008-09-04  Janis Johnson  <janis187@us.ibm.com>
972
973         * config/rs6000/t-rs6000: Remove target gt-rs6000.h.
974
975 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
976
977         * ira-conflicts.c (process_regs_for_copy): Check insn to check
978         that the cost is already taken into account in ira-costs.c
979
980         * ira-int.h (ira_debug_copy, ira_debug_copies): New.
981
982         * ira-build.c (print_copy, print_copies, ira_debug_copy,
983         ira_debug_copies): New.
984         (ira_bulid): Call print_copies.
985
986         * doc/tm.texi (IRA_COVER_CLASSES): Fix the description.
987
988 2008-09-04  Samuel Tardieu  <sam@rfc1149.net>
989
990         PR target/32783
991         * config/rs6000/rs6000.c (optimization_options): Remove check of
992         flag_toplevel_order.
993
994 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
995
996         * config/mips/mips.h (ISA_HAS_SEQ_SNE): New macro.
997         * config/mips/mips.c (mips_expand_scc): Also expand seq and sne if
998         second operand is a reg_imm10_operand.
999         * config/mips/mips.md (*seq_<GPR:mode><GPR2:mode>_seq,
1000         *sne_<GPR:mode><GPR2:mode>_sne): New patterns.
1001         (*seq_<GPR:mode><GPR2:mode>): Rename to
1002         *seq_zero_<GPR:mode><GPR2:mode>.  Don't match if
1003         ISA_HAS_SEQ_SNE.
1004         (*seq_<GPR:mode><GPR2:mode>_mips16): Rename to
1005         *seq_zero_<GPR:mode><GPR2:mode>_mip16.  Don't match if
1006         ISA_HAS_SEQ_SNE.
1007         (*sne_<GPR:mode><GPR2:mode>): Rename to
1008         *sne_zero_<GPR:mode><GPR2:mode>.  Don't match if
1009         ISA_HAS_SEQ_SNE.
1010
1011 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
1012
1013         * config/mips/mips.h (ISA_HAS_EXTS): New macro.
1014         * config/mips/mips.md (*ashr_trunc<mode>): Name the pattern
1015         combining an arithmetic right shift by more than 31 and a
1016         trunction.  Don't match for out-of-range shift amounts.  Set
1017         attribute mode to <MODE>.
1018         (*lshr32_trunc<mode>): Name the pattern combining a logical right
1019         shift by 32 and and a truncation.  Set attribute mode to <MODE>.
1020         (*<optab>_trunc<mode>_exts): New pattern for truncated right
1021         shifts by less than 32.
1022         (extv): Change predicate on first operand to accept registers.
1023         Change predicate of the other operands from immediate_operand to
1024         const_int_operand.  Expand exts when source is a register.
1025         (extzv): Change predicate of the constant operands from
1026         immediate_operand to const_int_operand.
1027         (extzv<mode>): Change predicate of the constant operands from
1028         immediate_operand to const_int_operand and no constraint. Also
1029         remove mode.
1030         (*extzv_trunc<mode>_exts): New pattern.
1031
1032 2008-09-04  Adam Nemet  <anemet@caviumnetworks.com>
1033
1034         * config/mips/mips.h (ISA_HAS_CINS): New macro.
1035         * config/mips/mips-protos.h (mask_low_and_shift_p,
1036         mask_low_and_shift_len): Declare.
1037         * config/mips/mips.c (mask_low_and_shift_p,
1038         mask_low_and_shift_len): New functions.
1039         (mips_print_operand): Handle new operand prefix "m".
1040         * config/mips/mips.md (*cins<mode>): New pattern.
1041
1042 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
1043
1044         * config/bfin/bfin.c (gen_one_bundle): Don't create new nops when
1045         optimizing for size.
1046
1047 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
1048
1049         * df-scan.c (df_get_entry_block_def_set): Add STACK_POINTER_REGNUM
1050         regardless of epilogue_completed.
1051
1052 2008-09-04  Vladimir Makarov  <vmakarov@redhat.com>
1053
1054         PR middle-end/37359
1055         * ira-lives.c (process_bb_node_lives): Check setjmp.
1056
1057 2008-09-04  Richard Sandiford  <rdsandiford@googlemail.com>
1058
1059         PR middle-end/37243
1060         * ira-build.c (form_loop_tree): Reverse BB walk.
1061         (create_bb_allocnos): Likewise.
1062         * ira-lives.c (make_regno_born_and_dead, regs_set): Delete.
1063         (mark_reg_store): Rename to...
1064         (mark_ref_live): ...this and take a df_ref argument instead of
1065         note_stores arguments.  Assert that we have a register.
1066         (mark_reg_clobber): Delete.
1067         (def_conflicts_with_inputs_p): New function.
1068         (mark_reg_conflicts): Delete.
1069         (mark_reg_death): Rename to...
1070         (mark_ref_dead): ...this and take a df_ref argument instead of
1071         a register.  Assert that we have a register.
1072         (process_bb_node_lives): Hoist frequency calculation out of
1073         instruction walk.  Convert from a forwards scan to a backwards scan.
1074         Use DF_REF_USES and DF_REF_DEFS instead of register notes and
1075         note_stores.  Remove EH_RETURN_DATA_REGNO and regs_set handling.
1076         (create_allocno_live_ranges): Don't create regs_set.
1077
1078 2008-09-04  Ian Lance Taylor  <iant@google.com>
1079
1080         * rtl.h (LABEL_REF_NONLOCAL_P): Don't check for REG_LABEL_OPERAND
1081         or REG_LABEL_TARGET.
1082         * calls.c (emit_library_call_value_1): Use MEM_P rather than
1083         comparing MODE with MEM.
1084         * gimple.c (gimple_build_predict): Cast END_PREDICTORS before
1085         comparing with GF_PREDICT_TAKEN.
1086         (gimple_get_lhs): Change code to enum gimple_code.
1087         (gimple_set_lhs): Likewise.
1088         * ifcvt.c (noce_process_if_block): Correct GET_MODE to GET_CODE.
1089         * omp-low.c (find_omp_clause): Change kind parameter to enum
1090         omp_clause_code.
1091         * tree-flow.h (find_omp_clause): Update declaration.
1092         * regrename.c (clear_dead_regs): Change kind parameter to enum
1093         reg_note.
1094         * reload1.c (eliminate_regs_1): Use REG_NOTE_KIND rather than
1095         GET_MODE.
1096         * see.c (see_get_extension_data): Change return type to enum
1097         entry_type.  Change UNKNOWN to NOT_RELEVANT, SIGN_EXTEND to
1098         SIGNED_EXTENDED_DEF, ZERO_EXTEND to ZERO_EXTENDED_DEF.
1099         (see_gen_normalized_extension): Change extension_code parameter to
1100         enum entry_type.
1101         (see_seek_pre_extension_expr): Change extension_code to enum
1102         entry_type.
1103         (see_merge_one_def_extension): Likewise.
1104         (see_handle_relevant_defs): Likewise.
1105         (see_handle_relevant_uses): Likewise.
1106         (see_analyze_one_def): Likewise.
1107         * tree-cfg.c (need_fake_edge_p): Compare gimple code with
1108         GIMPLE_ASM rather than ASM_EXPR.
1109         * tree-ssa-alias.c (is_escape_site): Compare gimple code with
1110         GIMPLE_RETURN rather than RETURN_EXPR.
1111         * tree-ssa-ccp.c (likely_value): Change code to enum gimple_code.
1112         (evaluate_stmt): Likewise.
1113         * tree-vect-analyze.c (vect_analyze_operations): Change relevance
1114         to enum vect_relevant.
1115         (vect_mark_stmts_to_be_vectorized): Change assertion to not
1116         compare gimple codes with tree codes.
1117
1118 2008-09-04  Paul Brook  <paul@codesourcery.com>
1119
1120         * config/arm/arm.c (arm_size_rtx_costs): Call cost function.
1121
1122 2008-09-04  Bernd Schmidt  <bernd.schmidt@analog.com>
1123
1124         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Restore a null
1125         pointer check lost in the recent no-unit-at-a-time patch.
1126
1127 2008-09-04  Jan Hubicka  <jh@suse.cz>
1128
1129         PR middle-end/37343
1130         * tree-switch-conversion.c (check_final_bb): Accept only IP
1131         invariants.
1132
1133 2008-09-04  Jan Hubicka  <jh@suse.cz>
1134
1135         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
1136         Break out from ...
1137         (vrp_evaluate_conditional_warnv_with_ops): ... this one.  Add
1138         using_ranges argument.
1139         (vrp_evaluate_conditional): Avoid bogus warning for type range.
1140         (vrp_visit_cond_stmt): Update call of
1141         vrp_evaluate_conditional_warnv_with_ops
1142
1143 2008-09-04  Jan Hubicka  <jh@suse.cz>
1144
1145         PR tree-optimization/37345
1146         PR tree-optimization/37358
1147         PR tree-optimization/37357
1148         * tree.c (build_function_type_skip_args): Build distinct type copy;
1149         set TYPE_CONTEXT.
1150         (build_function_decl_skip_args): Set type of new decl not orig decl;
1151         clear DECL_VINDEX for methods turned into functions.
1152
1153 2008-09-04  Nick Clifton  <nickc@redhat.com>
1154
1155         * configure.ac (HAVE_GAS_LCOMM_WITH_ALIGNMENT): New assembler check.
1156         * configure: Regenerate.
1157         * config.in: Regenerate.
1158         * config/i386/bsd.h (ASM_OUTPUT_ALIGNED_LOCAL): Use .lcomm with an
1159         alignment field, if it is supported.
1160
1161 2008-09-04  Kai Tietz  <kai.tietz@onevision.com>
1162
1163         * config/i386/t-mingw32 (SHLIB_LC): Change order of import
1164         libraries.
1165
1166 2008-09-03  David Edelsohn  <edelsohn@gnu.org>
1167
1168         * config/rs6000/rs6000.c (processor_target_table): Do not
1169         enable VMX for POWER6.
1170
1171 2008-09-03  Anton Blanchard  <anton@samba.org>
1172
1173         * config/rs6000/rs6000.c (rs6000_split_lock_test_and_set): Do not
1174         emit memory barrier before operation.
1175
1176 2008-09-03  John David Anglin  <dave.anglin@nrc.cnrc.gc.ca>
1177
1178         PR testsuite/37325
1179         * config/pa/pa64-hpux.h (ASM_OUTPUT_EXTERNAL_REAL): Call
1180         default_elf_asm_output_external.
1181
1182 2008-09-03  Jeff Law  <law@redhat.com>
1183
1184         * h8300.c (expand_a_shift): Avoid invalid RTL sharing.
1185
1186 2008-09-03  Richard Henderson  <rth@redhat.com>
1187
1188         * config/alpha/alpha.c (alpha_split_lock_test_and_set): Move
1189         memory barrier to below the test-and-set.
1190         (alpha_split_lock_test_and_set_12): Likewise.
1191
1192 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
1193
1194         PR rtl-opt/37243
1195
1196         * ira-int.h (ira_loop_tree_node): Rename mentioned_allocnos to
1197         all_allocnos.
1198
1199         * ira-color.c (print_loop_title): Use all_allocnos.
1200         (color_pass): Ditto.  Don't add border_allocnos.  Check that
1201         subloop allocno in the correspdoning bitmap all_allocnos.
1202
1203         * ira-emit.c (change_loop): Use all_allocnos.
1204
1205         * ira-build.c (create_loop_tree_nodes, finish_loop_tree_node):
1206         Ditto.
1207         (ira_create_allocno): Set up all_allocnos bit for the created
1208         allocno.
1209         (create_cap_allocno): Remove setting mentioned_allocnos.
1210         (create_insn_allocnos): Ditto.
1211         (remove_unnecessary_allocnos): Use all_allocnos.
1212         (check_allocno_creation): Check that allocnos are in the
1213         corresponding bitmap all_allocnos.
1214
1215 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
1216
1217         PR rtl-opt/37243
1218
1219         * ira-conflicts.c (REG_SUBREG_P, go_through_subreg): New.
1220         (process_regs_for_copy): Process subregs.  Refine check when cost
1221         is taken into account in ira-costs.c.
1222         (process_reg_shuffles): Use REG_SUBREG_P.
1223         (add_insn_allocno_copies): Ditto.  Ignore modes.
1224
1225         * ira-color.c (conflict_allocno_vec): New.
1226         (COST_HOP_DIVISOR): New macro.
1227         (update_copy_costs_1): Use it.
1228         (update_conflict_hard_regno_costs): New function.
1229         (assign_hard_reg): Use it.
1230         (ira_color): Allocate and free conflict_allocno_vec.
1231
1232 2008-09-03  Vladimir Makarov  <vmakarov@redhat.com>
1233
1234         PR rtl-opt/37296
1235
1236         * ira-int.h (ira_sort_insn_chain): Remove.
1237
1238         * ira.c (basic_block_order_nums, chain_insn_order,
1239         chain_freq_compare, chain_bb_compare, ira_sort_insn_chain): Remove.
1240         (ira): Don't call ira_sort_insn_chain.
1241
1242         * reload1.c (reload): Don't call ira_sort_insn_chain.
1243
1244 2008-09-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1245
1246         PR middle-end/37293
1247         * cgraphunit.c (update_call_expr): Remove eh regions from statements
1248         which become non throw.
1249         (cgraph_function_versioning): Also clear DECL_WEAK.  Call
1250         update_call_expr after updating the flags on the decl.
1251
1252 2008-09-03  Jan Hubicka  <jh@suse.cz>
1253
1254         PR tree-optimization/37315
1255         * cgraph.c (cgraph_create_edge): Use gimple_has_body_p.
1256         * cgraphunit.c (verify_cgraph_node): drop gimple_body check.
1257         (cgraph_analyze_functions): Use node->analyzed
1258         (cgraph_mark_functions_to_output): Likewise.
1259         (cgraph_expand_function): All functions can be released after
1260         expanding.
1261         (cgraph_optimize): Use gimple_has_body_p.
1262         * ipa-inline.c (cgraph_clone_inlined_nodes): Use analyzed flag.
1263         (cgraph_decide_inlining_incrementally): Likewise.
1264         (inline_transform): Inline transform.
1265         * tree-inline.c (initialize_cfun): Do now shallow copy structure;
1266         copy fields needed.
1267         (inlinable_function_p): Drop gimple_body check.
1268         (expand_call_inline): Use gimple_has_body_p.
1269         * gimple.c (gimple_has_body_p): New.
1270         * gimple.h (gimple_has_body_p): Add prototype.
1271         * tree-cfg.c (execute_build_cfg): Remove gimple_body.
1272         (dump_function_to_file): Use gimple_has_body_p check.
1273
1274 2008-09-03  Jakub Jelinek  <jakub@redhat.com>
1275
1276         PR c++/37346
1277         * gimple.h (gimple_has_substatements): GIMPLE_OMP_CRITICAL has
1278         substatements.
1279         * tree-inline.c (remap_gimple_stmt): Handle GIMPLE_OMP_CRITICAL.
1280
1281 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
1282
1283         From Michael Frysinger  <michael.frysinger@analog.com>
1284         * config/bfin/bfin.c (bfin_cpus[]): Add 0.1 for bf522, bf523, bf524,
1285         bf525, bf526, bf527, bf542, bf544, bf547, bf548, and bf549.  Add 0.2
1286         for bf538.
1287
1288 2008-09-03  Hari Sandanagobalane  <hariharan@picochip.com>
1289
1290         Add picoChip port.
1291         * doc/extend.texi: Document picoChip builtin functions.
1292         * doc/invoke.texi: Document picoChip options.
1293         * doc/contrib.texi: Add picoChip contribution.
1294         * doc/md.texi: Document picoChip constraints.
1295         * config.gcc: Add picochip-*-*.
1296         * config/picochip/: Add new port.
1297
1298 2008-09-03  Richard Guenther  <rguenther@suse.de>
1299
1300         PR tree-optimization/37328
1301         * tree-sra.c (sra_build_assignment): Gimplify properly.
1302         (generate_copy_inout): Take the correct stmt as definition,
1303         remove bogus assert.
1304
1305 2008-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
1306
1307         * config/bfin/bfin.c (bfin_expand_prologue): Honour no_stack_limit
1308         attributes.
1309
1310         From Michael Frysinger  <michael.frysinger@analog.com>
1311         * config/bfin/bfin.c (bfin_handle_option): Remove BF561 warning.
1312
1313 2008-09-03 Danny Smith  <dannysmith@usrs.sourceforge.net>
1314
1315         * gthr-win32.h (CONST_CAST2): Really make sure CONST_CAST2 is defined.
1316         (__gthread_setspecific): Revert 2008-08-31 change to
1317         __GTHREAD_HIDE_W32API case.  Apply it to !__GTHREAD_HIDE_W32API case.
1318
1319 2008-09-02  Aldy Hernandez  <aldyh@redhat.com>
1320
1321         * diagnostic.c (error_at): New.
1322         * toplev.h (error_at): New prototype.
1323         * c-typeck.c (build_array_ref): Call error_at instead of error.
1324         Pass location to pedwarn.
1325
1326 2008-09-02  Adam Nemet  <anemet@caviumnetworks.com>
1327
1328         * sel-sched.c (sel_hard_regno_rename_ok): Mark arguments unused.
1329
1330 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
1331
1332         * dwarf2out.c (tree_add_const_value_attribute): Only handle
1333         VAR_DECL and CONST_DECL.
1334
1335 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1336             Jakub Jelinek  <jakub@redhat.com>
1337
1338         * config/i386/i386.c (X86_64_VARARGS_SIZE): Removed.
1339         (setup_incoming_varargs_64): Assume cum != NULL. Set/check
1340         ix86_varargs_gpr_size and ix86_varargs_fpr_size.  Use
1341         ix86_varargs_gpr_size instead of X86_64_REGPARM_MAX.
1342         Don't set ix86_save_varrargs_registers.
1343         (ix86_setup_incoming_varargs): Assume cum != NULL.
1344         (ix86_va_start): Check ix86_varargs_gpr_size and
1345         ix86_varargs_fpr_size instead of cfun->va_list_gpr_size and
1346         cfun->va_list_fpr_size, respectively.  Subtract 8*X86_64_REGPARM_MAX
1347         from frame pointer if ix86_varargs_gpr_size == 0.
1348         (ix86_compute_frame_layout): Updated.
1349         * config/i386/i386.h (ix86_save_varrargs_registers): Removed.
1350         (ix86_varargs_gpr_size): Define.
1351         (ix86_varargs_fpr_size): Likewise.
1352         (machine_function): Remove save_varrargs_registers.
1353         Add varargs_gpr_size and varargs_fpr_size.
1354
1355 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
1356
1357         * config/alpha/alpha.c (va_list_skip_additions,
1358         alpha_stdarg_optimize_hook, alpha_gimplify_va_arg_1): Tuplify.
1359         (alpha_gimplify_va_arg): Call unshare_expr on second use of
1360         offset_field.
1361
1362         PR tree-optimization/36766
1363         * tree-cfg.c (gimple_purge_all_dead_eh_edges): Do nothing
1364         for already removed basic blocks.
1365
1366         PR target/36332
1367         * real.c (real_maxval): Clear a lower bit to make real_maxval
1368         match get_max_float for IBM long double format.
1369
1370 2008-09-02  Andreas Schwab  <schwab@suse.de>
1371
1372         * configure.ac: Use m4_quote to quote the expansion of m4_do.
1373         * configure: Regenerate.
1374
1375 2008-09-02  Richard Sandiford  <rdsandiford@googlemail.com>
1376
1377         * simplify-rtx.c (simplify_binary_operation_1): Check for CONST,
1378         SYMBOL_REF and LABEL_REF when applying plus_constant, instead of
1379         checking for a non-VOID CONSTANT_P.
1380
1381 2008-09-02  Jan Hubicka  <jh@suse.cz>
1382
1383         * predict.c (pass_strip_predict_hints): Avoid bugs dump file.
1384         * expmed.c (expand_divmod): Fix test of smod_pow2_cheap and
1385         sdiv_pow2_cheap
1386
1387 2008-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1388
1389         * expr.c (emit_group_store): Don't assert stack temp mode size.
1390
1391 2008-09-02  Sebastian Pop  <sebastian.pop@amd.com>
1392             Tobias Grosser  <grosser@fim.uni-passau.de>
1393             Jan Sjodin  <jan.sjodin@amd.com>
1394             Harsha Jagasia  <harsha.jagasia@amd.com>
1395             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
1396             Konrad Trifunovic  <konrad.trifunovic@inria.fr>
1397             Adrien Eliche  <aeliche@isty.uvsq.fr>
1398
1399         Merge from graphite branch.
1400         * graphite.c: New.
1401         * graphite.h: New.
1402         * tree-loop-linear.c (perfect_loop_nest_depth): Export.
1403         * doc/invoke.texi (-floop-block, -floop-interchange,
1404         -floop-strip-mine): Document new flags.
1405         * tree-into-ssa.c (gimple_vec): Moved...
1406         * tree-loop-distribution.c (rdg_component): Moved...
1407         * cfgloopmanip.c: Include tree-flow.h.
1408         (update_dominators_in_loop): New.
1409         (create_empty_if_region_on_edge): New.
1410         (create_empty_loop_on_edge): New.
1411         (loopify): Use update_dominators_in_loop.
1412         * tree-pass.h (pass_graphite_transforms): Declared.
1413         * configure: Regenerate.
1414         * tree-phinodes.c (make_phi_node): Export.
1415         (add_phi_node_to_bb): New, split from create_phi_node.
1416         * tree-chrec.c (for_each_scev_op): New.
1417         * tree-chrec.h (for_each_scev_op): Declared.
1418         * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
1419         (remove_statement): Call get_phi_with_result.
1420         * config.in (HAVE_cloog): Undef.
1421         * gdbinit.in (pgg): New.
1422         * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
1423         * tree-ssa-loop.c (graphite_transforms): New.
1424         (gate_graphite_transforms): New.
1425         (pass_graphite_transforms): New.
1426         * configure.ac (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC,
1427         HAVE_cloog): Defined.
1428         * tree-vectorizer.c (rename_variables_in_bb): Export.
1429         * tree-data-ref.c (dr_may_alias_p): Export.
1430         (stmt_simple_memref_p): New.
1431         (find_data_references_in_stmt): Export.
1432         (find_data_references_in_loop): Export.
1433         (create_rdg_edge_for_ddr): Initialize RDGE_RELATION.
1434         (create_rdg_edges_for_scalar): Initialize RDGE_RELATION.
1435         (create_rdg_vertices): Export.
1436         (build_empty_rdg): New.
1437         (build_rdg): Call build_empty_rdg.  Free dependence_relations.
1438         * tree-data-ref.h (rdg_component): ... here.
1439         (scop_p): New.
1440         (struct data_reference): Add a field scop.
1441         (DR_SCOP): New.
1442         (find_data_references_in_loop): Declared.
1443         (find_data_references_in_stmt): Declared.
1444         (create_rdg_vertices): Declared.
1445         (dr_may_alias_p): Declared.
1446         (stmt_simple_memref_p): Declared.
1447         (struct rdg_edge): Add a field ddr_p relation.
1448         (build_empty_rdg): Declared.
1449         * lambda.h (lambda_matrix): Declare a VEC of.
1450         (find_induction_var_from_exit_cond): Declared.
1451         (lambda_vector_compare): New.
1452         * common.opt (fgraphite, floop-strip-mine,
1453         floop-interchange, floop-block): New flags.
1454         * lambda-code.c (find_induction_var_from_exit_cond): Export.
1455         * cfgloop.c (is_loop_exit): New.
1456         * cfgloop.h (is_loop_exit): Declared.
1457         (create_empty_if_region_on_edge): Declared.
1458         (create_empty_loop_on_edge): Declared.
1459         * tree-flow.h (add_phi_node_to_bb): Declared.
1460         (make_phi_node): Declared.
1461         (rename_variables_in_bb): Declared.
1462         (perfect_loop_nest_depth): Declared.
1463         (graphite_transform_loops): Declared.
1464         * Makefile.in (cfgloopmanip.o): Depend on TREE_FLOW_H.
1465         (graphite.o-warn): Add -Wno-error.
1466         (PPLLIBS, PPLINC, CLOOGLIBS, CLOOGINC): Declared.
1467         (LIBS): Add GMPLIBS, CLOOGLIBS, PPLLIBS.
1468         (INCLUDES): Add PPLINC, CLOOGINC.
1469         (OBJS-common): Add graphite.o.
1470         (graphite.o): Add rule.
1471         * gimple.h (gimple_vec): ... here.
1472         * tree-cfg.c (print_loops): Start printing at ENTRY_BLOCK_PTR.
1473         * passes.c (init_optimization_passes): Schedule
1474         pass_graphite_transforms.
1475
1476 2008-09-02  Samuel Tardieu  <sam@rfc1149.net>
1477
1478         PR target/37283
1479         * opts.c (decode_options): Move processing of -fno-unit-at-a-time
1480         and -fno-toplevel-reorder after handle_options.
1481
1482 2008-09-02  Paul Brook  <paul@codesourcery.com>
1483
1484         * config/arm/arm.c (arm_tune_cortex_a9): Define.
1485         (arm_override_options): Set arm_tune_cortex_a9.
1486         (arm_rtx_costs_1): Make register shifts more expensive on Cortex-A9.
1487         (arm_issue_rate): Handle cortexa9.
1488         * config/arm/arm.h (arm_tune_cortex_a9): Declare.
1489         * config/arm/arm-cores.def: Add cortex-a9.
1490         * config/arm/arm-tune.md: Regenerate.
1491         * config/arm/arm.md: Include cortex-a9.md.
1492         (generic_sched, generic_vfp): Add cortexa9.
1493         * config/arm/cortex-a9.md: New file.
1494
1495 2008-09-02  Richard Guenther  <rguenther@suse.de>
1496
1497         PR tree-optimization/37327
1498         * tree-vrp.c (register_new_assert_for): Make sure to not have
1499         TREE_OVERFLOW set on the bound.
1500
1501 2008-09-02  Alexander Monakov  <amonakov@ispras.ru>
1502
1503         Fixed typo in date of the 2008-09-01 MOVE_RATIO commit.
1504
1505         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 1.
1506         * config/ia64/ia64.c (ia64_set_sched_flags): Always initialize
1507         spec_info->mask.
1508
1509 2008-09-02  Victor Kaplansky  <victork@il.ibm.com>
1510
1511         * gcc/config/spu/spu.md (divdf3): Removed.
1512
1513 2008-09-02  Jakub Jelinek  <jakub@redhat.com>
1514
1515         PR tree-optimization/37095
1516         * cgraph.c (cgraph_node): When creating new cgraph node after
1517         assembler_name_hash has been populated, record it in the hash
1518         table.
1519
1520 2008-09-01  Paul Brook  <paul@codesourcery.com>
1521
1522         * doc/invoke.texi: Document -mword-relocations.
1523         * config/arm/uclinux-elf.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1524         * config/arm/symbian.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1525         * config/arm/vxworks.h (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1526         * config/arm/arm.c (arm_split_constant): Use arm_emit_movpair.
1527         (arm_rtx_costs_1, arm_size_rtx_costs): Handle HIGH and LO_SUM.
1528         (arm_emit_movpair): New function.
1529         (arm_print_operand <c>): Handle sybolic addresses.
1530         * config/arm/arm.h (TARGET_USE_MOVT): Define.
1531         (TARGET_DEFAULT_WORD_RELOCATIONS): Define.
1532         * config/arm/arm-protos.h (arm_emit_movpair): Add prototype.
1533         * config/arm/arm.opt: Add -mword-relocations.
1534         * config/arm/arm.md (movsi): Use arm_emit_movpair.
1535         (arm_movt, arm_movw): New.
1536
1537 2008-09-01  Paul Brook  <paul@codesourcery.com>
1538
1539         * config/arm/arm.c (arm_override_options): Set arm_abi earlier.
1540         Allow Interworking on ARMv4 EABI based targets.
1541         * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Define.
1542         (SUBTARGET_EXTRA_ASM_SPEC, LINK_SPEC): Add TARGET_FIX_V4BX_SPEC.
1543
1544 2008-09-01  Paul Brook  <paul@codesourcery.com>
1545
1546         * config/arm/thumb2.md (thumb2_negscc): Match the correct operand for
1547         optimized LT0 test.  Remove optimization for GT.
1548
1549 2008-09-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1550
1551         * pa64-hpux.h (LIB_SPEC): Link against librt when building static
1552         openmp applications.
1553         * pa-hpux11.h (LIB_SPEC): Likewise.
1554
1555         * ira.c (setup_eliminable_regset): Only declare i if ELIMINABLE_REGS is
1556         defined.
1557
1558 2008-09-01  Jan Hubicka  <jh@suse.cz>
1559
1560         * predict.c (maybe_hot_count_p, maybe_hot_edge_p): When profile is
1561         present, use only counts; when guessed use only frequencies.
1562         (estimate_bb_frequencies): Use function_frequency.
1563         * profile.c (compute_branch_probabilities): Exit early when
1564         profile reading failed. Set profile_status.
1565         (branch_prob): Do not set profile_status.
1566
1567 2008-09-01  Aldy Hernandez  <aldyh@redhat.com>
1568
1569         * tree.c (protected_set_expr_location): New.
1570         * tree.h (protected_set_expr_location): New prototype.
1571         * c-tree.h (build_array_ref): Add argument.
1572         (parser_build_unary_op): Same.
1573         * c-typeck.c (build_indirect_ref): Handle new location argument.
1574         (build_array_ref): Same.
1575         (parser_build_unary_op): Same.
1576         * gimplify.c (gimplify_asm_expr): Set input_location before calling
1577         error.
1578         * c-omp.c (c_finish_omp_atomic): Pass location when calling
1579         build_indirect_ref.
1580         * c-common.c (finish_label_address_expr): Handle new location argument.
1581         * c-common.h (build_indirect_ref): Add argument.
1582         (finish_label_address_expr): Same.
1583         * c-parser.c (c_parser_unary_expression): Pass location to build
1584         functions.
1585         (c_parser_postfix_expression): Same.
1586
1587 2008-09-01  Paul Brook  <paul@codesourcery.com>
1588
1589         * config/arm/arm.md: Include cortex-r4f.md.
1590         (attr fpu): Update type list.
1591         (attr type): Add fcpys, ffariths, ffarithd, fadds, faddd, fconsts,
1592         fconstd, fcmps and fcmpd.
1593         (attr tune_cortexr4): Define.
1594         (attr generic_sched, attr generic_vfp): Use tune_cortexr4.
1595         * config/arm/vfp.md: Document fcpys, ffariths, ffarithd, fadds, faddd,
1596         fconsts, fconstd, fcmps and fcmpd.  Use them in insn patterns.
1597         * config/arm/arm.c (arm_issue_rate): Add cortexr4f.
1598         * config/arm/arm1020e.md (v10_ffarith, v10_farith): Use new insn types.
1599         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_add_sub,
1600         cortex_a8_vfp_farith: Ditto.
1601         * config/arm/vfp11.md (vfp_ffarith, vfp_farith): Ditto.
1602         * config/arm/cortex-r4.md: Use tune_cortexr4.
1603         * config/arm/cortex-r4f.md: New file.
1604
1605 2008-09-01  Richard Guenther  <rguenther@suse.de>
1606
1607         PR tree-optimization/37305
1608         * tree-ssa-ccp.c (ccp_fold): Do not set TREE_OVERFLOW on
1609         the result of constant conversions.
1610         (fold_gimple_assign): Likewise.
1611
1612 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
1613
1614         * sel-sched-ir.c (cmp_v_in_regset_pool): Surround with
1615         #ifdef ENABLE_CHECKING.
1616
1617 2008-09-01  Andrey Belevantsev  <abel@ispras.ru>
1618
1619         * sel-sched-dump.c: Surround with #ifdef INSN_SCHEDULING.
1620         * sched-int.h (print_insn, print_pattern, print_value): Declare also
1621         when !INSN_SCHEDULING.
1622
1623 2008-09-01  Andreas Schwab  <schwab@suse.de>
1624
1625         * config/ia64/ia64.c (TARGET_ADDRESS_COST): Update.
1626
1627 2008-09-01  Paul Brook  <paul@codesourcery.com>
1628
1629         * config/arm/arm.c (arm_no_early_mul_dep): Handle multiply-subtract.
1630
1631 2008-09-01  Jan Hubicka  <jh@suse.cz>
1632
1633         * config/spu/spu.c (spu_expand_block_move) Update call of MOVE_RATIO.
1634
1635         * expr.c (MOVE_BY_PIECES_P, CLEAR_BY_PIECES_P, SET_BY_PIECES_P):
1636         Pass speed operand.
1637         * expr.h (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Update.
1638         * gimplify.c (gimplify_init_constructor): Add speed operand.
1639         * tree-sra.c (decide_block_copy): Likewise.
1640         * tree-inline.c (estimate_move_cost): Likewise.
1641         * config/alpha/alpha.h (MOVE_RATIO): Update.
1642         * config/frv/frv.c (MOVE_RATIO): Update.
1643         * config/spu/spu.h (MOVE_RATIO): Update.
1644         * config/sparc/sparc.h (MOVE_RATIO): Update.
1645         * config/i386/i386.h (MOVE_RATIO, CLEAR_RATIO): Update.
1646         * config/m68hc11/m68hc11.h (MOVE_RATIO): Update.
1647         * config/cris/cris.h (MOVE_RATIO): Update.
1648         * config/mn10300/mn10300.h (MOVE_RATIO): Update.
1649         * config/arm/arm.h (MOVE_RATIO): Update.
1650         * config/pa/pa.md: Update uses of MOVE_RATIO
1651         * config/pa/pa.h (MOVE_RATIO): Update.
1652         * config/mips/mips.h (MOVE_RATIO, MOVE_BY_PIECES,
1653         CLEAR_RATIO, SET_RATIO): Update.
1654         * config/h8300/h8300.h (MOVE_RATIO): Update.
1655         * config/v850/v850.h (MOVE_RATIO): Update.
1656         * config/bfin/bfin.h (MOVE_RATIO): Update.
1657
1658 2008-08-31  Andrey Belevantsev  <abel@ispras.ru>
1659             Dmitry Melnik  <dm@ispras.ru>
1660             Dmitry Zhurikhin  <zhur@ispras.ru>
1661             Alexander Monakov  <amonakov@ispras.ru>
1662             Maxim Kuvyrkov  <maxim@codesourcery.com>
1663
1664         * sel-sched.h, sel-sched-dump.h, sel-sched-ir.h, sel-sched.c,
1665         sel-sched-dump.c, sel-sched-ir.c: New files.
1666         * Makefile.in (OBJS-common): Add selective scheduling object
1667         files.
1668         (sel-sched.o, sel-sched-dump.o, sel-sched-ir.o): New entries.
1669         (SEL_SCHED_IR_H, SEL_SCHED_DUMP_H): New entries.
1670         (sched-vis.o): Add dependency on $(INSN_ATTR_H).
1671         * cfghooks.h (get_cfg_hooks, set_cfg_hooks): New prototypes.
1672         * cfghooks.c (get_cfg_hooks, set_cfg_hooks): New functions.
1673         (make_forwarder_block): Update loop latch if we have redirected
1674         the loop latch edge.
1675         * cfgloop.c (get_loop_body_in_custom_order): New function.
1676         * cfgloop.h (LOOPS_HAVE_FALLTHRU_PREHEADERS): New enum field.
1677         (CP_FALLTHRU_PREHEADERS): Likewise.
1678         (get_loop_body_in_custom_order): Declare.
1679         * cfgloopmanip.c (has_preds_from_loop): New.
1680         (create_preheader): Honor CP_FALLTHRU_PREHEADERS.
1681         Assert that the preheader edge will be fall thru when it is set.
1682         * common.opt (fsel-sched-bookkeeping, fsel-sched-pipelining,
1683         fsel-sched-pipelining-outer-loops, fsel-sched-renaming,
1684         fsel-sched-substitution, fselective-scheduling): New flags.
1685         * cse.c (hash_rtx_cb): New.
1686         (hash_rtx): Use it.
1687         * dbgcnt.def (sel_sched_cnt, sel_sched_region_cnt,
1688         sel_sched_insn_cnt): New counters.
1689         * final.c (compute_alignments): Export.  Free dominance
1690         info after loop_optimizer_finalize.
1691         * genattr.c (main): Output maximal_insn_latency prototype.
1692         * genautomata.c (output_default_latencies): New.
1693         Factor its code from ...
1694         (output_internal_insn_latency_func): ... here.
1695         (output_internal_maximal_insn_latency_func): New.
1696         (output_maximal_insn_latency_func): New.
1697         * hard-reg-set.h (UHOST_BITS_PER_WIDE_INT): Define unconditionally.
1698         (struct hard_reg_set_iterator): New.
1699         (hard_reg_set_iter_init, hard_reg_set_iter_set,
1700         hard_reg_set_iter_next): New functions.
1701         (EXECUTE_IF_SET_IN_HARD_REG_SET): New macro.
1702         * lists.c (remove_free_INSN_LIST_node,
1703         remove_free_EXPR_LIST_node): New functions.
1704         * loop-init.c (loop_optimizer_init): When
1705         LOOPS_HAVE_FALLTHRU_PREHEADERS, set CP_FALLTHRU_PREHEADERS when
1706         calling create_preheaders.
1707         (loop_optimizer_finalize): Do not verify flow info after reload.
1708         * recog.c (validate_replace_rtx_1): New parameter simplify.
1709         Default it to true.  Update all uses.  Factor out simplifying
1710         code to ...
1711         (simplify_while_replacing): ... this new function.
1712         (validate_replace_rtx_part,
1713         validate_replace_rtx_part_nosimplify): New.
1714         * recog.h (validate_replace_rtx_part,
1715         validate_replace_rtx_part_nosimplify): Declare.
1716         * rtl.c (rtx_equal_p_cb): New.
1717         (rtx_equal_p): Use it.
1718         * rtl.h (rtx_equal_p_cb, hash_rtx_cb): Declare.
1719         (remove_free_INSN_LIST_NODE, remove_free_EXPR_LIST_node,
1720         debug_bb_n_slim, debug_bb_slim,    print_rtl_slim): Likewise.
1721         * vecprim.h: Add a vector type for unsigned int.
1722         * haifa-sched.c: Include vecprim.h and cfgloop.h.
1723         (issue_rate, sched_verbose_param, note_list, dfa_state_size,
1724         ready_try, cycle_issued_insns, spec_info): Make global.
1725         (readyp): Initialize.
1726         (dfa_lookahead): New global variable.
1727         (old_max_uid, old_last_basic_block): Remove.
1728         (h_i_d): Make it a vector.
1729         (INSN_TICK, INTER_TICK, QUEUE_INDEX, INSN_COST): Make them work
1730         through HID macro.
1731         (after_recovery, adding_bb_to_current_region_p):
1732         New variables to handle correct insertion of the recovery code.
1733         (struct ready_list): Move declaration to sched-int.h.
1734         (rgn_n_insns): Removed.
1735         (rtx_vec_t): Move to sched-int.h.
1736         (find_insn_reg_weight): Remove.
1737         (find_insn_reg_weight1): Rename to find_insn_reg_weight.
1738         (haifa_init_h_i_d, haifa_finish_h_i_d):
1739         New functions to initialize / finalize haifa instruction data.
1740         (extend_h_i_d, init_h_i_d): Rewrite.
1741         (unlink_other_notes): Move logic to add_to_note_list.  Handle
1742         selective scheduler.
1743         (ready_lastpos, ready_element, ready_sort, reemit_notes,
1744         find_fallthru_edge): Make global, remove static prototypes.
1745         (max_issue): Make global.  Add privileged_n and state parameters.  Use
1746         them.
1747         (extend_global, extend_all): Removed.
1748         (init_before_recovery): Add new param.  Fix the handling of the case
1749         when we insert a recovery code before the EXIT which has a predecessor
1750         with a fallthrough edge to it.
1751         (create_recovery_block): Make global.  Rename to
1752         sched_create_recovery_block.  Update.
1753         (change_pattern): Rename to sched_change_pattern.  Make global.
1754         (speculate_insn): Rename to sched_speculate_insn.  Make global.
1755         Split haifa-specific functionality into ...
1756         (haifa_change_pattern): New static function.
1757         (sched_extend_bb): New static function.
1758         (sched_init_bbs): New function.
1759         (current_sched_info): Change type to struct haifa_sched_info.
1760         (insn_cost): Adjust for selective scheduling.
1761         (dep_cost_1): New function.  Move logic from ...
1762         (dep_cost): ... here.
1763         (dep_cost): Use dep_cost_1.
1764         (contributes_to_priority_p): Use sched_deps_info instead of
1765         current_sched_info.
1766         (priority): Adjust to work with selective scheduling.  Process the
1767         corner case when all dependencies don't contribute to priority.
1768         (rank_for_schedule): Use ds_weak instead of dep_weak.
1769         (advance_state): New function.  Move logic from ...
1770         (advance_one_cycle): ... here.
1771         (add_to_note_list, concat_note_lists): New functions.
1772         (rm_other_notes): Make static.  Adjust for selective scheduling.
1773         (remove_notes, restore_other_notes): New functions.
1774         (move_insn): Add two arguments.  Update assert.  Don't call
1775         reemit_notes.
1776         (choose_ready): Remove lookahead variable, use dfa_lookahead.
1777         Remove more_issue, max_points.  Move the code to initialize
1778         max_lookahead_tries to max_issue.
1779         (schedule_block): Remove rgn_n_insns1 parameter.  Don't allocate
1780         ready.  Adjust use of move_insn.  Call restore_other_notes.
1781         (luid): Remove.
1782         (sched_init, sched_finish): Move Haifa-specific initialization/
1783         finalization to ...
1784         (haifa_sched_init, haifa_sched_finish): ... respectively.
1785         New functions.
1786         (setup_sched_dump): New function.
1787         (haifa_init_only_bb): New static function.
1788         (haifa_speculate_insn): New static function.
1789         (try_ready): Use haifa_* instead of speculate_insn and
1790         change_pattern.
1791         (extend_ready, extend_all): Remove.
1792         (sched_extend_ready_list, sched_finish_ready_list): New functions.
1793         (create_check_block_twin, add_to_speculative_block): Use
1794         haifa_insns_init instead of extend_global.  Update to use new
1795         initialization functions.  Change parameter.  Factor out code from
1796         create_check_block_twin to ...
1797         (sched_create_recovery_edges) ... this new function.
1798         (add_block): Remove.
1799         (sched_scan_info): New.
1800         (extend_bb): Use sched_scan_info.
1801         (init_bb, extend_insn, init_insn, init_insns_in_bb, sched_scan): New
1802         static functions for walking through scheduling region.
1803         (sched_luids): New vector variable to replace uid_to_luid.
1804         (luids_extend_insn): New function.
1805         (sched_max_luid): New variable.
1806         (luids_init_insn): New function.
1807         (sched_init_luids, sched_finish_luids): New functions.
1808         (insn_luid): New debug function.
1809         (sched_extend_target): New function.
1810         (haifa_init_insn): New static function.
1811         (sched_init_only_bb): New hook.
1812         (sched_split_block): New hook.
1813         (sched_split_block_1): New function.
1814         (sched_create_empty_bb): New hook.
1815         (sched_create_empty_bb_1): New function.
1816         (common_sched_info, ready): New global variables.
1817         (current_sched_info_var): Remove.
1818         (move_block_after_check): Use common_sched_info.
1819         (haifa_luid_for_non_insn): New static function.
1820         (init_before_recovery): Use haifa_init_only_bb instead of
1821         add_block.
1822         (increase_insn_priority): New.
1823         * modulo-sched.c: (issue_rate): Remove static declaration.
1824         (sms_sched_info): Change type to haifa_sched_info.
1825         (sms_sched_deps_info, sms_common_sched_info): New variables.
1826         (setup_sched_infos): New.
1827         (sms_schedule): Initialize them.  Call haifa_sched_init/finish.
1828         Do not call regstat_free_calls_crossed.
1829         (sms_print_insn): Use const_rtx.
1830         * params.def (PARAM_MAX_PIPELINE_REGION_BLOCKS,
1831         PARAM_MAX_PIPELINE_REGION_INSNS, PARAM_SELSCHED_MAX_LOOKAHEAD,
1832         PARAM_SELSCHED_MAX_SCHED_TIMES, PARAM_SELSCHED_INSNS_TO_RENAME,
1833         PARAM_SCHED_MEM_TRUE_DEP_COST): New.
1834         * sched-deps.c (sched_deps_info): New.  Update all relevant uses of
1835         current_sched_info to use it.
1836         (enum reg_pending_barrier_mode): Move to sched-int.h.
1837         (h_d_i_d): New variable. Initialize to NULL.
1838         ({true, output, anti, spec, forward}_dependency_cache): Initialize
1839         to NULL.
1840         (estimate_dep_weak): Remove static declaration.
1841         (sched_has_condition_p): New function.  Adjust users of
1842         sched_get_condition to use it instead.
1843         (conditions_mutex_p): Add arguments indicating which conditions are
1844         reversed.  Use them.
1845         (sched_get_condition_with_rev): Rename from sched_get_condition.  Add
1846         argument to indicate whether returned condition is reversed.  Do not
1847         generate new rtx when condition should be reversed; indicate it by
1848         setting new argument instead.
1849         (add_dependence_list_and_free): Add deps parameter.
1850         Update all users.  Do not free dependence list when
1851         deps context is readonly.
1852         (add_insn_mem_dependence, flush_pending_lists): Adjust for readonly
1853         contexts.
1854         (remove_from_dependence_list, remove_from_both_dependence_lists): New.
1855         (remove_from_deps): New. Use the above functions.
1856         (cur_insn, can_start_lhs_rhs_p): New static variables.
1857         (add_or_update_back_dep_1): Initialize present_dep_type.
1858         (haifa_start_insn, haifa_finish_insn, haifa_note_reg_set,
1859         haifa_note_reg_clobber, haifa_note_reg_use, haifa_note_mem_dep,
1860         haifa_note_dep): New functions implementing dependence hooks for
1861         the Haifa scheduler.
1862         (note_reg_use, note_reg_set, note_reg_clobber, note_mem_dep,
1863         note_dep): New functions.
1864         (ds_to_dt, extend_deps_reg_info, maybe_extend_reg_info_p): New
1865         functions.
1866         (init_deps): Initialize last_reg_pending_barrier and deps->readonly.
1867         (free_deps): Initialize deps->reg_last.
1868         (sched_analyze_reg, sched_analyze_1, sched_analyze_2,
1869         sched_analyze_insn): Update to use dependency hooks infrastructure
1870         and readonly contexts.
1871         (deps_analyze_insn): New function.  Move part of logic from ...
1872         (sched_analyze): ... here.  Also move some logic to ...
1873         (deps_start_bb): ... here.  New function.
1874         (add_forw_dep, delete_forw_dep): Guard use of INSN_DEP_COUNT with
1875         sel_sched_p.
1876         (sched_deps_init): New function.  Move code from ...
1877         (init_dependency_caches): ... here.  Remove.
1878         (init_deps_data_vector): New.
1879         (sched_deps_finish): New function.  Move code from ...
1880         (free_dependency_caches): ... here.  Remove.
1881         (init_deps_global, finish_deps_global): Adjust for use with
1882         selective scheduling.
1883         (get_dep_weak): Move logic to ...
1884         (get_dep_weak_1): New function.
1885         (ds_merge): Move logic to ...
1886         (ds_merge_1): New static function.
1887         (ds_full_merge, ds_max_merge, ds_get_speculation_types): New functions.
1888         (ds_get_max_dep_weak): New function.
1889         * sched-ebb.c (sched_n_insns): Rename to sched_rgn_n_insns.
1890         (n_insns): Rename to rgn_n_insns.
1891         (debug_ebb_dependencies): New function.
1892         (init_ready_list): Use it.
1893         (begin_schedule_ready): Use sched_init_only_bb.
1894         (ebb_print_insn): Indicate when an insn starts a new cycle.
1895         (contributes_to_priority, compute_jump_reg_dependencies,
1896         add_remove_insn, fix_recovery_cfg): Add ebb_ prefix to function names.
1897         (add_block1): Remove to ebb_add_block.
1898         (ebb_sched_deps_info, ebb_common_sched_info): New variables.
1899         (schedule_ebb): Initialize them.  Use remove_notes instead of
1900         rm_other_notes.  Use haifa_local_init/finish.
1901         (schedule_ebbs): Use haifa_sched_init/finish.
1902         * sched-int.h: Include vecprim.h, remove rtl.h.
1903         (struct ready_list): Delete declaration.
1904         (sched_verbose_param, enum sched_pass_id_t,
1905         bb_vec_t, insn_vec_t, rtx_vec_t): New.
1906         (struct sched_scan_info_def): New structure.
1907         (sched_scan_info, sched_scan, sched_init_bbs,
1908         sched_init_luids, sched_finish_luids, sched_extend_target,
1909         haifa_init_h_i_d, haifa_finish_h_i_d): Declare.
1910         (struct common_sched_info_def): New.
1911         (common_sched_info, haifa_common_sched_info,
1912         sched_emulate_haifa_p): Declare.
1913         (sel_sched_p): New.
1914         (sched_luids): Declare.
1915         (INSN_LUID, LUID_BY_UID, SET_INSN_LUID): Declare.
1916         (sched_max_luid, insn_luid): Declare.
1917         (note_list, remove_notes, restore_other_notes, bb_note): Declare.
1918         (sched_insns_init, sched_insns_finish, xrecalloc, reemit_notes,
1919         print_insn, print_pattern, print_value, haifa_classify_insn,
1920         sel_find_rgns, sel_mark_hard_insn, dfa_state_size, advance_state,
1921         setup_sched_dump, sched_init, sched_finish,
1922         sel_insn_is_speculation_check): Export.
1923         (struct ready_list): Move from haifa-sched.c.
1924         (ready_try, ready, max_issue): Export.
1925         (ebb_compute_jump_reg_dependencies, find_fallthru_edge,
1926         sched_init_only_bb, sched_split_block, sched_split_block_1,
1927         sched_create_empty_bb, sched_create_empty_bb_1,
1928         sched_create_recovery_block, sched_create_recovery_edges): Export.
1929         (enum reg_pending_barrier_mode): Export.
1930         (struct deps): New fields `last_reg_pending_barrier' and `readonly'.
1931         (deps_t): New.
1932         (struct sched_info): Rename to haifa_sched_info.  Use const_rtx for
1933         print_insn field.  Move add_block and fix_recovery_cfg to
1934         common_sched_info_def.  Move compute_jump_reg_dependencies,
1935         use_cselib  ...
1936         (struct sched_deps_info_def): ... this new structure.
1937         (sched_deps_info): Declare.
1938         (struct spec_info_def): Remove weakness_cutoff, add
1939         data_weakness_cutoff and control_weakness_cutoff.
1940         (spec_info): Declare.
1941         (struct _haifa_deps_insn_data): Split from haifa_insn_data.  Add
1942         dep_count field.
1943         (struct haifa_insn_data): Rename to struct _haifa_insn_data.
1944         (haifa_insn_data_def, haifa_insn_data_t): New typedefs.
1945         (current_sched_info): Change type to struct haifa_sched_info.
1946         (haifa_deps_insn_data_def, haifa_deps_insn_data_t): New typedefs.
1947         (h_d_i_d): New variable.
1948         (HDID): New accessor macro.
1949         (h_i_d): Change type to VEC (haifa_insn_data_def, heap) *.
1950         (HID): New accessor macro.  Rewrite h_i_d accessor macros through HID
1951         and HDID.
1952         (IS_SPECULATION_CHECK_P): Update for selective scheduler.
1953         (enum SCHED_FLAGS): Update for selective scheduler.
1954         (enum SPEC_SCHED_FLAGS): New flag SEL_SCHED_SPEC_DONT_CHECK_CONTROL.
1955         (init_dependency_caches, free_dependency_caches): Delete declarations.
1956         (deps_analyze_insn, remove_from_deps, get_dep_weak_1,
1957         estimate_dep_weak, ds_full_merge, ds_max_merge, ds_weak,
1958         ds_get_speculation_types, ds_get_max_dep_weak, sched_deps_init,
1959         sched_deps_finish, haifa_note_reg_set, haifa_note_reg_use,
1960         haifa_note_reg_clobber, maybe_extend_reg_info_p, deps_start_bb,
1961         ds_to_dt): Export.
1962         (rm_other_notes): Delete declaration.
1963         (schedule_block): Remove one argument.
1964         (cycle_issued_insns, issue_rate, dfa_lookahead, ready_sort,
1965         ready_element, ready_lastpos, sched_extend_ready_list,
1966         sched_finish_ready_list, sched_change_pattern, sched_speculate_insn,
1967         concat_note_lists): Export.
1968         (struct region): Move from sched-rgn.h.
1969         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
1970         RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
1971         BLOCK_TO_BB, CONTAINING_RGN): Export.
1972         (ebb_head, BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB, INSN_BB): Likewise.
1973         (current_nr_blocks, current_blocks, target_bb): Likewise.
1974         (dep_cost_1, sched_is_disabled_for_current_region_p, sched_rgn_init,
1975         sched_rgn_finish, rgn_setup_region, sched_rgn_compute_dependencies,
1976         sched_rgn_local_init, extend_regions,
1977         rgn_make_new_region_out_of_new_block, compute_priorities,
1978         debug_rgn_dependencies, free_rgn_deps, contributes_to_priority,
1979         extend_rgns, deps_join rgn_setup_common_sched_info,
1980         rgn_setup_sched_infos, debug_regions, debug_region, dump_region_dot,
1981         dump_region_dot_file, haifa_sched_init, haifa_sched_finish): Export.
1982         (get_rgn_sched_max_insns_priority, sel_add_to_insn_priority,
1983         increase_insn_priority): Likewise.
1984         * sched-rgn.c: Include sel-sched.h.
1985         (ref_counts): New static variable.  Use it ...
1986         (INSN_REF_COUNT): ... here.  Rewrite and move closer to uses.
1987         (FED_BY_SPEC_LOAD, IS_LOAD_INSN): Rewrite to use HID accessor macro.
1988         (sched_is_disabled_for_current_region_p): Delete static declaration.
1989         (struct region): Move to sched-int.h.
1990         (nr_regions, rgn_table, rgn_bb_table, block_to_bb, containing_rgn,
1991         ebb_head): Define and initialize.
1992         (RGN_NR_BLOCKS, RGN_BLOCKS, RGN_DONT_CALC_DEPS, RGN_HAS_REAL_EBB,
1993         BLOCK_TO_BB, CONTAINING_RGN, debug_regions, extend_regions,
1994         BB_TO_BLOCK, EBB_FIRST_BB, EBB_LAST_BB): Move to
1995         sched-int.h.
1996         (find_single_block_region): Add new argument to indicate that EBB
1997         regions should be constructed.
1998         (debug_live): Delete declaration.
1999         (current_nr_blocks, current_blocks, target_bb):
2000         Remove static qualifiers.
2001         (compute_dom_prob_ps, check_live, update_live, set_spec_fed): Delete
2002         declaration.
2003         (init_regions): Delete declaration.
2004         (debug_region, bb_in_region_p, dump_region_dot_file, dump_region_dot,
2005         rgn_estimate_number_of_insns): New.
2006         (too_large): Use estimate_number_of_insns.
2007         (haifa_find_rgns): New. Move the code from ...
2008         (find_rgns): ... here.  Call either sel_find_rgns or haifa_find_rgns.
2009         (free_trg_info): New.
2010         (compute_trg_info): Allocate candidate tables here instead of ...
2011         (init_ready_list): ... here.
2012         (rgn_print_insn): Use const_rtx.
2013         (contributes_to_priority, extend_regions): Delete static declaration.
2014         (add_remove_insn, fix_recovery_cfg): Add rgn_ to function names.
2015         (add_block1): Rename to rgn_add_block.
2016         (debug_rgn_dependencies): Delete static qualifier.
2017         (new_ready): Use sched_deps_info.  Simplify.
2018         (rgn_common_sched_info, rgn_const_sched_deps_info,
2019         rgn_const_sel_sched_deps_info, rgn_sched_deps_info, rgn_sched_info):
2020         New.
2021         (region_sched_info): Rename to rgn_const_sched_info.
2022         (deps_join): New, extracted from ...
2023         (propagate_deps): ... here.
2024         (compute_block_dependences, debug_dependencies): Update for selective
2025         scheduling.
2026         (free_rgn_deps, compute_priorities): New functions.
2027         (sched_rgn_init, sched_rgn_finish, rgn_setup_region,
2028         sched_rgn_compute_dependencies): New functions.
2029         (schedule_region): Use them.
2030         (sched_rgn_local_init, sched_rgn_local_free, sched_rgn_local_finish,
2031         rgn_setup_common_sched_info, rgn_setup_sched_infos):
2032         New functions.
2033         (schedule_insns): Call new functions that were split out.
2034         (rgn_make_new_region_out_of_new_block): New.
2035         (get_rgn_sched_max_insns_priority): New.
2036         (rest_of_handle_sched, rest_of_handle_sched2): Call selective
2037         scheduling when appropriate.
2038         * sched-vis.c: Include insn-attr.h.
2039         (print_value, print_pattern): Make global.
2040         (print_rtl_slim, debug_bb_slim, debug_bb_n_slim): New functions.
2041         * target-def.h (TARGET_SCHED_ADJUST_COST_2,
2042         TARGET_SCHED_ALLOC_SCHED_CONTEXT, TARGET_SCHED_INIT_SCHED_CONTEXT,
2043         TARGET_SCHED_SET_SCHED_CONTEXT, TARGET_SCHED_CLEAR_SCHED_CONTEXT,
2044         TARGET_SCHED_FREE_SCHED_CONTEXT, TARGET_SCHED_GET_INSN_CHECKED_DS,
2045         TARGET_SCHED_GET_INSN_SPEC_DS, TARGET_SCHED_SKIP_RTX_P): New target
2046         hooks.  Initialize them to 0.
2047         (TARGET_SCHED_GEN_CHECK): Rename to TARGET_SCHED_GEN_SPEC_CHECK.
2048         * target.h (struct gcc_target): Add them.  Rename gen_check field to
2049         gen_spec_check.
2050         * flags.h (sel_sched_switch_set): Declare.
2051         * opts.c (sel_sched_switch_set): New variable.
2052         (decode_options): Unset flag_sel_sched_pipelining_outer_loops if
2053         pipelining is disabled from command line.
2054         (common_handle_option): Record whether selective scheduling is
2055         requested from command line.
2056         * doc/invoke.texi: Document new flags and parameters.
2057         * doc/tm.texi: Document new target hooks.
2058         * config/ia64/ia64.c (TARGET_SCHED_GEN_SPEC_CHECK): Define to
2059         ia64_gen_check.
2060         (dfa_state_size): Do not declare locally.
2061         * config/ia64/ia64.opt (msched-ar-data-spec): Default to 0.
2062         * config/rs6000/rs6000.c (rs6000_init_sched_context,
2063         rs6000_alloc_sched_context, rs6000_set_sched_context,
2064         rs6000_free_sched_context): New functions.
2065         (struct _rs6000_sched_context): New.
2066         (rs6000_sched_reorder2): Do not modify INSN_PRIORITY for selective
2067         scheduling.
2068         (rs6000_sched_finish): Do not run for selective scheduling.
2069
2070 2008-08-31  Jan Hubicka  <jh@suse.cz>
2071
2072         * frv.c (frv_rtx_costs): Update forward declaration.
2073         * spu.c (spu_rtx_costs): Likewise.
2074         * pdp11.c: Include df.h
2075         (pdp11_output_function_epilogue): Use df_set_regs_ever_live.
2076         * m68hc11.c (m68hc11_gen_highpart): Fix call of gen_rtx_SUBREG.
2077         (m68hc11_rtx_costs_1): Fix call of rtx_cost.
2078         * iq2000.c (iq2000_address_cost): Add speed argument.
2079         (iq2000_rtx_costs): Likewise.
2080         * mn10300.c (mn10300_address_cost_1): Remove speed argument;
2081         update call of mn10300_address_cost.
2082         * mcore.c: Include df.h
2083         (mcore_rtx_costs): Update prototype.
2084         * score3.c: Include df.h
2085         (score3_rtx_costs): Remove speed argument.
2086         * score7.c: Include df.h
2087         (score7_address_cost): Remove speed argument.
2088         * score-protos.h (score_address_cost): Update prototype.
2089         * score.c: Include df.h
2090         (score_rtx_costs): Update call of costs functions.
2091         * v850.c (v850_rtx_costs): Add bool argument.
2092
2093 2008-08-31  Hans-Peter Nilsson  <hp@axis.com>
2094
2095         * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
2096
2097 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2098
2099         * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2.
2100         * config/i386/gthr-win32.c (__gthread_setspecific): Same.
2101
2102 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2103
2104         * mkmap-flat.awk: Add option pe_dll.
2105         * config/i386/t-cygming (SHLIB_LINK): Support building libgcc_s.
2106         * config/i386/t-cygwin (SHLIB_LC): Add.
2107         * config/i386/t-mingw32 (SHLIB_LC): Add.
2108         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): New.
2109         (SUBTARGET_EXTRA_SPECS): Use SHARED_LIBGCC_UNDEFS_SPEC.
2110         (LINK_SPEC): Support libgcc_s.
2111         (LIBGCC_SPEC): Support libgcc_s.
2112         (LIBGCC_SONAME): New.
2113
2114 2008-08-31  Jan Hubicka  <jh@suse.cz>
2115
2116         * predict.c (maybe_hot_bb_p, maybe_hot_edge_p): Previous commit
2117         mistakely had old version of patch.
2118
2119         * ipa-cp.c (ipcp_need_original_clone_p): Remove.
2120         (ipcp_estimate_growth): New.
2121         (ipcp_insert_stage): Use ipcp_estimate_growth.
2122         * profile.c (branch_prob): When reading failed, do not consider
2123         profile as read.
2124
2125 2008-08-31  Jan Hubicka  <jh@suse.cz>
2126
2127         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Check that
2128         loop is optimized for speed.
2129
2130 2008-08-31  Richard Guenther  <rguenther@suse.de>
2131
2132         PR middle-end/37289
2133         * fold-const.c (fold_binary): Retain conversions in folding
2134         ~A + 1 to -A.
2135
2136 2008-08-31  Jan Hubicka  <jh@suse.cz>
2137
2138         * postreload-gcse.c (eliminate_partially_redundant_loads):
2139         Use optimize_bb_for_size_p.
2140         * predict.c (maybe_hot_frequency_p): Make inline.
2141         (maybe_hot_count_p): Break out from ...
2142         (maybe_hot_bb_p): ... this one.
2143         (maybe_hot_edge_p): Simplify.
2144         * basic-block.h (probably_cold_bb_p): Remove.
2145
2146 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
2147
2148         PR target/37168
2149         * config/rs6000/rs6000-protos.h (const_vector_elt_as_int): Add
2150         prototype.
2151         * config/rs6000/rs6000.c (const_vector_elt_as_int): No longer static.
2152         * config/rs6000/altivec.md (easy_vector_constant_add_self splitter):
2153         Also split V4SFmode.
2154         * config/rs6000/predicates.md (easy_vector_constant_add_self): Handle
2155         vector float modes.
2156
2157 2008-08-31  Jan Hubicka  <jh@suse.cz>
2158
2159         * predict.c (PROB_VERY_LIKELY): Make small enough so things
2160         become cold.
2161         * predict.def (PRED_NORETURN_CALL, PRED_COLD_CALL): Use it.
2162
2163 2008-08-31  Jakub Jelinek  <jakub@redhat.com>
2164
2165         PR debug/37287
2166         * dwarf2out.c (gen_namespace_die): For DECL_EXTERNAL modules don't
2167         add source coords.
2168
2169         * dwarf2out.c (native_encode_initializer): Subtract min_index for
2170         non-range array index.  Handle VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
2171
2172 2008-08-31  Jan Hubicka  <jh@suse.cz>
2173
2174         * sparc.h (BRANCH_COST): Fix macro definition.
2175         * avr.c (avr_operand_rtx_cost): Add speed argument.
2176         (avr_rtx_costs): Update calls of avr_operand_rtx_cost.
2177
2178 2008-08-31  Richard Guenther  <rguenther@suse.de>
2179
2180         * tree-cfg.c (verify_types_in_gimple_assign): Dump mismatched
2181         types instead of operands.  Re-instantiate verifying of
2182         binary expression operands.
2183
2184 2008-08-30  Jan Hubicka  <jh@suse.cz>
2185
2186         * fwprop.c (should_replace_address): Add speed attribute.
2187         (PR_OPTIMIZE_FOR_SPEED): New flag.
2188         (propagate_rtx_1): Use it.
2189         (propagate_rtx): Set it.
2190         (try_fwprop_subst): Update call of rtx_costs.
2191         (forward_propagate_and_simplify): LIkewise.
2192         * hooks.c (hook_int_rtx_bool_0): New
2193         (hook_bool_rtx_int_int_intp_false): Replace by ...
2194         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
2195         * hooks.h (hook_int_rtx_bool_0): New
2196         (hook_bool_rtx_int_int_intp_false): Replace by ...
2197         (hook_bool_rtx_int_int_intp_bool_false): .. thisone.
2198         * optabs.c (avoid_expensive_constant): UPdate call of rtx_cost.
2199         (prepare_cmp_insn): UPdate call of rtx_cost.
2200         * postreload.c (reload_cse_simplify_set): Update call of rtx_cost.
2201         (reload_cse_simplify_operands): Update call of rtx_cost.
2202         (reload_cse_move2add): call of rtx_cost.
2203         * target.h (struct gcc_target): Update rtx_costs and address_costs.
2204         * rtlanal.c (rtx_cost): Add speed argument.
2205         (address_cost): Add speed argument
2206         (default_address_cost): Likewise.
2207         (insn_rtx_cost): Likewise.
2208         * cfgloopanal.c (seq_cost): Add speed argument.
2209         (target_reg_cost, target_spill_cost): Turn to array.
2210         (init_set_costs): Update for speed.
2211         (estimate_reg_pressure_cost): Add speed argument.
2212         * auto-inc-dec.c (attempt_change): Update call of rtx_cost.
2213         * dojump.c (prefer_and_bit_test): UPdate call of rtx_cost.
2214         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field speed.
2215         (seq_cost): Add speed argument.
2216         (computation_cost): Add speed arugment.
2217         (add_cost, multiply_by_const, get_address_cost): add speed argument.
2218         (force_expr_to_var_cost): Update for profile info.
2219         (force_var_cost): Likewise.
2220         (split_address_cost): Likewise.
2221         (ptr_difference_cost): Likewise.
2222         (difference_cost): Likewise.
2223         (get_computation_cost_at): Likewise.
2224         (determine_iv_cost): Likewise.
2225         (ivopts_global_cost_for_size): Likewise.
2226         (rewrite_use_address): Likewise.
2227         (tree_ssa_iv_optimize_loop): Initialize speed field.
2228         * cse.c (optimize_this_for_speed_p): New static var.
2229         (notreg_cost): Update call of rtx_cost.
2230         (cse_extended_basic_block): set optimize_this_for_speed_p.
2231         * ifcvt.c (cheap_bb_rtx_cost_p): Update call of rtx_cost.
2232         (noce_try_cmove_arith): Likewise.
2233         (noce_try_sign_mask): LIkewise.
2234         * expr.c (compress_float_constant): Update rtx_cost calls.
2235         * tree-ssa-address.c (most_expensive_mult_to_index): Add speed argument.
2236         (addr_to_parts): Likewise.
2237         (create_mem_ref): Likewise.
2238         * dse.c (find_shift_sequence): Add speed argument.
2239         (replace_read): Update call.
2240         * calls.c (precompute_register_parameters): Update call of rtx_cost.
2241         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost,
2242         * neg_cost, shift_cost, shiftadd_cost,
2243         shiftsub_cost, mul_cost, sdiv_cost, udiv_cost ,mul_widen_cost,
2244         mul_highpart_cost): Increase dimension.
2245         (init_expmed): Initialize for both size and speed.
2246         (expand_shift): Use profile.
2247         (synth_mult): Use profile.
2248         (choose_mult_variant): Use profile.
2249         (expand_mult): Use profile.
2250         (expand_mult_highpart_optab): Use profile.
2251         (expand_mult_highpart): Use profile.
2252         (expand_smod_pow2): Use profile.
2253         (expand_divmod): Use profile.
2254         * simplify-rtx.c (simplify_binary_operation_1): Update call of rtx_cost.
2255         * loop-invariant.c (create_new_invariant): Use profile.
2256         (gain_for_invariant): Add speed parameter.
2257         (best_gain_for_invariant): Likewise.
2258         (find_invariants_to_move): Likewise.
2259         (move_single_loop_invariants): Set it.
2260         * target-def.h (TARGET_RTX_COSTS): Use hook.
2261         * rtl.h (rtx_cost, address_cost, insn_rtx_cost): Update prototpe.
2262         (optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
2263         * output.h (default_address_cost): Update prototype.
2264         * combine.c (optimize_this_for_speed_p): New static var.
2265         (combine_validate_cost): Update call of rtx_cost.
2266         (combine_instructions): Set optimize_this_for_speed_p.
2267         (expand_compound_operation): Update call of rtx_cost.
2268         (make_extraction):Update call of rtx_cost.
2269         (force_to_mode):Update call of rtx_cost.
2270         (distribute_and_simplify_rtx):Update call of rtx_cost.
2271         * cfgloop.h (target_reg_cost, target_spill_cost): Turn to array.
2272         (estimate_reg_pressure_cost): Update prototype.
2273         * tree-flow.h (multiply_by_cost, create_mem_ref): Update prototype.
2274         * basic-block.h (optimize_insn_for_size_p, optimize_insn_for_speed_p):
2275         Remove.
2276         * config/alpha/alpha.c (alpha_rtx_costs): Update.
2277         (alpha_rtx_costs): Update.
2278         * config/frv/frv.c (frv_rtx_costs): Update.
2279         * config/s390/s390.c (s390_rtx_costs): Update.
2280         * config/m32c/m32c.c (m32c_memory_move_cost): Update.
2281         (m32c_rtx_costs): Update.
2282         * config/spu/spu.c (TARGET_ADDRESS_COST): Upate.
2283         (spu_rtx_costs): Update.
2284         * config/sparc/sparc.c (sparc_rtx_costs): Update.
2285         * config/m32r/m32r.c (m32r_rtx_costs): Update.
2286         * config/i386/i386.c (:ix86_address_cost): Update.
2287         (ix86_rtx_costs): Update.
2288         * config/sh/sh.c (sh_rtx_costs, sh_address_cost): Update.
2289         * config/pdp11/pdp11.c (pdp11_rtx_costs): Update.
2290         * config/avr/avr.c (avr_rtx_costs, avr_address_cost): Update.
2291         * config/crx/crx.c (crx_address_cost): Update.
2292         * config/xtensa/xtensa.c (xtensa_rtx_costs): Update.
2293         * config/stormy16/stormy16.c
2294         (xstormy16_address_cost, xstormy16_rtx_costs): Update.
2295         * config/m68hc11/m68hc11.c
2296         (m68hc11_address_cost, m68hc11_rtx_costs): Update.
2297         * config/cris/cris.c (cris_rtx_costs, cris_address_cost): Update.
2298         * config/iq2000/iq2000.c (iq2000_rtx_costs, iq2000_address_cost):
2299         Update.
2300         * config/mn10300/mn10300.c (mn10300_address_cost, mn10300_rtx_costs):
2301         Update
2302         * config/ia64/ia64.c (ia64_rtx_costs): Update.
2303         * config/m68k/m68k.c (m68k_rtx_costs): Update.
2304         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update.
2305         * config/arc/arc.c (arc_rtx_costs, arc_address_cost): Update.
2306         * config/mcore/mcore.c (TARGET_ADDRESS_COST): Update.
2307         (mcore_rtx_costs): update.
2308         * config/score/score3.c (score3_rtx_costs): Update.
2309         * config/score/score7.c (score7_rtx_costs): Update.
2310         * config/score/score3.h (score3_rtx_costs):Update.
2311         * config/score/score7.h (score7_rtx_costs): Update.
2312         * config/score/score.c (score_rtx_costs): Update.
2313         * config/arm/arm.c (arm_address_cost): Update.
2314         (arm_rtx_costs_1): Update.
2315         (arm_rtx_costs_1): Update.
2316         (arm_size_rtx_costs): Update.
2317         (arm_size_rtx_costs): Update.
2318         (arm_size_rtx_costs): Update.
2319         (arm_xscale_rtx_costs): Update.
2320         (arm_thumb_address_cost): Update.
2321         * config/pa/pa.c (hppa_address_cost): Update.
2322         * config/mips/mips.c (mips_rtx_costs): Update.
2323         * config/vax/vax.c (vax_address_cost): Update.
2324         * config/h8300/h8300.c (h8300_shift_costs): Update.
2325         (h8300_rtx_costs): Update.
2326         * config/v850/v850.c (TARGET_ADDRESS_COST): Update.
2327         (v850_rtx_costs): Update.
2328         * config/mmix/mmix.c (mmix_rtx_costs, mmix_rtx_costs): Update.
2329         * config/bfin/bfin.c
2330         (bfin_address_cost): Update.
2331         (bfin_rtx_costs): Update.
2332         * stmt.c (lshift_cheap_p): Update.
2333
2334 2008-08-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2335
2336         PR middle-end/36444
2337         * expmed.c (extract_bit_field_1): Check the mode size to make
2338         sure the vector modes have the same size.
2339
2340 2008-08-29  Michael Meissner  <gnu@the-meissners.org>
2341
2342         * dojump.c (top level): Include basic-block.h to declare
2343         optimize_insn_for_speed_p
2344
2345         * Makefile.in (dodump.h): Add $(BASIC_BLOCK_H) dependency.
2346
2347         * opts.h (CL_SAVE): New option class for marking options that are
2348         target specific options usable in the target attribute.
2349         (CL_MIN_OPTION_CLASS): CL_SAVE is now the minimum option.
2350
2351         * opt-functions.awk (switch_flags): Add CL_SAVE flag so backends
2352         can easily find the target specific options that are safe to use
2353         in the attribute or pragma.
2354
2355         * attribs.c (decl_attributes): Change #pragma GCC option to
2356         #pragma GCC target, and attribute((option(...))) to
2357         attribute((target(...))).
2358
2359         * doc/extend.texi (target attribute): Change from option
2360         attribute.  Delete push/pop/reset.
2361         (#pragma GCC target): Change from #pragma GCC option.  Delete
2362         push/pop/reset.
2363         (#pragma GCC push_options): Document new pragma.
2364         (#pragma GCC pop_options): Document new pragma.
2365         (#pragma GCC reset_options): Document new pragma.
2366
2367         * targhooks.c (default_target_option_valid_attribute_p): Add
2368         warning about port not supporting target attributes.
2369         (default_target_option_pragma_parse): New function, warn about
2370         #pragma GCC target not being supported.
2371
2372         * targhooks.h (default_target_option_pragma_parse): Add
2373         declaration.
2374
2375         * tree.h (TI_CURRENT_TARGET_PRAGMA): Rename from
2376         TI_CURRENT_OPTION_PRAGMA.
2377         (current_target_pragma): Rename from current_option_pragma.
2378
2379         * target.h: (struct target_option): Delete booleans for changing
2380         the optimization level on hot/cold functions.  Change signature of
2381         pragma_parse hook to take a second tree.
2382
2383         * c-tree.h (c_builtin_function_ext_scope): Add declaration.
2384
2385         * c-decl.c (c_builtin_function_ext_scope): New function, guarantee
2386         that the declaration is done at global scope.
2387
2388         * langhooks.c (add_builtin_function_common): Move most of the code
2389         from add_builtin_function here, calling the hook passed in.
2390         (add_builtin_function): Call add_builtin_function_common with
2391         standard builtin hook.
2392         (add_builtin_function_ext_scope): New function to add builtins to
2393         global scope.
2394
2395         * langhooks.h (struct lang_hooks): Add builtin_function_ext_scope
2396         hook.
2397         (add_builtin_function_ext_scope): Add declaration.
2398
2399         * c-pragma.c (handle_pragma_target): Rename from
2400         handle_pragma_option, #pragma GCC option is now #pragma GCC
2401         target.  Move warning about port not supporting target options to
2402         default pragma parse hook.  Remove push/pop/reset from this
2403         pragma.
2404         (handle_pragma_optimize): Remove push/pop/reset from this pragma.
2405         (option_stack): Delete static variable.
2406         (optimize_stack): Ditto.
2407         (optons_stack): New stack of saved target and optimization
2408         options.
2409         (handle_pragma_push_options): New function to handle pushing both
2410         target and optimization options.
2411         (handle_pragma_pop_options): New function to handle popping both
2412         target and optimization options.
2413         (handle_pragma_reset_options): New function to handle resetting
2414         both target and optimization options to their initial state.
2415         (init_pragma): Rename handle_pragma_option to
2416         handle_pragma_target.  Add support for push_options, pop_options,
2417         and reset_options pragmas.
2418
2419         * target-def.h (TARGET_OPTION_PRAGMA_PARSE): Change default to
2420         default_target_option_pragma_parse.
2421         (TARGET_OPTION_VALID_ATTRIBUTE_P): Change default to
2422         default_target_option_valid_attribute_p.
2423         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
2424         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
2425         (TARGET_OPTION_HOOKS): Delete the fields for whether to change
2426         optimization level on hot/cold functions.
2427
2428         * tree-inline.c (tree_can_inline_p): Disable suppressing inlining
2429         if the caller and callee have different optimization levels.
2430
2431         * c-common.c (handle_target_attribute): Rename from
2432         handle_option_attribute, attribute((option(...))) is now
2433         attribute((target(...))).  Move warning if the port does not
2434         support target attributes to the default hook.
2435         (handle_hot_attribute): Delete code to change the optimization
2436         level of hot functions.
2437         (handle_cold_attribute): Ditto.
2438
2439         * config/i386/i386-c.c (ix86_pragma_target_parse): Take a second
2440         argument that is the binary tree options to use if there are no
2441         arguments.  Call ix86_valid_target_attribute_tree instead of
2442         ix86_valid_option_attribute_tree.
2443         (ix86_pragma_target_parse): Rename from ix86_pragma_option_parse.
2444         (ix86_register_pragmas): Use ix86_pragma_target_parse instead of
2445         ix86_pragma_option_parse.
2446
2447         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
2448         Rename from ix86_valid_option_attribute_tree.
2449
2450         * config/i386/i386.c (ix86_add_new_builtins): New function to add
2451         new builtins when the ISA changes.
2452         (ix86_valid_target_attribute_tree): Rename from
2453         ix86_valid_option_attribute_tree.  Change callers.  If the
2454         function specified optimization options, use those as the starting
2455         point before setting up the target attributes.  If the
2456         optimization options were changed in the course of setting the
2457         target attributes, record the new optimization options.
2458         (ix86_valid_target_attribute_tree_inner_p): Rename from
2459         ix86_valid_option_attribute_tree_inner_p.  Change callers.  Call
2460         ix86_add_new_builtins if the ISA changed.
2461         (ix86_valid_target_attribute_p): Rename from
2462         ix86_valid_option_attribute_p.  Change callers.
2463         (enum ix86_builtins): Add IX86_BUILTIN_PCMOV to allow both
2464         __builtin_ia32_pcmov and __builtin_ia32_pcmov_v2di to be declared
2465         as delayed builtin functions.
2466         (struct builtin_isa): New structure to record builtin functions
2467         that should be delayed until the ISA for that function is used.
2468         (ix86_builtins_isa): Change from int to struct to track builtin
2469         functions we want to declare at some point.
2470         (def_builtin): If the front end can delay defining the builtin
2471         functions, don't create builtins for ISAs not part of the default
2472         options.
2473         (def_builtin_const): Ditto.
2474         (bdesc_multi_arg): Declare __builtin_ia32_pcmov and
2475         __builtin_ia32_pcmov_v2di to be different builtin functions.
2476         (ix86_expand_builtin): Changes due to ix86_builtins_isa now being
2477         a structure instead of an int.
2478         (TARGET_OPTION_VALID_ATTRIBUTE_P): Use
2479         ix86_valid_target_attribute_p, not ix86_valid_option_attribute_p.
2480         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
2481         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
2482
2483         * config/ia64/ia64.h
2484         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Delete.
2485         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Ditto.
2486
2487         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE): New
2488         hook, default to being the same as LANG_HOOKS_BUILTIN_FUNCTION.
2489         (LANG_HOOKS_INITIALIZER): Add
2490         LANG_HOOKS_BUILTIN_FUNCTION_EXT_SCOPE hook.
2491
2492 2008-08-30  Kaz Kojima  <kkojima@gcc.gnu.org>
2493
2494         PR target/37270
2495         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Generate
2496         the reload address with the index register for SFmode
2497         access with a displacement.
2498
2499 2008-08-30  Jan Hubicka  <jh@suse.cz>
2500
2501         * optabs.c (expand_abs_nojump): Update BRANCH_COST call.
2502         * fold-cost.c (LOGICAL_OP_NON_SHORT_CIRCUIT, fold_truthop): Likewise.
2503         * dojump.c (do_jump): Likewise.
2504         * ifcvt.c (MAX_CONDITIONAL_EXECUTE): Likewise.
2505         (note-if_info): Add BRANCH_COST.
2506         (noce_try_store_flag_constants, noce_try_addcc,
2507         noce_try_store_flag_mask, noce_try_cmove_arith, noce_try_cmove_arith,
2508         noce_try_cmove_arith, noce_find_if_block, find_if_case_1,
2509         find_if_case_2): Use computed branch cost.
2510         * expr.h (BRANCH_COST): Update default.
2511         * predict.c (predictable_edge_p): New function.
2512         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, emit_store_flag):
2513         Update BRANCH_COST call.
2514         * basic-block.h (predictable_edge_p): Declare.
2515         * config/alpha/alpha.h (BRANCH_COST): Update.
2516         * config/frv/frv.h (BRANCH_COST): Update.
2517         * config/s390/s390.h (BRANCH_COST): Update.
2518         * config/spu/spu.h (BRANCH_COST): Update.
2519         * config/sparc/sparc.h (BRANCH_COST): Update.
2520         * config/m32r/m32r.h (BRANCH_COST): Update.
2521         * config/i386/i386.h (BRANCH_COST): Update.
2522         * config/i386/i386.c (ix86_expand_int_movcc): Update use of BRANCH_COST.
2523         * config/sh/sh.h (BRANCH_COST): Update.
2524         * config/pdp11/pdp11.h (BRANCH_COST): Update.
2525         * config/avr/avr.h (BRANCH_COST): Update.
2526         * config/crx/crx.h (BRANCH_COST): Update.
2527         * config/xtensa/xtensa.h (BRANCH_COST): Update.
2528         * config/stormy16/stormy16.h (BRANCH_COST): Update.
2529         * config/m68hc11/m68hc11.h (BRANCH_COST): Update.
2530         * config/iq2000/iq2000.h (BRANCH_COST): Update.
2531         * config/ia64/ia64.h (BRANCH_COST): Update.
2532         * config/rs6000/rs6000.h (BRANCH_COST): Update.
2533         * config/arc/arc.h (BRANCH_COST): Update.
2534         * config/score/score.h (BRANCH_COST): Update.
2535         * config/arm/arm.h (BRANCH_COST): Update.
2536         * config/pa/pa.h (BRANCH_COST): Update.
2537         * config/mips/mips.h (BRANCH_COST): Update.
2538         * config/vax/vax.h (BRANCH_COST): Update.
2539         * config/h8300/h8300.h (BRANCH_COST): Update.
2540         * params.def (PARAM_PREDICTABLE_BRANCH_OUTCOME): New.
2541         * doc/invoke.texi (predictable-branch-cost-outcome): Document.
2542         * doc/tm.texi (BRANCH_COST): Update.
2543
2544 2008-08-30  Samuel Tardieu  <sam@rfc1149.net>
2545
2546         PR target/37283
2547         * config/arm/arm.c (arm_optimization_options): Set
2548         flag_section_anchors to 2 instead of 1 to distinguish it from
2549         -fsection-anchors given explicitely on the command line.
2550
2551 2008-08-30  Richard Sandiford  <rdsandiford@googlemail.com>
2552
2553         * recog.c (split_insn): Consider attaching a REG_EQUAL note to the
2554         final insn of a split.
2555
2556 2008-08-30  Jan Hubicka  <jh@suse.cz>
2557
2558         * postreload-gcse.c (gate_handle_gcse2): Disable for functions
2559         optimized for speed.
2560         * final.c (compute_alignments): Use optimize_bb_for_size_p.
2561         * tree-call-cdce.c (gate_call_cdce): Use optimize_function_for_speed_p.
2562         * opts.c (flag_predictive_commoning_set, flag_unswitch_loops_set,
2563         flag_gcse_after_reload_set): New static vars.
2564         (common_handle_option): Enable those flags for profile-use.
2565         (decode_options): Remove optimize_size flags that are handled
2566         on higher granuality.
2567         * tree-vectorizer.c (vectorize_loops): Use
2568         optimize_loop_nest_for_speed_p.
2569         * tree-ssa-pre.c (do_pre): Use optimize_function_for_speed_p.
2570         * tree-predcom.c (tree_predictive_commoning): Use
2571         optimize_loop_for_speed_p.
2572         * varasm.c (assemble_start_function): Use optimize_function_for_speed_p.
2573         * bb-reorder.c (rest_of_handle_reorder_blocks): Likewise.
2574         * predict.c (optimize_loop_for_speed_p): Fix walk.
2575
2576 2008-08-30  Jan Hubicka  <jh@suse.cz>
2577
2578         * ipa-inline.c (cgraph_estimate_growth): Discover self recursive
2579         functions.
2580         (cgraph_decide_inlining_of_small_function): Use edge->count to detect
2581         profile presence locally.
2582
2583 2008-08-29  Joseph Myers  <joseph@codesourcery.com>
2584
2585         PR bootstrap/37086
2586         * tree-vrp.c (find_switch_asserts): Make idx volatile for GCC
2587         versions before 4.0.
2588
2589 2008-08-29  Jan Hubicka  <jh@suse.cz>
2590
2591         * tree-inline.c (insert_init_stmt): Insert sequence even when
2592         not in SSA form.
2593
2594 2008-08-29  Jeff Law  <law@redhat.com>
2595
2596         * mn10300.c (mn10300_secondary_reload_class): We need secondary
2597         reloads for AM33-2 if IN is a pseudo with an equivalent memory
2598         location and class is an FP register.
2599
2600 2008-08-29  Jan Hubicka  <jh@suse.cz>
2601
2602         * see.c (see_merge_one_def_extension): Silence used uninitialized
2603         warning.
2604         * matrix-reorg.c (check_allocation_function): Likewise.
2605         * config/i386/driver-i386.c (detect_caches_amd): Likewise.
2606
2607 2008-08-29  Jakub Jelinek  <jakub@redhat.com>
2608
2609         PR c/37261
2610         * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
2611         compute new & and | in type rather than TREE_TYPE (arg0).
2612
2613         * dwarf2out.c (fortran_common): Update comment.
2614         (gen_variable_die): Swap com_die and var_die variables in Fortran
2615         COMMON block handling code.
2616
2617         * dwarf2out.c (descr_info_loc): Handle VAR_DECL.
2618
2619         * dwarf2out.c (gen_const_die): New function.
2620         (size_of_die, value_format, output_die): Output larger
2621         dw_val_class_vec using DW_FORM_block2 or DW_FORM_block4.
2622         (native_encode_initializer): New function.
2623         (tree_add_const_value_attribute): Call it.
2624         (gen_decl_die, dwarf2out_decl): Handle CONST_DECLs if is_fortran ().
2625
2626         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): For
2627         DECL_BY_REFERENCE decls don't pass TREE_READONLY and
2628         TREE_THIS_VOLATILE to add_type_attribute.
2629
2630         * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
2631         types.
2632         (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
2633         types.
2634
2635         * dwarf2out.c (loc_by_reference): New function.
2636         (add_location_or_const_value_attribute): Use it.
2637
2638         PR fortran/23057
2639         * dwarf2out.c (gen_variable_die): Represent Fortran COMMON vars
2640         as DW_TAG_variable children of DW_TAG_common_block rather than
2641         DW_TAG_member children.  Put DW_AT_external to individual
2642         DW_TAG_variable DIEs, not to DW_TAG_common_block.
2643
2644         * dwarf2out.c (add_bound_info): If lookup_decl_die failed, try
2645         loc_descriptor_from_tree_1.
2646
2647         PR fortran/29635
2648         PR fortran/23057
2649         * debug.h (struct gcc_debug_hooks): Add NAME and CHILD
2650         arguments to imported_module_or_decl.
2651         (debug_nothing_tree_tree): Removed.
2652         (debug_nothing_tree_tree_tree_bool): New prototype.
2653         * debug.c (do_nothing_debug_hooks): Adjust.
2654         (debug_nothing_tree_tree): Removed.
2655         (debug_nothing_tree_tree_tree_bool): New function.
2656         * dwarf2out.c (is_symbol_die): Handle DW_TAG_module.
2657         (gen_variable_die): Put all common vars for the
2658         same COMMON block under one DW_TAG_common_block.
2659         (declare_in_namespace): Return new context_die, for Fortran
2660         return the module DIE instead of adding extra declarations into
2661         the namespace.
2662         (gen_type_die_with_usage): Adjust declare_in_namespace caller.
2663         (gen_namespace_die): If is_fortran (), generate DW_TAG_module
2664         instead of DW_TAG_namespace.  If DECL_EXTERNAL is set, add
2665         DW_AT_declaration.
2666         (dwarf2out_global_decl): Don't skip Fortran global vars.
2667         (gen_decl_die): Likewise.  Adjust declare_in_namespace callers.
2668         (dwarf2out_imported_module_or_decl): Add NAME and CHILD arguments.
2669         If NAME is non-NULL, add DW_AT_name.  If CHILD is non-NULL, put
2670         DW_TAG_imported_declaration as child of previous
2671         DW_TAG_imported_module.
2672         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Adjust.
2673         * sdbout.c (sdb_debug_hooks): Likewise.
2674         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2675
2676 2008-08-29  Jan Hubicka  <jh@suse.cz>
2677
2678         * cgraph.c (cgraph_remove_node): Do not remove nested nodes.
2679
2680         * cgraph.h (cgraph_maybe_hot_edge_p): Declare.
2681         * ipa-cp.c (n_cloning_candidates): New static variable.
2682         (ipcp_print_profile_data, ipcp_function_scale_print): Forward declare.
2683         (ipcp_print_all_lattices): Improve debug output.
2684         (ipcp_cloning_candidate_p): New function.
2685         (ipcp_initialize_node_lattices): Use it.
2686         (ipcp_init_stage): Do only analyzis here; prettier debug output.
2687         (ipcp_propagate_stage): Prettier debug output.
2688         (ipcp_iterate_stage): Initialize latices here; prettier debug output.
2689         (ipcp_print_all_structures): Remove.
2690         (ipcp_need_redirect_p): Test !n_cloning_candidates.
2691         (ipcp_insert_stage): Prettier debug output; call
2692         cgraph_remove_unreachable_nodes before propagating.
2693         (pass_ipa_cp): Schedule function removal pass.
2694         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Better
2695         debug output.
2696         (cgraph_maybe_hot_edge_p): Move to ...
2697         * predict.c (cgraph_maybe_hot_edge_p) ... here.
2698         * opts.c (flag_ipa_cp_set, flag_ipa_cp_clone_set): New.
2699         (common_handle_option): Set them; enable ipa-cp when profiling.
2700         * ipa-prop.c (ipa_print_node_jump_functions): Prettier output.
2701         (ipa_print_all_jump_functions): Likewise.
2702         (ipa_print_all_tree_maps, ipa_print_node_param_flags): Remove.
2703         (ipa_print_node_params, ipa_print_all_params): New.
2704         * ipa-prop.h (ipa_print_all_tree_maps, ipa_print_node_param_flags,
2705         ipa_print_all_param_flags): Remove.
2706         (ipa_print_node_params, ipa_print_all_params): New.
2707
2708 2008-08-29  Bob Wilson  <bob.wilson@acm.org>
2709
2710         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Revert
2711         change from 2008-04-03.
2712         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Define.
2713
2714 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
2715
2716         PR rtl-opt/37251
2717         * ira-color.c (push_allocnos_to_stack): Truncate
2718         removed_splay_allocno_vec.
2719
2720 2008-08-29  Vladimir Makarov  <vmakarov@redhat.com>
2721
2722         PR rtl-opt/37243
2723         * ira-color (ira_fast_allocation): Don't assign hard registers to
2724         global allocnos.
2725
2726 2008-08-29  Jan Hubicka  <jh@suse.cz>
2727
2728         PR middle-end/37278
2729         * predict.c (optimize_loop_nest_for_speed_p): Do not ICE
2730         for cold internal loops.
2731
2732 2008-08-29  Richard Guenther  <rguenther@suse.de>
2733
2734         * tree-ssa-structalias.c (create_variable_info_for): Do not
2735         create fields for heap vars or vars with a noalias state.
2736         For NO_ALIAS_ANYTHING variables add a self-constraint, not one
2737         from ESCAPED.
2738
2739 2008-08-29  Richard Guenther  <rguenther@suse.de>
2740
2741         * common.opt (ftree-store-ccp): Mark as preserved for
2742         backward compatibility.
2743         * doc/invoke.texi (-ftree-store-ccp): Remove documentation.
2744         * tree-pass.h (pass_store_ccp): Remove.
2745         * tree-ssa-propagate.h (struct prop_value_d): Remove mem_ref field.
2746         (first_vdef): Remove declaration.
2747         (get_value_loaded_by): Likewise.
2748         * tree-ssa-ccp.c (do_store_ccp): Remove.
2749         (get_default_value): Simplify as do_store_ccp is always false
2750         now.  Do not initialize mem_ref.
2751         (set_value_varying): Likewise.
2752         (canonicalize_float_value): Likewise.
2753         (set_lattice_value): Likewise.
2754         (likely_value): Likewise.
2755         (surely_varying_stmt_p): Likewise.
2756         (ccp_initialize): Likewise.
2757         (ccp_lattice_meet): Likewise.
2758         (ccp_visit_phi_node): Likewise.
2759         (ccp_fold): Likewise.
2760         (evaluate_stmt): Likewise.
2761         (visit_assignment): Likewise.
2762         (ccp_visit_stmt): Likewise.
2763         (execute_ssa_ccp): Fold into ...
2764         (do_ssa_ccp): ... this.
2765         (do_ssa_store_ccp): Remove.
2766         (gate_store_ccp): Likewise.
2767         (pass_store_ccp): Likewise.
2768         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not
2769         initialize mem_ref.
2770         * tree-ssa-propagate.c (first_vdef): Remove.
2771         (get_value_loaded_by): Likewise.
2772         (replace_vuses_in): Likewise.
2773         (substitute_and_fold): Do not call replace_vuses_in.
2774         * opts.c (decode_options): Do not set flag_tree_store_ccp.
2775
2776 2008-08-29  Richard Guenther  <rguenther@suse.de>
2777
2778         PR middle-end/37236
2779         * tree-ssa-structalias.c (intra_create_variable_infos): Mark
2780         PARAM_NOALIAS tags with is_heapvar.
2781         * tree-ssa-operands.c (access_can_touch_variable): Offset
2782         based tests do not apply for heapvars.  Fix offset test.
2783
2784 2008-08-29  Jan Hubicka  <jh@suse.cz>
2785
2786         * doc/invoke.texi (-fipa-cp): Enabled by default at -O2/-Os/-O3
2787         (-fipa-cp-clone): Enabled by default at -O3.
2788         * opts.c (decode_options): Enable ipa-cp at -O2, ipa-cp-clone at -O3;
2789         make ipa-cp-clone to imply ipa-cp; disable cloning at -Os.
2790
2791 2008-08-29  Jan Hubicka  <jh@suse.cz>
2792
2793         * tree.c (build_function_type_skip_args, build_function_decl_skip_args):
2794         New functions.
2795         * tree.h (build_function_type_skip_args, build_function_decl_skip_args):
2796         Declare.
2797         * gimple.c (giple_copy_call_skip_args): New function.
2798         (giple_copy_call_skip_args): Declare.
2799
2800         * cgraph.h (cgraph_function_versioning): Add skip_args arugmnet
2801         * ipa-cp.c (ipcp_node_not_modifiable_p): Rename to ...
2802         (ipcp_node_modifiable_p): ... this one; use tree_versionable_function_p.
2803         (ipcp_create_replace_map): Improve debug output.
2804         (ipcp_need_redirect_p): Return false when not clonning.
2805         (ipcp_update_callgraph): Skip args.
2806         (ipcp_insert_stage): UPdate call of !ipcp_node_modifiable_p;
2807         skip args.
2808         * cgraphunit.c (cgraph_function_versioning): Add skip_args argument.
2809         (save_inline_function_body): Update call of tree_function_versioning.
2810         * ipa-prop.c (ipa_edge_removal_hook): Do not ICE on unanalyzed nodes.
2811         * tree-inline.c (copy_arguments_for_versioning): Add skip_args argument.
2812         (tree_function_versioning): Likewise.
2813         * tree-inline.h (tree_function_versioning): Update prototype.
2814
2815 2008-08-29  Jan Hubicka  <jh@suse.cz>
2816
2817         * loop-unswitch.c (unswitch_single_loop): Use optimize_loop_for_speed_p.
2818         * tree-ssa-threadupdate.c (mark_threaded_blocks):
2819         Use optimize_function_for_size_p.
2820         * tracer.c (ignore_bb_p): Use optimize_bb_for_size_p.
2821         * postreload-gcse.c (eliminate_partially_redundant_load):
2822         Use optimize_bb_for_size_p.
2823         * value-prof.c (gimple_divmod_fixed_value_transform,
2824         gimple_mod_pow2_value_transform, gimple_mod_subtract_transform,
2825         gimple_stringops_transform): Use optimize_bb_for_size_p.
2826         * ipa-cp.c (ipcp_insert_stage): Use optimize_function_for_size_p.
2827         * final.c (compute_alignments): Use optimize_function_for_size_p.
2828         * builtins.c (fold_builtin_cabs): Use optimize_function_for_speed_p.
2829         (fold_builtin_strcpy, fold_builtin_fputs): Use
2830         optimize_function_for_size_p.
2831         * fold-const.c (tree_swap_operands_p): Use optimize_function_for_size_p.
2832         * recog.c (relax_delay_slots): Likewise.
2833         * tree-ssa-math-opts.c (replace_reciprocal):
2834         Use optimize_bb_for_speed_p.
2835         (execute_cse_reciprocals): Use optimize_bb_for_size_p.
2836         * ipa-inline.c (cgraph_decide_recursive_inlining): Use
2837         optimize_function_for_size_p.
2838         (cgraph_decide_inlining_of_small_function): Use
2839         optimize_function_for_size_p.
2840         * global.c (find_reg): Use optimize_function_for_size_p.
2841         * opts.c (decode_options): Do not clear flag_tree_ch,
2842         flag_inline_functions, flag_unswitch_loops, flag_unroll_loops,
2843         flag_unroll_all_loops and flag_prefetch_loop_arrays. Those can
2844         work it out from profile.
2845         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Use
2846         optimize_loop_for_speed_p.
2847         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p): Constify
2848         argument.
2849         (optimize_loop_nest_for_size_p, optimize_loop_nest_for_speed_p): New.
2850         * tree-parloops.c (parallelize_loops): Use optimize_loop_for_size_p.
2851         * tree-eh.c (decide_copy_try_finally): Use optimize_function_for_size_p.
2852         * local-alloc.c (block_alloc): Pass BB pointer.
2853         (find_free_reg): Add BB pointer, use optimize_bb_for_size_p.
2854         * gcse.c (gcse_main): Use optimize_function_for_size_p.
2855         * loop-unroll.c (decide_unrolling_and_peeling):
2856         Use optimize_loop_for_size_p.
2857         (decide_peel_completely): Likewise.
2858         * tree-vect-analyze.c (vect_mark_for_runtime_alias_test): Use
2859         optimize_loop_for_size_p.
2860         (vect_enhance_data_refs_alignment): Likewise.
2861         * tree-ssa-coalesce.c (coalesce_cost): Add optimize_for_size argument.
2862         (coalesce_cost_bb, coalesce_cost_edge, create_outofssa_var_map):
2863         Update call.
2864         * cfgcleanup.c (outgoing_edges_match): Use optimize_bb_for_speed_p.
2865         (try_crossjump_bb): Use optimize_bb_for_size_p.
2866         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
2867         optimize_loop_for_speed_p.
2868         * bb-reorder.c (find_traces_1_round): Likewise.
2869         (copy_bb): Use optimize_bb_for_speed_p.
2870         (duplicate_computed_gotos): Likewise.
2871         * basic-block.h (optimize_loop_nest_for_size_p,
2872         optimize_loop_nest_for_speed_p): New.
2873         * stmt.c (expand_case): Use optimize_insn_for_size_p.
2874
2875 2008-08-29  Tristan Gingold  <gingold@adacore.com>
2876
2877         * gcov.c (main): Call expandargv.
2878
2879 2008-08-29  Jan Hubicka  <jh@suse.cz>
2880
2881         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
2882         is not cold.
2883         * predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
2884         Constify arguments.
2885         (optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
2886         * basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
2887         Constify.
2888         (optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
2889
2890 2008-08-29  Jan Hubicka  <jh@suse.cz>
2891
2892         * tree-pass.h (pass_strip_predict_hints): Declare.
2893         * predict.c (strip_builtin_expect): Rename to ...
2894         (strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
2895         (tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
2896         (tree_estimate_probability): Do not strip builtin_expect.
2897         (pass_strip_predict_hints): New pass.
2898         * tree-inline.c (expand_call_inline): When inlining cold function,
2899         predict it as unlikely.
2900         * passes.c (init_optimization_passes): Add pass_strip_predict_hints.
2901
2902 2008-08-29  Richard Guenther  <rguenther@suse.de>
2903
2904         PR tree-optimization/37207
2905         * tree-vrp.c (extract_range_from_binary_expr): Also try
2906         to constant fold if only one of the operands is a constant.
2907
2908 2008-08-29  Nick Clifton  <nickc@redhat.com>
2909
2910         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Treat LABEL_REFs in
2911         the same way as SYMBOL_REFs.
2912
2913 2008-08-28  Bob Wilson  <bob.wilson@acm.org>
2914
2915         * config/xtensa/xtensa.md (<u>mulsidi3): Use a temporary register.
2916
2917 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
2918
2919         * config/mips/mips.h (ISA_HAS_BBIT): New macro.
2920         * config/mips/mips.md (branch_likely): Remove const.  Fix
2921         comment formatting.
2922         (define_delay for type "branch"): Change to only apply for branch
2923         with likely variant.
2924         (define_delay for type "branch" and "branch_likely" no).  New delay
2925         definition.
2926         (equality_op): New code iterator.
2927         (bbv, bbinv): New code attributes.
2928         (*branch_bit<bbv><mode>, *branch_bit<bbv><mode>_inverted): New
2929         patterns.
2930
2931 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2932             Andrew Pinski  <pinskia@gcc.gnu.org>
2933
2934         PR 18050
2935         * c-common.c (verify_tree): Fix handling of ADDR_EXPR.
2936
2937 2008-08-28  Paolo Carlini  <paolo.carlini@oracle.com>
2938
2939         * gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
2940         rule that a symbolic constant must be defined and >= 0 for the
2941         corresponding facility to be present at compile-time.
2942         * gthr-posix.c: Likewise.
2943
2944 2008-08-28  Adam Nemet  <anemet@caviumnetworks.com>
2945
2946         * config/mips/mips.h (ISA_HAS_DMUL3): New macro.
2947         * config/mips/mips.md (D): New mode attribute.
2948         (mulsi3, muldi3): Merge it into ...
2949         (mul<mode>3): ... new template.  Use _mul3 ending for 3-op patterns.
2950         (muldi3_mul3): New pattern.
2951         (mulsi3_mult3): Rename to mulsi3_mul3.
2952
2953 2008-08-28  Jan Hubicka  <jh@suse.cz>
2954
2955         * expmed.c (store_bit_field_1): Be prepared for movstrict expander
2956         to fail.
2957         * predict.c (always_optimize_for_size_p): Rename to ...
2958         (optimize_function_for_size): ... this one; make extern.
2959         (optimize_function_for_speed_p): New.
2960         (optimize_bb_for_size_p, optimize_bb_for_size_p,
2961         optimize_edge_for_size_p,optimize_edge_for_size_p,
2962         optimize_insn_for_size_p, optimize_insn_for_size_p): Update.
2963         * basic-block.h (optimize_function_for_size_p,
2964         optimize_function_for_speed_p): Declare.
2965         * i386.md (optimize_size checks): Replace them by appropriate
2966         predicate.
2967         (standard_80387_constant_p, ix86_compute_frame_layout,
2968         ix86_expand_epilogue, ix86_decompose_address,
2969         print_operand, emit_i387_cw_initialization,
2970         inline_memory_move_cost, ix86_pad_returns,
2971         ix86_reorg): Replace optimize_size checks.
2972
2973 2008-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
2974
2975         * rtl.h (simplify_subreg_regno): Declare.
2976         * rtlanal.c (simplify_subreg_regno): New function, split out from...
2977         * simplify-rtx.c (simplify_subreg): ...here.
2978         * reload.c (find_reloads): Use simplify_subreg_regno instead of
2979         subreg_offset_representable_p.
2980
2981 2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2982
2983         PR c/30949
2984         * c-typeck.c (convert_for_assignment): Give a note describing what
2985         was passed and what was expected.
2986
2987 2008-08-28  Joey Ye  <joey.ye@intel.com>
2988
2989         * doc/extend.texi: Document AVX built-in functions.
2990         * doc/invoke.texi: Document -mavx.
2991
2992 2008-08-28  H.J. Lu  <hongjiu.lu@intel.com>
2993             Joey Ye  <joey.ye@intel.com>
2994             Xuepeng Guo  <xuepeng.guo@intel.com>
2995
2996         * config.gcc (extra_headers): Add gmmintrin.h for x86 and x86-64.
2997
2998         * config/i386/cpuid.h (bit_FMA): New.
2999         (bit_XSAVE): Likewise.
3000         (bit_OSXSAVE): Likewise.
3001         (bit_AVX): Likewise.
3002
3003         * config/i386/gas.h (ASM_OUTPUT_OPCODE): Undefine before
3004         define.  Use ASM_OUTPUT_AVX_PREFIX.
3005
3006         * config/i386/gmmintrin.h: New.
3007
3008         * config/i386/i386.c (x86_64_reg_class): Add X86_64_AVX_CLASS.
3009         (OPTION_MASK_ISA_AVX_SET): New.
3010         (OPTION_MASK_ISA_FMA_SET): Likewise.
3011         (OPTION_MASK_ISA_AVX_UNSET): Likewise.
3012         (OPTION_MASK_ISA_FMA_SET): Likewise.
3013         (OPTION_MASK_ISA_SSE4_2_UNSET): Updated.
3014         (ix86_handle_option): Handle OPT_mavx and OPT_mfma.
3015         (pta_flags): Add PTA_AVX and PTA_FMA.
3016         (override_options): Handle PTA_AVX and PTA_FMA.
3017         (init_cumulative_args): Handle warn_avx.
3018         (classify_argument): Return 0 for COImode and OImode.  Return
3019         1 and X86_64_AVX_CLASS for 256bit vector types.
3020         (examine_argument): Handle X86_64_AVX_CLASS.
3021         (construct_container): Likewise.
3022         (function_arg_advance_32): Pass OImode and 256bit vector types
3023         in AVX register.
3024         (function_arg_advance_64): Take a new argument to indicate if a
3025         parameter is named.  Handle 256bit vector types.  Return
3026         immediately for unnamed 256bit vector mode parameters.
3027         (function_arg_advance): Updated.
3028         (function_arg_32): Add comments for TImode.  Handle OImode
3029         and 256bit vector types.
3030         (function_arg_64): Take a new argument to indicate if a
3031         parameter is named.  Handle 256bit vector types.  Return NULL
3032         for unnamed 256bit vector mode parameters.
3033         (function_arg): Updated.
3034         (setup_incoming_varargs_64): Support
3035         AVX encoding for *sse_prologue_save_insn.
3036         (ix86_gimplify_va_arg): Handle 256bit vector mode parameters.
3037         (standard_sse_constant_p): Return -2 for all 1s if SSE2 isn't
3038         enabled.  For all 1s in 256bit vector modes, return 3 if AVX is
3039         enabled, otherwise return -3.
3040         (standard_sse_constant_opcode): Handle AVX and 256bit vector
3041         modes.
3042         (print_reg): Support AVX registers.  Handle 'x' and 't'.
3043         Handle 'd' to duplicate the operand.
3044         (print_operand): Likewise.  Also support AVX vector compare
3045         instructions.
3046         (output_387_binary_op): Support AVX.
3047         (output_fp_compare): Likewise.
3048         (ix86_expand_vector_move_misalign): Likewise.
3049         (ix86_attr_length_vex_default): New.
3050         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
3051         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
3052         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
3053         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
3054         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_BLENDPD256,
3055         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
3056         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DIVPD256,
3057         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_DPPS256,
3058         IX86_BUILTIN_HADDPD256, IX86_BUILTIN_HADDPS256,
3059         IX86_BUILTIN_HSUBPD256, IX86_BUILTIN_HSUBPS256,
3060         IX86_BUILTIN_MAXPD256, IX86_BUILTIN_MAXPS256,
3061         IX86_BUILTIN_MINPD256, IX86_BUILTIN_MINPS256,
3062         IX86_BUILTIN_MULPD256, IX86_BUILTIN_MULPS256,
3063         IX86_BUILTIN_ORPD256, IX86_BUILTIN_ORPS256,
3064         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
3065         IX86_BUILTIN_SUBPD256, IX86_BUILTIN_SUBPS256,
3066         IX86_BUILTIN_XORPD256, IX86_BUILTIN_XORPS256,
3067         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
3068         IX86_BUILTIN_CMPPS, IX86_BUILTIN_CMPPD256,
3069         IX86_BUILTIN_CMPPS256, IX86_BUILTIN_CVTDQ2PD256,
3070         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
3071         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
3072         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
3073         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_EXTRACTF128PD256,
3074         IX86_BUILTIN_EXTRACTF128PS256, IX86_BUILTIN_EXTRACTF128SI256,
3075         IX86_BUILTIN_VZEROALL, IX86_BUILTIN_VZEROUPPER,
3076         IX86_BUILTIN_VZEROUPPER_REX64, IX86_BUILTIN_VPERMILVARPD,
3077         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
3078         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_VPERMILPD,
3079         IX86_BUILTIN_VPERMILPS, IX86_BUILTIN_VPERMILPD256,
3080         IX86_BUILTIN_VPERMILPS256, IX86_BUILTIN_VPERMIL2PD,
3081         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256,
3082         IX86_BUILTIN_VPERMIL2PS256, IX86_BUILTIN_VPERM2F128PD256,
3083         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
3084         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
3085         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
3086         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_VINSERTF128PD256,
3087         IX86_BUILTIN_VINSERTF128PS256, IX86_BUILTIN_VINSERTF128SI256,
3088         IX86_BUILTIN_LOADUPD256, IX86_BUILTIN_LOADUPS256,
3089         IX86_BUILTIN_STOREUPD256, IX86_BUILTIN_STOREUPS256,
3090         IX86_BUILTIN_LDDQU256, IX86_BUILTIN_LOADDQU256,
3091         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_MASKLOADPD,
3092         IX86_BUILTIN_MASKLOADPS, IX86_BUILTIN_MASKSTOREPD,
3093         IX86_BUILTIN_MASKSTOREPS, IX86_BUILTIN_MASKLOADPD256,
3094         IX86_BUILTIN_MASKLOADPS256, IX86_BUILTIN_MASKSTOREPD256,
3095         IX86_BUILTIN_MASKSTOREPS256, IX86_BUILTIN_MOVSHDUP256,
3096         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
3097         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
3098         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
3099         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
3100         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
3101         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
3102         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
3103         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
3104         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
3105         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
3106         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
3107         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
3108         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
3109         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
3110         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
3111         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
3112         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
3113         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256
3114         and IX86_BUILTIN_MOVMSKPS256,
3115         (ix86_special_builtin_type): Add V32QI_FTYPE_PCCHAR,
3116         V8SF_FTYPE_PCV4SF, V8SF_FTYPE_PCFLOAT, V4DF_FTYPE_PCV2DF,
3117         V4DF_FTYPE_PCDOUBLE, V8SF_FTYPE_PCV8SF_V8SF,
3118         V4DF_FTYPE_PCV4DF_V4DF, V4SF_FTYPE_PCV4SF_V4SF,
3119         V2DF_FTYPE_PCV2DF_V2DF, VOID_FTYPE_PCHAR_V32QI,
3120         VOID_FTYPE_PFLOAT_V8SF, VOID_FTYPE_PDOUBLE_V4DF,
3121         VOID_FTYPE_PV8SF_V8SF_V8SF, VOID_FTYPE_PV4DF_V4DF_V4DF,
3122         VOID_FTYPE_PV4SF_V4SF_V4SF and VOID_FTYPE_PV2DF_V2DF_V2DF,
3123         (ix86_builtin_type): Add INT_FTYPE_V8SF_V8SF_PTEST,
3124         INT_FTYPE_V4DI_V4DI_PTEST, INT_FTYPE_V4DF_V4DF_PTEST,
3125         INT_FTYPE_V4SF_V4SF_PTEST, INT_FTYPE_V2DF_V2DF_PTEST,
3126         INT_FTYPE_V8SF, INT_FTYPE_V4DF, V8SI_FTYPE_V8SF, V8SI_FTYPE_V4SI,
3127         V8SF_FTYPE_V8SF, V8SF_FTYPE_V8SI, V8SF_FTYPE_V4SF,
3128         V4SI_FTYPE_V8SI, V4SI_FTYPE_V4DF, V4DF_FTYPE_V4DF,
3129         V4DF_FTYPE_V4SI, V4DF_FTYPE_V4SF, V4DF_FTYPE_V2DF,
3130         V4SF_FTYPE_V4DF, V4SF_FTYPE_V8SF, V2DF_FTYPE_V4DF,
3131         V8SF_FTYPE_V8SF_V8SF, V8SF_FTYPE_V8SF_V8SI,
3132         V4DF_FTYPE_V4DF_V4DF, V4DF_FTYPE_V4DF_V4DI,
3133         V4SF_FTYPE_V4SF_V4SI, V2DF_FTYPE_V2DF_V2DI,
3134         V8SF_FTYPE_V8SF_INT, V4SI_FTYPE_V8SI_INT, V4SF_FTYPE_V8SF_INT,
3135         V2DF_FTYPE_V4DF_INT, V4DF_FTYPE_V4DF_INT,
3136         V8SF_FTYPE_V8SF_V8SF_V8SF, V4DF_FTYPE_V4DF_V4DF_V4DF,
3137         V8SI_FTYPE_V8SI_V8SI_INT, V8SF_FTYPE_V8SF_V8SF_INT,
3138         V4DF_FTYPE_V4DF_V4DF_INT, V4DF_FTYPE_V4DF_V2DF_INT,
3139         V8SF_FTYPE_V8SF_V8SF_V8SI_INT, V4DF_FTYPE_V4DF_V4DF_V4DI_INT,
3140         V4SF_FTYPE_V4SF_V4SF_V4SI_INT and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
3141         (bdesc_special_args): Add IX86_BUILTIN_VZEROALL,
3142         IX86_BUILTIN_VZEROUPPER. IX86_BUILTIN_VZEROUPPER_REX64,
3143         IX86_BUILTIN_VBROADCASTSS, IX86_BUILTIN_VBROADCASTSD256,
3144         IX86_BUILTIN_VBROADCASTSS256, IX86_BUILTIN_VBROADCASTPD256,
3145         IX86_BUILTIN_VBROADCASTPS256, IX86_BUILTIN_LOADUPD256,
3146         IX86_BUILTIN_LOADUPS256, IX86_BUILTIN_STOREUPD256,
3147         IX86_BUILTIN_STOREUPS256, IX86_BUILTIN_LOADDQU256,
3148         IX86_BUILTIN_STOREDQU256, IX86_BUILTIN_LDDQU256,
3149         IX86_BUILTIN_MASKLOADPD, IX86_BUILTIN_MASKLOADPS,
3150         IX86_BUILTIN_MASKLOADPD256, IX86_BUILTIN_MASKLOADPS256,
3151         IX86_BUILTIN_MASKSTOREPD, IX86_BUILTIN_MASKSTOREPS,
3152         IX86_BUILTIN_MASKSTOREPD256 and IX86_BUILTIN_MASKSTOREPS256.
3153         (ix86_builtins): Add IX86_BUILTIN_ADDPD256,
3154         IX86_BUILTIN_ADDPS256, IX86_BUILTIN_ADDSUBPD256,
3155         IX86_BUILTIN_ADDSUBPS256, IX86_BUILTIN_ANDPD256,
3156         IX86_BUILTIN_ANDPS256, IX86_BUILTIN_ANDNPD256,
3157         IX86_BUILTIN_ANDNPS256, IX86_BUILTIN_DIVPD256,
3158         IX86_BUILTIN_DIVPS256, IX86_BUILTIN_HADDPD256,
3159         IX86_BUILTIN_HSUBPS256, IX86_BUILTIN_HSUBPD256,
3160         IX86_BUILTIN_HADDPS256, IX86_BUILTIN_MAXPD256,
3161         IX86_BUILTIN_MAXPS256, IX86_BUILTIN_MINPD256,
3162         IX86_BUILTIN_MINPS256, IX86_BUILTIN_MULPD256,
3163         IX86_BUILTIN_MULPS256, IX86_BUILTIN_ORPD256,
3164         IX86_BUILTIN_ORPS256, IX86_BUILTIN_SUBPD256,
3165         IX86_BUILTIN_SUBPS256, IX86_BUILTIN_XORPD256,
3166         IX86_BUILTIN_XORPS256, IX86_BUILTIN_VPERMILVARPD,
3167         IX86_BUILTIN_VPERMILVARPS, IX86_BUILTIN_VPERMILVARPD256,
3168         IX86_BUILTIN_VPERMILVARPS256, IX86_BUILTIN_BLENDPD256,
3169         IX86_BUILTIN_BLENDPS256, IX86_BUILTIN_BLENDVPD256,
3170         IX86_BUILTIN_BLENDVPS256, IX86_BUILTIN_DPPS256,
3171         IX86_BUILTIN_SHUFPD256, IX86_BUILTIN_SHUFPS256,
3172         IX86_BUILTIN_CMPSD, IX86_BUILTIN_CMPSS, IX86_BUILTIN_CMPPD,
3173         IX86_BUILTIN_CMPPS,
3174         IX86_BUILTIN_CMPPD256,IX86_BUILTIN_CMPPS256,
3175         IX86_BUILTIN_EXTRACTF128PD256, IX86_BUILTIN_EXTRACTF128PS256,
3176         IX86_BUILTIN_EXTRACTF128SI256, IX86_BUILTIN_CVTDQ2PD256,
3177         IX86_BUILTIN_CVTDQ2PS256, IX86_BUILTIN_CVTPD2PS256,
3178         IX86_BUILTIN_CVTPS2DQ256, IX86_BUILTIN_CVTPS2PD256,
3179         IX86_BUILTIN_CVTTPD2DQ256, IX86_BUILTIN_CVTPD2DQ256,
3180         IX86_BUILTIN_CVTTPS2DQ256, IX86_BUILTIN_VPERM2F128PD256,
3181         IX86_BUILTIN_VPERM2F128PS256, IX86_BUILTIN_VPERM2F128SI256,
3182         IX86_BUILTIN_VPERMILPD, IX86_BUILTIN_VPERMILPS,
3183         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
3184         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMILPS,
3185         IX86_BUILTIN_VPERMILPD256, IX86_BUILTIN_VPERMILPS256,
3186         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
3187         IX86_BUILTIN_VPERMIL2PD256, IX86_BUILTIN_VPERMIL2PS256,
3188         IX86_BUILTIN_VINSERTF128PD256, IX86_BUILTIN_VINSERTF128PS256,
3189         IX86_BUILTIN_VINSERTF128SI256, IX86_BUILTIN_MOVSHDUP256,
3190         IX86_BUILTIN_MOVSLDUP256, IX86_BUILTIN_MOVDDUP256,
3191         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS256,
3192         IX86_BUILTIN_SQRTPS_NR256, IX86_BUILTIN_RSQRTPS256,
3193         IX86_BUILTIN_RSQRTPS_NR256, IX86_BUILTIN_RCPPS256,
3194         IX86_BUILTIN_ROUNDPD256, IX86_BUILTIN_ROUNDPS256,
3195         IX86_BUILTIN_UNPCKHPD256, IX86_BUILTIN_UNPCKLPD256,
3196         IX86_BUILTIN_UNPCKHPS256, IX86_BUILTIN_UNPCKLPS256,
3197         IX86_BUILTIN_SI256_SI, IX86_BUILTIN_PS256_PS,
3198         IX86_BUILTIN_PD256_PD, IX86_BUILTIN_SI_SI256,
3199         IX86_BUILTIN_PS_PS256, IX86_BUILTIN_PD_PD256,
3200         IX86_BUILTIN_VTESTZPD, IX86_BUILTIN_VTESTCPD,
3201         IX86_BUILTIN_VTESTNZCPD, IX86_BUILTIN_VTESTZPS,
3202         IX86_BUILTIN_VTESTCPS, IX86_BUILTIN_VTESTNZCPS,
3203         IX86_BUILTIN_VTESTZPD256, IX86_BUILTIN_VTESTCPD256,
3204         IX86_BUILTIN_VTESTNZCPD256, IX86_BUILTIN_VTESTZPS256,
3205         IX86_BUILTIN_VTESTCPS256, IX86_BUILTIN_VTESTNZCPS256,
3206         IX86_BUILTIN_PTESTZ256, IX86_BUILTIN_PTESTC256,
3207         IX86_BUILTIN_PTESTNZC256, IX86_BUILTIN_MOVMSKPD256 and
3208         IX86_BUILTIN_MOVMSKPS256.
3209         (ix86_init_mmx_sse_builtins): Support AVX builtins.
3210         (ix86_expand_args_builtin): Likewise.
3211         (ix86_expand_special_args_builtin): Likewise.
3212         (ix86_hard_regno_mode_ok): Handle AVX modes.
3213         (ix86_expand_vector_init_duplicate): Likewise.
3214         (ix86_expand_vector_init_one_nonzero): Likewise.
3215         (ix86_expand_vector_init_one_var): Likewise.
3216         (ix86_expand_vector_init_concat): Likewise.
3217         (ix86_expand_vector_init_general): Likewise.
3218         (ix86_expand_vector_set): Likewise.
3219         (ix86_vector_mode_supported_p): Likewise.
3220         (x86_extended_reg_mentioned_p): Check INSN_P before using
3221         PATTERN.
3222
3223         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
3224         OPTION_MASK_ISA_AVX and OPTION_MASK_ISA_FMA.
3225
3226         * config/i386/i386.h (TARGET_AVX): New.
3227         (TARGET_FMA): Likewise.
3228         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AVX and TARGET_FMA.
3229         (BIGGEST_ALIGNMENT): Set to 256 for TARGET_AVX.
3230         (VALID_AVX256_REG_MODE): New.
3231         (AVX256_VEC_FLOAT_MODE_P): Likewise.
3232         (AVX_FLOAT_MODE_P): Likewise.
3233         (AVX128_VEC_FLOAT_MODE_P): Likewise.
3234         (AVX256_VEC_FLOAT_MODE_P): Likewise.
3235         (AVX_VEC_FLOAT_MODE_P): Likewise.
3236         (ASM_OUTPUT_AVX_PREFIX): Likewise.
3237         (ASM_OUTPUT_OPCODE): Likewise.
3238         (UNITS_PER_SIMD_WORD): Add a FIXME for 32byte vectorizer
3239         support.
3240         (SSE_REG_MODE_P): Allow 256bit vector modes.
3241         (ix86_args): Add a warn_avx field.
3242
3243         * config/i386/i386.md (UNSPEC_PCMP): New.
3244         (UNSPEC_VPERMIL): Likewise.
3245         (UNSPEC_VPERMIL2): Likewise.
3246         (UNSPEC_VPERMIL2F128): Likewise.
3247         (UNSPEC_MASKLOAD): Likewise.
3248         (UNSPEC_MASKSTORE): Likewise.
3249         (UNSPEC_CAST): Likewise.
3250         (UNSPEC_VTESTP): Likewise.
3251         (UNSPECV_VZEROALL): Likewise.
3252         (UNSPECV_VZEROUPPER): Likewise.
3253         (XMM0_REG): Likewise.
3254         (XMM1_REG): Likewise.
3255         (XMM2_REG): Likewise.
3256         (XMM3_REG): Likewise.
3257         (XMM4_REG): Likewise.
3258         (XMM5_REG): Likewise.
3259         (XMM6_REG): Likewise.
3260         (XMM8_REG): Likewise.
3261         (XMM9_REG): Likewise.
3262         (XMM10_REG): Likewise.
3263         (XMM11_REG): Likewise.
3264         (XMM12_REG): Likewise.
3265         (XMM13_REG): Likewise.
3266         (XMM14_REG): Likewise.
3267         (XMM15_REG): Likewise.
3268         (prefix): Likewise.
3269         (prefix_vex_imm8): Likewise.
3270         (prefix_vex_w): Likewise.
3271         (length_vex): Likewise.
3272         (maxmin): Likewise.
3273         (movoi): Likewise.
3274         (*avx_ashlti3): Likewise.
3275         (*avx_lshrti3): Likewise.
3276         (*avx_setcc<mode>): Likewise.
3277         (*fop_<mode>_comm_mixed_avx): Likewise.
3278         (*fop_<mode>_comm_avx): Likewise.
3279         (*fop_<mode>_1_mixed_avx): Likewise.
3280         (*fop_<mode>_1_avx): Likewise.
3281         (*avx_<code><mode>3): Likewise.
3282         (*avx_ieee_smin<mode>3): Likewise.
3283         (*avx_ieee_smax<mode>3): Likewise.
3284         (mode): Add OI, V8SF and V4DF.
3285         (length): Support VEX prefix.
3286         (*cmpfp_i_mixed): Set prefix attribute.
3287         (*cmpfp_i_sse): Likewise.
3288         (*cmpfp_iu_mixed): Likewise.
3289         (*cmpfp_iu_sse): Likewise.
3290         (*movsi_1): Support AVX.
3291         (*movdi_2): Likewise.
3292         (*movdi_1_rex64): Likewise.
3293         (*movti_internal): Likewise.
3294         (*movti_rex64): Likewise.
3295         (*movsf_1): Likewise.
3296         (*movdf_nointeger): Likewise.
3297         (*movdf_integer_rex64): Likewise.
3298         (*movtf_internal): Likewise.
3299         (zero_extendsidi2_32): Likewise.
3300         (zero_extendsidi2_rex64): Likewise.
3301         (*extendsfdf2_mixed): Likewise.
3302         (*extendsfdf2_sse): Likewise.
3303         (*truncdfsf_fast_mixed): Likewise.
3304         (*truncdfsf_fast_sse): Likewise.
3305         (*truncdfsf_mixed): Likewise.
3306         (fix_trunc<mode>di_sse): Likewise.
3307         (fix_trunc<mode>si_sse): Likewise.
3308         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
3309         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
3310         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
3311         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
3312         (*rcpsf2_sse): Likewise.
3313         (*rsqrtsf2_sse): Likewise.
3314         (*sqrt<mode>2_sse): Likewise.
3315         (sse4_1_round<mode>2): Likewise.
3316         (*sse_prologue_save_insn): Disallow REX prefix for AVX.
3317         Support AVX.  Set length attribute properly for AVX.
3318
3319         * config/i386/i386-modes.def (VECTOR_MODES (INT, 32)): New.
3320         (VECTOR_MODES (FLOAT, 32)): Likewise.
3321         (VECTOR_MODE (INT, DI, 8)): Likewise.
3322         (VECTOR_MODE (INT, HI, 32)): Likewise.
3323         (VECTOR_MODE (INT, QI, 64)): Likewise.
3324         (VECTOR_MODE (FLOAT, DF, 8)): Likewise.
3325         (VECTOR_MODE (FLOAT, SF, 16)): Likewise.
3326         (VECTOR_MODE (INT, DI, 4)): Removed.
3327         (VECTOR_MODE (INT, SI, 8)): Likewise.
3328         (VECTOR_MODE (INT, HI, 16)): Likewise.
3329         (VECTOR_MODE (INT, QI, 32)): Likewise.
3330         (VECTOR_MODE (FLOAT, SF, 8)): Likewise.
3331         (INT_MODE (OI, 32)): Likewise.
3332
3333         * config/i386/i386.opt (mavx): New.
3334         (mfma): Likewise.
3335
3336         * config/i386/i386-protos.h (ix86_attr_length_vex_default): New.
3337
3338         * config/i386/mmx.md (*mov<mode>_internal_rex64): Support AVX.
3339         (*mov<mode>_internal_avx): New.
3340         (*movv2sf_internal_rex64_avx): Likewise.
3341         (*movv2sf_internal_avx): Likewise.
3342
3343         * config/i386/predicates.md (const_4_to_5_operand): New.
3344         (const_6_to_7_operand): Likewise.
3345         (const_8_to_11_operand): Likewise.
3346         (const_12_to_15_operand): Likewise.
3347         (avx_comparison_float_operator): Likewise.
3348
3349         * config/i386/sse.md (AVX256MODEI): New.
3350         (AVX256MODE): Likewise.
3351         (AVXMODEQI): Likewise.
3352         (AVXMODE): Likewise.
3353         (AVX256MODEF2P): Likewise.
3354         (AVX256MODE2P): Likewise.
3355         (AVX256MODE4P): Likewise.
3356         (AVX256MODE8P): Likewise.
3357         (AVXMODEF2P): Likewise.
3358         (AVXMODEF4P): Likewise.
3359         (AVXMODEDCVTDQ2PS): Likewise.
3360         (AVXMODEDCVTPS2DQ): Likewise.
3361         (avxvecmode): Likewise.
3362         (avxvecpsmode): Likewise.
3363         (avxhalfvecmode): Likewise.
3364         (avxscalarmode): Likewise.
3365         (avxcvtvecmode): Likewise.
3366         (avxpermvecmode): Likewise.
3367         (avxmodesuffixf2c): Likewise.
3368         (avxmodesuffixp): Likewise.
3369         (avxmodesuffixs): Likewise.
3370         (avxmodesuffix): Likewise.
3371         (vpermilbits): Likewise.
3372         (pinsrbits): Likewise.
3373         (mov<mode>): Likewise.
3374         (*mov<mode>_internal): Likewise.
3375         (push<mode>1): Likewise.
3376         (movmisalign<mode>): Likewise.
3377         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3378         (avx_movdqu<avxmodesuffix>): Likewise.
3379         (avx_lddqu<avxmodesuffix>): Likewise.
3380         (<plusminus_insn><mode>3): Likewise.
3381         (*avx_<plusminus_insn><mode>3): Likewise.
3382         (*avx_vm<plusminus_insn><mode>3): Likewise.
3383         (mul<mode>3): Likewise.
3384         (*avx_mul<mode>3): Likewise.
3385         (*avx_vmmul<mode>3): Likewise.
3386         (divv8sf3): Likewise.
3387         (divv4df3): Likewise.
3388         (avx_div<mode>3): Likewise.
3389         (*avx_div<mode>3): Likewise.
3390         (*avx_vmdiv<mode>3): Likewise.
3391         (avx_rcpv8sf2): Likewise.
3392         (*avx_vmrcpv4sf2): Likewise.
3393         (sqrtv8sf2): Likewise.
3394         (avx_sqrtv8sf2): Likewise.
3395         (*avx_vmsqrt<mode>2): Likewise.
3396         (rsqrtv8sf2): Likewise.
3397         (avx_rsqrtv8sf2): Likewise.
3398         (*avx_vmrsqrtv4sf2): Likewise.
3399         (<code><mode>3): Likewise.
3400         (*avx_<code><mode>3_finite): Likewise.
3401         (*avx_<code><mode>3): Likewise.
3402         (*avx_vm<code><mode>3): Likewise.
3403         (*avx_ieee_smin<mode>3): Likewise.
3404         (*avx_ieee_smax<mode>3): Likewise.
3405         (avx_addsubv8sf3): Likewise.
3406         (avx_addsubv4df3): Likewise.
3407         (*avx_addsubv4sf3): Likewise.
3408         (*avx_addsubv2df3): Likewise.
3409         (avx_h<plusminus_insn>v4df3): Likewise.
3410         (avx_h<plusminus_insn>v8sf3): Likewise.
3411         (*avx_h<plusminus_insn>v4sf3): Likewise.
3412         (*avx_h<plusminus_insn>v2df3): Likewise.
3413         (avx_cmpp<avxmodesuffixf2c><mode>3): Likewise.
3414         (avx_cmps<ssemodesuffixf2c><mode>3): Likewise.
3415         (*avx_maskcmp<mode>3): Likewise.
3416         (avx_nand<mode>3): Likewise.
3417         (*avx_<code><mode>3): Likewise.
3418         (*avx_nand<mode>3): Likewise.
3419         (*avx_<code><mode>3): Likewise.
3420         (*avx_cvtsi2ss): Likewise.
3421         (*avx_cvtsi2ssq): Likewise.
3422         (*avx_cvtsi2sd): Likewise.
3423         (*avx_cvtsi2sdq): Likewise.
3424         (*avx_cvtsd2ss): Likewise.
3425         (avx_cvtss2sd): Likewise.
3426         (avx_cvtdq2ps<avxmodesuffix>): Likewise.
3427         (avx_cvtps2dq<avxmodesuffix>): Likewise.
3428         (avx_cvttps2dq<avxmodesuffix>): Likewise.
3429         (*avx_cvtsi2sd): Likewise.
3430         (*avx_cvtsi2sdq): Likewise.
3431         (avx_cvtdq2pd256): Likewise.
3432         (avx_cvtpd2dq256): Likewise.
3433         (avx_cvttpd2dq256): Likewise.
3434         (*avx_cvtsd2ss): Likewise.
3435         (*avx_cvtss2sd): Likewise.
3436         (avx_cvtpd2ps256): Likewise.
3437         (avx_cvtps2pd256): Likewise.
3438         (*avx_movhlps): Likewise.
3439         (*avx_movlhps): Likewise.
3440         (avx_unpckhps256): Likewise.
3441         (*avx_unpckhps): Likewise.
3442         (avx_unpcklps256): Likewise.
3443         (*avx_unpcklps): Likewise.
3444         (avx_movshdup256): Likewise.
3445         (avx_movsldup256): Likewise.
3446         (avx_shufps256): Likewise.
3447         (avx_shufps256_1): Likewise.
3448         (*avx_shufps_<mode>): Likewise.
3449         (*avx_loadhps): Likewise.
3450         (*avx_storelps): Likewise.
3451         (*avx_loadlps): Likewise.
3452         (*avx_movss): Likewise.
3453         (*vec_dupv4sf_avx): Likewise.
3454         (*vec_concatv2sf_avx): Likewise.
3455         (*vec_concatv4sf_avx): Likewise.
3456         (*vec_setv4sf_0_avx): Likewise.
3457         (*vec_setv4sf_avx): Likewise.
3458         (*avx_insertps): Likewise.
3459         (avx_vextractf128<mode>): Likewise.
3460         (vec_extract_lo_<mode>): Likewise.
3461         (vec_extract_hi_<mode>): Likewise.
3462         (vec_extract_lo_<mode>): Likewise.
3463         (vec_extract_hi_<mode>): Likewise.
3464         (vec_extract_lo_v16hi): Likewise.
3465         (vec_extract_hi_v16hi): Likewise.
3466         (vec_extract_lo_v32qi): Likewise.
3467         (vec_extract_hi_v32qi): Likewise.
3468         (avx_unpckhpd256): Likewise.
3469         (*avx_unpckhpd): Likewise.
3470         (avx_movddup256): Likewise.
3471         (*avx_movddup): Likewise.
3472         (avx_unpcklpd256): Likewise.
3473         (*avx_unpcklpd): Likewise.
3474         (avx_shufpd256): Likewise.
3475         (avx_shufpd256_1): Likewise.
3476         (*avx_punpckhqdq): Likewise.
3477         (*avx_punpcklqdq): Likewise.
3478         (*avx_shufpd_<mode>): Likewise.
3479         (*avx_storehpd): Likewise.
3480         (*avx_loadhpd): Likewise.
3481         (*avx_loadlpd): Likewise.
3482         (*avx_movsd): Likewise.
3483         (*vec_concatv2df_avx): Likewise.
3484         (*avx_<plusminus_insn><mode>3): Likewise.
3485         (*avx_<plusminus_insn><mode>3): Likewise.
3486         (*avx_mulv8hi3): Likewise.
3487         (*avxv8hi3_highpart): Likewise.
3488         (*avx_umulv8hi3_highpart): Likewise.
3489         (*avx_umulv2siv2di3): Likewise.
3490         (*avx_mulv2siv2di3): Likewise.
3491         (*avx_pmaddwd): Likewise.
3492         (*avx_mulv4si3): Likewise.
3493         (*avx_ashr<mode>3): Likewise.
3494         (*avx_lshr<mode>3): Likewise.
3495         (*avx_ashl<mode>3): Likewise.
3496         (*avx_<code><mode>3): Likewise.
3497         (*avx_eq<mode>3): Likewise.
3498         (*avx_gt<mode>3): Likewise.
3499         (*avx_nand<mode>3): Likewise.
3500         (*avx_nand<mode>3): Likewise.
3501         (*avx_<code><mode>3): Likewise.
3502         (*avx_<code><mode>3): Likewise.
3503         (*avx_packsswb): Likewise.
3504         (*avx_packssdw): Likewise.
3505         (*avx_packuswb): Likewise.
3506         (*avx_punpckhbw): Likewise.
3507         (*avx_punpcklbw): Likewise.
3508         (*avx_punpckhwd): Likewise.
3509         (*avx_punpcklwd): Likewise.
3510         (*avx_punpckhdq): Likewise.
3511         (*avx_punpckldq): Likewise.
3512         (*avx_pinsr<avxmodesuffixs>): Likewise.
3513         (*avx_pinsrq): Likewise.
3514         (*avx_loadld): Likewise.
3515         (*vec_extractv2di_1_rex64_avx): Likewise.
3516         (*vec_extractv2di_1_avx): Likewise.
3517         (*vec_dupv2di_avx): Likewise.
3518         (*vec_concatv2si_avx): Likewise.
3519         (*vec_concatv4si_1_avx): Likewise.
3520         (*vec_concatv2di_avx): Likewise.
3521         (*vec_concatv2di_rex64_avx): Likewise.
3522         (*avx_uavgv16qi3): Likewise.
3523         (*avx_uavgv8hi3): Likewise.
3524         (*avx_psadbw): Likewise.
3525         (avx_movmskp<avxmodesuffixf2c>256): Likewise.
3526         (*avx_phaddwv8hi3): Likewise.
3527         (*avx_phadddv4si3): Likewise.
3528         (*avx_phaddswv8hi3): Likewise.
3529         (*avx_phsubwv8hi3): Likewise.
3530         (*avx_phsubdv4si3): Likewise.
3531         (*avx_phsubswv8hi3): Likewise.
3532         (*avx_pmaddubsw128): Likewise.
3533         (*avx_pmulhrswv8hi3): Likewise.
3534         (*avx_pshufbv16qi3): Likewise.
3535         (*avx_psign<mode>3): Likewise.
3536         (*avx_palignrti): Likewise.
3537         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3538         (avx_blendvp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3539         (avx_dpp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3540         (*avx_mpsadbw): Likewise.
3541         (*avx_packusdw): Likewise.
3542         (*avx_pblendvb): Likewise.
3543         (*avx_pblendw): Likewise.
3544         (avx_vtestp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3545         (avx_ptest256): Likewise.
3546         (avx_roundp<avxmodesuffixf2c>256): Likewise.
3547         (*avx_rounds<ssemodesuffixf2c>): Likewise.
3548         (*avx_aesenc): Likewise.
3549         (*avx_aesenclast): Likewise.
3550         (*avx_aesdec): Likewise.
3551         (*avx_aesdeclast): Likewise.
3552         (avx_vzeroupper): Likewise.
3553         (avx_vzeroupper_rex64): Likewise.
3554         (avx_vpermil<mode>): Likewise.
3555         (avx_vpermilvar<mode>3): Likewise.
3556         (avx_vpermil2<mode>3): Likewise.
3557         (avx_vperm2f128<mode>3): Likewise.
3558         (avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3559         (avx_vbroadcastss256): Likewise.
3560         (avx_vbroadcastf128_p<avxmodesuffixf2c>256): Likewise.
3561         (avx_vinsertf128<mode>): Likewise.
3562         (vec_set_lo_<mode>): Likewise.
3563         (vec_set_hi_<mode>): Likewise.
3564         (vec_set_lo_<mode>): Likewise.
3565         (vec_set_hi_<mode>): Likewise.
3566         (vec_set_lo_v16hi): Likewise.
3567         (vec_set_hi_v16hi): Likewise.
3568         (vec_set_lo_v32qi): Likewise.
3569         (vec_set_hi_v32qi): Likewise.
3570         (avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3571         (avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>): Likewise.
3572         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
3573         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Likewise.
3574         (vec_init<mode>): Likewise.
3575         (*vec_concat<mode>_avx): Likewise.
3576         (blendbits): Support V8SF and V4DF.
3577         (sse2_movq128): Support AVX.
3578         (<sse>_movnt<mode>): Likewise.
3579         (sse2_movntv2di): Likewise.
3580         (sse_rcpv4sf2): Likewise.
3581         (sse_sqrtv4sf2): Likewise.
3582         (sse_rsqrtv4sf2): Likewise.
3583         (<sse>_comi): Likewise.
3584         (<sse>_ucomi): Likewise.
3585         (sse_cvtss2si): Likewise.
3586         (sse_cvtss2si_2): Likewise.
3587         (sse_cvtss2siq): Likewise.
3588         (sse_cvtss2siq_2): Likewise.
3589         (sse_cvttss2si): Likewise.
3590         (sse_cvttss2siq): Likewise.
3591         (sse2_cvtsd2si): Likewise.
3592         (sse2_cvtsd2si_2): Likewise.
3593         (sse2_cvtsd2siq): Likewise.
3594         (sse2_cvtsd2siq_2): Likewise.
3595         (sse2_cvttsd2si): Likewise.
3596         (sse2_cvttsd2siq): Likewise.
3597         (sse2_cvtdq2pd): Likewise.
3598         (*sse2_cvtpd2dq): Likewise.
3599         (*sse2_cvttpd2dq): Likewise.
3600         (*sse2_cvtpd2ps): Likewise.
3601         (sse2_cvtps2pd): Likewise.
3602         (sse3_movshdup): Likewise.
3603         (sse3_movsldup): Likewise.
3604         (sse_storehps): Likewise.
3605         (*sse4_1_extractps): Likewise.
3606         (sse2_storelpd): Likewise.
3607         (vec_dupv2df_sse3): Likewise.
3608         (*vec_concatv2df_sse3): Likewise.
3609         (*sse4_1_pextrb): Likewise.
3610         (*sse4_1_pextrb_memory): Likewise.
3611         (*sse2_pextrw): Likewise.
3612         (*sse4_1_pextrw_memory): Likewise.
3613         (*sse4_1_pextrd): Likewise.
3614         (*sse4_1_pextrq): Likewise.
3615         (sse2_pshufd_1): Likewise.
3616         (sse2_pshuflw_1): Likewise.
3617         (sse2_pshufhw_1): Likewise.
3618         (*sse2_storeq_rex64): Likewise.
3619         (*vec_dupv4si): Likewise.
3620         (<sse>_movmskp<ssemodesuffixf2c>): Likewise.
3621         (sse2_pmovmskb): Likewise.
3622         (*sse2_maskmovdqu): Likewise.
3623         (*sse2_maskmovdqu_rex64): Likewise.
3624         (sse_ldmxcsr): Likewise.
3625         (sse_stmxcsr): Likewise.
3626         (abs<mode>2): Likewise.
3627         (sse4_1_movntdqa): Likewise.
3628         (sse4_1_phminposuw): Likewise.
3629         (sse4_1_extendv8qiv8hi2): Likewise.
3630         (*sse4_1_extendv8qiv8hi2): Likewise.
3631         (sse4_1_extendv4qiv4si2): Likewise.
3632         (*sse4_1_extendv4qiv4si2): Likewise.
3633         (sse4_1_extendv2qiv2di2): Likewise.
3634         (*sse4_1_extendv2qiv2di2): Likewise.
3635         (sse4_1_extendv4hiv4si2): Likewise.
3636         (*sse4_1_extendv4hiv4si2): Likewise.
3637         (sse4_1_extendv2hiv2di2): Likewise.
3638         (*sse4_1_extendv2hiv2di2): Likewise.
3639         (sse4_1_extendv2siv2di2): Likewise.
3640         (*sse4_1_extendv2siv2di2): Likewise.
3641         (sse4_1_zero_extendv8qiv8hi2): Likewise.
3642         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
3643         (sse4_1_zero_extendv4qiv4si2): Likewise.
3644         (*sse4_1_zero_extendv4qiv4si2): Likewise.
3645         (sse4_1_zero_extendv2qiv2di2): Likewise.
3646         (*sse4_1_zero_extendv2qiv2di2): Likewise.
3647         (sse4_1_zero_extendv4hiv4si2): Likewise.
3648         (*sse4_1_zero_extendv4hiv4si2): Likewise.
3649         (sse4_1_zero_extendv2hiv2di2): Likewise.
3650         (*sse4_1_zero_extendv2hiv2di2): Likewise.
3651         (sse4_1_zero_extendv2siv2di2): Likewise.
3652         (*sse4_1_zero_extendv2siv2di2): Likewise.
3653         (sse4_1_ptest): Likewise.
3654         (sse4_1_roundp<ssemodesuffixf2c>): Likewise.
3655         (sse4_2_pcmpestri): Likewise.
3656         (sse4_2_pcmpestrm): Likewise.
3657         (sse4_2_pcmpistri): Likewise.
3658         (sse4_2_pcmpistrm): Likewise.
3659         (aesimc): Likewise.
3660         (aeskeygenassist): Likewise.
3661
3662 2008-08-28  Uros Bizjak  <ubizjak@gmail.com>
3663
3664         * config/i386/predicates.md (vzeroall_operation): New.
3665
3666         * config/i386/sse.md (avx_vzeroall): New.
3667         (*avx_vzeroall): Likewise.
3668
3669 2008-08-28  Paul Brook  <paul@codesourcery.com>
3670             Mark Shinwell  <shinwell@codesourcery.com>
3671             Richard Earnshaw  <richard.earnshaw@arm.com>
3672
3673         * config/arm/arm.c (TARGET_MAX_ANCHOR_OFFSET): New.
3674         (TARGET_MIN_ANCHOR_OFFSET): New.
3675         (arm_override_options): Set correct anchor ranges for Thumb-1
3676         and Thumb-2 if required.
3677         (legitimize_pic_address): Handle case involving a TLS symbol
3678         reference with an addend.
3679         (arm_optimization_options): Enable section anchors at -O1 and
3680         above.
3681         * config/arm/arm.h (OPTIMIZATION_OPTIONS): New.
3682         * config/arm/arm-protos.h (arm_optimization_options): New.
3683
3684 2008-08-28  Nick Clifton  <nickc@redhat.com>
3685
3686         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
3687         * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
3688         attribute.
3689
3690         * config/v850/v850.h (IRA_COVER_CLASSES): Define.
3691         * config/v850/v850.md (return): Remove frame size restriction.
3692
3693         * config/mcore/mcore.h (IRA_COVER_CLASSES): Define.
3694
3695         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define.
3696
3697         * config/fr30/fr30.h (IRA_COVER_CLASSES): Define.
3698
3699         * config/m32r/m32r.h (IRA_COVER_CLASSES): Define.
3700
3701 2008-08-28  Paul Brook  <paul@codesourcery.com>
3702
3703         * config/arm/vfp11.md: Update license notice.
3704         * config/arm/cortex-r4.md: Ditto.
3705
3706 2008-08-28  Richard Guenther  <rguenther@suse.de>
3707
3708         PR tree-optimization/37207
3709         * tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
3710         tuplification bug.
3711
3712 2008-08-28  Dodji Seketeli  <dodji@redhat.com>
3713
3714         PR c++/36741
3715         * tree.c (int_fits_type_p): Don't forget unsigned integers
3716           of type sizetype which higher end word equals -1.
3717
3718 2008-08-28  Ira Rosen  <irar@il.ibm.com>
3719
3720         * target.h (struct vectorize): Add new target builtin.
3721         * tree-vectorizer.c (destroy_loop_vec_info): Call
3722         vect_free_slp_instance instead of vect_free_slp_node.
3723         * tree-vectorizer.h (enum slp_load_perm_type): New.
3724         (struct _slp_instance): Add new fields.
3725         (SLP_INSTANCE_LOAD_PERMUTATION): New.
3726         (SLP_INSTANCE_LOADS): New.
3727         (vect_free_slp_tree): Remove.
3728         (vect_free_slp_instance): Declare.
3729         (SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
3730         (vectorizable_load): Add argument.
3731         (vect_transform_slp_perm_load): New.
3732         * tree-vect-analyze.c (vect_analyze_operations): Add an argument to
3733         vectorizable_load.
3734         (vect_get_place_in_interleaving_chain): New function.
3735         (vect_free_slp_tree): Make static.
3736         (vect_free_slp_instance): New function.
3737         (vect_build_slp_tree): Add new arguments. Allow load permutations and
3738         collect the load location in the interleaving chain.
3739         (vect_supported_slp_permutation_p): New function.
3740         (vect_supported_load_permutation_p): Likewise.
3741         (vect_analyze_slp_instance): In case of loads permutation, call
3742         vect_supported_load_permutation_p to check that the permutation is
3743         supported.
3744         * target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
3745         * tree-vect-transform.c (vect_transform_stmt): Add new argument.
3746         (vect_create_mask_and_perm): New function.
3747         (vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
3748         (vectorizable_load): Add an argument. Don't keep the created vectors
3749         statements in the node if permutation is required. Call
3750         vect_transform_slp_perm_load to generate the permutation.
3751         (vect_transform_stmt): Add new argument. Call vectorizable_load with
3752         additional argument.
3753         (vect_schedule_slp_instance): In case of loads permutation, allocate
3754         vectorized statements structure for all the related SLP nodes. Call
3755         vect_transform_stmt with addditional argument.
3756         (vect_transform_loop): Call vect_transform_stmt with correct arguments.
3757         * config/spu/spu.c (spu_builtin_vec_perm): New.
3758         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
3759         * config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
3760         * config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
3761         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
3762
3763 2008-08-28  Chris Fairles  <chris.fairles@gmail.com>
3764
3765         * gthr-posix.h (__gthread_create,  __gthread_join, __gthread_detach,
3766         __gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
3767         __gthread_cond_signal, __gthread_cond_timedwait,
3768         __gthread_cond_timedwait_recursive): New functions.
3769         * gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
3770         Likewise.
3771         * gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
3772         thread interfaces.
3773
3774 2008-08-28  Richard Guenther  <rguenther@suse.de>
3775
3776         PR middle-end/37005
3777         * fold-const.c (maybe_canonicalize_comparison_1): Require
3778         undefined overflow only for canonicalizing A +- CST cmp CST.
3779         Make sure to not generate new constants that are not inside
3780         their TYPE_MIN/MAX_VALUE range.
3781         (maybe_canonicalize_comparison): Remove undefined overflow
3782         checking from here.
3783         (fold_binary): Remove now duplicate folding.
3784
3785 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
3786
3787         * c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
3788         use not updated in the last change.
3789
3790 2008-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
3791
3792         * config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
3793         (IRA_COVER_CLASSES): Add FPUL_REGS.
3794
3795 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3796
3797         PR 37217
3798         * c-common.c (conversion_warning): Check for null operands.
3799
3800 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3801
3802         PR c/31673
3803         * c-decl.c (check_for_loop_decls): Improve error message. Give
3804         hint.
3805
3806 2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3807
3808         PR c/37186
3809         * c-typeck.c (WARN_FOR_ASSIGNMENT): Add OPT parameter.
3810         (convert_for_assignment): Pass corrent OPT_W* parameter to
3811         WARN_FOR_ASSIGNMENT.
3812
3813 2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
3814
3815         PR c++/35321
3816         * c-common.c (fold_offsetof_1): Handle TARGET_EXPR like CALL_EXPR.
3817
3818 2008-08-27  Paul Brook  <paul@codesourcery.com>
3819
3820         * config.gcc: Loosen checks for arm uclinux eabi targets.
3821
3822 2008-08-27  Paul Brook  <paul@codesourcery.com>
3823
3824         * config/arm/t-arm-coff (LIB1ASMFUNCS): Add missing undescrore on
3825         _clzsi2.
3826         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
3827
3828 2008-08-26  Douglas Gregor  <doug.gregor@gmail.com>
3829
3830         * c-common.c (do_switch_warnings): Look through the CONST_DECLs in
3831         the enumerators of an ENUMERAL_TYPE.
3832         * dbxout.c (dbxout_type): Ditto.
3833
3834 2008-08-26  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3835
3836         PR rtl-opt/37219
3837         * fwprop.c (fwprop): Check that the loop_father is the outer loop.
3838         (fwprop_addr): Check that the loop_father is not the outer loop.
3839
3840 2008-08-26  Paul Brook  <paul@codesourcery.com>
3841
3842         * config/arm/vfp.md: Document fmul{s,d} and fmac{s,d} types.
3843         Remove documentation entry for fmul type.
3844         Use fmuls to annotate single-precision multiplication patterns,
3845         fmuld to annotate double-precision multiplication patterns,
3846         fmacs to annotate single-precision multiply-accumulate patterns
3847         and fmacd to annotate double-precision multiply-accumulate patterns.
3848         * config/arm/vfp11.md: Update reservations accordingly.
3849         * config/arm/arm.md: Note that certain values of the "type"
3850         attribute are documented in vfp.md.
3851         * config/arm/arm1020e.md: Remove out of date duplicate comment.
3852         (v10_cvt): Use new fmul types.
3853
3854 2008-08-26  Paul Brook  <paul@codesourcery.com>
3855
3856         * config/arm/vfp.md: Move pipeline description for VFP11 to...
3857         * config/arm/vfp11.md: ...here.  New.
3858         * config/arm/arm.md: Include vfp11.md.
3859
3860 2008-08-26  Hans-Peter Nilsson  <hp@axis.com>
3861
3862         * opts.c (decode_options) [!IRA_COVER_CLASSES]: Add missing
3863         parameter to inform call.
3864
3865 2008-08-26  Jeff Law  <law@redhat.com>
3866
3867         * mn10300.md (movqi, movhi): Split i->d*a case into two cases to
3868         avoid the possibility of getting DATA_OR_ADDRESS_REGS as the
3869         preferred class when copying a constant into a partial word register.
3870
3871 2008-08-26  Ben Elliston  <bje@au.ibm.com>
3872
3873         * rtlanal.c: Fix uses of "it's" with "its" where appropriate.
3874         * cp/typeck.c: Likewise.
3875         * cp/tree.c: Likewise.
3876         * gimple-low.c: Likewise.
3877         * jump.c: Likewise.
3878
3879 2008-08-26  Vladimir Makarov  <vmakarov@redhat.com>
3880
3881         * ira-build.c, ira-color.c, ira-costs.c, ira.h, ira-lives.c,
3882         ira.c, ira-conflicts.c, ira-emit.c, ira-int.h: New files.
3883
3884         * doc/passes.texi: Describe IRA.
3885
3886         * doc/tm.texi (IRA_COVER_CLASSES,
3887         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Describe the new macros.
3888
3889         * doc/invoke.texi (ira-max-loops-num): Describe the new parameter.
3890         (-fira, -fira-algorithm, -fira-coalesce, -fno-ira-move-spills,
3891         -fira-propagate-cost, -fno-ira-share-save-slots,
3892         -fno-ira-share-spill-slots, -fira-verbose): Describe new options.
3893
3894         * flags.h (ira_algorithm): New enumeration.
3895         (flag_ira_algorithm, flag_ira_verbose): New external variable
3896         declarations.
3897
3898         * postreload.c (gate_handle_postreload): Don't do post reload
3899         optimizations unless the reload is completed.
3900
3901         * reload.c (push_reload, find_dummy_reload): Use DF_LR_OUT for
3902         IRA.
3903
3904         * tree-pass.h (pass_ira): New external variable declaration.
3905
3906         * reload.h: Add 2008 to the Copyright.
3907
3908         * cfgloopanal.c: Include params.h.
3909         (estimate_reg_pressure_cost): Decrease cost for IRA optimization
3910         mode.
3911
3912         * params.h (IRA_MAX_LOOPS_NUM): New macro.
3913
3914         * toplev.c (ira.h): New include.
3915         (flag_ira_algorithm, flag_ira_verbose): New external variables.
3916         (backend_init_target): Call ira_init.
3917         (backend_init): Call ira_init_once.
3918         (finalize): Call finish_ira_once.
3919
3920         * toplev.h (flag_ira, flag_ira_coalesce, flag_ira_move_spills,
3921         flag_ira_share_save_slots, flag_ira_share_spill_slots): New
3922         external variables.
3923
3924         * regs.h (contains_reg_of_mode, move_cost, may_move_in_cost,
3925         may_move_out_cost): New external variable declarations.
3926         (move_table): New typedef.
3927
3928         * caller-save.c: Include headers output.h and ira.h.
3929         (no_caller_save_reg_set): New global variable.
3930         (save_slots_num, save_slots): New variables.
3931         (reg_save_code, reg_restore_code, add_stored_regs): Add
3932         prototypes.
3933         (init_caller_save): Set up no_caller_save_reg_set.
3934         (init_save_areas): Reset save_slots_num.
3935         (saved_hard_reg): New structure.
3936         (hard_reg_map, saved_regs_num, all_saved_regs): New variables.
3937         (initiate_saved_hard_regs, new_saved_hard_reg,
3938         finish_saved_hard_regs, saved_hard_reg_compare_func): New
3939         functions.
3940         (setup_save_areas): Add code for sharing stack slots.
3941         (all_blocks): New variable.
3942         (save_call_clobbered_regs): Process pseudo-register too.
3943         (mark_set_regs): Process pseudo-register too.
3944         (insert_one_insn): Put the insn after bb note in a empty basic
3945         block.  Add insn check.
3946
3947         * global.c (eliminable_regset): Make it external.
3948         (mark_elimination): Use DF_LR_IN for IRA.
3949         (pseudo_for_reload_consideration_p): New.
3950         (build_insn_chain): Make it external.  Don't ignore spilled
3951         pseudos for IRA.  Use pseudo_for_reload_consideration_p.
3952         (gate_handle_global_alloc): New function.
3953         (pass_global_alloc): Add the gate function.
3954
3955         * opts.c (decode_options): Set up flag_ira.  Print the warning for
3956         -fira.
3957         (common_handle_option): Process -fira-algorithm and -fira-verbose.
3958
3959         * timevar.def (TV_IRA, TV_RELOAD): New passes.
3960
3961         * regmove.c (regmove_optimize): Don't do replacement of output for
3962         IRA.
3963
3964         * hard-reg-set.h (no_caller_save_reg_set, reg_class_subclasses):
3965         New external variable declarations.
3966
3967         * local-alloc.c (update_equiv_regs): Make it external.  Return
3968         true if jump label rebuilding should be done.  Rescan new_insn for
3969         notes.
3970         (gate_handle_local_alloc): New function.
3971         (pass_local_alloc): Add the gate function.
3972
3973         * alias.c (value_addr_p, stack_addr_p): New functions.
3974         (nonoverlapping_memrefs_p): Use them for IRA.
3975
3976         * common.opt (fira, fira-algorithm, fira-coalesce,
3977         fira-move-spills, fira-share-save-slots, fira-share-spill-slots,
3978         fira-verbose): New options.
3979
3980         * regclass.c (reg_class_subclasses, contains_reg_of_mode,
3981         move_cost, may_move_in_cost, may_move_out_cost): Make the
3982         variables external.
3983         (move_table): Remove typedef.
3984         (init_move_cost): Make it external.
3985         (allocate_reg_info, resize_reg_info, setup_reg_classes): New
3986         functions.
3987
3988         * rtl.h (init_move_cost, allocate_reg_info, resize_reg_info,
3989         setup_reg_classes): New function prototypes.
3990         (eliminable_regset): New external variable declaration.
3991         (build_insn_chain, update_equiv_regs): New function prototypes.
3992
3993         * Makefile.in (IRA_INT_H): New definition.
3994         (OBJS-common): Add ira.o, ira-build.o, ira-costs.o,
3995         ira-conflicts.o, ira-color.o, ira-emit.o, and ira-lives.o.
3996         (reload1.o, toplev.o): Add dependence on ira.h.
3997         (cfgloopanal.o): Add PARAMS_H.
3998         (caller-save.o): Add dependence on output.h and ira.h.
3999         (ira.o, ira-build.o, ira-costs.o, ira-conflicts.o, ira-color.o,
4000         ira-emit.o, ira-lives.o): New entries.
4001
4002         * passes.c (pass_ira): New pass.
4003
4004         * params.def (PARAM_IRA_MAX_LOOPS_NUM): New parameter.
4005
4006         * reload1.c (ira.h): Include the header.
4007         (changed_allocation_pseudos): New bitmap.
4008         (init_reload): Initiate the bitmap.
4009         (compute_use_by_pseudos): Permits spilled registers in FROM.
4010         (temp_pseudo_reg_arr): New variable.
4011         (reload): Allocate and free temp_pseudo_reg_arr.  Sort pseudos for
4012         IRA.  Call alter_reg with the additional parameter.  Don't clear
4013         spilled_pseudos for IRA.  Restore original insn chain for IRA.
4014         Clear changed_allocation_pseudos at the end of reload.
4015         (calculate_needs_all_insns): Call IRA's mark_memory_move_deletion.
4016         (hard_regno_to_pseudo_regno): New variable.
4017         (count_pseudo): Check spilled pseudos.  Set up
4018         hard_regno_to_pseudo_regno.
4019         (count_spilled_pseudo): Check spilled pseudos. Update
4020         hard_regno_to_pseudo_regno.
4021         (find_reg): Use better_spill_reload_regno_p.  Check
4022         hard_regno_to_pseudo_regno.
4023         (alter_reg): Set up spilled_pseudos.  Add a new parameter.  Add
4024         code for IRA.
4025         (eliminate_regs_1): Use additional parameter for alter_reg.
4026         (finish_spills): Set up pseudo_previous_regs only for spilled
4027         pseudos.  Call reassign_pseudos once for all spilled pseudos, pass
4028         more arguments.  Don't clear live_throughout and dead_or_set for
4029         spilled pseudos.  Use additional parameter for alter_reg.  Call
4030         mark_allocation_change.  Set up changed_allocation_pseudos.
4031         Remove sanity check.
4032         (emit_input_reload_insns, delete_output_reload): Use additional
4033         parameter for alter_reg.  Call mark_allocation_change.
4034         (substitute, gen_reload_chain_without_interm_reg_p): New
4035         functions.
4036         (reloads_conflict): Use gen_reload_chain_without_interm_reg_p.
4037
4038         * testsuite/gcc.dg/20080410-1.c: New file.
4039
4040         * config/s390/s390.h (IRA_COVER_CLASSES,
4041         IRA_HARD_REGNO_ADD_COST_MULTIPLIER): Define.
4042
4043         * config/sparc/sparc.h (IRA_COVER_CLASSES): New macro.
4044
4045         * config/i386/i386.h (IRA_COVER_CLASSES): Ditto.
4046
4047         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
4048
4049         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Ditto.
4050
4051         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
4052
4053         * config/alpha/alpha.h (IRA_COVER_CLASSES): Ditto.
4054
4055         2008-08-24  Jeff Law  <law@redhat.com>
4056         * ira.c (setup_reg_class_intersect_union): Prefer smallest class
4057         when ignoring unavailable registers.
4058
4059         2008-08-24  Jeff Law  <law@redhat.com>
4060         * ira-color.c (coalesced_pseudo_reg_slot_compare): Check
4061         FRAME_GROWS_DOWNWARD and STACK_GROWS_DOWNWARD.
4062         * ira.c (setup_eliminable_regset): Check stack_realign_needed.
4063         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): New macro.
4064
4065         2008-06-03 Steve Chamberlain <steve.chamberlain@gmail.com>
4066         * ira-build.c (allocno_range_compare_func): Stabilize sort.
4067
4068         2008-05-29 Andy Hutchinson <hutchinsonandy@aim.com>
4069         * config/avr/avr.h (IRA_COVER_CLASSES): New macro.
4070         * reload1.c (find_reg): Process registers in register allocation order.
4071
4072         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
4073         * toplev.c (backend_init_target): Move ira_init call from
4074         here...
4075         (lang_dependent_init_target): ...to here.
4076
4077         2008-05-10 Richard Sandiford <rsandifo@nildram.co.uk>
4078         * ira.c (setup_class_subset_and_memory_move_costs): Don't
4079         calculate memory move costs for NO_REGS.
4080
4081         2008-05-05 Kaz Kojima <kkojima@gcc.gnu.org>
4082         * ira-color.c (ira_fast_allocation): Use no_stack_reg_p only if
4083         STACK_REGS is defined.
4084
4085         2008-04-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
4086         * config/spu/spu.h (IRA_COVER_CLASSES): New macro.
4087
4088         2008-04-04 Bernd Schmidt <bernd.schmidt@analog.com>
4089         * config/bfin/bfin.h (IRA_COVER_CLASSES): New macro.
4090
4091         2008-04-04 Kaz Kojima <kkojima@gcc.gnu.org>
4092         * config/sh/sh.h (IRA_COVER_CLASSES): Define.
4093         * config/sh/sh.md (movsicc_true+3): Check if emit returns a
4094         barrier.
4095
4096 2008-08-26  Victor Kaplansky  <victork@il.ibm.com>
4097             Dorit Nuzman  <dorit@il.ibm.com>
4098
4099         * gcc/config/spu/spu.md (vec_extract_evenv4si,
4100         vec_extract_evenv4sf, vec_extract_evenv8hi,
4101         vec_extract_evenv16qi, vec_extract_oddv4si,
4102         vec_extract_oddv4sf, vec_extract_oddv8hi, vec_extract_oddv16qi,
4103         vec_interleave_highv4sf, vec_interleave_lowv4sf,
4104         vec_interleave_highv4si, vec_interleave_lowv4si,
4105         vec_interleave_highv8hi, vec_interleave_lowv8hi,
4106         vec_interleave_highv16qi, vec_interleave_lowv16qi,
4107         vec_pack_trunc_v8hi, vec_pack_trunc_v4si): Implement.S
4108
4109 2008-08-25  Janis Johnson  <janis187@us.ibm.com>
4110
4111         PR target/36756
4112         * config/rs6000/rs6000.c (optimization_options): Don't default to
4113         section anchors without toplevel reorder.
4114
4115 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4116
4117         * config/spu/spu_mfcio.h (mfc_begin_critical_section): New function.
4118         (mfc_end_critical_section): Likewise.
4119
4120 2008-08-25  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4121
4122         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Propagate
4123         all type qualifiers from element type to vector type.
4124
4125 2008-08-25  David Daney  <ddaney@avtrex.com>
4126
4127         * config/mips/mips.md (immediate_insn): Move up in file, fix
4128         comment typo, reformat.
4129         (fetchop_bit, atomic_hiqi_op memory_barrier,
4130         sync_compare_and_swap<mode>, compare_and_swap_12, sync_add<mode>,
4131         sync_<optab><mode>, sync_<optab>_12, sync_old_<optab><mode>,
4132         sync_old_<optab>_12, sync_new_<optab><mode>, sync_new_<optab>_12,
4133         sync_nand<mode>, sync_nand_12, sync_old_nand<mode>,
4134         sync_old_nand_12, sync_new_nand<mode>, sync_new_nand_12,
4135         sync_sub<mode>, sync_old_add<mode>, sync_old_sub<mode>,
4136         sync_new_add<mode>, sync_new_sub<mode>, sync_<optab><mode>,
4137         sync_old_<optab><mode>, sync_new_<optab><mode>, sync_nand<mode>,
4138         sync_old_nand<mode>, sync_new_nand<mode>,
4139         sync_lock_test_and_set<mode>, sync_lock_test_and_set<mode>,
4140         test_and_set_12): Moved to sync.md.
4141         (sync.md): Include.
4142         * config/mips/sync.md: New file.
4143
4144 2008-08-25  Richard Henderson  <rth@redhat.com>
4145
4146         * dwarf2out.c (def_cfa_1): Don't scale by DWARF_CIE_DATA_ALIGNMENT.
4147         (regsave): Likewise.
4148         (lookup_cfa_1): Don't rescale by DWARF_CIE_DATA_ALIGNMENT.
4149         (output_cfi_directive): Likewise.
4150         (div_data_align): New.
4151         (output_cfi): Use it.
4152
4153 2008-08-24  Adam Nemet  <anemet@caviumnetworks.com>
4154
4155         * config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
4156         * config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
4157         (TARGET_OCTEON): New macro.
4158         (TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
4159         (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
4160         (ISA_HAS_POP): New macro.
4161         * config/mips/driver-native.c (host_detect_local_cpu): Handle
4162         Octeon.
4163         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
4164         Handle Octeon.
4165         * config/mips/mips.md (cpu): Add octeon.
4166         (type): Add pop attribute value.
4167         (popcount<mode>2): New pattern.
4168         * doc/invoke.texi (-march=@var{arch}): Add octeon.
4169
4170 2008-08-24  Jan Hubicka  <jh@suse.cz>
4171
4172         * doc/invoke.texi (-fipa-cp-clone): New option.
4173         (-fipa-cp): Update docs.
4174         (--param ipcp-unit-growth):New.
4175         * ipa-cp.c: Include fibheap.h, params.h
4176         (ipcp_initialize_node_lattices): When not cloning, all externally
4177         visible functions are bottom.
4178         (ipcp_need_redirect_p): Accept clones.
4179         (ipcp_insert_stage): Use cost driven heuristics.
4180         (max_count, dead_nodes): New static vars.
4181         (ipcp_need_original_clone_p, ipcp_estimate_cloning_cost,
4182         ipcp_const_param_count): New functions.
4183         * common.opt (ipa-cp-clone): New command line option.
4184         * params.def (ipcp-unit-growth): New.
4185
4186 2008-08-24  Jan Hubicka  <jh@suse.cz>
4187
4188         * tree-inline.c (tree_function_versioning): Look harder
4189         for referenced vars.
4190
4191 2008-08-24  Razya Ladelsky  <razya@il.ibm.com>
4192
4193         PR tree-optimization/37185
4194         * matrix-reorg.c (transform_access_sites): Update changed stmt.
4195
4196 2008-08-23  Jan Hubicka  <jh@suse.cz>
4197
4198         * ipa-cp.c (ipcp_analyze_node): New function.
4199         (ipcp_update_cloned_node): Use it.
4200         (ipcp_init_stage): Likewise.
4201         * ipa-inline.c (function_insertion_hook_holder): New static var.
4202         (analyze_function): Break out from ....
4203         (inline_generate_summary): Here; register insertion hook.
4204         (cgraph_decide_inlining): Remove hook.
4205         (add_new_function): New function.
4206
4207 2008-08-23  Jan Hubicka  <jh@suse.cz>
4208
4209         * opts.c (decode_options): Revert accidental change enabling ipa-cp.
4210
4211 2008-08-23  Jan Hubicka  <jh@suse.cz>
4212
4213         * ipa-cp.c (constant_val_insert): Remove.
4214         (ipcp_propagate_one_const): Remove.
4215         (ipcp_create_replace_map): Always insert replacements to the map.
4216         (ipcp_insert_stage): Do not try to insert statements by hand.
4217         * tree-inline.c (insert_init_stmt): Break out from ...
4218         (setup_one_parameter): ... here; allow NULL BB pointer.
4219         (tree_function_versioning): Use setup_one_parameter to process
4220         replacement map.
4221
4222 2008-08-23  Jan Hubicka  <jh@suse.cz>
4223
4224         * tree.c (decl_address_ip_invariant_p): New function.
4225         * tree.h (decl_address_ip_invariant_p): Declare.
4226         * gimple.c (strip_invariant_refs): Break out from ...
4227         (is_gimple_invariant_address): ... here
4228         (is_gimple_ip_invariant_address): New function.
4229         (is_gimple_ip_invariant): New function.
4230         * gimple.h (is_gimple_ip_invariant_address, is_gimple_ip_invariant):
4231         Declare.
4232
4233         * ipa-cp.c (ipcp_lat_is_const): Remove handling of IPA_CONST_VALUE_REF.
4234         (ipcp_lat_is_insertable): All constants are insertable.
4235         (ipcp_lattice_from_jfunc, ipcp_print_all_lattices): Remove handling of
4236         IPA_CONST_VALUE_REF.
4237         (ipcp_initialize_node_lattices): Propagate all types of operands.
4238         (build_const_val): Do not handle IPA_CONST_VALUE_REF.
4239         (ipcp_create_replace_map): Reformat.
4240         (ipcp_need_redirect_p): Simplify.
4241         (ipcp_insert_stage): Check that argument is used before clonning.
4242         * ipa-prop.c (ipa_print_node_jump_functions): Do not handle
4243         IPA_CONST_REF.
4244         (compute_scalar_jump_functions): Simplify using is_gimple_ip_invariat.
4245         (determine_cst_member_ptr): Keep wrapping ADDR_EXPR of members.
4246         (update_call_notes_after_inlining): Expect ADDR_EXPR in operand.
4247         * ipa-prop.h (jump_func_type): Remove IPA_CONST_REF.
4248         (jump_func_type): Remove IPA_CONST_VALUE_REF.
4249         * tree-inline.c (tree_function_versioning): Add variables referenced by
4250         replacing trees.
4251
4252 2008-08-23  Jan Hubicka  <jh@suse.cz>
4253
4254         PR target/37094
4255         * i386.c (standard_80387_constant_p): Use optimize_size.
4256
4257 2008-08-23  Ira Rosen  <irar@il.ibm.com>
4258
4259         PR tree-optimization/37161
4260         * tree-vectorizer.h (vect_get_smallest_scalar_type): Declare.
4261         * tree-vect-analyze.c (vect_get_smallest_scalar_type): New function.
4262         (vect_determine_vectorization_factor): Move the scalar type
4263         retrieval to vect_get_smallest_scalar_type.
4264         (vect_build_slp_tree): Call vect_get_smallest_scalar_type to get
4265         scalar type. Remove redundant computation.
4266         * tree-vect-transform.c (vect_get_constant_vectors): Add argument.
4267         (vect_get_slp_defs): Take the type of RHS into account if
4268         necessary by calling vect_get_smallest_scalar_type. Call
4269         vect_get_constant_vectors with additional argument.
4270
4271 2008-08-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4272
4273         PR 35648
4274         * doc/invoke.texi (Wwrite-strings): Clarify description.
4275
4276 2008-08-23  Ira Rosen  <irar@il.ibm.com>
4277
4278         PR tree-optimization/37174
4279         * tree-vect-analyze.c (vect_get_and_check_slp_defs): Check that the
4280         def stmt is a part of the loop before accessing its stmt_vec_info.
4281
4282 2008-08-22  Anatoly Sokolov  <aesok@post.ru>
4283
4284         PR target/11259
4285         * config/avr/avr.md (UNSPEC_SWAP): New constants.
4286         (*swap): New insn pattern.
4287         (*ashlqi3): Rename from ashlqi3 insn pattern.
4288         (ashlqi3): New expanders.
4289         (*lshrqi3): Rename from lshrqi3 insn pattern.
4290         (lshrqi3): New expanders.
4291         (ashlqi3_const4, ashlqi3_const5, ashlqi3_const6, lshrqi3_const4,
4292         lshrqi3_const5, lshrqi3_const6): New splitters.
4293         (andi, ashlqi3_l_const4, ashlqi3_l_const5, ashlqi3_l_const6,
4294         lshrqi3_l_const4, lshrqi3_l_const5, lshrqi3_l_const6): Define
4295         peephole2 patterns.
4296
4297 2008-08-22  Richard Guenther  <rguenther@suse.de>
4298
4299         PR tree-optimization/37078
4300         * tree-vrp.c (extract_range_from_unary_expr): Avoid generating
4301         [+INF, +INF] ranges.
4302
4303 2008-08-22  Richard Guenther  <rguenther@suse.de>
4304
4305         PR tree-optimization/37143
4306         * tree-vect-transform.c (vect_create_cond_for_align_checks): Build
4307         a conversion statement instead of a copy.
4308
4309 2008-08-22  Uros Bizjak  <ubizjak@gmail.com>
4310
4311         PR target/37184
4312         * config/i386/i386.c (ix86_match_ccmode): Handle CCAmode,
4313         CCCmode, CCOmode and CCSmode destination modes.
4314
4315         PR target/37191
4316         * config/i386/mmx.md (*vec_extractv2sf_0): Avoid combining registers
4317         from different units in a single alternative.
4318         (*vec_extractv2sf_1): Ditto.
4319         (*vec_extractv2si_0): Ditto.
4320         (*vec_extractv2si_1): Ditto.
4321         * config/i386/sse.md (sse2_storehpd): Ditto.
4322         (sse2_storelpd): Ditto.
4323         (sse2_loadhpd): Ditto.
4324         (sse2_loadlpd): Ditto.
4325
4326         PR target/37197
4327         * config/i386/i386.md (clzsi2_abm): Fix operand 1 constraints.
4328         (popcountsi2): Ditto.
4329         (clzdi2_abm): Ditto.
4330         (popcountdi2): Ditto.
4331         (clzhi2_abm): Ditto.
4332         (popcounthi2): Ditto.
4333
4334 2008-08-22  Richard Guenther  <rguenther@suse.de>
4335
4336         PR middle-end/36548
4337         PR middle-end/37125
4338         * fold-const.c (extract_muldiv_1): Optimize (X * C1) % C2 only
4339         if the multiplication does not overflow.
4340
4341 2008-08-21  Nathan Sidwell  <nathan@codesourcery.com>
4342
4343         * c-ppoutput.c (init_pp_output): Initialize src_line to 1.
4344
4345 2008-08-21  Richard Henderson  <rth@redhat.com>
4346
4347         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Remove
4348         spurrious comma from test.
4349         * configure: Rebuild.
4350
4351 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4352
4353         PR 30457
4354         * builtins.c (fold_builtin_next_arg): Add warning about undefined
4355         behaviour.
4356
4357 2008-08-21  Aldy Hernandez  <aldyh@redhat.com>
4358
4359         * c-tree.h (grokfield): New argument.
4360         * c-decl.c (grokfield): Handle new location argument.
4361         * c-parser.c (c_parser_struct_declaration): Pass location to grokfield.
4362
4363 2008-08-21  Richard Guenther  <rguenther@suse.de>
4364
4365         * tree-ssa-ccp.c (ccp_fold): Fold VIEW_CONVERT_EXPRs of constants.
4366
4367 2008-08-21  Jan Hubicka  <jh@suse.cz>
4368
4369         * cgraph.c (first_cgraph_function_insertion_hook): New variable.
4370         (cgraph_add_function_insertion_hook,
4371         cgraph_remove_function_insertion_hook,
4372         cgraph_call_function_insertion_hooks): New functions.
4373         * cgraph.h (cgraph_add_function_insertion_hook,
4374         cgraph_remove_function_insertion_hook,
4375         cgraph_call_function_insertion_hooks): Declare.
4376         * ipa-reference.c (function_insertion_hook_holder): New variable.
4377         (check_operand, look_for_address_of): When checking late, do not care
4378         about module bitmaps.
4379         (add_new_function): New function.
4380         (generate_summary): Register hooks; zero module bitmaps.
4381         (propagate): Unregister hooks.
4382         * ipa-pure-const.c (function_insertion_hook_holder): New variable.
4383         (add_new_function): New function.
4384         (generate_summary): Register hook.
4385         (propagate): Remove hook.
4386
4387         * ipa-cp.c (ipcp_need_redirect_p): Fix to not be constant 0.
4388
4389         * tree-pass.h (pass_ipa_cp): Make ipa_opt_pass.
4390         * ipa-cp.c (ipcp_update_cloned_node): New function.
4391         (build_const_val): Handle functions correctly; bring type logic
4392         into sync with tree-inline.c
4393         (ipcp_init_stage):  Take care of computing stuff needed by
4394         indirect inlining; update clones.
4395         (ipcp_generate_summary): Break out of ipcp_driver.
4396         (ipcp_driver): Do only execution and transformation.
4397         (pass_ipa_cp): Make IPA_PASS.
4398         * tree-ssa-ccp.c (fold_stmt_r): Check type before trying to fold
4399         offset to address.
4400         * ipa-inline.c (inline_indirect_intraprocedural_analysis): When doing
4401         ipcp, some info is already available.
4402         * ipa-prop.c (ipa_count_arguments): Grow edge lists as needed.
4403         * tree-inline.c (remap_ssa_name): Unshare expression.
4404
4405 2008-08-21  Richard Guenther  <rguenther@suse.de>
4406
4407         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
4408         a PHI ask VN if it is already available.
4409         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
4410         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
4411
4412 2008-08-21  Richard Guenther  <rguenther@suse.de>
4413
4414         PR middle-end/36817
4415         * tree-chrec.c (chrec_apply): Always call chrec_fold_plus which
4416         makes sure to produce a result of the correct type.
4417
4418 2008-08-21  Jan Hubicka  <jh@suse.cz>
4419         Backport from LTO branch:
4420
4421         2008-05-05  Kenneth Zadeck <zadeck@naturalbridge.com>
4422                     Jan Hubicka  <jh@suse.cz>
4423
4424         * ipa-pure-const.c
4425         (init_state, finish_state, set_function_state, generate_summary):
4426         New functions.
4427         (scan_stmt): Renamed from scan_function.  Changed to keep state in
4428         local static vars rather than cgraph aux field.
4429         (propagate): Renamed from static_execute. Changed to keep state in
4430         local static vars rather than cgraph aux field.
4431         (pass_ipa_pure_const): Changed from SIMPLE_IPA_PASS to IPA_PASS.
4432         * tree-pass.h (pass_ipa_pure_const): Turn into IPA_PASS.
4433
4434         2008-07-15  Kenneth Zadeck <zadeck@naturalbridge.com>
4435
4436         * tree-pass.h (pass_ipa_reference): Make into ipa_opt_pass.
4437         * ipa-reference.c (init_function_info, generate_summary,
4438         propagate): New functions.
4439         (analyze_function):  Call init_function_info.
4440         (static_execute): Stripped into generate_summary and propagate.
4441         (pass_ipa_reference): Made into ipa_opt_pass.
4442
4443 2008-08-21  Richard Guenther  <rguenther@suse.de>
4444
4445         PR tree-optimization/37181
4446         * tree-vrp.c (extract_range_from_binary_expr): Check for NULL
4447         folding result.
4448         (extract_range_from_unary_expr): Likewise.
4449
4450 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4451
4452         * diagnostic.c (pedwarn_at): Rename as pedwarn.
4453         (pedwarn): Delete.
4454         * toplev.h (pedwarn_at): Likewise.
4455         * builtins.c: Update all calls to pedwarn.
4456         * c-lex.c: Likewise.
4457         * toplev.c: Likewise.
4458         * c-tree.h: Likewise.
4459         * c-decl.c: Likewise.
4460         * c-errors.c: Likewise.
4461         * c-typeck.c: Likewise.
4462         * c-common.c: Likewise.
4463         * c-parser.c: Likewise.
4464
4465 2008-08-20  Joseph Myers  <joseph@codesourcery.com>
4466
4467         PR target/31070
4468         * config/sparc/sparc.c (function_arg_slotno): Handle structure
4469         with MODE_VECTOR_INT mode.
4470
4471 2008-08-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4472
4473         PR middle-end/179
4474         * tree-ssa.c (warn_uninit): Do not warn for variables that can be
4475         initialized outside the current module.
4476         (warn_uninitialized_var): Ignore left-hand side when walking the
4477         trees. Ignore address expressions. Examine VUSE operands in gimple
4478         statements with a variable declaration on the right-hand side.
4479
4480 2008-08-20  Richard Sandiford  <rdsandiford@googlemail.com>
4481
4482         PR bootstrap/37155
4483         * rtlanal.c (subreg_offset_representable_p): Revert last change.
4484
4485 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4486
4487         PR 35701
4488         * c-common.c (conversion_warning): Do not warn if applying bit-and
4489         operator to unsigned constant that fits in the target type.
4490
4491 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4492
4493         PR c++/35602
4494         * c-common.c (conversion_warning): Do not warn for artificial
4495         expressions.
4496
4497 2008-08-20  Richard Guenther  <rguenther@suse.de>
4498
4499         * tree-vrp.c (op_with_constant_singleton_value_range): New function.
4500         (extract_range_from_binary_expr): Fall back to constant propagation.
4501         (extract_range_from_unary_expr): Likewise.
4502
4503 2008-08-20  Richard Guenther  <rguenther@suse.de>
4504
4505         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Do not mess
4506         with TREE_THIS_VOLATILE on shared nodes.
4507         (fold_stmt_r): Likewise.
4508
4509 2008-08-20  Jakub Jelinek  <jakub@redhat.com>
4510
4511         PR c/37171
4512         * c-parser.c (c_parser_attributes): For keywords use canonical
4513         spelling for attr_name.
4514
4515 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4516
4517         * value-prof.c (check_counter): Revert wrong call to error.
4518
4519 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4520
4521         * profile.c: Update calls to inform.
4522         * value-prof.c: Update calls to inform.
4523
4524 2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4525
4526         * diagnostic.c (inform): Add an explicit location_t parameter.
4527         * toplev.h (inform): Update declaration.
4528         * builtins.c: Update all calls to inform.
4529         * c-common.c: Likewise.
4530         * c-decl.c: Likewise.
4531         * c-opts.c: Likewise.
4532         * c-pch.c: Likewise.
4533         * c-pragma.c: Likewise.
4534         * c-typeck.c: Likewise.
4535         * coverage.c: Likewise.
4536         * opts.c: Likewise.
4537         * toplev.c: Likewise.
4538         * tree-cfg.c: Likewise.
4539         * tree-ssa.c: Likewise.
4540
4541 2008-08-20  H.J. Lu  <hongjiu.lu@intel.com>
4542
4543         PR target/37169
4544         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): In
4545         V2DI mode, for SSE4.1, use movq instead of vector set if the
4546         second element is zero and inter-unit moves are OK.
4547
4548 2008-08-20  Richard Guenther  <rguenther@suse.de>
4549
4550         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): More
4551         properly handle conversion/copy chains after tuplification.
4552
4553 2008-08-20  Richard Guenther  <rguenther@suse.de>
4554
4555         * passes.c (init_optimization_passes): Move the second
4556         forwprop pass before alias computation.  Remove the second
4557         DCE pass.  Remove the first dominator and phi copy/const
4558         prop passes.
4559
4560 2008-08-20  Nick Clifton  <nickc@redhat.com>
4561
4562         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler
4563         support of this feature.  Do not assume that a sufficiently new
4564         assembler will support the feature regardless of the target type.
4565         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
4566         * configure: Regenerate.
4567
4568 2008-08-20  Richard Guenther  <rguenther@suse.de>
4569
4570         * tree-vrp.c (found_in_subgraph): Remove.
4571         (live): New global static.
4572         (live_on_edge): New function.
4573         (blocks_visited): Remove.
4574         (register_edge_assert_for_2): Use live_on_edge.
4575         (find_conditional_asserts): Remove code dealing with
4576         found_in_subgraph.  Do not walk the CFG.
4577         (find_switch_asserts): Likewise.
4578         (find_assert_locations_1): Renamed from find_assert_locations.
4579         Move finding assert locations for conditional and switch
4580         statements first.  Update live bitmap.  Do not walk the CFG.
4581         (find_assert_locations): New function.
4582         (insert_range_assertions): Remove entry of CFG walk.
4583         Adjust call to find_assert_locations.
4584         * tree-ssa-pre.c (do_regular_insertion): Ignore critical edges
4585         that only can appear because of fake exit edges but assert we
4586         never try to insert on those.
4587         (fini_pre): Do not remove fake exit edges here...
4588         (execute_pre): ...but here, before committing edge inserts.
4589
4590 2008-08-19  Richard Guenther  <rguenther@suse.de>
4591
4592         * passes.c (init_optimization_passes): Exchange store-ccp
4593         with a ccp pass.
4594
4595 2008-08-19  Rafael Espíndola  <espindola@google.com>
4596
4597         * varasm.c (weak_decls): Move earlier in the file.
4598         (assemble_external): Add weak decls to the weak_decls list.
4599         (declare_weak): Don't add decls to the weak_decls list.
4600
4601 2008-08-19  H.J. Lu  <hongjiu.lu@intel.com>
4602
4603         PR target/37157
4604         * config/i386/sse.md (sse2_punpckhqdq, sse2_punpcklqdq): Moved
4605         before (sse2_shufpd_<mode>).
4606
4607 2008-08-19  Jakub Jelinek  <jakub@redhat.com>
4608
4609         PR debug/37156
4610         * pretty-print.c (pp_base_format): Deal with recursive BLOCK trees.
4611         * tree.c (block_nonartificial_location): Likewise.
4612
4613 2008-08-19  Richard Guenther  <rguenther@suse.de>
4614
4615         PR tree-optimization/35972
4616         PR tree-optimization/23094
4617         * tree-ssa-sccvn.h (vn_reference_lookup_pieces): Add maywalk
4618         parameter.
4619         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
4620         handle MISALIGNED_INDIRECT_REF.
4621         (get_ref_from_reference_ops): New helper.
4622         (vn_reference_lookup_pieces): Walk the use-def chain using the
4623         alias-oracle if requested.
4624         * tree-ssa-pre.c (phi_translate_1): Do reference lookup with
4625         walking the use-def chain.
4626         (compute_avail): But not here.
4627         (create_component_ref_by_pieces_1): Properly handle
4628         MISALIGNED_INDIRECT_REF.
4629         (do_regular_insertion): Handle fully redundant
4630         expressions after PHI-translation also for SSA_NAME values, not
4631         only constants.  Correctly use edoubleprime for that.
4632
4633 2008-08-19  Ira Rosen  <irar@il.ibm.com>
4634
4635         * tree-vectorizer.c (supportable_widening_operation): Support
4636         multi-step conversion, return the number of steps in such conversion
4637         and the required intermediate types.
4638         (supportable_narrowing_operation): Likewise.
4639         * tree-vectorizer.h (vect_pow2): New function.
4640         (supportable_widening_operation): Change argument types.
4641         (supportable_narrowing_operation): Likewise.
4642         (vectorizable_type_promotion): Add an argument.
4643         (vectorizable_type_demotion): Likewise.
4644         * tree-vect-analyze.c (vect_analyze_operations): Call
4645         vectorizable_type_promotion and vectorizable_type_demotion with
4646         additional argument.
4647         (vect_get_and_check_slp_defs): Detect patterns.
4648         (vect_build_slp_tree): Add an argument, don't fail in case of multiple
4649         types.
4650         (vect_analyze_slp_instance): Don't fail in case of multiple types. Call
4651         vect_build_slp_tree with correct arguments. Calculate unrolling factor
4652         according to the smallest type in the loop.
4653         (vect_detect_hybrid_slp_stmts): Include statements from patterns.
4654         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Call
4655         supportable_widening_operation with correct arguments.
4656         * tree-vect-transform.c (vect_get_slp_defs): Allocate output vector
4657         operands lists according to the number of vector statements in left
4658         or right node, if exists.
4659         (vect_gen_widened_results_half): Remove unused argument.
4660         (vectorizable_conversion): Call supportable_widening_operation,
4661         supportable_narrowing_operation, and vect_gen_widened_results_half
4662         with correct arguments.
4663         (vectorizable_assignment): Change documentation, support multiple
4664         types in SLP.
4665         (vectorizable_operation): Likewise.
4666         (vect_get_loop_based_defs): New function.
4667         (vect_create_vectorized_demotion_stmts): Likewise.
4668         (vectorizable_type_demotion): Support loop-aware SLP and general
4669         multi-step conversion. Call vect_get_loop_based_defs and
4670         vect_create_vectorized_demotion_stmts for transformation.
4671         (vect_create_vectorized_promotion_stmts): New function.
4672         (vectorizable_type_promotion): Support loop-aware SLP and general
4673         multi-step conversion. Call vect_create_vectorized_promotion_stmts
4674         for transformation.
4675         (vectorizable_store): Change documentation, support multiple
4676         types in SLP.
4677         (vectorizable_load): Likewise.
4678         (vect_transform_stmt): Pass SLP_NODE to
4679         vectorizable_type_promotion and vectorizable_type_demotion.
4680         (vect_schedule_slp_instance): Move here the calculation of number
4681         of vectorized statements for each node from...
4682         (vect_schedule_slp): ... here.
4683         (vect_transform_loop): Call vect_schedule_slp without the last
4684         argument.
4685
4686 2008-08-19  Dorit Nuzman  <dorit@il.ibm.com>
4687
4688         PR bootstrap/37152
4689         * tree-vect-transform.c (vect_create_epilog_for_reduction): Change =
4690         to == in assert statement.
4691         (vectorizable_reduction): Fix typo.
4692
4693 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4694
4695         PR bootstrap/37153
4696         * value-prof.c (check_counter): Dereference pointer to overall
4697         count when printing it.
4698
4699 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4700
4701         * profile.h: Really add it.
4702
4703 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4704
4705         * mcf.c: Really add it.
4706
4707 2008-08-18  Paul Yuan  <yingbo.com@gmail.com>
4708             Vinodha Ramasamy  <vinodha@google.com>
4709
4710         * cgraph.c (cgraph_edge): Handle inconsistent counts when setting
4711         count_scale.
4712         * value-prof.c (check_counter): Fix the counter if
4713         flag_profile_correction is true.
4714         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
4715         tree_mod_subtract_transform):
4716         Follow check_counter parameter change.
4717         * common.opt (fprofile-correction): New option.
4718         * mcf.c: New file.
4719         * profile.h: Likewise.
4720         * profile.c (edge_info, EDGE_INFO): Moved to new file profile.h.
4721         (sum_edge_counts, is_edge_inconsistent, correct_negative_edge_counts,
4722         is_inconsistent, set_bb_counts, read_profile_edge_counts): New
4723         functions.
4724         (compute_branch_probabilities): Refactored. Invokes mcf_smooth_cfg if
4725         flag_profile_correction is set.
4726
4727 2008-08-18  Richard Sandiford  <rdsandiford@googlemail.com>
4728
4729         * rtlanal.c (subreg_offset_representable_p): Check HARD_REGNO_MODE_OK.
4730
4731 2008-08-18  Tomas Bily  <tbily@suse.cz>
4732
4733         * tree.h (IS_CONVERT_EXPR_CODE_P): Renamed to CONVERT_EXPR_CODE_P.
4734         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Use
4735         CONVERT_EXPR_P.
4736         * tree-data-ref.c (split_constant_offset_1): Likewise.
4737         * tree-inline.c (estimate_operator_cost): Use CASE_CONVERT.
4738         * tree-sra.c (sra_walk_expr): Likewise.
4739         * matrix-reorg.c (ssa_accessed_in_assign_rhs): Likewise.
4740         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
4741         * gimple.h (gimple_assign_cast_p): Use CONVERT_EXPR_CODE_P.
4742         * tree-ssa-structalias.c (find_func_aliases, find_func_aliases):
4743         Likewise.
4744         * gimple.c (gimple_assign_unary_nop_p): Likewise.
4745         * tree-vect-transform.c (vectorizable_type_demotion)
4746         (vectorizable_type_promotion): Likewise.
4747         * tree-inline.c (expand_call_inline):
4748         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
4749         (forward_propagate_addr_expr_1, forward_propagate_comparison)
4750         (tree_ssa_forward_propagate_single_use_vars): Likewise.
4751         * expr.c (expand_expr_real_1): Likewise.
4752         * tree-ssa-dom.c (hashable_expr_equal_p, iterative_hash_hashable_expr)
4753         (gimple_assign_unary_useless_conversion_p): Likewise.
4754         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
4755         * tree-ssa-ccp.c (ccp_fold, fold_gimple_assign): Likewise.
4756         * fold-const.c (fold_unary): Likewise.
4757         * tree.h (CONVERT_EXPR_P): Likewise.
4758         * tree.c (simple_cst_equal, iterative_hash_expr): Likewise.
4759         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
4760         * tree-vrp.c:
4761         (register_edge_assert_for_2, extract_range_from_unary_expr)
4762         (register_edge_assert_for_1): Likewise.
4763
4764 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4765
4766         * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
4767         dconst_third_ptr, dconst_sqrt2_ptr): Declare.
4768         (enum real_value_const): Delete.
4769         (get_real_const): Delete.
4770         * real.c (get_real_const): Delete.
4771         (dconst_e_ptr): Define.
4772         (dconst_third_ptr): Define.
4773         (dconst_sqrt2_ptr): Define.
4774         * builtins.c: Update all callers.
4775
4776 2008-08-18  Richard Guenther  <rguenther@suse.de>
4777
4778         * tree-ssa-reassoc.c (reassociate_bb): Properly reset the
4779         statement iterator after statement removal.
4780
4781 2008-08-18  Andreas Tobler  <a.tobler@schweiz.org>
4782
4783         * config/rs6000/driver-rs6000.c (detect_caches_freebsd): New function.
4784         (detect_processor_freebsd): Likewise.
4785         (host_detect_local_cpu): Call newly added functions for FreeBSD.
4786
4787 2008-08-18  Richard Guenther  <rguenther@suse.de>
4788
4789         * tree-cfg.c (verify_types_in_gimple_assign): Verify copies
4790         and loads have the correct types.
4791
4792 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4793
4794         PR cpp/7263
4795         * c-opts.c (cpp_opts): Remove static.
4796         * c-parser.c (cpp_opts): Declare it extern.
4797         (disable_extension_diagnostics): Handle cpp options.
4798         (enable_extension_diagnostics): Likewise.
4799
4800 2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4801
4802         * diagnostics.c (permerror_at): Rename as permerror.
4803         (permerror): Delete.
4804         * toplev.h: Likewise.
4805
4806 2008-08-18  Richard Guenther  <rguenther@suse.de>
4807
4808         * passes.c (init_optimization_passes): Remove cleanup_cfg1,
4809         sdse1 and addressables2 passes.  Replace dce1 with cddce1.
4810         Move call_cdce before build_alias.  Move copyrename2,
4811         cunrolli and ccp2 beafore build_alias.  Re-add addressable2
4812         right after final inlining.
4813         * tree-cfg.c (build_gimple_cfg): Do not dump function here.
4814         (pass_build_cfg): But instead via TODO_dump_func.
4815
4816 2008-08-18  Richard Guenther  <rguenther@suse.de>
4817
4818         * tree-sra.c (generate_element_init_1): Deal with NULL constructor
4819         element index.
4820         (scalarize_init): If we failed to generate some initializers
4821         do not generate zeros for not instantiated members.  Instead
4822         rely on the copy out.
4823         * tree-ssa-operands.c (get_addr_dereference_operands): Warn
4824         about missing flow-sensitive alias info only if we have
4825         aliases computed.
4826
4827 2008-08-17  Nick Clifton  <nickc@redhat.com>
4828
4829         * doc/extend.texi (Function Attributes): Fix typo in description
4830         if hot function attribute.
4831
4832 2008-08-17  Daniel Jacobowitz  <dan@codesourcery.com>
4833             Richard Sandiford  <rdsandiford@googlemail.com>
4834
4835         * doc/install.texi (--with-mips-plt): Document.
4836         * doc/invoke.texi (-mplt, -mno-plt): Document.
4837         * config.gcc (mips*-*-*): Add mips-plt to supported_defaults
4838         and handle ${with_mips_plt}.
4839         * config/mips/mips.opt (mplt): New option.
4840         * config/mips/mips.h (TARGET_ABICALLS_PIC0): New macro.
4841         (TARGET_ABICALLS_PIC2): Likewise.
4842         (TARGET_GPWORD): Return false for TARGET_ABSOLUTE_ABICALLS.
4843         (OPTION_DEFAULT_SPECS): Add a mips-plt entry.
4844         (ASM_SPEC): Use !mabi=* instead of !mabi*.
4845         (MIPS_CALL): Use TARGET_ABICALLS_PIC2 instead of TARGET_ABICALLS
4846         to decide whether to output ".option picX" directives.
4847         * config/mips/linux.h (SUBTARGET_ASM_SPEC): Remove -mabi=64 handling.
4848         Pass -call_nonpic rather than -KPIC for -mplt.
4849         (BASE_DRIVER_SELF_SPECS): Remove -mplt if -mno-shared is not present
4850         on the command line.  Also remove it when -mabi=64 is used without
4851         -msym32.
4852         * config/mips/linux64.h (SUBTARGET_ASM_SPEC): Delete.
4853         * config/mips/mips.c (mips_use_pic_fn_addr_reg_p): Handle
4854         TARGET_ABICALLS_PIC0.
4855         (mips_classify_symbol): Use TARGET_ABICALLS_PIC2 instead of
4856         TARGET_ABICALLS.
4857         (mips16_build_function_stub): Only output ".option pic" directives
4858         and PIC stubs if TARGET_ABICALLS_PIC2.  Call through $25 instead of $1.
4859         (mips16_build_call_stub): Fix comment and remove redundant
4860         ".set at"/"set .noat" directives.
4861         (mips_function_rodata_section): Use the default behaviour for
4862         TARGET_ABSOLUTE_ABICALLS.
4863         (mips_file_start): Emit ".option pic0" for TARGET_ABICALLS_PIC0.
4864         (mips_global_pointer): Handle TARGET_ABICALLS_PIC0.
4865         (mips_restore_gp): Do nothing if the current function doesn't use
4866         a global pointer.
4867         (mips_expand_prologue): Only save $gp if the current function uses it.
4868         Use a normal move for TARGET_ABICALLS_PIC0.
4869         (mips_override_options): Only set flag_pic if TARGET_ABICALLS_PIC2.
4870
4871 2008-08-17  Richard Sandiford  <rdsandiford@googlemail.com>
4872
4873         * config/mips/mips.c (mips_save_reg_p): Don't short-circuit rest
4874         of function when handling GLOBAL_POINTER_REGNUM.
4875
4876 2008-08-16  Eric Botcazou  <ebotcazou@adacore.com>
4877
4878         PR ada/20548
4879         * common.opt (-fstack-check): Do not declare the variable here.
4880         (-fstack-check=): New option variant.
4881         * doc/invoke.texi (Code Gen Options): Document it.
4882         * expr.h (STACK_OLD_CHECK_PROTECT): New macro.
4883         (STACK_CHECK_PROTECT): Bump to 3 pages if DWARF-2 EH is used.
4884         (STACK_CHECK_STATIC_BUILTIN): New macro.
4885         * doc/tm.texi (Stack Checking): Document STACK_CHECK_STATIC_BUILTIN.
4886         * opts.c: Include expr.h.
4887         (common_handle_option) <OPT_fold_stack_check_>: New case.
4888         <OPT_fstack_check>: Likewise.
4889         * calls.c (initialize_argument_information): Use TYPE_SIZE_UNIT
4890         consistently in the test for variable-sized types.  Adjust for
4891         new behaviour of flag_stack_check.
4892         * explow.c: Include except.h.
4893         (allocate_dynamic_stack_space): Do not take into account
4894         STACK_CHECK_MAX_FRAME_SIZE for static builtin stack checking.
4895         * function.c (gimplify_parameters): Use DECL_SIZE_UNIT in the test
4896         for variable-sized parameters.  Treat all parameters whose size is
4897         greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized if generic
4898         stack checking is enabled.
4899         * gimplify.c (gimplify_decl_expr): Treat non-static objects whose
4900         size is greater than STACK_CHECK_MAX_VAR_SIZE as variable-sized
4901         if generic stack checking is enabled.
4902         (expand_function_end): Adjust for new behaviour of flag_stack_check.
4903         * reload1.c (reload): Likewise.
4904         * stmt.c (expand_decl): Assert that all automatic variables have
4905         fixed size at this point and remove dead code.
4906         * flags.h (stack_check_type): New enumeration type.
4907         (flag_stack_check): Declare.
4908         * toplev.c (flag_stack_check): New global variable.
4909         * Makefile.in (opts.o): Add dependency on EXPR_H.
4910         (explow.o): Add dependency on except.h.
4911
4912 2008-08-16  Andy Hutchinson  <hutchinsonandy@aim.com>
4913
4914         * config/avr/avr.c (avr_override_options): Reduce value of
4915         PARAM_INLINE_CALL_COST.
4916
4917 2008-08-15  Eric Botcazou  <ebotcazou@adacore.com>
4918
4919         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: When converting
4920         to BLKmode, try to fetch an inner memory reference.  Use 'mode' in
4921         lieu of TYPE_MODE (type) throughout.
4922
4923 2008-08-15  Joseph Myers  <joseph@codesourcery.com>
4924
4925         * config/arm/arm.c (add_minipool_backward_ref): Check for
4926         8-byte-aligned entries in second case of forcing insertion after a
4927         particular entry.  Change third case to avoid inserting
4928         non-8-byte-aligned entries before 8-byte-aligned ones.
4929
4930 2008-08-15  Richard Guenther  <rguenther@suse.de>
4931
4932         * tree-ssa-ccp.c (maybe_fold_offset_to_reference): Do not
4933         strip components for unknown size accesses.
4934
4935 2008-08-15  Wolfgang Gellerich  <gellerich@de.ibm.com>
4936
4937         * config/s390/2097.md New file.
4938         * config/s390/s390.md ("z10prop" attribute): Define none,
4939         z10_super, z10_super_E1, z10_super_A1, z10_super_c,
4940         z10_super_c_E1, z10_fwd, z10_fwd_A1, z10_fwd_A3, z10_fwd_E1,
4941         z10_rec, z10_fr, z10_fr_A3, z10_fr_E1, z10_c, and z10_cobra as
4942         possible values and apply them to insns as appropriate.
4943         ("type" attribute): Removed itof and added ftrunctf,ftruncdf,
4944         ftruncsd, ftruncdd, itoftf, itofdf, itofsf, itofdd, itoftd,
4945         fdivdd, fdivtd, floaddd, floadsd, fmuldd, fmultd, fsimpdd,
4946         fsimpsd, fsimptd, fstoredd, fstoresd, ftoidfp as possible values.
4947         ("bfp" mode attribute): Removed.  Every occurence replaced
4948         with <mode>.
4949         * config/s390/s390.c (struct "z10_cost"): Updated entries.
4950         * config/s390/2084.md (insn_reservation "x_itof"): Updated
4951         type attribute.
4952
4953 2008-08-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4954
4955         PR c/28152
4956         * c-parser.c (c_lex_one_token): Do not store the canonical spelling
4957         for keywords.
4958
4959 2008-08-14  Dorit Nuzman  <dorit@il.ibm.com>
4960
4961         * tree-vect-transform.c (vect_create_epilog_for_reduction): Takes an
4962         additional argument. Support reduction when duplication is needed due
4963         to data-types of different sizes in the loop.
4964         (get_initial_def_for_induction): Fix printout.
4965         (vect_get_vec_def_for_stmt_copy): Support case where the
4966         vec_stmt_for_operand is a phi node.
4967         (vectorizable_reduction): Support reduction when duplication is needed
4968         due to data-types of different sizes in the loop.
4969         (vectorizable_call): Remove restriction to not vectorize in case we
4970         have data-types of different sizes in the loop.
4971         (vectorizable_conversion): Likewise.
4972         (vectorizable_operation): Likewise.
4973         (vectorizable_type_demotion): Likewise.
4974         (vectorizable_type_promotion): Likewise.
4975         (vectorizable_induction): Add restriction to not vectorize in case
4976         we have data-types of different sizes in the loop.
4977
4978 2008-08-14  Christophe Saout  <christophe@saout.de>
4979             Uros Bizjak  <ubizjak@gmail.com>
4980
4981         PR target/37101
4982         * config/i386/sse.md (vec_concatv2di): Remove movlps alternative.
4983         (*vec_concatv2di_rex64_sse4_1): Ditto.
4984         (*vec_concatv2di_rex64_sse): Ditto.
4985
4986 2008-08-14  Jakub Jelinek  <jakub@redhat.com>
4987
4988         PR middle-end/37103
4989         * fold-const.c (fold_widened_comparison): Do not allow
4990         sign changes that change the result even if shorter type
4991         is wider than arg1_unw's type.
4992
4993 2008-08-13  Kazu Hirata  <kazu@codesourcery.com>
4994
4995         * gcc.dg/arm-g2.c, gcc.dg/arm-mmx-1.c, gcc.dg/arm-scd42-2.c:
4996         Skip if the multilib testing specifies -march that does not
4997         agree with the one specified in the testcase.
4998
4999 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
5000
5001         * config/sparc/sparc.c (emit_soft_tfmode_cvt): Explicitly sign or
5002         zero extend SImode values being converted to TFmode before passing
5003         to libcalls.
5004
5005 2008-08-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5006
5007         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
5008         __PPU__ when targeting the Cell/B.E. PPU processor.
5009
5010 2008-08-13  Eric Botcazou  <ebotcazou@adacore.com>
5011
5012         * gimple.h (gimple_call_set_chain): Accept SSA variables.
5013         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <CALL_EXPR>:
5014         Rematerialize the static chain, if any.
5015         * tree-ssa-sccvn.c (copy_reference_ops_from_call): Also copy the
5016         static chain.
5017
5018 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
5019
5020         * dwarf2out.c (dwarf_stack_op_name): Remove prototype.
5021         (new_loc_descr): Likewise.
5022         (add_loc_descr): Likewise.
5023         (size_of_loc_descr): Likewise.
5024         (size_of_locs): Likewise.
5025         (output_loc_operands): Likewise.
5026         (output_loc_sequence): Likewise.
5027         (new_reg_loc_descr): New.
5028         (build_cfa_loc): Use it.
5029         (build_cfa_aligned_loc): Likewise.
5030         (one_reg_loc_descriptor): Likewise.
5031         (based_loc_descr): Likewise.
5032
5033 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5034
5035         PR 30551
5036         * doc/invoke.texi (Wmain): Update.
5037         * c-decl.c (start_decl): warn_main is only 0 or 1.
5038         (start_function): Likewise. Fix formatting.
5039         (finish_function): Delete redundant warning.
5040         * c.opt (Wmain): Add Var(warn_main) and Init(-1).
5041         * c-opts (c_common_handle_option): -Wall only has effect if
5042         warn_main is uninitialized. OPT_Wmain is automatically
5043         handled. -pedantic also enables Wmain.
5044         (c_common_post_options): Handle all logic for Wmain here.
5045         * c-common.c (warn_main): Delete.
5046         (check_main_parameter_types): Make pedwarns conditional on OPT_Wmain.
5047         * c-common.h (warn_main): Delete.
5048
5049 2008-08-13  H.J. Lu  <hongjiu.lu@intel.com>
5050
5051         PR middle-end/36701
5052         * expr.c (emit_group_store): Allocate stack temp with the
5053         largest alignment when copying from register to stack.
5054
5055 2008-08-13  Richard Guenther  <rguenther@suse.de>
5056
5057         * tree.h (maybe_fold_offset_to_address): Declare.
5058         * tree-ssa-ccp.c (surely_varying_stmt_p): Fix typo in last commit.
5059         (ccp_fold): Handle pointer conversions the same as fold_stmt.
5060         Likewise for POINTER_PLUS_EXPR.
5061         (maybe_fold_offset_to_reference): Enable disabled code.
5062         (maybe_fold_offset_to_address): New function.
5063         (fold_stmt_r): Use it.
5064         (fold_gimple_assign): Likewise.
5065         * gimplify.c (gimplify_conversion): Use maybe_fold_offset_to_address.
5066         (gimplify_expr): Likewise.
5067
5068 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5069
5070         * toplev.h (pedwarn_at): Fix declaration.
5071
5072 2008-08-13  Joseph Myers  <joseph@codesourcery.com>
5073
5074         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
5075         LINK_SPEC): Use %R in -Y P argument.
5076
5077 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5078
5079         PR c/15236
5080         * diagnostic.c (pedwarn_at): New.
5081         * toplev.h (pedwarn_at): Declare.
5082         * c-tree.h (build_enumerator): Update declaration.
5083         * c-decl.c (finish_enum): Update comment.
5084         (build_enumerator): Take a location parameter. Give a pedwarn but do
5085         not perform any conversion.
5086         * c-parser.c (c_parser_enum_specifier): Set correct location for
5087         enumerator.
5088
5089 2008-08-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5090
5091         PR 35635
5092         * c-common.c (conversion_warning): Use a switch. Ignore boolean
5093         expressions except for conversions to signed:1 bitfields. Handle
5094         COND_EXPR with constant operands.
5095
5096 2008-08-13  Richard Guenther  <rguenther@suse.de>
5097
5098         PR tree-optimization/15255
5099         * tree-ssa-reassoc.c (linearize_expr_tree): Declare.
5100         (struct oecount_s): New struct and VEC types.
5101         (cvec): New global.
5102         (oecount_hash): New function.
5103         (oecount_eq): Likewise.
5104         (oecount_cmp): Likewise.
5105         (zero_one_operation): New function.
5106         (build_and_add_sum): Likewise.
5107         (undistribute_ops_list): Perform un-distribution of multiplication
5108         and division on the chain of summands.
5109         (should_break_up_subtract): Also break up subtracts for factors.
5110         (reassociate_bb): Delete dead visited statements.
5111         Call undistribute_ops_list.  Re-sort and optimize if it did something.
5112         * passes.c (init_optimization_passes): Move DSE before
5113         reassociation.
5114         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Correctly handle
5115         PHI nodes.
5116
5117 2008-08-12  Janis Johnson  <janis187@us.ibm.com>
5118
5119         * doc/invoke.texi (-fipa-pta): Say the option is experimental.
5120
5121         * doc/invoke.texi: Revert unintended checkin.
5122
5123 2008-08-12  Nathan Froyd  <froydnj@codesourcery.com>
5124
5125         PR libgomp/26165
5126         * gcc.c (include_spec_function): Tweak call to find_a_file.
5127
5128 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
5129
5130         PR middle-end/37014
5131         * expr.c (expand_expr_real_1): Handle TRUTH_ANDIF_EXPR
5132         and TRUTH_ORIF_EXPR.
5133         * dojump.c (do_jump): Likewise.
5134
5135         PR tree-optimization/37084
5136         * tree-inline.c (copy_bb): Call gimple_regimplify_operands
5137         if id->regimplify, don't assume stmt is a cast assignment.
5138
5139 2008-08-12  Anatoly Sokolov  <aesok@post.ru>
5140
5141         * final.c (final_scan_insn): Use app_enable/app_disable functions.
5142
5143 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5144
5145         PR bootstrap/37097
5146         * builtins.c (do_mpfr_bessel_n): Fix copy-and-paste bug introduced
5147         by last change.
5148
5149 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5150
5151         * defaults.h (TARGET_FLOAT_FORMAT): Remove.
5152         (UNKNOWN_FLOAT_FORMAT, IEEE_FLOAT_FORMAT, VAX_FLOAT_FORMAT): Remove.
5153
5154         * config/alpha/alpha.h (TARGET_FLOAT_FORMAT): Remove.
5155         * config/iq2000/iq2000.h (TARGET_FLOAT_FORMAT): Remove.
5156         * config/pdp11/pdp11.h (TARGET_FLOAT_FORMAT): Remove.
5157         * config/score/score.h (TARGET_FLOAT_FORMAT): Remove.
5158         * config/vax/vax.h (TARGET_FLOAT_FORMAT): Remove.
5159
5160         * doc/tm.texi (Storage Layout): Remove documentation for
5161         TARGET_FLOAT_FORMAT.
5162
5163         * simplify-rtx.c (simplify_binary_operation_1): Replace
5164         TARGET_FLOAT_FORMAT check by appropriate HONOR_... checks.
5165
5166 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5167
5168         * real.h (struct real_format): New member has_sign_dependent_rounding.
5169         * real.c (ieee_single_format, mips_single_format, motorola_single_format,
5170         spu_single_format, ieee_double_format, mips_double_format,
5171         motorola_double_format, ieee_extended_motorola_format,
5172         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
5173         ieee_extended_intel_96_round_53_format, ibm_extended_format,
5174         mips_extended_format, ieee_quad_format, mips_quad_format,
5175         vax_f_format, vax_d_format, vax_g_format): Initialize it.
5176         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
5177
5178         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
5179         MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
5180         * config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
5181         MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
5182         (ROUND_TOWARDS_ZERO): Likewise.
5183
5184         * real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
5185         (FLOAT_MODE_FORMAT): New macro.
5186         (REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
5187         (MODE_COMPOSITE_P): ... this new macro.
5188         (MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
5189         MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
5190         * machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
5191
5192         * flags.h: Include "real.h".
5193
5194         * fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
5195         REAL_MODE_FORMAT_COMPOSITE_P.
5196         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
5197
5198         * doc/tm.texi (Storage Layout): Remove documentation of
5199         MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
5200         MODE_HAS_SIGN_DEPENDENT_ROUNDING.  Update documentation of
5201         ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
5202         they only apply to libgcc2.a.
5203
5204 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5205
5206         * config/spu/float_disf.c: New file.
5207         * config/spu/float_unsdisf.c: New file.
5208         * config/spu/t-elf (LIB2FUNCS_STATIC_EXTRA): Add them.
5209         (LIB2FUNCS_EXCLUDE): Define.
5210
5211 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5212             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
5213
5214         * real.h (struct real_format): New member round_towards_zero.
5215         * real.c (round_for_format): Respect fmt->round_towards_zero.
5216         (ieee_single_format, mips_single_format, motorola_single_format,
5217         spu_single_format, ieee_double_format, mips_double_format,
5218         motorola_double_format, ieee_extended_motorola_format,
5219         ieee_extended_intel_96_format, ieee_extended_intel_128_format,
5220         ieee_extended_intel_96_round_53_format, ibm_extended_format,
5221         mips_extended_format, ieee_quad_format, mips_quad_format,
5222         vax_f_format, vax_d_format, vax_g_format): Initialize it.
5223         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
5224
5225         * builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
5226         real_format to choose rounding mode when calling MPFR functions.
5227         (do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
5228         (do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
5229
5230         * real.h (real_to_decimal_for_mode): Add prototype.
5231         * real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
5232         Respect target rounding mode when generating decimal representation.
5233         (real_to_decimal): New stub for backwards compatibility.
5234         * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
5235         real_to_decimal_for_mode instead of real_to_decimal.
5236
5237         * config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
5238
5239 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5240             Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
5241
5242         * real.c (spu_single_format): New variable.
5243         * real.h (spu_single_format): Declare.
5244
5245         * config/spu/spu.c (spu_override_options): Install SFmode format.
5246         (spu_split_immediate): Use integer mode to operate on pieces of
5247         floating-point values in all cases.
5248
5249         * config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
5250         ("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
5251         ("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
5252
5253 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5254
5255         * config/spu/spu.c (spu_safe_dma): Respect TARGET_SAFE_DMA.
5256
5257 2008-08-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5258
5259         * config/spu/spu.h (DWARF_FRAME_RETURN_COLUMN): Define.
5260
5261 2008-08-12  Jakub Jelinek  <jakub@redhat.com>
5262
5263         PR c++/36688
5264         * gimplify.c (gimplify_modify_expr_rhs): Test TREE_READONLY
5265         on the VAR_DECL instead of TYPE_READONLY on its type.
5266
5267 2008-08-12  Ira Rosen  <irar@il.ibm.com>
5268
5269         * tree-vectorizer.c: Depend on langhooks.h.
5270         (supportable_widening_operation): Add two arguments. Support double
5271         type conversions.
5272         (supportable_narrowing_operation): Likewise.
5273         * tree-vectorizer.h (supportable_widening_operation): Add two
5274         arguments.
5275         (supportable_narrowing_operation): Likewise.
5276         * tree-vect-patterns.c (vect_recog_widen_mult_pattern) : Call
5277         supportable_widening_operation with correct arguments.
5278         * tree-vect-transform.c (vectorizable_conversion): Likewise.
5279         (vectorizable_type_demotion): Support double type conversions.
5280         (vectorizable_type_promotion): Likewise.
5281         * Makefile.in (tree-vectorizer.o): Depend on langhooks.h.
5282
5283 2008-08-11  Michael Matz  <matz@suse.de>
5284
5285         * i386/i386.c (override_options): Move initialisation from
5286         flag_schedule_insns_after_reload to here from ...
5287         (optimization_options): ... here.
5288
5289 2008-08-11  Jakub Jelinek  <jakub@redhat.com>
5290
5291         PR rtl-optimization/36998
5292         * dwarf2out.c (compute_barrier_args_size_1,
5293         compute_barrier_args_size): Temporarily remove assertions.
5294
5295 2008-08-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5296
5297         PR middle-end/20644
5298         * tree-ssa.c (struct walk_data): Add new flag
5299         warn_possibly_uninitialized.
5300         (warn_uninitialized_var): Use it.
5301         (warn_uninitialized_vars): New.
5302         (execute_early_warn_uninitialized): Call it.
5303         (execute_late_warn_uninitialized): Likewise.
5304
5305 2008-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5306
5307         PR middle-end/36238
5308         * reload1.c (gen_reload): Guard calls to get_secondary_mem
5309         for memory subregs.
5310
5311 2008-08-09  Jan Hubicka  <jh@suse.cz>
5312
5313         PR target/37055
5314         * optabs.c (maybe_emit_unop_insn): Remove produced code if
5315         expansion failed.
5316         (expand_fix): Be prepared for expansion to fail.
5317         (expand_sfix_optab): Remove instructions if expansion failed.
5318
5319 2008-08-09  Anatoly Sokolov  <aesok@post.ru>
5320
5321         * config/avr/avr.c (avr_mcu_types): Move the AT43USB320 device to
5322         avr31 architecture.
5323         * config/avr/avr.h (CRT_BINUTILS_SPECS): (Ditto.).
5324         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
5325
5326 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
5327
5328         * config.gcc (mips*-*-linux*, mips64*-*-linux*): Add
5329         mips/t-libgcc-mips16 to tmake_file.
5330         * config/mips/mips-protos.h (mips_call_type): New enum.
5331         (mips_pic_base_register, mips_got_load): Declare.
5332         (mips_restore_gp): Take an rtx argument.
5333         (mips_use_pic_fn_addr_reg_p): Declare.
5334         (mips_expand_call): Replace the sibcall_p argument with
5335         a mips_call_type argument.  Add a lazy_p parameter.
5336         (mips_split_call): Declare.
5337         * config/mips/mips.h (MIPS16_PIC_TEMP_REGNUM): New macro.
5338         (MIPS16_PIC_TEMP): Likewise.
5339         (reg_class): Delete M16_NA_REGS.
5340         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
5341         (SYMBOL_FLAG_BIND_NOW, SYMBOL_REF_BIND_NOW_P): New macros.
5342         (mips_split_hi_p): Declare.
5343         * config/mips/mips.c (mips_split_hi_p): New array.
5344         (mips_regno_to_class): Change M16_NA_REGS entries to M16_REGS.
5345         (mips_got_symbol_type_p): New function.
5346         (mips_global_symbol_p): Check SYMBOL_REF_EXTERNAL_P.
5347         (mips16_stub_function_p): New function.
5348         (mips16_local_function_p): Likewise.
5349         (mips_use_pic_fn_addr_reg_p): Likewise.
5350         (mips_cannot_force_const_mem): Return false for HIGHs.
5351         Extend CONST_INT and symbolic handling to MIPS16, using
5352         mips_symbol_insns to check that the base symbol type is a
5353         legitimate constant.  Reject GOT-based constants if
5354         TARGET_MIPS16_PCREL_LOADS.
5355         (mips_const_insns): Check targetm.cannot_force_const_mem when
5356         decomposing a symbolic base and a large offset.
5357         (mips_emit_call_insn): Add ORIG_ADDR and ADDR parameters.
5358         When calling a function that needs $25 from MIPS16 code,
5359         move the target address into $25 separately and add a USE
5360         to the call insn.
5361         (mips16_gp_pseudo_reg): Insert the initializer immediately
5362         before the first real insn.
5363         (mips_pic_base_register, mips_got_load): New functions.
5364         (mips_split_symbol): Generalize the name of the LO_SUM_OUT
5365         parameter to LOW_OUT.  Say that it can be any valid SET_SRC
5366         when splitting a load-address operation.  Split SYMBOL_GOT_DISP
5367         constants and highs of SYMBOL_GOT_PAGE_OFST constants.
5368         (mips_call_tls_get_addr): Update the call to mips_expand_call,
5369         also passing NULL_RTX rather than const0_rtx as the aux argument.
5370         (mips_rewrite_small_data_p): Check mips_lo_relocs and mips_split_p
5371         instead of TARGET_EXPLICIT_RELOCS.
5372         (mips_ok_for_lazy_binding_p): Check SYMBOL_REF_BIND_NOW_P.
5373         (mips_load_call_address): Replace the sibcall_p argument with
5374         a mips_call_type argument.  Use mips_got_load.
5375         (mips16_local_alias): New structure.
5376         (mips16_local_aliases): New variable.
5377         (mips16_local_aliases_hash): New function.
5378         (mips16_local_aliases_eq): Likewise.
5379         (mips16_local_alias): Likewise.
5380         (mips16_stub_function): Likewise.
5381         (mips16_build_function_stub): Create a local alias for the target
5382         function.  Handle TARGET_ABICALLS.  For PIC abicalls, emit a
5383         .cpload directive and an R_MIPS_NONE relocation for the target
5384         function, then load the alias rather than the function itself.
5385         Wrap the non-PIC abicalls version in ".option pic0/.option pic2".
5386         (mips16_copy_fpr_return_value): Use mips16_stub_function and
5387         mips_expand_call.  Set SYMBOL_REF_BIND_NOW on the symbol.
5388         (mips16_build_call_stub): Replace the FN parameter with an
5389         FN_PTR parameter.  Force the address into a register if it
5390         isn't a call_insn_operand; don't rely on the caller to do this.
5391         If a call to a locally-defined and locally-binding MIPS16
5392         function must be made indirectly, redirect the call to the
5393         function's local alias.  Use mips16_stub_function_p,
5394         mips16_stub_function, mips_expand_call and use_reg.
5395         Set SYMBOL_FLAG_BIND_NOW on __mips_call_* symbols.
5396         Use explicit %hi and %lo accesses where possible.
5397         Use MIPS_CALL to generate the correct code form of a
5398         jal instruction.  Add clobbers of $18 instead of uses.
5399         Update the call to mips_emit_call_insn.
5400         (mips_expand_call): Replace the SIBCALL_P argument with a
5401         mips_call_type argument and handle the new MIPS_CALL_EPILOGUE value.
5402         Take a LAZY_P parameter.  Call mips16_build_call_stub first,
5403         allowing it to modify the call address.  Update the calls to
5404         mips_load_call_address and mips_emit_call_insn.
5405         (mips_split_call): New function.
5406         (mips_init_relocs): Clear mips_split_hi_p.  Only use %gp_rel if
5407         !TARGET_MIPS16.  Split SYMBOL_GOT_DISP, and the high parts of
5408         SYMBOL_GOT_PAGE_OFST, for MIPS16 code.
5409         (mips_global_pointer): Check mips16_cfun_returns_in_fpr_p.
5410         (mips_extra_live_on_entry): Include MIPS16_PIC_TEMP_REGNUM
5411         if TARGET_MIPS16.
5412         (mips_cprestore_slot): New function.
5413         (mips_restore_gp): Take a TEMP parameter.  Handle TARGET_MIPS16
5414         and use mips_cprestore_slot.
5415         (mips_output_function_prologue): Handle TARGET_MIPS16 for
5416         LOADGP_OLDABI.
5417         (mips_emit_loadgp): Move into MIPS16_PIC_TEMP for MIPS16,
5418         then use a copygp_mips16 instruction to set up $28.
5419         (mips_expand_prologue): Initialize the cprestore slot for MIPS16 too.
5420         (mips16_lay_out_constants): Call split_all_insns_noflow.
5421         (mips_reorg_process_insns): Explicitly set all_noreorder_p to
5422         false if TARGET_MIPS16.
5423         (mips_reorg): Don't call vr4130_align_insns if TARGET_MIPS16.
5424         (mips_output_mi_thunk): Use mips_got_symbol_type_p.  Use the
5425         mips_dangerous_for_la25_p approach for MIPS16 PIC calls too.
5426         (mips_set_mips16_mode): Always set MASK_EXPLICIT_RELOCS for
5427         MIPS16 code.  Allow MIPS16 o32 PIC.
5428         (mips_override_options): Allow MIPS16 o32 PIC.
5429         * config/mips/mips.md: Lower CONST_GP_P moves into register moves
5430         after reload if TARGET_USE_GOT.
5431         (UNSPEC_COPYGP): New constant.
5432         (length): Use a default length of 8 for MIPS16 GOT loads.
5433         (*got_disp<mode>): Check mips_split_p instead of TARGET_XGOT.
5434         (*got_page<mode>): Check mips_split_hi_p.
5435         (*got_disp<mode>, *got_page<mode>): Use mips_got_load.
5436         (unspec_got<mode>, unspec_call<mode>): New expanders.
5437         (load_got<mode>, load_call<mode>): Remove the length attributes.
5438         Use a got attribute instead of a type attribute.
5439         (copygp_mips16): New insn.
5440         (restore_gp): Add a scratch clobber and pass it to mips_restore_gp.
5441         (load_call<mode>): Use a "d" constraint instead of an "r" constraint.
5442         (sibcall, sibcall_value, call, call_value): Update the calls
5443         to mips_expand_call.
5444         (call_internal, call_value_internal): Use mips_split_call.
5445         (call_value_multiple_internal): Likewise.
5446         (call_split): Move after call_internal (the insn it is split from).
5447         (call_internal_direct, call_value_internal_direct): Turn into
5448         define_insn_and_splits.  Split if TARGET_SPLIT_CALLS.
5449         (call_direct_split, call_value_direct_split): New patterns.
5450         * config/mips/constraints.md (c): Handle TARGET_MIPS16 first
5451         and use M16_REGS instead of M16_NA_REGS.
5452         * config/mips/predicates.md (const_call_insn_operand): Replace
5453         the TARGET_ABSOLUTE_ABICALLS-based check with a more general
5454         mips_use_pic_fn_addr_reg_p check.
5455         (move_operand): Reject HIGHs if mips_split_hi_p.
5456         * config/mips/mips16.S: Assembly as empty if the ABI is not suitable.
5457         (__mips16_floatunsisf): Inline __mips16_floatsisf.
5458         (CALL_STUB_NO_RET, CALL_STUB_REG): Copy the target register to $25.
5459         * config/mips/libgcc-mips16.ver: New file.
5460         * config/mips/t-libgcc-mips16 (SHLIB_MAPFILES): Add
5461         $(srcdir)/config/mips/libgcc-mips16.ver.
5462
5463 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
5464
5465         * config/mips/mips.c (mips_unspec_address_offset): Move earlier in file.
5466         (mips_unspec_address, mips_unspec_offset_high): Likewise.
5467         (mips_ok_for_lazy_binding_p, mips_load_call_address): Likewise.
5468         (mips16_cfun_returns_in_fpr_p): Likewise.
5469
5470 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
5471
5472         * config/mips/mips.h (MASK_RETURN_ADDR): Expand commentary.
5473         * config/mips/linux-unwind.h (mips_fallback_frame_state): Add 2
5474         rather than 4 to PC.
5475
5476 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
5477
5478         * config/mips/mips.h (STATIC_CHAIN_REGNUM): Remap to $15.
5479         (FUNCTION_PROFILER): Save the static chain pointer into $2
5480         beforehand and restore it aftewards.
5481         (TRAMPOLINE_TEMPLATE): Adjust accordingly.  Load the target
5482         address directly into $25 and call the function through $25;
5483         do not clobber $3.  Pad the DImode version to cover the space
5484         left by the deleted $25 <- $3 move.
5485         (TRAMPOLINE_SIZE): Adjust the size of the SImode version after
5486         the removal of the $25 <- $3 move.
5487         (INITIALIZE_TRAMPOLINE): Update offsets accordingly.
5488         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
5489
5490 2008-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
5491             Daniel Jacobowitz  <dan@codesourcery.com>
5492
5493         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Delete.
5494         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Delete.
5495         (ASM_DECLARE_FUNCTION_SIZE, FUNCTION_NAME_ALREADY_DECLARED): Delete.
5496         * config/mips/mips.c (mips_start_function_definition): New function.
5497         (mips_end_function_definition): Likewise.
5498         (mips_output_function_prologue): Use mips_start_function_definition.
5499         (mips_output_function_epilogue): Use mips_end_function_definition.
5500         (build_mips16_function_stub): Use mips_start_function_definition
5501         and mips_end_function_definition.
5502         (build_mips16_call_stub): Likewise.
5503
5504 2008-08-09  Richard Guenther  <rguenther@suse.de>
5505
5506         * gimple.c (gimple_build_call_1): Deal with FUNCTION_DECL fn.
5507         * gimple.h (gimple_call_fn): Adjust comment.
5508         (gimple_call_set_fndecl): New function.
5509         (gimple_call_fndecl): Adjust for GIMPLE_CALL no
5510         longer having bare FUNCTION_DECL operand.
5511         (gimple_call_return_type): Likewise.
5512         * tree-cfg.c (verify_stmt): Verify function operand of a GIMPLE_CALL.
5513
5514         * value-prof.c (gimple_divmod_fixed_value): Do not emit labels.
5515         (gimple_mod_pow2): Likewise.
5516         (gimple_mod_subtract): Likewise.
5517         (gimple_ic): Likewise.
5518         (gimple_stringop_fixed_value): Likewise.
5519         (gimple_indirect_call_to_profile): Fix for GIMPLE_CALL no
5520         longer having bare FUNCTION_DECL operand.
5521         * ipa-cp.c (ipcp_update_callgraph): Use gimple_call_set_fndecl.
5522         * omp-low.c (optimize_omp_library_calls): Likewise.
5523         * cgraphunit.c (update_call_expr): Likewise.
5524         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
5525         (execute_convert_to_rsqrt): Likewise.
5526         * cfgexpand.c (gimple_to_tree): Simplify.
5527         (release_stmt_tree): Fix for GIMPLE_CALL no longer having
5528         bare FUNCTION_DECL operand.
5529         * tree-nested.c (init_tmp_var_with_call): Use gimple_call_return_type.
5530         (convert_gimple_call): Use gimple_call_fndecl.
5531         * c-common.c (c_warn_unused_result): Likewise.
5532
5533 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5534
5535         PR c/17880
5536         * c-typeck.c (digest_init): Call verify_sequence_points from here.
5537         (c_finish_return): Likewise.
5538         (c_start_case): Likewise.
5539         * c-common.c (warn_for_collisions_1): Use explicit location in warning.
5540         * c-parser.c (c_parser_condition): New. Call
5541         verify_sequence_points.
5542         (c_parser_paren_condition): Call c_parser_condition.
5543         (c_parser_for_statement): Call c_parser_condition.
5544
5545 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5546
5547         PR 36901
5548         * diagnostic.def (DK_PEDWARN, DK_PERMERROR): New.
5549         * diagnostic.c (pedantic_warning_kind, permissive_error_kind):
5550         Moved from diagnostic.h
5551         (diagnostic_report_diagnostic): Return bool. Handle DK_PEDWARN and
5552         DK_PERMERROR.
5553         (emit_diagnostic): New.
5554         (warning0, pedwarn0): Delete.
5555         (warning, warning_at, pedwarn, permerror): Return bool.
5556         * diagnostic.h (pedantic_warning_kind, permissive_error_kind):
5557         Moved to diagnostic.c.
5558         (struct diagnostic_context): Use correct type for
5559         classify_diagnostic.
5560         (diagnostic_report_diagnostic): Update declaration.
5561         (emit_diagnostic): Declare.
5562         * errors.c (warning): Return bool.
5563         * errors.h (warning): Update declaration.
5564         * toplev.h (warning0, pedwarn0): Delete.
5565         (warning, warning_at, pedwarn, permerror): Return bool.
5566         * c-errors.c (pedwarn_c99, pedwarn_c90): Use DK_PEDWARN.
5567         * c-decl.c (locate_old_decl): Delete 'diag' argument. Always use
5568         inform. Update all calls.
5569         (diagnose_mismatched_decls): Check return value of warning/pedwarn
5570         before giving informative note.
5571         (implicit_decl_warning): Likewise.
5572         * c-typeck.c (build_function_call): Likewise.
5573         * tree-sssa.c (warn_uninit): Likewise.
5574         * builtins.c (gimplify_va_arg_expr): Likewise.
5575
5576 2008-08-09  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5577
5578         PR 7651
5579         * doc/invoke.texi (-Wextra): Move warning from here...
5580         (-Wuninitialized): ... to here.
5581
5582 2008-08-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5583
5584         PR 28875
5585         * flags.h (set_Wunused): Delete
5586         * toplev.c (process_options): Handle Wunused flags here.
5587         * opts.c (maybe_warn_unused_parameter): Delete.
5588         (common_handle_option): Replace set_Wunused by warn_unused.
5589         (set_Wextra): Do not handle Wunused-parameter here.
5590         (set_Wunused): Delete.
5591         * c-opts.c (c_common_handle_option): Replace set_Wunused by
5592         warn_unused.
5593         * common.opt (Wunused): Add Var and Init.
5594         (Wunused-function): Likewise.
5595         (Wunused-label): Likewise.
5596         (Wunused-parameter): Likewise.
5597         (Wunused-value): Likewise.
5598         (Wunused-variable): Likewise.
5599
5600 2008-08-08  Peter Bergner  <bergner@vnet.ibm.com>
5601
5602         * doc/invoke.texi: Add cpu_type power7.
5603         * config.in (HAVE_AS_VSX): New.
5604         * config.gcc: Add cpu_type power7.
5605         * configure.ac (HAVE_AS_VSX): Check for assembler support of the
5606         VSX instructions.
5607         * configure: Regenerate.
5608         * config/rs6000/rs6000.c (rs6000_override_options): Alias power7 to
5609         power5.
5610         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Define.
5611         (ASM_CPU_SPEC): Pass %(asm_cpu_power7) for -mcpu=power7.
5612         (EXTRA_SPECS): Add asm_cpu_power7 spec string.
5613
5614 2008-08-08  Dorit Nuzman  <dorit@il.ibm.com>
5615
5616         * tree-vect-transform.c (vectorizable_conversion): Pass the integral
5617         type to vectorize.builtin_conversion.
5618         (vectorizable_conversion): Likewise.
5619         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Always takes
5620         integral type as input.
5621         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Add case for
5622         FIX_TRUNC_EXPR.
5623         (rs6000_expand_builtin): Add case for ALTIVEC_BUILTIN_VCTUXS
5624         and ALTIVEC_BUILTIN_VCTSXS.
5625         (rs6000_builtin_mul_widen_even. rs6000_builtin_mul_widen_odd): Fix
5626         formatting.
5627
5628 2008-08-08  Richard Guenther  <rguenther@suse.de>
5629
5630         * tree-ssa-ccp.c (likely_value): Calls are not all varying.
5631         (surely_varying_stmt_p): Calls are varying only if they are
5632         non-builtin and not indirect or have no result.
5633         (ccp_fold): Re-instantiate code before the tuples merge.
5634
5635 2008-08-08  Richard Guenther  <rguenther@suse.de>
5636
5637         PR tree-optimization/37056
5638         * gimple.h (gimple_assign_rhs_class): New helper function.
5639         * tree-ssa-loop-niter.c (get_val_for): Fix tuplification, handle
5640         unary operations properly.
5641
5642 2008-08-07  Jan Hubicka  <jh@suse.cz>
5643
5644         * i386.h (ix86_size_cost): Declare.
5645         (ix86_cur_cost): New function macro.
5646         * i386.md (peepholes expanding size and splitters): Predicate by
5647         optimize_insn_for_speed_p.
5648         (peepholes reduce size and splitters): Predicate by
5649         optimize_insn_for_size_p.
5650         * i386.c (ix86_size_cost): Rename from ...
5651         (size_cost): This one.
5652         (override_options): Update.
5653         (decide_alg): Likewise.
5654         (ix86_expand_clear): Use RTL profile.
5655         (ix86_pad_returns): Use RTL profile.
5656
5657 2008-08-07  Jan Hubicka  <jh@suse.cz>
5658
5659         * recog.c (split_all_insns): Set RTL profile
5660         (peephole2_optimize): Likewise.
5661         * function.c (thread_prologue_and_epilogue_insns): Likewise.
5662         * combine.c (combine_instructions): Likewise.
5663
5664 2008-08-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5665
5666         * c-common.c (c_common_reswords): Also warn about keyword "bool".
5667
5668 2008-08-07  Bob Wilson  <bob.wilson@acm.org>
5669
5670         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Copy incoming
5671         value in a6 after the set_frame_ptr insn.
5672
5673 2008-08-07  Richard Henderson  <rth@redhat.com>
5674
5675         PR debug/37033
5676         * gcc.c (cpp_options): Pass along -g*.
5677
5678 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
5679
5680         * config/arm/arm.c (output_move_neon): Update comment describing
5681         big-endian vector layout.
5682         (arm_assemble_integer): Do not handle big-endian NEON vectors
5683         specially.
5684         * config/arm/neon.md (vec_set<mode>_internal, vec_extract<mode>,
5685         neon_vget_lane<mode>_sext_internal,
5686         neon_vget_lane<mode>_zext_internal, neon_vget_lane<mode>): Adjust
5687         element indices for big-endian.
5688
5689 2008-08-07  Richard Henderson  <rth@redhat.com>
5690
5691         * configure.ac (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): New.
5692         * configure, config.in: Rebuild.
5693         * debug.h (dwarf2out_do_cfi_asm): Declare.
5694         * c-cppbuiltin.c (c_cpp_builtins): Use it.
5695         * dwarf2out.c (dwarf2out_do_cfi_asm): New.
5696         (dwarf2out_cfi_label, add_fde_cfi, output_call_frame_info,
5697         dwarf2out_begin_prologue, dwarf2out_end_epilogue): Use it.
5698
5699 2008-08-07  Joseph Myers  <joseph@codesourcery.com>
5700
5701         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
5702         movv2si_internal): Combine into mov<mode>_internal.
5703         (movv2si_internal_2): Remove.
5704
5705 2008-08-07  Jan Hubicka  <jh@suse.cz>
5706
5707         PR target/37048
5708         * i386.md (single stringop patterns): Enable unconditionally.
5709
5710 2008-08-07  H.J. Lu  <hongjiu.lu@intel.com>
5711
5712         PR target/36992
5713         * config/i386/emmintrin.h (_mm_move_epi64): Use __builtin_ia32_movq128.
5714
5715         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVQ128.
5716         (bdesc_args): Add IX86_BUILTIN_MOVQ128.
5717
5718         * config/i386/sse.md (sse2_movq128): New.
5719
5720         * doc/extend.texi: Document __builtin_ia32_movq128.
5721
5722 2008-08-07  Richard Guenther  <rguenther@suse.de>
5723
5724         PR middle-end/37042
5725         * tree-ssa-alias-warnings.c (nonstandard_alias_p): Ref-all
5726         pointers can access anything.
5727
5728 2008-08-06  Jan Hubicka  <jh@suse.cz>
5729
5730         * optabs.c (emit_unop_insn): Break out to ...
5731         (maybe_emit_unop_insn): ... this one.
5732         (expand_sfix_optab): Use maybe variant.
5733         * optabs.h (maybe_emit_unop_insn): Declare.
5734
5735         * i386.md (mov0 patterns): Enable by default.
5736         (FP conversion expanders): Disable expansion of code expanding
5737         sequences when instruction should be optimized for size.
5738         (single strinop patterns): Enable when optimizing for size.
5739         (string expanders): Disable expanding of code expanding sequences
5740         when optimizning instruction for size.
5741         * i386.c (ix86_expand_vector_move_misalign): Do code size optimization
5742         per BB basis.
5743         (ix86_fp_comparison_sahf_cost): Likewise.
5744         (ix86_expand_branch): Likewise.
5745         (ix86_expand_ashl_const): Likewise.
5746         (ix86_split_ashl): Likewise.
5747         (ix86_expand_strlen): Likewise.
5748         (ix86_emit_fp_unordered_jump): Likewie.
5749
5750 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5751
5752         * c-common.c: Fix typo.
5753         (c_common_reswords): Activate more C++ keyword warnings.
5754
5755         * matrix-reorg.c (compute_offset): Avoid C++ keywords.
5756
5757 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5758
5759         PR 26785
5760         * diagnostic.c (permerror_at): New.
5761         * toplev.h (permerror_at): Declare.
5762
5763 2008-08-06  Victor Kaplansky  <victork@il.ibm.com>
5764             Ira Rosen  <irar@il.ibm.com>
5765
5766         * tree-vect-transform.c (vect_model_simple_cost): Return
5767         immediately if stmt is pure SLP.
5768         (vect_model_store_cost): Ditto.
5769         (vect_model_load_cost): Ditto.
5770         (vectorizable_store): Remove PURE_SLP check before call
5771         to vect_model_store_cost.
5772         (vect_model_store_cost): When checking whether stmt describe
5773         strided access, add a check that it is not slp_node.
5774
5775 2008-08-06  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5776
5777         PR 8715
5778         * c-common.c (warn_for_sign_compare): New. Handle separately the
5779         case that 'constant' is zero.
5780         * c-typeck.c (build_binary_op): Move code to c-common.c
5781
5782 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5783
5784         * config/alpha/alpha.c (alpha_preferred_reload_class,
5785         alpha_secondary_reload, alpha_emit_set_const_1, function_value,
5786         alpha_output_mi_thunk_osf): Avoid C++ keywords.
5787         * config/arm/arm.c (output_move_vfp, output_move_neon): Likewise.
5788         * config/arm/arm.md: Likewise.
5789         * config/avr/avr-protos.h (preferred_reload_class,
5790         test_hard_reg_class, avr_simplify_comparison_p,
5791         out_shift_with_cnt, class_max_nregs): Likewise.
5792         * config/avr/avr.c (class_max_nregs, avr_simplify_comparison_p,
5793         output_movqi, output_movhi, output_movsisf, out_shift_with_cnt,
5794         preferred_reload_class, test_hard_reg_class): Likewise.
5795         * config/bfin/bfin.c (legitimize_pic_address, hard_regno_mode_ok,
5796         bfin_memory_move_cost, bfin_secondary_reload,
5797         bfin_output_mi_thunk): Likewise.
5798         * config/crx/crx.c (crx_secondary_reload_class,
5799         crx_memory_move_cost): Likewise.
5800         * config/frv/frv-protos.h (frv_secondary_reload_class,
5801         frv_class_likely_spilled_p, frv_class_max_nregs): Likewise.
5802         * config/frv/frv.c (frv_override_options, frv_alloc_temp_reg,
5803         frv_secondary_reload_class, frv_class_likely_spilled_p,
5804         frv_class_max_nregs): Likewise.
5805         * config/h8300/h8300.c (h8300_classify_operand,
5806         h8300_unary_length, h8300_bitfield_length, h8300_asm_insn_count):
5807         Likewise.
5808         * config/i386/winnt.c (i386_pe_declare_function_type): Likewise.
5809         * config/ia64/ia64.c (ia64_preferred_reload_class,
5810         ia64_secondary_reload_class, ia64_output_mi_thunk): Likewise.
5811         * config/iq2000/iq2000.c (gen_int_relational): Likewise.
5812         * config/m32c/m32c.c (class_can_hold_mode, m32c_output_compare):
5813         Likewise.
5814         * config/m68hc11/m68hc11.c (preferred_reload_class,
5815         m68hc11_memory_move_cost): Likewise.
5816         * config/mcore/mcore.c (mcore_secondary_reload_class,
5817         mcore_reload_class): Likewise.
5818         * config/mips/mips.c (mips_hard_regno_mode_ok_p,
5819         mips_class_max_nregs, mips_cannot_change_mode_class,
5820         mips_preferred_reload_class, mips_secondary_reload_class,
5821         mips_output_mi_thunk): Likewise.
5822         * config/mmix/mmix.c (mmix_preferred_reload_class,
5823         mmix_preferred_output_reload_class, mmix_secondary_reload_class):
5824         Likewise.
5825         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
5826         Likewise.
5827         * config/pa/pa.c (pa_secondary_reload, pa_combine_instructions,
5828         pa_can_combine_p, pa_cannot_change_mode_class): Likewise.
5829         * config/pa/pa.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
5830         * config/rs6000/rs6000.c (paired_expand_vector_init,
5831         rs6000_secondary_reload_class, rs6000_output_mi_thunk,
5832         compare_section_name, rs6000_memory_move_cost): Likewise.
5833         * config/s390/s390.c (s390_emit_compare_and_swap,
5834         s390_preferred_reload_class, s390_secondary_reload,
5835         legitimize_pic_address, legitimize_tls_address,
5836         legitimize_reload_address, s390_expand_cs_hqi, s390_expand_atomic,
5837         s390_class_max_nregs): Likewise.
5838         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
5839         * config/s390/s390.md: Likewise.
5840         * config/score/score-protos.h (score_secondary_reload_class,
5841         score_preferred_reload_class): Likewise.
5842         * config/score/score.c (score_preferred_reload_class,
5843         score_secondary_reload_class): Likewise.
5844         * config/score/score3.c (score3_output_mi_thunk,
5845         score3_preferred_reload_class, score3_secondary_reload_class,
5846         score3_hard_regno_mode_ok): Likewise.
5847         * config/score/score3.h (score3_preferred_reload_class,
5848         score3_secondary_reload_class): Likewise.
5849         * config/score/score7.c (score7_output_mi_thunk,
5850         score7_preferred_reload_class, score7_secondary_reload_class,
5851         score7_hard_regno_mode_ok): Likewise.
5852         * config/score/score7.h (score7_preferred_reload_class,
5853         score7_secondary_reload_class): Likewise.
5854         * config/sh/sh.c (prepare_move_operands, output_far_jump,
5855         output_branchy_insn, add_constant, gen_block_redirect,
5856         sh_insn_length_adjustment, sh_cannot_change_mode_class,
5857         sh_output_mi_thunk, replace_n_hard_rtx, sh_secondary_reload): Likewise.
5858         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5859         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi,
5860         xstormy16_output_cbranch_si, xstormy16_secondary_reload_class,
5861         xstormy16_preferred_reload_class): Likewise.
5862         * config/xtensa/xtensa.c (xtensa_expand_compare_and_swap,
5863         xtensa_expand_atomic, override_options,
5864         xtensa_preferred_reload_class, xtensa_secondary_reload_class):
5865         Likewise.
5866         * reorg.c (try_merge_delay_insns): Likewise.
5867         * tree.c (merge_dllimport_decl_attributes): Likewise.
5868
5869         * config/frv/frv.c (frv_print_operand): Change isalpha to ISALPHA.
5870
5871 2008-08-06  Michael Matz  <matz@suse.de>
5872
5873         * Makefile.in (write_entries_to_file): Quote words.
5874         * gengtype.c: (read_input_line): Skip over leading white-space.
5875
5876 2008-08-06  Marc Gauthier  <marc@tensilica.com>
5877
5878         * config.gcc: Match more processor names for Xtensa.
5879         * configure.ac: Likewise.
5880         * doc/install.texi (Specific): Likewise.
5881         * configure: Regenerate.
5882
5883 2008-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5884
5885         * builtins.c (expand_builtin_profile_func): Avoid C++ keywords.
5886         * calls.c (avoid_likely_spilled_reg): Likewise.
5887         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
5888         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Likewise.
5889         * config/i386/i386.c (ix86_expand_special_args_builtin,
5890         ix86_secondary_reload): Likewise.
5891         * except.c (struct eh_region, gen_eh_region_catch,
5892         remove_unreachable_regions, duplicate_eh_regions,
5893         assign_filter_values, build_post_landing_pads,
5894         sjlj_find_directly_reachable_regions, remove_eh_handler,
5895         reachable_next_level, foreach_reachable_handler,
5896         can_throw_internal_1, can_throw_external_1,
5897         collect_one_action_chain): Likewise.
5898         * expr.c (expand_expr_real_1, vector_mode_valid_p): Likewise.
5899         * fold-const.c (twoval_comparison_p, eval_subst): Likewise.
5900         * function.c (update_temp_slot_address, instantiate_new_reg,
5901         instantiate_virtual_regs_in_rtx,
5902         instantiate_virtual_regs_in_insn): Likewise.
5903         * gimple.c (extract_ops_from_tree, gimple_seq_copy): Likewise.
5904         * gimplify.c (gimplify_call_expr, gimplify_init_constructor,
5905         gimplify_cleanup_point_expr): Likewise.
5906         * ipa-cp.c (ipcp_lattice_changed): Likewise.
5907         * passes.c (next_pass_1): Likewise.
5908         * print-tree.c (print_node_brief, print_node): Likewise.
5909         * profile.c (branch_prob): Likewise.
5910         * tree-dump.c (dump_register): Likewise.
5911         * tree-eh.c (replace_goto_queue_cond_clause, lower_catch):
5912         Likewise.
5913         * tree-inline.c (remap_ssa_name, remap_type_1, remap_blocks,
5914         copy_statement_list, remap_gimple_op_r, copy_tree_body_r,
5915         copy_edges_for_bb, copy_cfg_body, copy_tree_r,
5916         copy_arguments_for_versioning, copy_static_chain): Likewise.
5917         * tree-into-ssa.c (names_replaced_by, add_to_repl_tbl,
5918         add_new_name_mapping, register_new_name_mapping): Likewise.
5919         * tree-mudflap.c (mf_xform_derefs): Likewise.
5920         * tree-predcom.c (struct chain, dump_chain, replace_ref_with,
5921         get_init_expr, combine_chains): Likewise.
5922         * tree-pretty-print.c (dump_generic_node): Likewise.
5923         * tree-ssa-structalias.c (create_variable_info_for): Likewise.
5924         * tree-vrp.c (simplify_cond_using_ranges): Likewise.
5925         * tree.c (substitute_in_expr, iterative_hash_expr): Likewise.
5926         * value-prof.c (gimple_duplicate_stmt_histograms): Likewise.
5927
5928 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
5929
5930         PR middle-end/37010
5931         * calls.c (expand_call): Use the biggest preferred stack
5932         boundary.
5933
5934 2008-08-06  Michael Matz  <matz@suse.de>
5935
5936         PR target/36613
5937         * reload.c (push_reload): Merge in,out,in_reg,out_reg members
5938         for reused reload, instead of overwriting them.
5939
5940 2008-08-06  H.J. Lu  <hongjiu.lu@intel.com>
5941
5942         PR middle-end/37009
5943         * cfgexpand.c (expand_stack_alignment): Check parm_stack_boundary
5944         for incoming stack boundary.
5945
5946         * function.c (assign_parm_find_entry_rtl): Update
5947         parm_stack_boundary.
5948
5949         * function.h (rtl_data): Add parm_stack_boundary.
5950
5951         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Check
5952         parm_stack_boundary for incoming stack boundary.
5953
5954 2008-08-06  Joseph Myers  <joseph@codesourcery.com>
5955
5956         * jump.c (rtx_renumbered_equal_p): Do not call subreg_regno_offset
5957         for unrepresentable subregs or treat them as equal to other regs
5958         or subregs with the same register number.
5959
5960 2008-08-06  Aldy Hernandez  <aldyh@redhat.com>
5961
5962         PR middle-end/35432
5963         * gimplify.c (gimplify_modify_expr): Do not optimize zero-sized types
5964         if want_value.
5965
5966 2008-08-06  Jan Hubicka  <jh@suse.cz>
5967
5968         * predict.c (maybe_hot_frequency_p): When profile is absent, all
5969         frequencies might be hot.
5970
5971 2008-08-06  Andreas Krebbel  <krebbel1@de.ibm.com>
5972
5973         * reload.c (find_reloads): Force constants into literal pool
5974         also if they are wrapped in a SUBREG.
5975
5976 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5977
5978         PR target/35659
5979         * haifa-sched.c (sched_insn_is_legitimate_for_speculation_p): Move ...
5980         * sched-deps.c (sched_insn_is_legitimate_for_speculation_p): ... here.
5981         Don't allow predicated instructions for data speculation.
5982         * sched-int.h (sched_insn_is_legitimate_for_speculation_p): Move
5983         declaration.
5984
5985 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5986
5987         * haifa-sched.c (extend_global): Split to extend_global_data and
5988         extend_region_data.  Update all uses.
5989         (extend_all): Rename to extend_block_data.
5990
5991 2008-08-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5992
5993         * sched-rgn.c (new_ready): Check if instruction can be
5994         speculatively scheduled before attempting speculation.
5995         (debug_rgn_dependencies): Remove wrongful assert.
5996
5997 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
5998
5999         * config/xtensa/t-xtensa: Remove dependency for gt-xtensa.h.
6000
6001 2008-08-05  Bob Wilson  <bob.wilson@acm.org>
6002
6003         * config/xtensa/xtensa.c (xtensa_va_start): Unshare valist.
6004         (xtensa_gimplify_va_arg_expr): Unshare valist, orig_ndx, ndx, array,
6005         va_size, and type_size.
6006
6007 2008-08-04  Jason Merrill  <jason@redhat.com>
6008
6009         PR c++/37016
6010         * tree-ssa.c (useless_type_conversion_p_1): Call langhook
6011         if TYPE_STRUCTURAL_EQUALITY_P is true for both types.
6012
6013 2008-08-05  Richard Henderson  <rth@redhat.com>
6014
6015         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Check .cfi_personality.
6016         * configure: Rebuild.
6017
6018 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6019
6020         PR tree-opt/37024
6021         * tree-tailcall.c (process_assignment): Use gimple_assign_cast_p
6022         instead of IS_CONVERT_EXPR_CODE_P for seeing if the assignment
6023         is a conversion.
6024
6025 2008-08-05  Richard Henderson  <rth@redhat.com>
6026
6027         * Makefile.in (c-cppbuiltin.o): Depend on debug.h.
6028         * c-cppbuiltin.c (c_cpp_builtins): Define __GCC_HAVE_DWARF2_CFI_ASM.
6029         * doc/cpp.texi (__GCC_HAVE_DWARF2_CFI_ASM): Document it.
6030         * common.opt (fdwarf2-cfi-asm): New.
6031         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): New.
6032         * config.in, configure: Rebuild.
6033         * dwarf2asm.c (dw2_asm_output_data_raw): New.
6034         (dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_sleb128_raw): New.
6035         (dw2_force_const_mem): Externalize.
6036         * dwarf2asm.h: Update.
6037         * dwarf2out.c (dwarf2out_cfi_label): If flag_dwarf2_cfi_asm, don't
6038         generate a real label.
6039         (output_cfi_directive): New.
6040         (add_fde_cfi): If flag_dwarf2_cfi_asm, use it.
6041         (output_call_frame_info): Do nothing if flag_dwarf2_cfi_asm.
6042         (dwarf2out_begin_prologue): Emit .cfi_startproc, .cfi_personality,
6043         and .cfi_lsda.
6044         (dwarf2out_end_epilogue): Emit .cfi_endproc.
6045         (output_loc_operands_raw, output_loc_sequence_raw): New.
6046         (output_cfa_loc_raw): New.
6047
6048 2008-08-05  Paul Brook  <paul@codesourcery.com>
6049
6050         * doc/invoke.texi: Document new ARM -mfpu= and -mcpu= options.
6051         * config/arm/arm.c (all_fpus): Add vfpv3 and vfpv3-d16.
6052         (fp_model_for_fpu): Add entry for FPUTYPE_VFP3D16.
6053         (arm_file_start): Add FPUTYPE_VFP3D16.  Rename vfp3 to vfpv3.
6054         * config/arm/arm.h (TARGET_VFPD32): Define.
6055         (TARGET_VFP3): Use TARGET_VFPD32.
6056         (fputype): Add FPUTYPE_VFP3D16.
6057         (LAST_VFP_REGNUM): Use TARGET_VFPD32.
6058         * config/arm/constraints.md ("w"): Use TARGET_VFPD32.
6059         * config/arm/arm-cores.def: Add cortex-r4f.
6060         * config/arm/arm-tune.md: Regenerate.
6061
6062 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6063
6064         * config/spu_spu_mfcio.h: Wrap in extern "C" if __cplusplus.
6065         Reword some comments throughout the file.
6066
6067         (MFC_MIN_DMA_LIST_ELEMENTS): New define.
6068         (MFC_MAX_DMA_LIST_ELEMENTS): Likewise.
6069         (MFC_MIN_DMA_LIST_SIZE): Redefine in terms of MFC_MIN_DMA_LIST_ELEMENTS.
6070         (MFC_MAX_DMA_LIST_SIZE): Redefine in terms of MFC_MAX_DMA_LIST_ELEMENTS.
6071
6072         (MFC_START_ENABLE): Remove PPU-only define.
6073         (MFC_PUTS_CMD, MFC_PUTFS_CMD, MFC_PUTBS_CMD): Likewise.
6074         (MFC_GETS_CMD, MFC_GETFS_CMD, MFC_GETBS_CMD): Likewise.
6075
6076         (MFC_PUTB_CMD, MFC_PUTF_CMD): Reimplement using symbolic constants.
6077         (MFC_PUTL_CMD, MFC_PUTLB_CMD, MFC_PUTLF_CMD): Likewise.
6078         (MFC_PUTR_CMD, MFC_PUTRB_CMD, MFC_PUTRF_CMD): Likewise.
6079         (MFC_PUTRL_CMD, MFC_PUTRLB_CMD, MFC_PUTRLF_CMD): Likewise.
6080         (MFC_GETB_CMD, MFC_GETF_CMD): Likewise.
6081         (MFC_GETL_CMD, MFC_GETLB_CMD, MFC_GETLF_CMD): Likewise.
6082         (MFC_SNDSIGB_CMD, MFC_SNDSIGF_CMD): Likewise.
6083
6084         (MFC_SDCRT_CMD, MFC_SDCRTST_CMD): New defines.
6085         (MFC_SDCRZ_CMD, MFC_SDCRST_CMD, MFC_SDCRF_CMD): Likewise.
6086         (mfc_sdcrt, mfc_sdcrtst): Likewise.
6087         (mfc_sdcrz, mfc_sdcrst, mfc_sdcrf): Likewise.
6088
6089         (spu_read_machine_status): Fix typo.
6090
6091 2008-08-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6092
6093         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Allow (multi)word-sized
6094         SUBREG of multi-word hard register.
6095         * config/spu/spu.c (valid_subreg): Likewise.
6096         (adjust_operand): Handle SUBREGs of multi-word hard registers.
6097
6098 2008-08-04  Richard Guenther  <rguenther@suse.de>
6099
6100         * tree-ssa-loop-ivopts.c (add_iv_value_candidates): Also add
6101         the candidate with the stripped base if that base is different
6102         from the original base even for offset zero.
6103
6104 2008-08-04  Richard Guenther  <rguenther@suse.de>
6105
6106         PR middle-end/36691
6107         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Correctly
6108         check for no_overflow.
6109
6110 2008-08-04  Richard Guenther  <rguenther@suse.de>
6111
6112         * tree-vect-transform.c (vectorizable_call): Fix tuplification.
6113
6114 2008-08-04  Paul Brook  <paul@codesourcery.com>
6115
6116         * cofig/arm/arm.c (thumb_core_reg_alloc_order): New.
6117         (arm_order_regs_for_local_alloc): New function.
6118         * config/arm/arm-protos.h (arm_order_regs_for_local_alloc): Add
6119         prototype.
6120         * config/arm/arm.h (ORDER_REGS_FOR_LOCAL_ALLOC): Define.
6121
6122 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6123
6124         PR target/37012
6125         * config/i386/i386.c (ix86_expand_prologue): Use UNITS_PER_WORD
6126         instead of STACK_BOUNDARY / BITS_PER_UNIT to align stack.
6127         (ix86_expand_epilogue): Likewise.
6128
6129 2008-08-04  H.J. Lu  <hongjiu.lu@intel.com>
6130
6131         * config/i386/i386.c (ix86_compute_frame_layout): Fix a typo
6132         in comments.
6133
6134 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
6135
6136         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use Yi instead of x
6137         to avoid inter-unit moves for !TARGET_INTER_UNIT_MOVES.
6138         (*movv2sf_internal_rex64): Ditto.
6139
6140 2008-08-03  Jan Hubicka  <jh@suse.cz>
6141
6142         * optabs.c (expand_binop, expand_builtin_pow, expand_builtin_powi,
6143         expand_builtin_strcat): Upse optimize_insn_for_speed predicate.
6144         * expmed.c (expand_smod_pow2): Likewise.
6145
6146 2008-08-03  Uros Bizjak  <ubizjak@gmail.com>
6147
6148         PR target/36992
6149         * config/i386/sse.md (vec_concatv2di): Add Y2 constraint to
6150         alternative 0 of operand 1.
6151         (*vec_concatv2di_rex64_sse): Ditto.
6152         (*vec_concatv2di_rex64_sse4_1): Add x constraint to alternative 0
6153         of operand 1.
6154         (*sse2_storeq_rex64): Penalize allocation of "r" registers.
6155         * config/i386/mmx.md (*mov<mode>_internal_rex64): Penalize allocation
6156         of "Y2" registers to avoid SSE <-> MMX conversions for DImode moves.
6157         (*movv2sf_internal_rex64): Ditto.
6158
6159 2008-08-02  Richard Guenther  <rguenther@suse.de>
6160
6161         PR target/35252
6162         * config/i386/sse.md (SSEMODE4S, SSEMODE2D): New mode iterators.
6163         (ssedoublesizemode): New mode attribute.
6164         (sse_shufps): Call gen_sse_shufps_v4sf.
6165         (sse_shufps_1): Macroize.
6166         (sse2_shufpd): Call gen_Sse_shufpd_v2df.
6167         (sse2_shufpd_1): Macroize.
6168         (vec_extract_odd, vec_extract_even): New expanders.
6169         (vec_interleave_highv4sf, vec_interleave_lowv4sf,
6170         vec_interleave_highv2df, vec_interleave_lowv2df): Likewise.
6171         * i386.c (ix86_expand_vector_init_one_nonzero): Call
6172         gen_sse_shufps_v4sf instead of gen_sse_shufps_1.
6173         (ix86_expand_vector_set): Likewise.
6174         (ix86_expand_reduc_v4sf): Likewise.
6175
6176 2008-08-01  Doug Kwan  <dougkwan@google.com>
6177
6178         * matrix-reorg.c: Re-enable all code.
6179         (struct malloc_call_data): Change CALL_STMT to gimple type.
6180         (collect_data_for_malloc_call): Tuplify.
6181         (struct access_site_info): Change STMT to gimple type.
6182         (struct matrix_info): Change MIN_INDIRECT_LEVEL_ESCAPE_STMT,
6183         and MALLOC_FOR_LEVEL to gimple and gimple pointer type.
6184         (struct free_info): Change STMT to gimple type.
6185         (struct matrix_access_phi_node):  Change PHI to gimple type.
6186         (get_inner_of_cast_expr): Remove.
6187         (may_flatten_matrices_1): Tuplify.
6188         (may_flatten_matrices): Ditto.
6189         (mark_min_matrix_escape_level): Ditto.
6190         (ssa_accessed_in_tree): Refactor statement RHS related code into ...
6191         (ssa_accessed_in_call_rhs): New
6192         (ssa_accessed_in_assign_rhs): New
6193         (record_access_alloc_site_info): Tuplify.
6194         (add_allocation_site): Ditto.
6195         (analyze_matrix_allocation_site): Ditto.
6196         (analyze_transpose): Ditto.
6197         (get_index_from_offset): Ditto.
6198         (update_type_size): Ditto.
6199         (analyze_accesses_for_call_expr): Tuplify and renamed into ...
6200         (analyze_accesses_for_call_stmt): New. Also handle LHS of a call.
6201         (analyze_accesses_for_phi_node): Tuplify.
6202         (analyze_accesses_for_modify_stmt): Tuplify and renamed into ...
6203         (analyze_accesses_for_assign_stmt): Remove code for handling call LHS.
6204         (analyze_matrix_accesses): Tuplify.
6205         (check_var_data): New call-back type for check_var_notmodified_p.
6206         (check_var_notmodified_p): Tuplify and use call-back struct to
6207         return statement found.
6208         (can_calculate_expr_before_stmt): Factor out statement related code
6209         into ...
6210         (can_calculate_stmt_before_stmt): New.
6211         (check_allocation_function): Tuplify.
6212         (find_sites_in_func): Ditto.
6213         (record_all_accesses_in_func): Ditto.
6214         (transform_access_sites): Ditto.
6215         (transform_allocation_sites): Ditto.
6216         (matrix_reorg): Re-enable.
6217         (gate_matrix_reorg): Re-enable.
6218
6219 2008-08-01  Jakub Jelinek  <jakub@redhat.com>
6220
6221         * dwarf2out.c (compute_barrier_args_size): Set barrier_args_size
6222         for labels for which it hasn't been set yet.  If it has been set,
6223         stop walking insns and continue with next worklist item.
6224         (dwarf2out_stack_adjust): Don't call compute_barrier_args_size
6225         if the only BARRIER is at the very end of a function.
6226
6227 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
6228
6229         * cfgexpand.c (expand_stack_alignment): Assert that
6230         stack_realign_drap and drap_rtx must match.
6231
6232         * function.c (instantiate_new_reg): If DRAP is used to realign
6233         stack, replace virtual_incoming_args_rtx with internal arg
6234         pointer.
6235
6236 2008-08-01  Richard Guenther  <rguenther@suse.de>
6237
6238         * tree-ssa-pre.c (fini_pre): Take in_fre parameter.  Free
6239         loop information only if we initialized it.
6240         (execute_pre): Call fini_pre with in_fre.
6241         * tree-ssa-loop-ivcanon (try_unroll_loop_completely): Dump
6242         if we do not unroll because we hit max-completely-peeled-insns.
6243         Use our estimation for consistency, do allow shrinking.
6244
6245 2008-08-01  H.J. Lu  <hongjiu.lu@intel.com>
6246
6247         * config/i386/i386.c (override_options): Replace ABI_STACK_BOUNDARY
6248         with MIN_STACK_BOUNDARY.
6249         (ix86_update_stack_boundary): Likewise.
6250         (ix86_expand_prologue): Assert MIN_STACK_BOUNDARY instead of
6251         STACK_BOUNDARY.
6252
6253         * config/i386/i386.h (ABI_STACK_BOUNDARY): Renamed to ...
6254         (MIN_STACK_BOUNDARY): This.
6255
6256 2008-08-01  Richard Guenther  <rguenther@suse.de>
6257
6258         PR middle-end/36997
6259         * gimplify.c (gimplify_call_expr): Set error_mark_node on GS_ERROR.
6260
6261 2008-08-01  Richard Guenther  <rguenther@suse.de>
6262
6263         PR tree-optimization/36988
6264         * tree-ssa-ccp.c (ccp_fold): Conversions of constants only
6265         do not matter if that doesn't change volatile qualification.
6266
6267 2008-08-01  Paolo Bonzini  <bonzini@gnu.org>
6268
6269         * configure.ac: Do not generate libada-mk.  Do not subst
6270         host_cc_for_libada.
6271         * libada-mk.in: Remove.
6272         * Makefile.in: Pass TARGET_LIBGCC2_CFLAGS to libgcc.mvars.
6273         * configure: Regenerate.
6274
6275 2008-08-01  Basile Starynkevitch  <basile@starynkevitch.net>
6276
6277         * tree-pass.h: Added comment about not dumping passes with name
6278         starting with star in struct opt_pass.
6279         * passes.c (register_dump_files_1): Don't do dump for a pass with
6280         name starting with star.
6281         * doc/passes.texi (Pass manager): Mention pass names and special
6282         meaning of star prefix to avoid dump.
6283
6284 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
6285
6286         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
6287         to MIPS64r2.
6288         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
6289         (ISA_MIPS64R2): New macro.
6290         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
6291         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
6292         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
6293         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
6294         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
6295         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
6296         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
6297         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
6298         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
6299         Move up to keep list alphabetically sorted.
6300         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
6301         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
6302         processor.
6303         * doc/invoke.texi (MIPS Options): Add -mips64r2.
6304         (-march=@var{arch}): Add mips64r2.
6305
6306 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
6307
6308         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
6309
6310 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
6311
6312         * expr.c (expand_assignment): Check for complete type.
6313
6314 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
6315
6316         PR debug/36977
6317         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
6318
6319         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
6320         for stack alignment.
6321
6322         * function.h (rtl_data): Add stack_realign_tried.  Update comments.
6323
6324 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
6325
6326         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
6327         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.
6328
6329 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
6330
6331         PR rtl-optimization/36419
6332         * dwarf2out.c (barrier_args_size): New variable.
6333         (compute_barrier_args_size, compute_barrier_args_size_1): New
6334         functions.
6335         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
6336         if not called yet in the current function, use barrier_args_size
6337         array to find the new args_size value.
6338         (dwarf2out_frame_debug): Free and clear barrier_args_size.
6339
6340 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
6341
6342         PR debug/36980
6343         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
6344         rule 19.
6345
6346 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
6347
6348         PR debug/36976
6349         * dwarf2out.c (dwarf2out_args_size_adjust): New.
6350         (dwarf2out_stack_adjust): Use it.
6351         (dwarf2out_frame_debug_expr): Likewise.
6352
6353 2008-07-31  Richard Guenther  <rguenther@suse.de>
6354
6355         PR tree-optimization/36978
6356         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
6357         the generated condition.
6358
6359 2008-07-31  Richard Guenther  <rguenther@suse.de>
6360
6361         * passes.c (init_optimization_passes): Always call
6362         pass_early_warn_uninitialized.
6363         * opts.c (decode_options): Do not warn about -Wuninitialized at -O0.
6364         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
6365         * doc/passes.texi (Warn for uninitialized variables): Adjust.
6366
6367 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
6368
6369         PR c/36970
6370         * builtins.c (maybe_emit_free_warning): New function.
6371         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
6372         maybe_emit_free_warning for BUILT_IN_FREE.
6373
6374         PR debug/36278
6375         * dwarf2out.c (get_context_die): New function.
6376         (force_decl_die, force_type_die): Use it.
6377         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
6378         returns NULL, force generation of DW_TAG_typedef and put that into
6379         DW_AT_import.
6380
6381         PR preprocessor/36649
6382         * c-pch.c (c_common_read_pch): Save and restore
6383         line_table->trace_includes across PCH restore.
6384
6385 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
6386
6387         PR ada/36554
6388         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
6389
6390 2008-07-30  Rafael Ávila de Espíndola  <espindola@google.com>
6391
6392         PR 36974
6393         * final.c (call_from_call_insn): Handle COND_EXEC.
6394
6395 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
6396
6397         * builtins.c (std_gimplify_va_arg_expr): Replace
6398         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
6399         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
6400
6401 2008-07-30  Joey Ye  <joey.ye@intel.com>
6402             H.J. Lu  <hongjiu.lu@intel.com>
6403
6404         * builtins.c (expand_builtin_setjmp_receiver): Replace
6405         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
6406         (expand_builtin_apply_args_1): Likewise.
6407         (expand_builtin_longjmp): Need DRAP for stack alignment.
6408         (expand_builtin_apply): Likewise.
6409
6410         * caller-save.c (setup_save_areas): Call assign_stack_local_1
6411         instead of assign_stack_local to allow alignment reduction.
6412
6413         * calls.c (emit_call_1): Need DRAP for stack alignment if
6414         return pops.
6415         (expand_call): Replace virtual_incoming_args_rtx with
6416         crtl->args.internal_arg_pointer.
6417         * stmt.c (expand_nl_goto_receiver): Likewise.
6418
6419         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
6420         alignment and store to stack_alignment_estimated and
6421         max_used_stack_slot_alignment.
6422         (expand_one_var): Likewise.
6423         (expand_stack_alignment): New function.
6424         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
6425         and stack_alignment_estimated fields in rtl_data.  Call
6426         expand_stack_alignment at end.
6427
6428         * defaults.h (INCOMING_STACK_BOUNDARY): New.
6429         (MAX_STACK_ALIGNMENT): Likewise.
6430         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
6431         (SUPPORTS_STACK_ALIGNMENT): Likewise.
6432
6433         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
6434         stack alignment when generating virtual registers.
6435
6436         * function.c (assign_stack_local): Renamed to ...
6437         (assign_stack_local_1): This.  Add a parameter to indicate
6438         if it is OK to reduce alignment.
6439         (assign_stack_local): Use it.
6440         (instantiate_new_reg): Instantiate virtual incoming args rtx
6441         to vDRAP if stack realignment and DRAP is needed.
6442         (assign_parms): Collect parameter/return type alignment and
6443         contribute to stack_alignment_estimated.
6444         (locate_and_pad_parm): Likewise.
6445         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
6446         with crtl->args.internal_arg_pointer.
6447
6448         * function.h (rtl_data): Add new field drap_reg,
6449         max_used_stack_slot_alignment, stack_alignment_estimated,
6450         stack_realign_needed, need_drap, stack_realign_processed and
6451         stack_realign_finalized.
6452         (stack_realign_fp): New macro.
6453         (stack_realign_drap): Likewise.
6454
6455         * global.c (compute_regsets): Frame pointer is needed when
6456         stack is realigned.  Can eliminate frame pointer when stack is
6457         realigned and dynamic realigned argument pointer isn't used.
6458
6459         * reload1.c (update_eliminables):  Frame pointer is needed
6460         when stack is realigned.
6461         (init_elim_table): Can eliminate frame pointer when stack is
6462         realigned and dynamic realigned argument pointer isn't used.
6463
6464         * rtl.h (assign_stack_local_1): Declare new funtion.
6465
6466         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
6467         (TARGET_GET_DRAP_RTX): Likewise.
6468         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
6469         TARGET_GET_DRAP_RTX.
6470
6471         * target.h (gcc_target): Add update_stack_boundary and get_drap_rtx.
6472
6473         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
6474         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
6475
6476 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
6477             H.J. Lu  <hongjiu.lu@intel.com>
6478
6479         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
6480         vdrap_reg, stack_realign and drap_reg_saved.
6481         (add_cfi): Don't allow redefining CFA when DRAP is used.
6482         (reg_save): Handle stack alignment.
6483         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
6484         alignment.  Don't generate DWARF information for (set fp sp)
6485         when DRAP is used.
6486         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
6487         to INVALID_REGNUM.
6488         (int_loc_descriptor): Move prototype forward.  Also define if
6489         DWARF2_UNWIND_INFO is true.
6490         (output_cfa_loc): Handle DW_CFA_expression.
6491         (build_cfa_aligned_loc): New.
6492         (based_loc_descr): Update assert for stack realign.  For local
6493         variables, use sp+offset when stack is aligned without drap and
6494         fp+offset when stack is aligned with drap.  For arguments, use
6495         cfa+offset when drap is used to align stack.
6496
6497 2008-07-30  Joey Ye  <joey.ye@intel.com>
6498             H.J. Lu  <hongjiu.lu@intel.com>
6499
6500         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
6501         Break long line.
6502         (ix86_gen_andsp): New.
6503         (ix86_user_incoming_stack_boundary): Likewise.
6504         (ix86_default_incoming_stack_boundary): Likewise.
6505         (ix86_incoming_stack_boundary): Likewise.
6506         (ix86_can_eliminate): Likewise.
6507         (find_drap_reg): Likewise.
6508         (ix86_update_stack_boundary): Likewise.
6509         (ix86_get_drap_rtx): Likewise.
6510         (ix86_finalize_stack_realign_flags): Likewise.
6511         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
6512         (TARGET_GET_DRAP_RTX): Likewise.
6513         (override_options): Overide option value for new options.
6514         (ix86_function_ok_for_sibcall): Remove check for
6515         force_align_arg_pointer.
6516         (ix86_handle_cconv_attribute): Likewise.
6517         (ix86_function_regparm): Likewise.
6518         (setup_incoming_varargs_64): Don't set stack_alignment_needed here.
6519         (ix86_va_start): Replace virtual_incoming_args_rtx with
6520         crtl->args.internal_arg_pointer.
6521         (ix86_select_alt_pic_regnum): Check DRAP register.
6522         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
6523         (ix86_compute_frame_layout): Compute frame layout wrt stack
6524         realignment.
6525         (ix86_internal_arg_pointer): Just return virtual_incoming_args_rtx.
6526         (ix86_expand_prologue): Decide if stack realignment is needed
6527         and generate prologue code accordingly.
6528         (ix86_expand_epilogue): Generate epilogue code wrt stack
6529         realignment is really needed or not.
6530
6531         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
6532         (ABI_STACK_BOUNDARY): Likewise.
6533         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
6534         (STACK_REALIGN_DEFAULT): Likewise.
6535         (INCOMING_STACK_BOUNDARY): Likewise.
6536         (MAX_STACK_ALIGNMENT): Likewise.
6537         (ix86_incoming_stack_boundary): Likewise.
6538         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
6539         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
6540         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
6541         (machine_function): Remove force_align_arg_pointer.
6542
6543         * config/i386/i386.md (BX_REG): New.
6544         (R13_REG): Likewise.
6545
6546         * config/i386/i386.opt (mforce_drap): New.
6547         (mincoming-stack-boundary): Likewise.
6548         (mstackrealign): Add Init(-1).
6549
6550         * config/i386/i386-protos.h (ix86_can_eliminate): New
6551
6552 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
6553
6554         * doc/extend.texi: Update force_align_arg_pointer.
6555
6556         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
6557         -mstackrealign.
6558
6559         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
6560         (INCOMING_STACK_BOUNDARY): Likewise.
6561         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
6562         (TARGET_GET_DRAP_RTX): Likewise.
6563
6564 2008-07-30  Andreas Schwab  <schwab@suse.de>
6565
6566         PR rtl-optimization/36929
6567         * dse.c (replace_inc_dec): Use emit_insn_before instead of
6568         add_insn_before and fix argument order.
6569         (replace_inc_dec_mem): Handle NULL rtx.
6570
6571 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
6572
6573         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
6574         function.
6575         (arm_compute_initial_elimination_offset): Use it.
6576         (arm_compute_save_reg_mask): Include static chain save slot when
6577         calculating alignment.
6578         (arm_get_frame_offsets): Ditto.
6579         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
6580         that we can use to decrement the stack when the stack decrement
6581         could be too big for an immediate value in a single insn.
6582         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
6583
6584 2008-07-30  Richard Guenther  <rguenther@suse.de>
6585
6586         PR tree-optimization/36967
6587         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
6588         Release defs of statements we remove.
6589
6590 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
6591
6592         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
6593         instead of NULL_RTVEC.
6594
6595 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
6596
6597         PR target/35866
6598
6599         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
6600         vector modes.
6601
6602 2008-07-30  Rafael Ávila de Espíndola  <espindola@google.com>
6603
6604         * final.c (call_from_call_insn): New.
6605         (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
6606
6607 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
6608
6609         * configure.ac: Substitute ADA_CFLAGS.
6610         * configure: Regenerate.
6611         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
6612         * Makefile.in: Remove mention of X_* variables.
6613         * config/pa/x-ada-hpux10: Remove.
6614         * config/pa/x-ada: Remove.
6615
6616         * doc/fragments.texi: Update.
6617
6618 2008-07-30  Olivier Hainque  <hainque@adacore.com>
6619
6620         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
6621         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
6622         __dso_handle explicitly here.
6623
6624 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6625
6626         PR 34389
6627         * c-typeck.c (build_binary_op): Encapsulate code into...
6628         * c-common.c (shorten_binary_op): ...this new function.
6629         (conversion_warning): Use the new function. Handle non-negative
6630         constant in bitwise-and.
6631         * c-common.h (shorten_binary_op): Declare.
6632
6633 2008-07-30  Olivier Hainque  <hainque@adacore.com>
6634
6635         * scan.c (make_sstring_space): Add explicit conversions of
6636         allocator's return value.
6637         * fix-header.c (recognized_function): Likewise.
6638
6639 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6640
6641         * doc/cpp.texi: Update to GFDL 1.2.
6642         * doc/gcc.texi: Do not list GPL as Invariant Section.
6643         * doc/gccint.texi: Likewise.  Update copyright years.
6644         * doc/install.texi: Update copyright years.
6645
6646 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
6647
6648         PR target/36955
6649         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
6650         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
6651
6652 2008-07-29  Jan Hubicka  <jh@suse.cz>
6653
6654         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
6655         (grokdeclarator): Likewise.
6656         * langhooks.c (lhd_warn_unused_global_decl): Use
6657         DECL_DECLARED_INLINE_P.
6658         * print-tree.c (print_node): Remove DECL_INLINE check.
6659
6660 2008-07-29  Richard Guenther  <rguenther@suse.de>
6661
6662         PR tree-optimization/36945
6663         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
6664         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
6665         Record invariant addresses un-decomposed.
6666         (copy_reference_ops_from_call): Record reference call
6667         arguments properly.  Simplify.
6668         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
6669         helper split out from ...
6670         (create_component_ref_by_pieces): ... here.  Simplify.
6671         Prepare for recursive invocation for call arguments.
6672         (create_expression_by_pieces): Adjust call to
6673         create_component_ref_by_pieces.
6674         (compute_avail): Process operand 2 of reference ops.
6675
6676 2008-07-29  Richard Guenther  <rguenther@suse.de>
6677
6678         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for OBJ_TYPE_REF.
6679
6680 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
6681
6682         * c-format.c (check_format_types): Revert unwanted checkin.
6683
6684 2008-07-29  Jan Hubicka  <jh@suse.cz>
6685
6686         * flags.h (flag_really_no_inline): Remove.
6687         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
6688         * toplev.c (flag_really_no_inline): Remove.
6689         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
6690         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
6691         (cgraph_decide_inlining_incrementally): Likewise.
6692         (compute_inline_parameters): Likewise.
6693         * opts.c (decode_options): Simplify.
6694         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
6695         * common.opt (finline): Initialize to 1.
6696         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
6697
6698 2008-07-29  Jan Hubicka  <jh@suse.cz>
6699
6700         * predict.c (always_optimize_for_size_p): New function.
6701         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
6702         optimize_edge_for_size_p, optimize_edge_for_speed_p,
6703         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
6704         functions.
6705         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
6706         * function.c (prepare_function_start): Set default profile.
6707         * function.h (rtl_data): Add maybe_hot_insn_p.
6708         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
6709         (construct_exit_block): Likewise.
6710         (tree_expand_cfg): Likewise.
6711         * basic-block.h
6712         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
6713         optimize_edge_for_size_p, optimize_edge_for_speed_p,
6714         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
6715         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
6716         Declare.
6717
6718 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6719
6720         PR 34985
6721         * c-decl.c (merge_decls): Merge USED flags.
6722
6723 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
6724
6725         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
6726         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
6727         next_stack, lab_false and lab_over trees.
6728
6729 2008-07-28  Richard Guenther  <rguenther@suse.de>
6730
6731         PR tree-optimization/36957
6732         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
6733         (useless_type_conversion_p): Remove.
6734         (types_compatible_p): Remove.
6735         * gimple.h (tree_ssa_useless_type_conversion): Declare.
6736         (useless_type_conversion_p): Declare.
6737         (types_compatible_p): Declare.
6738         (gimple_expr_type): Return the base type only if it is
6739         trivially convertible to the subtype.
6740
6741 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
6742
6743         * configure.ac: Use the m4_do macro to concatenate the warnings into
6744         one string in ACX_PROG_CC_WARNING_OPTS,
6745         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
6746         * configure: Regenerate.
6747
6748 2008-07-28  Richard Guenther  <rguenther@suse.de>
6749
6750         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
6751         (insert_fake_stores): Remove.
6752         (realify_fake_stores): Likewise.
6753         (execute_pre): Remove dead code.
6754         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary case.
6755         (find_func_aliases): Deal with it here instead.
6756         Re-enable gcc_unreachable call.
6757
6758 2008-07-28  Richard Guenther  <rguenther@suse.de>
6759
6760         Merge from gimple-tuples-branch.
6761
6762         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
6763         * gimple.def: New file.
6764         * gsstruct.def: Likewise.
6765         * gimple-iterator.c: Likewise.
6766         * gimple-pretty-print.c: Likewise.
6767         * tree-gimple.c: Removed.  Merged into ...
6768         * gimple.c: ... here.  New file.
6769         * tree-gimple.h: Removed.  Merged into ...
6770         * gimple.h: ... here.  New file.
6771
6772         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
6773         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
6774         --enable-checking=gimple flag.
6775         * config.in: Likewise.
6776         * configure: Regenerated.
6777
6778         * tree-ssa-operands.h: Tuplified.
6779         * tree-vrp.c: Likewise.
6780         * tree-loop-linear.c: Likewise.
6781         * tree-into-ssa.c: Likewise.
6782         * tree-ssa-loop-im.c: Likewise.
6783         * tree-dump.c: Likewise.
6784         * tree-complex.c: Likewise.
6785         * cgraphbuild.c: Likewise.
6786         * tree-ssa-threadupdate.c: Likewise.
6787         * tree-ssa-loop-niter.c: Likewise.
6788         * tree-pretty-print.c: Likewise.
6789         * tracer.c: Likewise.
6790         * gengtype.c: Likewise.
6791         * tree-loop-distribution.c: Likewise.
6792         * tree-ssa-loop-unswitch.c: Likewise.
6793         * cgraph.c: Likewise.
6794         * cgraph.h: Likewise.
6795         * tree-ssa-loop-manip.c: Likewise.
6796         * value-prof.c: Likewise.
6797         * tree-ssa-loop-ch.c: Likewise.
6798         * tree-tailcall.c: Likewise.
6799         * value-prof.h: Likewise.
6800         * tree.c: Likewise.
6801         * tree.h: Likewise.
6802         * tree-pass.h: Likewise.
6803         * ipa-cp.c: Likewise.
6804         * tree-scalar-evolution.c: Likewise.
6805         * tree-scalar-evolution.h: Likewise.
6806         * target.h: Likewise.
6807         * lambda-mat.c: Likewise.
6808         * tree-phinodes.c: Likewise.
6809         * diagnostic.h: Likewise.
6810         * builtins.c: Likewise.
6811         * tree-ssa-alias-warnings.c: Likewise.
6812         * cfghooks.c: Likewise.
6813         * fold-const.c: Likewise.
6814         * cfghooks.h: Likewise.
6815         * omp-low.c: Likewise.
6816         * tree-ssa-dse.c: Likewise.
6817         * ipa-reference.c: Likewise.
6818         * tree-ssa-uncprop.c: Likewise.
6819         * toplev.c: Likewise.
6820         * tree-gimple.c: Likewise.
6821         * tree-gimple.h: Likewise.
6822         * tree-chrec.c: Likewise.
6823         * tree-chrec.h: Likewise.
6824         * tree-ssa-sccvn.c: Likewise.
6825         * tree-ssa-sccvn.h: Likewise.
6826         * cgraphunit.c: Likewise.
6827         * tree-ssa-copyrename.c: Likewise.
6828         * tree-ssa-ccp.c: Likewise.
6829         * tree-ssa-loop-ivopts.c: Likewise.
6830         * tree-nomudflap.c: Likewise.
6831         * tree-call-cdce.c: Likewise.
6832         * ipa-pure-const.c: Likewise.
6833         * c-format.c: Likewise.
6834         * tree-stdarg.c: Likewise.
6835         * tree-ssa-math-opts.c: Likewise.
6836         * tree-ssa-dom.c: Likewise.
6837         * tree-nrv.c: Likewise.
6838         * tree-ssa-propagate.c: Likewise.
6839         * ipa-utils.c: Likewise.
6840         * tree-ssa-propagate.h: Likewise.
6841         * tree-ssa-alias.c: Likewise.
6842         * gimple-low.c: Likewise.
6843         * tree-ssa-sink.c: Likewise.
6844         * ipa-inline.c: Likewise.
6845         * c-semantics.c: Likewise.
6846         * dwarf2out.c: Likewise.
6847         * expr.c: Likewise.
6848         * tree-ssa-loop-ivcanon.c: Likewise.
6849         * predict.c: Likewise.
6850         * tree-ssa-loop.c: Likewise.
6851         * tree-parloops.c: Likewise.
6852         * tree-ssa-address.c: Likewise.
6853         * tree-ssa-ifcombine.c: Likewise.
6854         * matrix-reorg.c: Likewise.
6855         * c-decl.c: Likewise.
6856         * tree-eh.c: Likewise.
6857         * c-pretty-print.c: Likewise.
6858         * lambda-trans.c: Likewise.
6859         * function.c: Likewise.
6860         * langhooks.c: Likewise.
6861         * ebitmap.h: Likewise.
6862         * tree-vectorizer.c: Likewise.
6863         * function.h: Likewise.
6864         * langhooks.h: Likewise.
6865         * tree-vectorizer.h: Likewise.
6866         * ipa-type-escape.c: Likewise.
6867         * ipa-type-escape.h: Likewise.
6868         * domwalk.c: Likewise.
6869         * tree-if-conv.c: Likewise.
6870         * profile.c: Likewise.
6871         * domwalk.h: Likewise.
6872         * tree-data-ref.c: Likewise.
6873         * tree-data-ref.h: Likewise.
6874         * tree-flow-inline.h: Likewise.
6875         * tree-affine.c: Likewise.
6876         * tree-vect-analyze.c: Likewise.
6877         * c-typeck.c: Likewise.
6878         * gimplify.c: Likewise.
6879         * coretypes.h: Likewise.
6880         * tree-ssa-phiopt.c: Likewise.
6881         * calls.c: Likewise.
6882         * tree-ssa-coalesce.c: Likewise.
6883         * tree.def: Likewise.
6884         * tree-dfa.c: Likewise.
6885         * except.c: Likewise.
6886         * except.h: Likewise.
6887         * cfgexpand.c: Likewise.
6888         * tree-cfgcleanup.c: Likewise.
6889         * tree-ssa-pre.c: Likewise.
6890         * tree-ssa-live.c: Likewise.
6891         * tree-sra.c: Likewise.
6892         * tree-ssa-live.h: Likewise.
6893         * tree-predcom.c: Likewise.
6894         * lambda.h: Likewise.
6895         * tree-mudflap.c: Likewise.
6896         * ipa-prop.c: Likewise.
6897         * print-tree.c: Likewise.
6898         * tree-ssa-copy.c: Likewise.
6899         * ipa-prop.h: Likewise.
6900         * tree-ssa-forwprop.c: Likewise.
6901         * ggc-page.c: Likewise.
6902         * c-omp.c: Likewise.
6903         * tree-ssa-dce.c: Likewise.
6904         * tree-vect-patterns.c: Likewise.
6905         * tree-ssa-ter.c: Likewise.
6906         * tree-nested.c: Likewise.
6907         * tree-ssa.c: Likewise.
6908         * lambda-code.c: Likewise.
6909         * tree-ssa-loop-prefetch.c: Likewise.
6910         * tree-inline.c: Likewise.
6911         * tree-inline.h: Likewise.
6912         * tree-iterator.c: Likewise.
6913         * tree-optimize.c: Likewise.
6914         * tree-ssa-phiprop.c: Likewise.
6915         * tree-vect-transform.c: Likewise.
6916         * tree-object-size.c: Likewise.
6917         * tree-outof-ssa.c: Likewise.
6918         * cfgloop.c: Likewise.
6919         * system.h: Likewise.
6920         * tree-profile.c: Likewise.
6921         * cfgloop.h: Likewise.
6922         * c-gimplify.c: Likewise.
6923         * c-common.c: Likewise.
6924         * tree-vect-generic.c: Likewise.
6925         * tree-flow.h: Likewise.
6926         * c-common.h: Likewise.
6927         * basic-block.h: Likewise.
6928         * tree-ssa-structalias.c: Likewise.
6929         * tree-switch-conversion.c: Likewise.
6930         * tree-ssa-structalias.h: Likewise.
6931         * tree-cfg.c: Likewise.
6932         * passes.c: Likewise.
6933         * ipa-struct-reorg.c: Likewise.
6934         * ipa-struct-reorg.h: Likewise.
6935         * tree-ssa-reassoc.c: Likewise.
6936         * cfgrtl.c: Likewise.
6937         * varpool.c: Likewise.
6938         * stmt.c: Likewise.
6939         * tree-ssanames.c: Likewise.
6940         * tree-ssa-threadedge.c: Likewise.
6941         * langhooks-def.h: Likewise.
6942         * tree-ssa-operands.c: Likewise.
6943         * config/alpha/alpha.c: Likewise.
6944         * config/frv/frv.c: Likewise.
6945         * config/s390/s390.c: Likewise.
6946         * config/m32c/m32c.c: Likewise.
6947         * config/m32c/m32c-protos.h: Likewise.
6948         * config/spu/spu.c: Likewise.
6949         * config/sparc/sparc.c: Likewise.
6950         * config/i386/i386.c: Likewise.
6951         * config/sh/sh.c: Likewise.
6952         * config/xtensa/xtensa.c: Likewise.
6953         * config/stormy16/stormy16.c: Likewise.
6954         * config/ia64/ia64.c: Likewise.
6955         * config/rs6000/rs6000.c: Likewise.
6956         * config/pa/pa.c: Likewise.
6957         * config/mips/mips.c: Likewise.
6958
6959 2008-07-28  Simon Baldwin  <simonb@google.com>
6960
6961         * c-pragma.c (handle_pragma_message): New function.
6962         (init_pragma): Register handle_pragma_message.
6963         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
6964         documentation.
6965
6966 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
6967
6968         PR tree-optimization/35252
6969         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
6970         REALPART_EXPR to be considered as same load operation.
6971
6972 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
6973
6974         PR tree-optimization/36830
6975         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
6976         (expressions_equal_p): Return false if only one operand is null.
6977
6978 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
6979
6980         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
6981         version requirements.
6982
6983 2008-07-26  Olivier Hainque  <hainque@adacore.com>
6984
6985         * collect2.c (symkind): New enum.  Symbol kinds we care about.
6986         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
6987         code and head comment accordingly.
6988         (scan_prog_file): Use symkind names instead of bare integers.
6989
6990 2008-07-25  Jan Hubicka  <jh@suse.cz>
6991
6992         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on
6993         DECL_INLINE.
6994         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
6995         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
6996         * dojump.c (clear_pending_stack_adjust): Likewise.
6997         * print-tree.c (print_node): Ignore DECL_INLINE.
6998         * tree-inline.c (inlinable_function_p): Likewise.
6999
7000 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
7001
7002         * doc/extend.texi (hot attribute): Document that the hot attribute
7003         turns on -O3 for some ports.
7004         (cold attribute): Document that the cold attribute turns on -Os
7005         for some ports
7006
7007         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
7008         reflect function specific option support.
7009
7010         * target.h (struct target_option_hooks): Add fields to say whether
7011         the cold attribute implies -Os and the hot attribute implies -O3.
7012
7013         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
7014         By default, do not turn on -Os for cold functions.
7015         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
7016         not turn on -O3 for hot functions.
7017
7018         * c-common.c (handle_hot_attribute): Use target hook to determine
7019         if hot functions should enable -O3.
7020         (handle_cold_attribute): Use target hook to determine if cold
7021         functions should enable -Os.
7022
7023         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
7024         (override_options): Move disable scheduling to
7025         optimization_options.
7026         (optimization_options): Disable scheduling here, not
7027         override_options.
7028         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
7029         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
7030
7031         * config/ia64/ia64.c (ia64_override_options): Move setting
7032         scheduling flags to ia64_optimization_options.
7033         (ia64_optimization_options): Disable scheduling options here, and
7034         not in ia64_override_options.
7035         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
7036         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
7037
7038 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
7039
7040         PR target/36936
7041         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
7042
7043 2008-07-25  Martin Jambor  <mjambor@suse.cz>
7044
7045         PR tree-optimization/36926
7046         * ipa-prop.c (ipa_analyze_call_uses): Call
7047         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
7048
7049 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
7050
7051         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
7052         movv2si_internal): Add mem = reg alternative.
7053
7054 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
7055
7056         PR bootstrap/36918
7057         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
7058         DEFAULT_PCC_STRUCT_RETURN to 127.
7059
7060 2008-07-24  Jan Hubicka  <jh@suse.cz>
7061
7062         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
7063         (build_cgraph_edges): Likewise.
7064         * cgraph.c (cgraph_node): Do not update assembler hash.
7065         (cgraph_remove_node): Drop non-unit-at-a-time code.
7066         * tree-pass.h (pass_O0_always_inline): Remove.
7067         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
7068         * toplev.c (process_options): Flag unit-at-a-time does not imply
7069         no section anchors.
7070         * cgraphunit.c: Update comments.
7071         (decide_is_function_needed): Drop non-unit-at-a-time mode.
7072         (cgraph_assemble_pending_functions): Remove.
7073         (cgraph_reset_node): Drop non-unit-at-a-time code.
7074         (cgraph_finalize_function): Likewise.
7075         (cgraph_analyze_function): Likewise.
7076         (cgraph_finalize_compilation_unit): Likewise.
7077         (cgraph_expand_function): Likewise.
7078         (cgraph_optimize): Likesise.
7079         (save_inline_function_body): Likewise.
7080         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
7081         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
7082         * ipa-inline.c: Update comments.
7083         (enum inlining_mode): remove INLINE_SPEED.
7084         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
7085         (cgraph_mark_inline_edge): Likewise.
7086         (try_inline): Likewise.
7087         (cgraph_decide_inlining_incrementally): Likewise.
7088         (cgraph_gate_inlining): Remove.
7089         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
7090         (cgraph_gate_early_inlining): Likewise.
7091         (gate_inline_passes): Remove.
7092         (pass_inline_parameters, pass_ipa_inline): Remove gates.
7093         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
7094         pass_O0_always_inline): Remove.
7095         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
7096         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
7097         * opts.c (no_unit_at_a_time_default): Remove.
7098         (decode_options): Remove flag_unit_at_a_time reset and warning.
7099         * opts.h (no_unit_at_a_time_default): Remove.
7100         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
7101         early in GNU dialect.
7102         (merge_decls): Update comment; drop unit-at-a-time check.
7103         (finish_decl): Likewise.
7104         (grok_declaration): Remove flag_inline_trees code.
7105         (finish_functions): Return on function returning non-void on all
7106         statics.
7107         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
7108         * cfgexpand.c (expand_one_static_var): Remove.
7109         (expand_one_var): Remove expand_one_static_var call.
7110         (expand_used_vars_for_block): Remove flag_unit_a_time check.
7111         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
7112         and flag_unit_at_a-time compatibility checks.
7113         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
7114         * tree-inline.c (flag_inline_trees): Remove.
7115         (inlinable_function_p): Don't check it.
7116         (expand_call_inline): Remove non-unit-at-a-time code.
7117         * tree-inline.h (flag_inline_trees): Remove.
7118         * tree-optimize.c (execute_early_local_optimizations): Remove
7119         unit-at-a-time checks.
7120         (tree_rest_of_compilation): Likewise.
7121         * combine.c (setup_incoming_promotions): Likewise.
7122         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
7123         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
7124         * passes.c (pass_inline_parameters): Update comments; remove
7125         O0_alwaysinline pass.
7126         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
7127         (execute_one_pass): Likewise.
7128         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
7129         (ix86_function_sseregparm): Likewise.
7130         * arm.c (arm_function_in_section_p): Likewise.
7131         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
7132         * varpool.c: Update comments.
7133         (decide_is_variable_needed): Remove unit-at-a-time checks.
7134         (varpool_finalize_decl): Likewise.
7135
7136 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
7137
7138         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
7139         to 2 instead of -1.
7140         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal to 2.
7141
7142 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
7143
7144         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
7145         imp symbol extension.
7146
7147         2008-07-23  Ian Lance Taylor  <iant@google.com>
7148
7149         * tree-vrp.c (infer_value_range): Ignore asm statements when
7150         looking for memory accesses for -fdelete-null-pointer-checks.
7151
7152 2008-07-24  Ben Elliston  <bje@au.ibm.com>
7153
7154         * config/spu/spu-c.c (__vector_keyword): New variable.
7155         (vector_keyword): Likewise.
7156         (spu_categorize_keyword): New function.
7157         (spu_macro_to_expand): Likewise.
7158         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
7159         compiling an ISO C dialect.
7160
7161 2008-07-24  Ben Elliston  <bje@au.ibm.com>
7162
7163         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
7164         conventional usage.
7165
7166 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
7167
7168         * configure: Regenerate.
7169         * configure.ac: Require texinfo 4.7.
7170         * doc/install.texi: Document texinfo 4.7 requirement.
7171
7172 2008-07-23  Martin Jambor  <mjambor@suse.cz>
7173
7174         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
7175         rather than for DECL_SAVED_TREE.
7176         * ipa-prop.c: Include diagnostic.h.
7177         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
7178         thoroughly.
7179         (ipa_detect_param_modifications): Function rewritten from scratch.
7180         (ipa_compute_jump_functions): Changed accesses to modification flags.
7181         (ipa_free_node_params_substructures): Update flags destruction.
7182         (ipa_node_duplication_hook): Update flags duplication.
7183         (ipa_print_all_params_modified): Updated flag access.
7184         * ipa-prop.h (struct ipa_param_flags): New structure.
7185         (struct ipa_node_params): New field modification_analysis_done,
7186         modified_flags changed into param_flags.
7187         (ipa_is_ith_param_modified): Changed to use new flags.
7188         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
7189
7190         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
7191         ipa-cp.c and split into two functions.
7192         (ipa_print_node_jump_functions): New function.
7193         (compute_scalar_jump_functions): New function.
7194         (type_like_member_ptr_p): New function.
7195         (compute_pass_through_member_ptrs): New function.
7196         (fill_member_ptr_cst_jump_function): New function.
7197         (determine_cst_member_ptr): New function.
7198         (compute_cst_member_ptr_arguments): New function.
7199         (ipa_compute_jump_functions): Complete rewrite.
7200         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
7201         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
7202         (struct ipa_member_ptr_cst): New structure.
7203         (union jump_func_value): New field member_cst.
7204         * ipa-cp.c (ipcp_lat_is_insertable): New function.
7205         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
7206         jump function types.
7207         (ipcp_print_all_lattices): Slight fprintf rearrangement.
7208         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
7209         instead of ipcp_print_all_jump_functions.
7210         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
7211         only for replacable scalars.
7212
7213         * doc/invoke.texi (Optimize options): Add description of
7214         -findirect-inlining.
7215         * common.opt (flag_indirect_inlining): New flag.
7216         * opts.c (decode_options): Set flag_indirect_inlining when
7217         optimize >= 3.
7218
7219         * ipa-inline.c: Include ipa-prop.h.
7220         (inline_indirect_intraprocedural_analysis): New function.
7221         (inline_generate_summary): Allocate parameter and argument info
7222         structures, call inline_indirect_intraprocedural_analysis on each
7223         node when doing indirect inlining and deallocate indirect inlining
7224         data structures in the end.
7225         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
7226         (free_all_ipa_structures_after_iinln): New function.
7227         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
7228         done.
7229         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
7230
7231         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
7232         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
7233         of computing the frequency separately.
7234         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
7235         of computing the frequency separately.
7236         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
7237         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
7238         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
7239         (ipa_get_stmt_member_ptr_load_param): New function.
7240         (ipa_is_ssa_with_stmt_def): New function.
7241         (ipa_note_param_call): New function.
7242         (ipa_analyze_call_uses): New function.
7243         (ipa_analyze_stmt_uses): New function.
7244         (ipa_analyze_params_uses): New function.
7245         (ipa_free_node_params_substructures): Also free the param_calls linked
7246         list.
7247         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
7248         (ipa_print_node_param_flags): New function.
7249         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
7250         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
7251         * ipa-prop.h (struct ipa_param_flags): New field called.
7252         (struct ipa_param_call_note): New structure.
7253         (struct ipa_node_params): New fields param_calls and
7254         uses_analysis_done.
7255         (ipa_is_ith_param_called): New function.
7256         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
7257         ipa_analyze_params_uses and dump parameter flags.
7258
7259         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
7260         ipa_propagate_indirect_call_infos if performing indirect inlining,
7261         pass a new parameter new_edges to it.
7262         (add_new_edges_to_heap): New fucntion.
7263         (cgraph_decide_inlining_of_small_functions): New vector
7264         new_indirect_edges for newly found indirect edges , call
7265         ipa_propagate_indirect_call_infos after inlining.
7266         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
7267         inlining if performing indirect inlining.  Call
7268         free_all_ipa_structures_after_iinln when doing so too.
7269         (inline_generate_summary): Do not call
7270         free_all_ipa_structures_after_iinln here.
7271         * ipa-prop.c (update_jump_functions_after_inlining): New function.
7272         (print_edge_addition_message): New function.
7273         (update_call_notes_after_inlining): New function.
7274         (propagate_info_to_inlined_callees): New function.
7275         (ipa_propagate_indirect_call_infos): New function.
7276         * ipa-prop.h: Include cgraph.h
7277         (struct ipa_param_call_note): Fields reordered, new field processed.
7278         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
7279         flag indirect_call.
7280         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
7281         rediscovered call statements.
7282         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
7283         (dump_cgraph_node): Dump also the indirect_call flag.
7284         (cgraph_clone_edge): Copy also the indirect_call flag.
7285         * tree-inline.c (copy_bb): Do not check for fndecls from call
7286         expressions, check for edge availability when moving clones.
7287         (get_indirect_callee_fndecl): New function.
7288         (expand_call_inline): If callee declaration is not apprent from
7289         the statement, try calling get_indirect_callee_fndecl.  Do not
7290         issue warnings or call sorry when not inlinings an indirect edge.
7291         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
7292
7293         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
7294         bit more frandly to matching.
7295         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
7296         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
7297         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
7298
7299 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
7300
7301         PR 36907
7302         * opth-gen.awk: Suppress function specific features when building
7303         target libraries.
7304         * optc-gen.awk: Ditto.
7305
7306 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7307
7308         PR 35058
7309         * diagnostic.c (pedwarn): Add opt parameter.
7310         (pedwarn0): New.
7311         * c-tree.h (pedwarn_init): Add opt parameter.
7312         (pedwarn_c90): Likewise.
7313         (pedwarn_c99): Likewise.
7314         * c-errors.c (pedwarn_c99): Likewise.
7315         (pedwarn_c90): Likewise.
7316         * toplev.h (pedwarn): Update declaration.
7317         (pedwarn0): Declare.
7318         * c-lex.c: All calls to pedwarn changed.
7319         * builtins.c: All calls to pedwarn changed.
7320         * toplev.c: All calls to pedwarn changed.
7321         * c-decl.c: All calls to pedwarn changed.
7322         * c-typeck.c: All calls to pedwarn changed.
7323         * c-common.c: All calls to pedwarn changed.
7324         * c-parser.c: All calls to pedwarn changed.
7325
7326 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
7327             Karthik Kumar  <karthikkumar@gmail.com>
7328
7329         * attribs.c (file scope): Include c-common.h.
7330         (decl_attributes): Add support for #pragma GCC optimize and
7331         #pragma GCC option.
7332
7333         * targhooks.c (default_can_inline_p): New function that is the
7334         default for the TARGET_CAN_INLINE_P target hook.
7335
7336         * targhooks.h (default_can_inline_p): Add declaration.
7337
7338         * tree.c (cl_optimization_node): New static tree for building
7339         OPTIMIZATION_NODE tree.
7340         (cl_target_option_node): New static tree for building
7341         TARGET_OPTION_NODE tree.
7342         (cl_option_hash_table): New hash table for hashing
7343         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
7344         (cl_option_hash_hash): New function to provide the hash value for
7345         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
7346         (cl_option_hash_eq): New function to provide an equality test for
7347         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
7348         (tree_code_size): Add support for OPTIMIZATION_NODE and
7349         TARGET_OPTION_NODE trees.
7350         (tree_code_structure): Add support for OPTIMIZATION_NODE and
7351         TARGET_OPTION_NODE trees.
7352         (build_optimization_node): Build a tree that has all of the
7353         current optimization options.
7354         (build_target_option_node): Build a tree that has the target
7355         options that might be changed on a per function basis.
7356
7357         * tree.h (file scope): Include options.h.
7358         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
7359         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
7360         (TREE_OPTIMIZATION): Ditto.
7361         (TREE_TARGET_SPECIFIC): Ditto.
7362         (struct tree_function_decl): Add fields for remembering the
7363         current optimization options and target specific options.
7364         (struct tree_optimization_option): New tree variant that remembers
7365         the optimization options.
7366         (struct tree_target_option): New tree variant that remembers the
7367         target specific flags that might change for compiling a particular
7368         function.
7369         (union tree_node): Include tree_optimization_option and
7370         tree_target_option fields.
7371         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
7372         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
7373         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
7374         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
7375         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
7376         optimization and target options.
7377         (optimization_default_node): New macro to refer to global_trees
7378         field.
7379         (optimization_current_node): Ditto.
7380         (optimization_cold_node): Ditto.
7381         (optimization_hot_node): Ditto.
7382         (target_option_default_node): Ditto.
7383         (target_option_current_node): Ditto.
7384         (current_option_pragma): Ditto.
7385         (current_optimize_pragma): Ditto.
7386
7387         * target.h (struct gcc_target): Add valid_option_attribute_p,
7388         target_option_save, target_option_restore, target_option_print,
7389         target_option_pragma_parse, and can_inline_p hooks.
7390
7391         * toplev.h (parse_optimize_options): Add declaration.
7392         (fast_math_flags_struct_set_p): Ditto.
7393
7394         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
7395         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
7396         optimize is used.
7397
7398         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
7399         tree_can_inline_p hook to see if one function can inline another.
7400         (cgraph_decide_inlining): Ditto.
7401         (cgraph_decide_inlining_incrementally): Ditto.
7402
7403         * opts.c (decode_options): Add support for running multiple times
7404         to allow functions with different target or optimization options
7405         than was specified on the command line.
7406         (fast_math_flags_struct_set_p): New function that is similar to
7407         fast_math_flags_set_p, except it uses the values in the
7408         cl_optimization structure instead of global variables.
7409
7410         * optc-gen.awk: Add support for TargetSave to allow a back end to
7411         declare new fields that need to be saved when using function
7412         specific options.  Include flags.h and target.h in the options.c
7413         source.  Add support for Save to indicate which options can be set
7414         for individual functions.  Generate cl_optimize_save,
7415         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
7416         cl_target_option_restore, cl_target_option_print functions to
7417         allow functions to use different optimization or target options.
7418
7419         * opt-functions.awk (var_type_struct): Return the type used for
7420         storing the field in a structure.
7421
7422         * opth-gen.awk: Add support for TargetSave to allow a back end to
7423         declare new fields that need to be saved when using function
7424         specific options.  Add support for Save to indicate which options
7425         can be set for individual functions.  Only generate one extern for
7426         Mask fields.  Generate cl_optimization and cl_target_option
7427         structures to remember optimization and target options.
7428
7429         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
7430         collecting new tree nodes.
7431         (TS_TARGET_OPTION): Ditto.
7432
7433         * c-decl.c (merge_decls): Merge function specific target and
7434         optimization options.
7435
7436         * function.c (invoke_set_current_function_hook): If the function
7437         uses different optimization options, change the global variables
7438         to reflect this.
7439
7440         * coretypes.h (struct cl_optimization): Add forward reference.
7441         (struct cl_target_option): Ditto.
7442
7443         * c-pragma.c (option_stack): New static vector to remember the
7444         current #pragma GCC option stack.
7445         (handle_pragma_option): New function to support #pragma GCC option
7446         to change target options.
7447         (optimize_stack): New static vector to remember the current
7448         #pragma GCC optimize stack.
7449         (handle_pragma_optimize): New function to support #pragma GCC
7450         optimize to change optimization options.
7451         (init_pragma): Add support for #pragma GCC optimize and #pragma
7452         GCC option.
7453
7454         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
7455         optimization options.
7456         (TARGET_OPTION_NODE): New tree code for remembering certain target
7457         options.
7458
7459         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
7460         TARGET_OPTION_NODE trees.
7461
7462         * common.opt (-O): Add Optimization flag.
7463         (-Os): Ditto.
7464         (-fmath-errno): Ditto.
7465         (-falign-functions): Add UInteger flag to make sure flag gets full
7466         int in cl_optimization structure.
7467         (-falign-jumps): Ditto.
7468         (-falign-labels): Ditto.
7469         (-falign-loops): Ditto.
7470         (-fsched-stalled-insns): Ditto.
7471         (-fsched-stalled-insns-dep): Ditto.
7472
7473         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
7474         definition.
7475         (TARGET_OPTION_SAVE): Ditto.
7476         (TARGET_OPTION_RESTORE): Ditto.
7477         (TARGET_OPTION_PRINT): Ditto.
7478         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
7479         (TARGET_CAN_INLINE_P): Ditto.
7480         (TARGET_INITIALIZER): Add new hooks.
7481
7482         * tree-inline.c (tree_can_inline_p): New function to determine
7483         whether one function can inline another.  Check if the functions
7484         use compatible optimization options, and also call the backend
7485         can_inline_p hook.
7486
7487         * tree-inline.h (tree_can_inline_p): Add declaration.
7488
7489         * c-common.c (c_common_attribute): Add support for option and
7490         optimize attributes.
7491         (handle_option_attribute): Add support for the option attribute to
7492         allow the user to specify different target options for compiling a
7493         specific function.
7494         (handle_optimize_attribute): Add support for the optimize
7495         attribute to allow the user to specify different optimization
7496         options for compiling a specific function.
7497         (handle_hot_attribute): Turn on -O3 optimization for this one
7498         function if it isn't the default optimization level.
7499         (handle_cold_attribute): Turn on -Os optimization for this one
7500         function if it insn't the default optimization.
7501         (const_char_p): New const char * typedef.
7502         (optimize_args): New static vector to remember the optimization
7503         arguments.
7504         (parse_optimize_options): New function to set up the optimization
7505         arguments from either the optimize attribute or #pragma GCC optimize.
7506
7507         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
7508         (builtin_define_std): Ditto.
7509
7510         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
7511         Add t-i386 Makefile fragment to add i386-c.o and i386.o dependencies.
7512         (x86_64-*-*): Ditto.
7513
7514         * Makefile.in (TREE_H): Add options.h.
7515         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
7516
7517         * doc/extend.texi (option attribute): Document new attribute.
7518         (optimize attribute): Ditto.
7519         (hot attribute): Document hot attribute sets -O3.
7520         (cold attribute): Document cold attribute sets -Os.
7521         (#pragma GCC option): Document new pragma.
7522         (#pragma GCC optimize): Ditto.
7523
7524         * doc/options.texi (TargetSave): Document TargetSave syntax.
7525         (UInteger): Document UInteger must be used for certain flags.
7526         (Save): Document Save option to create target specific options
7527         that can be saved/restored on a function specific context.
7528
7529         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new macro.
7530         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
7531
7532         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new hook.
7533         (TARGET_OPTION_SAVE): Ditto.
7534         (TARGET_OPTION_RESTORE): Ditto.
7535         (TARGET_OPTION_PRINT): Ditto.
7536         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
7537         (TARGET_CAN_INLINE_P): Ditto.
7538
7539         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
7540         -mfpmath=sse,387.
7541         (-mfpmath=both): Ditto.
7542
7543 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
7544             Karthik Kumar  <karthikkumar@gmail.com>
7545
7546         * config/i386/i386.h (TARGET_ABM): Move switch into ix86_isa_flags.
7547         (TARGET_POPCNT): Ditto.
7548         (TARGET_SAHF): Ditto.
7549         (TARGET_AES): Ditto.
7550         (TARGET_PCLMUL): Ditto.
7551         (TARGET_CMPXCHG16B): Ditto.
7552         (TARGET_RECIP): Move switch into target_flags.
7553         (TARGET_FUSED_MADD): Ditto.
7554         (ix86_arch_features): Make an unsigned char type.
7555         (ix86_tune_features): Ditto.
7556         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
7557         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
7558         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
7559
7560         * config/i386/i386.opt (arch): New TargetSave field to define
7561         fields that need to be saved for function specific option support.
7562         (tune): Ditto.
7563         (fpmath): Ditto.
7564         (branch_cost): Ditto.
7565         (ix86_isa_flags_explicit): Ditto.
7566         (tune_defaulted): Ditto.
7567         (arch_specified): Ditto.
7568         (-m128-long-double): Add Save flag to save option for target
7569         specific option support.
7570         (-m80387): Ditto.
7571         (-maccumulate-outgoing-args): Ditto.
7572         (-malign-double): Ditto.
7573         (-malign-stringops): Ditto.
7574         (-mfancy-math-387): Ditto.
7575         (-mhard-float): Ditto.
7576         (-mieee-fp): Ditto.
7577         (-minline-all-stringops): Ditto.
7578         (-minline-stringops-dynamically): Ditto.
7579         (-mms-bitfields): Ditto.
7580         (-mno-align-stringops): Ditto.
7581         (-mno-fancy-math-387): Ditto.
7582         (-mno-push-args): Ditto.
7583         (-mno-red-zone): Ditto.
7584         (-mpush-args): Ditto.
7585         (-mred-zone): Ditto.
7586         (-mrtd): Ditto.
7587         (-msseregparm): Ditto.
7588         (-mstack-arg-probe): Ditto.
7589         (-m32): Ditto.
7590         (-m64): Ditto.
7591         (-mmmx): Ditto.
7592         (-m3dnow): Ditto.
7593         (-m3dnowa): Ditto.
7594         (-msse): Ditto.
7595         (-msse2): Ditto.
7596         (-msse3): Ditto.
7597         (-msse4.1): Ditto.
7598         (-msse4.2): Ditto.
7599         (-msse4): Ditto.
7600         (-mno-sse4): Ditto.
7601         (-msse4a): Ditto.
7602         (-msse5): Ditto.
7603         (-mrecip): Move flag into target_flags.
7604         (-mcld): Ditto.
7605         (-mno-fused-madd): Ditto.
7606         (-mfused-madd): Ditto.
7607         (-mabm): Move flag into ix86_isa_flags.
7608         (-mcx16): Ditto.
7609         (-mpopcnt): Ditto.
7610         (-msahf): Ditto.
7611         (-maes): Ditto.
7612         (-mpclmul): Ditto.
7613
7614         * config/i386/i386-c.c: New file for #pragma support.
7615         (ix86_target_macros_internal): New function to #define or #undef
7616         target macros based when the user uses the #pragma GCC option to
7617         change target options.
7618         (ix86_pragma_option_parse): New function to add #pragma GCC option
7619         support.
7620         (ix86_target_macros): Move defining the target macros here from
7621         TARGET_CPU_CPP_BUILTINS in i386.h.
7622         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
7623         defined, initialize any subtarget #pragmas.
7624
7625         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
7626         REGISTER_TARGET_PRAGMAS.
7627
7628         * config/i386/t-i386: New file for x86 dependencies.
7629         (i386.o): Make dependencies mirror the include files used.
7630         (i386-c.o): New file, add dependencies.
7631
7632         * config/i386/i386-protos.h (override_options): Add bool argument.
7633         (ix86_valid_option_attribute_tree): Add declaration.
7634         (ix86_target_macros): Ditto.
7635         (ix86_register_macros): Ditto.
7636
7637         * config/i386/i386.c (ix86_tune_features): Move initialization of
7638         the target masks to initial_ix86_tune_features to allow functions
7639         to have different target options.  Make type unsigned char,
7640         instead of unsigned int.
7641         (initial_ix86_tune_features): New static vector to hold processor
7642         masks for the tune variables.
7643         (ix86_arch_features): Move initialization of the target masks to
7644         initial_ix86_arch_features to allow functions to have different
7645         target options.  Make type unsigned char, instead of unsigned int.
7646         (initial_ix86_arch_features): New static vector to hold processor
7647         masks for the arch variables.
7648         (enum ix86_function_specific_strings): New enum to describe the
7649         string options used for attribute((option(...))).
7650         (ix86_target_string): New function to return a string that
7651         describes the target options.
7652         (ix86_debug_options): New function to print the current options in
7653         the debugger.
7654         (ix86_function_specific_save): New function hook to save the
7655         function specific global variables in the cl_target_option structure.
7656         (ix86_function_specific_restore): New function hook to restore the
7657         function specific variables from the cl_target_option structure to
7658         the global variables.
7659         (ix86_function_specific_print): New function hook to print the
7660         target specific options in the cl_target_option structure.
7661         (ix86_valid_option_attribute_p): New function hook to validate
7662         attribute((option(...))) arguments.
7663         (ix86_valid_option_attribute_tree): New function that is common
7664         code between attribute((option(...))) and #pragma GCC option
7665         support that parses the options and returns a tree holding the options.
7666         (ix86_valid_option_attribute_inner_p): New helper function for
7667         ix86_valid_option_attribute_tree.
7668         (ix86_can_inline_p): New function hook to decide if one function
7669         can inline another on a target specific basis.
7670         (ix86_set_current_function); New function hook to switch target
7671         options if the user used attribute((option(...))) or #pragma GCC
7672         option.
7673         (ix86_tune_defaulted): Move to static file scope from
7674         override_options.
7675         (ix86_arch_specified): Ditto.
7676         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
7677         ix86_isa_flags.
7678         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
7679         (OPTION_MASK_ISA_ABM_SET): Ditto.
7680         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
7681         (OPTION_MASK_ISA_CX16_SET): Ditto.
7682         (OPTION_MASK_ISA_SAHF_SET): Ditto.
7683         (OPTION_MASK_ISA_AES_UNSET): Ditto.
7684         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
7685         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
7686         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
7687         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
7688         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
7689         (struct ptt): Move to static file scope from override_options.
7690         (processor_target_table): Ditto.
7691         (cpu_names): Ditto.
7692         (ix86_handle_option): Add support for options that are now isa options.
7693         (override_options): Add support for declaring functions that
7694         support different target options than were specified on the
7695         command line.  Move struct ptt, processor_target_table, cpu_names,
7696         ix86_tune_defaulted, ix86_arch_specified to static file scope.
7697         Add bool argument.  Fix up error messages so the appropriate error
7698         is given for either command line or attribute.
7699         (ix86_previous_fndecl): New static to remember previous function
7700         declaration to see if we need to change target options.
7701         (ix86_builtins_isa): New array to record the ISA of each builtin
7702         function.
7703         (def_builtin): Always create the builtin function, even if the
7704         current ISA doesn't support it.
7705         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
7706         tests for those builtins.
7707         (ix86_init_builtins): Remove TARGET_MMX test for calling
7708         ix86_init_mmx_sse_builtins.
7709         (ix86_expand_builtin): If the current ISA doesn't support a given
7710         builtin, signal an error.
7711         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
7712         (TARGET_SET_CURRENT_FUNCTION): Ditto.
7713         (TARGET_OPTION_SAVE): Ditto.
7714         (TARGET_OPTION_RESTORE): Ditto.
7715         (TARGET_OPTION_PRINT): Ditto.
7716         (TARGET_CAN_INLINE_P): Ditto.
7717
7718 2008-07-22  Rafael Ávila de Espíndola  <espindola@google.com>
7719
7720         * c-typeck.c (build_external_ref): Don't call assemble_external.
7721         * final.c (output_operand): Call assemble_external.
7722
7723 2008-07-21  DJ Delorie  <dj@redhat.com>
7724
7725         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
7726         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
7727
7728 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7729
7730         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
7731         original insn and splitter contents into ...
7732         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
7733         flag_unsafe_math_optimizations.  Add dummy scratch register.
7734         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
7735         !flag_unsafe_math_optimizations.  Returns number with next
7736         highest magnitude if this is still less or equal to the true
7737         quotient in magnitude.
7738
7739 2008-07-21  Rafael Ávila de Espíndola  <espindola@google.com>
7740
7741         * Makefile.in: Replace toplev.h with TOPLEV_H.
7742         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
7743         * c-lex.c (fe_file_change): Don't set in_system_header.
7744         * c-parser.c (c_token): Remove in_system_header.
7745         (c_lex_one_token): Don't set in_system_header.
7746         (c_parser_set_source_position_from_token): Don't set in_system_header.
7747         * diagnostic.c (diagnostic_report_diagnostic): Use location from
7748         diagnostic_info.
7749         (warning_at): New.
7750         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
7751         * flags.h (in_system_header): Remove.
7752         * function.c (saved_in_system_header): Remove.
7753         (push_cfun): Don't set in_system_header.
7754         (pop_cfun): Don't set in_system_header.
7755         (push_struct_function): Don't set in_system_header.
7756         * input.h (expanded_location): Add sysp.
7757         (in_system_header_at): New.
7758         (in_system_header): New.
7759         * toplev.c (in_system_header): Remove.
7760         * toplev.h: Include input.h
7761         (warning_at): New.
7762         * tree-cfg.c (execute_warn_function_return): Call warning_at.
7763         * tree-ssa.c (warn_uninit): Call warning_at.
7764         (warn_uninitialized_var): Update calls to warn_uninit.
7765         (warn_uninitialized_phi): Update calls to warn_uninit.
7766         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
7767         (expand_location): Initialize xloc.sysp.
7768         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
7769         (tree_decl_with_vis): Remove in_system_header_flag.
7770
7771 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
7772
7773         PR target/36822
7774         * recog.c (asm_operand_ok): Change the order of the extra
7775         memory constraint checks.
7776
7777 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7778
7779         PR tree-opt/36879
7780         * tree-switch-conversion.c (build_one_array): Call
7781         varpool_mark_needed_node and varpool_finalize_decl
7782         instead of assemble_variable.
7783
7784 2008-07-19  Jan Hubicka  <jh@suse.cz>
7785
7786         * cgraph.c (cgraph_add_new_function): Do early local passes.
7787         * tree-nrv.c (gate_pass_return_slot): New gate.
7788         (pass_nrv): Add the gate.
7789         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
7790         functions.
7791         (coalesce_ssa_name): Coalesce SSA names.
7792         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
7793         not optimizing so unused user vars remains visible.
7794         * common.opt (flag_tree_ter): Always enable by default.
7795         * tree-ssa-ter.c: Include flags.h
7796         (is_replaceable_p): Check that locations match; when aliasing is missing
7797         be conservative about loads.
7798         * tree-optimize.c (gate_init_datastructures): Remove.
7799         (pass_init_datastructures): New.
7800         * passes.c: Reorder passes so we always go into SSA.
7801
7802 2008-07-19  Jan Hubicka  <jh@suse.cz>
7803
7804         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
7805         * doc/invoke.texi (--combine): Likewise.
7806         (-finline-functions-called-once): Update levels when enabled.
7807         (-funit-at-a-time): Document new behaviour.
7808         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
7809         -fno-section-anchors when disabled explicitly.
7810         (inline params): They are not ignored now.
7811         (precompiled headers): Remove unit-at-a-time as being incompatible.
7812         * opts.c (decode_options): Handle unit-at-a-time as alias;
7813         imply -fno-section-anchors when toplevel reorder is disabled
7814         explicitly.
7815         * common.opt (ftoplevel-reorder): Set default value to 2.
7816         (funit-at-a-time): Set default value to 1.
7817         * config/rs6000/rs6000.c (optimization_options): Set section anchors
7818         to 2.
7819
7820 2008-07-19  Jan Hubicka  <jh@suse.cz>
7821
7822         * builtins.c (expand_builtin_int_roundingfn,
7823         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
7824         it is not useful.
7825
7826 2008-07-19  Richard Guenther  <rguenther@suse.de>
7827
7828         PR bootstrap/36864
7829         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
7830         * tree-ssa-sccvn.c (get_constant_value_id): New function.
7831         * tree-ssa-pre.c (get_expr_value_id): For newly created
7832         constant value-ids make sure to add the expression to its
7833         expression-set.
7834
7835 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
7836
7837         PR middle-end/36877
7838         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
7839         return value of the builtin is ignored.
7840
7841 2008-07-19  Olivier Hainque  <hainque@adacore.com>
7842
7843         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
7844         bits, a C conformant malloc implementation has to provide.
7845         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
7846
7847 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
7848
7849         PR target/36780
7850         PR target/36827
7851         * reload.c (find_reloads_subreg_address): Only reload address if
7852         reloaded == 0, not for reloaded != 1.
7853
7854         Revert:
7855         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
7856         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
7857         (m32c_legitimate_address_p): Handle "++rii" addresses created by
7858         m32c_legitimize_reload_address.
7859
7860         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
7861         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
7862         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
7863
7864 2008-07-19  Olivier Hainque  <hainque@adacore.com>
7865
7866         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
7867         argument, saying whether nested array are to be collapsed
7868         into a single array type DIE with multiple subscripts.
7869         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
7870         issues, centralize the nested array types collapsing control and
7871         disable the transformation for Ada.
7872
7873 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
7874
7875         PR target/36786
7876         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
7877         x86_64_shift_adj.
7878         (x86_64_shift_adj_2): New expander.
7879         (x86_64_shift_adj_3): Ditto.
7880         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
7881         to split TImode operands.
7882         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
7883         (ix86_split_lshr): Ditto.
7884
7885 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
7886
7887         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
7888         and __CHAR32_TYPE__.
7889         * c-typeck.c (digest_init): Support char16_t and char32_t.
7890         (set_nonincremental_init_from_string): Idem.
7891
7892 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
7893
7894         PR middle-end/36859
7895         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
7896         PREFERRED_STACK_BOUNDARY.
7897         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
7898
7899 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
7900
7901         PR middle-end/36858
7902         * function.c (locate_and_pad_parm): Cap boundary earlier.
7903
7904 2008-07-17  Julian Brown  <julian@codesourcery.com>
7905
7906         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
7907         no-op for targets which don't use DLLs.
7908
7909 2008-07-17  Martin Jambor  <mjambor@suse.cz>
7910
7911         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
7912         that nodes are relevant by examining the node->analyzed flag.
7913         (ipcp_init_stage): Check which nodes are relevant, assert that the
7914         relevant ones are also required.
7915         (ipcp_propagate_stage): Check on the side arrays are properly
7916         allocated.
7917         (ipcp_print_all_jump_functions): Make sure not to touch any node
7918         that is not analyzed or an edge that does not have a corresponding
7919         entry in the on-the-side vectors.
7920         (ipcp_function_scale_print): Likewise.
7921         (ipcp_update_callgraph): Check that the node is relevant.
7922         (ipcp_insert_stage): Check that the node is relevant.  Check there is
7923         an info for every node and edge.
7924         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
7925         (ipa_print_all_tree_maps): Likewise and a new variable info.
7926         (ipa_print_all_params_modified): Likewise.
7927         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
7928
7929 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
7930
7931         PR target/25343
7932         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
7933
7934 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
7935
7936         PR rtl-optimization/36753
7937         * fwprop.c (use_killed_between): Don't shortcut
7938         single-definition global registers.
7939
7940 2008-07-16  Jan Hubicka  <jh@suse.cz>
7941
7942         * cgraph.h (varpool_empty_needed_queue): Declare.
7943         * cgraphunit.c (output_in_order): Mark all variables as needed;
7944         empty the queue.
7945         * varpool.c (varpool_assemble_node): Update debug queue.
7946         (varpool_assemble_pending_decls): Don't do it here.
7947         (varpool_empty_needed_queue):  New function.
7948
7949 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7950
7951         * recog.c (peephole2_optimize): Fix formatting.
7952
7953 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7954
7955         * c-pch.c (get_ident): Avoid C++ keywords.
7956         * combine-stack-adj.c (single_set_for_csa): Likewise.
7957         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
7958         output_asm_insn): Likewise.
7959         * reload.c (push_secondary_reload, find_reusable_reload,
7960         push_reload, combine_reloads, find_reloads,
7961         debug_reload_to_stream): Likewise.
7962         * reload.h (struct reload): Likewise.
7963         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
7964         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
7965         emit_output_reload_insns): Likewise.
7966         * targhooks.c (default_secondary_reload): Likewise.
7967         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
7968
7969 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7970
7971         * recog.c (validate_change_1, validate_change,
7972         validate_unshare_change, validate_replace_rtx_1, struct
7973         funny_match, constrain_operands, peephole2_optimize): Avoid C++
7974         keywords.
7975         * reload.c (push_secondary_reload, secondary_reload_class,
7976         scratch_reload_class, find_valid_class, find_reusable_reload,
7977         push_reload, find_dummy_reload, find_reloads_address_1,
7978         find_reloads_address_part, find_equiv_reg): Likewise.
7979         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
7980         choose_reload_regs): Likewise.
7981         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
7982         Likewise.
7983         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
7984         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
7985         * sched-rgn.c (concat_INSN_LIST): Likewise.
7986         * stor-layout.c (mode_for_size, mode_for_size_tree,
7987         smallest_mode_for_size): Likewise.
7988
7989 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7990
7991         * cfg.c (dump_reg_info): Avoid C++ keywords.
7992         * dwarf2asm.c (dw2_force_const_mem,
7993         dw2_asm_output_encoded_addr_rtx): Likewise.
7994         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
7995         * expmed.c (expand_shift): Likewise.
7996         * global.c (find_reg): Likewise.
7997         * graph.c (draw_edge): Likewise.
7998         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
7999         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
8000         widen_clz, widen_bswap, expand_parity, expand_unop,
8001         emit_cmp_and_jump_insn_1): Likewise.
8002         * postreload.c (reload_cse_simplify_operands): Likewise.
8003         * ra.h (add_neighbor): Likewise.
8004         * reg-stack.c (remove_regno_note, change_stack): Likewise.
8005         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
8006         record_reg_classes, copy_cost, record_address_regs,
8007         invalid_mode_change_p): Likewise.
8008         * regrename.c (regrename_optimize, scan_rtx_reg,
8009         dump_def_use_chain, find_oldest_value_reg,
8010         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
8011
8012 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
8013
8014         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
8015         MASK_POWERPC64 for power4 in previous commit.
8016
8017 2008-07-16  Olivier Hainque  <hainque@adacore.com>
8018
8019         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
8020         instead of bare conversion to cast const-ness away.
8021
8022 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
8023
8024         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
8025         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
8026         * config/xtensa/xtensa.c (xtensa_function_value): New function.
8027         (TARGET_FUNCTION_VALUE): Define.
8028
8029 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
8030
8031         * config/rs6000/rs6000.c (processor_target_table): Add
8032         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
8033
8034 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
8035
8036         PR target/36827
8037         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
8038         (m32c_legitimate_address_p): Handle "++rii" addresses created by
8039         m32c_legitimize_reload_address.
8040
8041 2007-07-16  Rafael Ávila de Espíndola  <espindola@google.com>
8042
8043         * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
8044         DECL_IN_SYSTEM_HEADER in sync.
8045
8046 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
8047
8048         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
8049         * tree-ssa-pre.c (pre_expr_eq): Ditto
8050         (get_constant_for_value_id): Take a type as an argument.
8051         (fully_constant_expression): Pass in type.
8052         (find_or_generate_expression): Short circuit constant case.
8053         (create_expression_by_pieces): Remove special casing of
8054         pointer_plus.
8055         (do_regular_insertion): Short circuit constant case.
8056         (do_partial_partial_insertion): Ditto.
8057
8058 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
8059
8060         PR target/36782
8061         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
8062
8063 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
8064
8065         * config/xtensa/libgcc-xtensa.ver: New file.
8066         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
8067
8068 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8069
8070         * df-problems.c (df_set_note): Avoid C++ keywords.
8071         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
8072         * dse.c (record_store, remove_useless_values): Likewise.
8073         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
8074         gen_reg_rtx_offset, operand_subword, change_address_1,
8075         change_address, adjust_address_1, offset_address,
8076         widen_memory_access, emit_copy_of_insn_after): Likewise.
8077         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
8078         * fwprop.c (should_replace_address, propagate_rtx_1,
8079         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
8080         Likewise.
8081         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
8082         gcse_emit_move_after, update_ld_motion_stores): Likewise.
8083         * lcm.c (compute_insert_delete, pre_edge_lcm,
8084         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
8085         * lower-subreg.c (resolve_reg_notes): Likewise.
8086         * mode-switching.c (optimize_mode_switching): Likewise.
8087
8088 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8089
8090         * bt-load.c (add_btr_def, migrate_btr_def,
8091         branch_target_load_optimize): Avoid C++ keywords.
8092         * caller-save.c (insert_restore, insert_save, insert_one_insn):
8093         Likewise.
8094         * combine.c (subst, simplify_set, make_extraction,
8095         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
8096         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
8097         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
8098
8099 2008-07-15  Richard Guenther  <rguenther@suse.de>
8100
8101         PR middle-end/36369
8102         * c-common.c (strict_aliasing_warning): Do not warn for
8103         TYPE_REF_CAN_ALIAS_ALL pointers.
8104         (c_common_get_alias_set): may_alias types are not special.
8105         * tree.c (build_pointer_type_for_mode): Look up the may_alias
8106         attribute and set can_ref_all accordingly.
8107         (build_reference_type_for_mode): Likewise.
8108         * doc/extend.texi (may_alias): Clarify.
8109
8110 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
8111
8112         PR target/36780
8113         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
8114         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
8115
8116 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8117
8118         PR target/31568
8119         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
8120         gcc_assert, instead call output_operand_lossage.
8121
8122 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
8123
8124         * builtins.c (std_canonical_va_list): Treat structure based
8125         va_list types.
8126
8127 2008-07-15  Ben Elliston  <bje@au.ibm.com>
8128
8129         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
8130
8131 2007-07-14  Rafael Ávila de Espíndola  <espindola@google.com>
8132
8133         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
8134         is set.
8135
8136 2008-07-14  Jan Hubicka  <jh@suse.cz>
8137
8138         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
8139         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
8140         fix predicates and constraints.
8141         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
8142         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
8143
8144 2008-07-14  Doug Kwan  <dougkwan@google.com>
8145
8146         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
8147         additional option file arm/eabi.opt.
8148         * config/arm/eabi.h (File): New configuration file for EABI targets.
8149         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
8150         SUBSUBTARGET_EXTRA_SPECS.
8151         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
8152         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
8153         from STARTFILE_SPEC so that it can be referenced in an override.
8154         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
8155         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
8156         can be referenced in an override.
8157         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
8158         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
8159         so that it can be referenced in an override.
8160         (LINK_SPEC): Use BPABI_LINK_SPEC.
8161         * config/arm/eabi.opt (File): New.
8162
8163 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8164
8165         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
8166         (FIXED_VALUE_H): New variable.
8167         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
8168         input.h, fixed-value.h.
8169         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
8170         (BASIC_BLOCK_H): Use $(BITMAP_H).
8171         (FUNCTION_H): Add varray.h.
8172         (IPA_REFERENCE_H): Use $(BITMAP_H).
8173         (CGRAPH_H): Add $(BASIC_BLOCK_H).
8174         (DF_H): Use $(BITMAP_H).
8175         (GGC_H): Add statistics.h.
8176         (INSN_ADDR_H): New.
8177         (INSN_ATTR_H): Use it.
8178         (SYSTEM_H): Add safe-ctype.h, filenames.h.
8179         (INPUT_H): New.
8180         (SYMTAB_H): Add $(OBSTACK_H).
8181         (CPP_INTERNAL_H): New.
8182         (TREE_DUMP_H): Add tree-pass.h.
8183         (TREE_FLOW_H): Use $(BITMAP_H)
8184         (PRETTY_PRINT_H): Use $(INPUT_H).
8185         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
8186         (GSTAB_H): New.
8187         (BITMAP_H): New.
8188         (many object files): Fix lots of header dependencies throughout.
8189
8190 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8191
8192         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
8193         New macros.
8194         (s-gtyp-input): Use them to write tmp-gi.list.
8195         (echo_to_gi.list): Remove.
8196
8197 2008-07-14  Richard Guenther  <rguenther@suse.de>
8198
8199         * tree-ssa-sccvn.c (pre_info): Remove.
8200         (switch_to_PRE_table): Likewise.
8201         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
8202         (set_hashtable_value_ids): Do not create value-ids for the
8203         optimistic tables.
8204         (run_scc_vn): Remove double test.  Remove bogus special-case
8205         in value-number printing.
8206         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
8207         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
8208         SSA_NAME_VALUE.
8209         * tree-flow-inline.h (get_value_handle): Remove.
8210         * tree-flow.h (get_value_handle): Remove.
8211
8212 2008-07-14  Martin Jambor  <mjambor@suse.cz>
8213
8214         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
8215         in which we generate arithmetics is not a subrange.
8216
8217 2008-07-14  Martin Jambor  <mjambor@suse.cz>
8218
8219         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
8220
8221 2008-07-14  Richard Guenther  <rguenther@suse.de>
8222
8223         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
8224
8225 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
8226
8227         PR target/36745
8228         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
8229         reload for symbol refs moved to r0 with -fPIC.
8230         (legitimize_pic_address): Use the target register as temporary
8231         reg if possible.
8232         (emit_symbolic_move): Adjust comment.
8233         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
8234         New expanders.
8235
8236 2008-07-14  Ben Elliston  <bje@au.ibm.com>
8237
8238         * c-common.h (C_CPP_HASHNODE): New macro.
8239         * coretypes.h (struct cpp_token): Forward declare.
8240         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
8241         the context-sensitive keyword method.
8242         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
8243         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
8244         expand_bool_pixel): New.
8245         (altivec_categorize_keyword): New function.
8246         (init_vector_keywords): New function.
8247         (rs6000_macro_to_expand): Likewise.
8248         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
8249         compiling an ISO C dialect.
8250
8251 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
8252
8253         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
8254         (create_expression_by_pieces): Fix typo.
8255         (do_regular_insertion): Use debug counter here too.
8256
8257 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
8258
8259         PR target/35492.
8260         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
8261         CONST_OK_FOR_LETTER_P.  All port-local users changed.
8262         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
8263         implement Kp matching power-of-two.
8264         (CONSTRAINT_LEN): Define to match.
8265         * config/cris/cris.md: Replace all use of constraint K with Kc.
8266         ("*btst*): Use Kp for operand 0 of last alternative.
8267
8268 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8269
8270         PR testsuite/36440
8271         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
8272         and quad formats.
8273
8274 2008-07-13  Jan Hubicka  <jh@suse.cz>
8275
8276         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
8277         to be mangled too.
8278
8279 2008-07-13  Richard Guenther  <rguenther@suse.de>
8280
8281         PR middle-end/36811
8282         * langhooks.c (lhd_print_error_function): Deal with recursive
8283         BLOCK trees.
8284
8285 2008-07-12  Jan Hubicka  <jh@suse.cz>
8286
8287         * cgraph.c (assembler_name_hash): New static var.
8288         (hash_node_by_assembler_name, eq_assembler_name): New.
8289         (cgraph_node_for_asm): Use hashtable.
8290         (cgraph_remove_node): Maintain hashtable.
8291         (change_decl_assembler_name): Sanity check that names are not changing
8292         after aliasing was processed.
8293         * cgraph.h (varpoon_node): Add next GGC marker.
8294         * tree.c (decl_assembler_name_equal): Constify.
8295         (decl_assembler_name_hash): New.
8296         * tree.h (decl_assembler_name_equal): Constify.
8297         (decl_assembler_name_hash): Update.
8298
8299 2008-07-12  David Daney  <ddaney@avtrex.com>
8300
8301         * config/mips/driver-native.c (host_detect_local_cpu): Handle
8302         sb1 and r5000 cpus.
8303
8304 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
8305
8306         * doc/md.texi: Document the MIPS "v" constraint.
8307         * config/mips/mips.h (reg_class): Revert last change.
8308         (REG_CLASS_NAMES): Likewise.
8309         (REG_CLASS_CONTENTS): Likewise.
8310         * config/mips/mips.c (mips_regno_to_class): Likewise.
8311         * config/mips/constraints.md (v): Likewise, but add documentation.
8312         Add a comment to say that this constraint should not be used in
8313         gcc code.
8314
8315 2008-07-11  DJ Delorie  <dj@redhat.com>
8316
8317         * config/h8300/h8300.md (length): Fix branch offset limit.
8318
8319 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
8320
8321         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
8322         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
8323         (avr_hard_regno_scratch_ok): New function.
8324         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
8325         * config/avr/avr.md (all peepholes that request a scratch register):
8326         Remove avr_peep2_scratch_safe use.
8327
8328 2008-07-11  Tom Tromey  <tromey@redhat.com>
8329             Ian Lance Taylor  <iant@google.com>
8330
8331         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
8332         (struct c_common_resword): Define.
8333         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
8334         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
8335         (c_common_reswords, num_c_common_reswords): Declare.
8336         * c-common.c (c_common_reswords): New global const array.
8337         (num_c_common_reswords): New const int.
8338         * c-parser.c (struct resword, reswords): Don't define.
8339         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
8340         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
8341         than reswords.  If warning about C++ keywords, give them a special
8342         RID code.
8343         (c_lex_one_token): Warn about C++ keywords.  Call
8344         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
8345         (c_parser_external_declaration): Look for RID_xxx rather than
8346         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
8347         (c_parser_statement_after_labels): Likewise.
8348         (c_parser_objc_class_instance_variables): Likewise.
8349         (c_parser_objc_class_declaration): Likewise.
8350         (c_parser_objc_try_catch_statement): Likewise.
8351         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
8352         (declspecs_add_type): Likewise.
8353
8354 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
8355
8356         * ggc-page.c (alloc_page):
8357         Substituting xmalloc, xcalloc with
8358         XNEWVEC and XCNEWVAR macros which add the
8359         needed casts.
8360
8361 2008-07-11  Richard Guenther  <rguenther@suse.de>
8362
8363         PR tree-optimization/36765
8364         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
8365         aliases from HEAP vars to SMTs.
8366
8367 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8368
8369         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
8370         * configure.ac (loose_warn): Move -Wc++-compat from here...
8371         (strict_warn): ...to here.
8372         * configure: Regenerate.
8373
8374 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
8375
8376         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
8377         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
8378         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
8379         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
8380         excluding more specific h8300-*-* and sh-*-* targets.
8381
8382 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
8383
8384         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
8385         (eliminate): Ditto.
8386         (execute_pre): Call loop_optimizer_finalize in early exit.
8387
8388 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
8389
8390         PR middle-end/36790
8391         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
8392         uids in the bitmap, not just VAR_DECL uids.
8393
8394         PR rtl-optimization/36419
8395         * combine-stack-adj.c (adjust_frame_related_expr): New function.
8396         (combine_stack_adjustments_for_block): Call it if needed.  Delete
8397         correct insn.
8398         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
8399         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
8400         prologue sp adjustment.
8401
8402 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
8403
8404         PR other/28322
8405         * opts.c (print_ignored_options): Report postponed diagnostics for
8406         unknown -Wno-* options as warnings, not errors.
8407         (postpone_unknown_option_error): Renamed to...
8408         (postpone_unknown_option_warning): ... this.
8409
8410 2008-07-09  Doug Kwan  <dougkwan@google.com>
8411
8412         Revert:
8413         2008-07-08  Doug Kwan  <dougkwan@google.com>
8414
8415         * config/arm/arm.opt (mandroid): New option.
8416         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
8417         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
8418         (CC1_SPEC): Same.
8419         (CC1PLUS_SPEC): Same.
8420         (LIB_SPEC): Same.
8421         (STARTFILE_SPEC): Same.
8422         (ENDFILE_SPEC): Same.
8423         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
8424         used.
8425
8426 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
8427
8428         PR target/35802
8429         * config/mips/mips.h (reg_class): Remove V1_REG.
8430         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
8431         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
8432         instead of V1_REGS.
8433         (mips_get_tp): New function.
8434         (mips_legitimize_tls_address): Use it.
8435         * config/mips/constraints.md (v): Delete.
8436         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
8437         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
8438         After reload, split into a move and ...
8439         (*tls_get_tp_<mode>_split): ...this new instruction.
8440
8441 2008-07-09  David Daney  <ddaney@avtrex.com>
8442
8443         * config/mips/driver-native.c: Include coretypes.h and tm.h.
8444
8445 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
8446
8447         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
8448         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
8449         Add c argument.
8450         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
8451         htab_delete should be called.  Don't free c.
8452         (lookup_tmp_var): Create temp_htab lazily.
8453         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
8454         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
8455         callers.
8456         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
8457         lower_omp_ordered, lower_omp_critical, lower_omp_for,
8458         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
8459         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
8460         * tree-sra.c (generate_element_init): Likewise.
8461         * tree-mudflap.c (execute_mudflap_function_ops,
8462         execute_mudflap_function_decls): Likewise.
8463         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
8464         * tree-gimple.h (struct gimplify_ctx): New type.
8465         (push_gimplify_context): Adjust prototype.
8466
8467 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
8468
8469         * tree-ssa-pre.c (phi_translate_1): Update placement of
8470         add_to_value calls.
8471
8472 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
8473
8474         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
8475         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
8476         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
8477         * targhooks.c (default_hard_regno_scratch_ok): New function.
8478         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
8479         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
8480         * recog.c:  Include "target.h".
8481         (peep2_find_free_register): Add check for global regs. Add target
8482         specific check.
8483         * Makefile.in (recog.o): Depend on target.h.
8484
8485 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
8486
8487         * config/sh/sh.c (sh_canonical_va_list_type): New.
8488         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
8489
8490 2008-07-09  Raksit Ashok <raksit@google.com>
8491
8492         * doc/invoke.texi (Option Summary): Mention new option
8493         -Wdisallowed-function-list=...
8494         (Warning Options): Document -Wdisallowed-function-list=...
8495         * common.opt (Wdisallowed-function-list=): New flag.
8496         * flags.h (warn_disallowed_functions): External definition of new
8497         boolean warning flag.
8498         (warn_if_disallowed_function_p): Declare new function.
8499         * opts.c (warning_disallowed_functions): New static variable.
8500         (warn_disallowed_functions): New boolean warning flag.
8501         (warn_if_disallowed_function_p): New function.
8502         (add_comma_separated_to_vector): Rename
8503         add_instrument_functions_exclude_list to this.
8504         (common_handle_option): Handle new option. Rename calls to
8505         add_instrument_functions_exclude_list into calls to
8506         add_comma_separated_to_vector.
8507         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
8508         based on flag warn_disallowed_functions.
8509
8510 2008-07-09  Christian Bruel  <christian.bruel@st.com>
8511
8512         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
8513          instead of get_attr_length.
8514
8515 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8516
8517         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
8518         keywords.
8519         * genemit.c (gen_insn): Likewise.
8520         * gengtype.c (note_def_vec): Likewise.
8521         * gengtype.h (note_def_vec): Likewise.
8522         * genoutput.c (struct data, output_insn_data, process_template,
8523         gen_expand, gen_split, note_constraint): Likewise.
8524         * genrecog.c (new_decision, add_to_sequence, factor_tests,
8525         make_insn_sequence): Likewise.
8526         * gensupport.c (record_insn_name): Likewise.
8527
8528 2008-07-08  Doug Kwan  <dougkwan@google.com>
8529
8530         * config/arm/arm.opt (mandroid): New option.
8531         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
8532         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
8533         (CC1_SPEC): Same.
8534         (CC1PLUS_SPEC): Same.
8535         (LIB_SPEC): Same.
8536         (STARTFILE_SPEC): Same.
8537         (ENDFILE_SPEC): Same.
8538         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
8539         used.
8540
8541 2008-07-08  Raksit Ashok  <raksit@google.com>
8542
8543         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
8544         (set_storage_via_setmem): Fix expected_align parameter.
8545         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
8546         missing from the list.
8547         * doc/md.texi (movmem): Explicitly state that expected alignment is
8548         to be expressed in bytes.
8549         (setmem): Explicitly state that expected alignment is to be expressed
8550         in bytes.
8551
8552 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
8553
8554         * reload.c (find_reloads_subreg_address): Do not require validity
8555         of address in original mode before reloading address.
8556
8557 2008-07-07  Tianwei Sheng  <tianweis@google.com>
8558
8559         * df-core.c (df_remove_problem): Adjust the access to avoid out of
8560         bounds array access.
8561
8562 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
8563
8564         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
8565
8566 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
8567
8568         Fix PR tree-optimization/23455
8569         Fix PR tree-optimization/35286
8570         Fix PR tree-optimization/35287
8571         * Makefile.in (OBJS-common): Remove tree-vn.o.
8572         (tree-vn.o): Remove.
8573         * dbgcnt.def: Add treepre_insert debug counter.
8574         * gcc/tree-flow.h (add_to_value): Updated for other changes.
8575         (debug_value_expressions): Ditto.
8576         (print_value_expressions): Ditto.
8577         * tree-pretty-print.c (dump_generic_node): Updated for
8578         VALUE_HANDLE removal.
8579         * tree-ssa-dom.c (record_equality): Ditto.
8580         (cprop_operand): Ditto.
8581         (lookup_avail_expr): Ditto.
8582         * tree-ssa-threadedge.c
8583         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
8584         (simplify_control_stmt_condition): Ditto.
8585         * tree.c (tree_code_size): Ditto.
8586         (tree_node_structure): Ditto.
8587         (iterative_hash_expr): Ditto.
8588         * tree.def: Ditto.
8589         * tree.h (VALUE_HANDLE_ID): Ditto.
8590         (VALUE_HANDLE_EXPR_SET): Ditto.
8591         (struct tree_value_handle): Ditto.
8592         (union tree_node): Ditto.
8593         * treestruct.def: Ditto.
8594         * tree-vn.c: Removed.
8595         * tree-ssa-pre.c: Rewritten entirely.
8596         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
8597         (constant_value_ids): Ditto.
8598         (vn_nary_op_t): Moved to header.
8599         (vn_phi_t): Ditto.
8600         (vn_reference_op_t): Ditto
8601         (vn_reference_t): Ditto.
8602         (next_value_id): New variable.
8603         (VN_INFO): Add an assert.
8604         (vn_constant_eq): New function.
8605         (vn_constant_hash): Ditto.
8606         (get_or_alloc_constant_value_id): Ditto.
8607         (value_id_constant_p): Ditto.
8608         (vn_reference_compute_hash): De-staticify.
8609         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
8610         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
8611         (valueize_refs): Update opcode if it changes from ssa name to constant.
8612         (vn_reference_lookup_1): Add new argument.
8613         (vn_reference_lookup):  Ditto.
8614         (vn_reference_lookup_pieces): New function.
8615         (vn_reference_insert): Add return type. Modify to deal with value ids.
8616         (vn_reference_insert_pieces):  New function.
8617         (vn_nary_op_compute_hash): De-staticify.
8618         (vn_nary_op_eq): Ditto.
8619         (vn_nary_op_lookup_pieces): New function.
8620         (vn_nary_op_lookup): Add new argument.
8621         (vn_nary_op_insert_pieces): New function.
8622         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
8623         (vn_phi_insert): Ditto.
8624         (visit_unary_op): Update for callee changes.
8625         (visit_binary_op): Ditto.
8626         (visit_reference_op_load): Ditto.
8627         (visit_reference_op_store): Ditto.
8628         (init_scc_vn): Init next_value_id, constant_to_value_id and
8629         constant_value_ids.
8630         (free_scc_vn): Free them.
8631         (set_hashtable_value_ids): New function.
8632         (run_scc_vn): Use it.
8633         (get_max_value_id): New function.
8634         (get_next_value_id): Ditto.
8635         (expressions_equal_p): Moved from tree-vn.c
8636         (sort_vuses): Ditto.
8637         (sort_vuses_heap): Ditto.
8638         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
8639         above).
8640         * tree.c (iterative_hash_hashval_t): Made non-static
8641         * tree.h (iterative_hash_hashval_t): Declare it.
8642
8643 2008-07-08  Martin Jambor  <mjambor@suse.cz>
8644
8645         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
8646         instead of ipa_create_node_params.
8647         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
8648         ipa_check_create_edge_args, free them with
8649         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
8650
8651         * ipa-prop.c: Include flags.h and tree-inline.h.
8652         (ipa_node_params_vector): New variable.
8653         (ipa_edge_args_vector): New variable.
8654         (edge_removal_hook_holder): New variable.
8655         (node_removal_hook_holder): New variable.
8656         (edge_duplication_hook_holder): New variable.
8657         (node_duplication_hook_holder): New variable.
8658         (ipa_detect_param_modifications): Check for presence of modified flags.
8659         (ipa_compute_jump_functions): Check for presence of jump functions.
8660         (ipa_free_edge_args_substructures): New function.
8661         (ipa_create_node_params): Removed.
8662         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
8663         (ipa_free_node_params_substructures): New function.
8664         (ipa_free_all_node_params): Changed to deallocate the on-the-side
8665         vector.
8666         (ipa_edge_removal_hook): New function.
8667         (ipa_node_removal_hook): New function.
8668         (duplicate_array): New function.
8669         (ipa_edge_duplication_hook): New function.
8670         (ipa_node_duplication_hook): New function.
8671         (ipa_register_cgraph_hooks): New function.
8672         (ipa_unregister_cgraph_hooks): New function.
8673         (free_all_ipa_structures_after_ipa_cp): New function.
8674
8675         * ipa-prop.h: Include vec.h.
8676         (ipa_node_params_t): New typedef with vector types for it.
8677         (ipa_edge_args_t):  New typedef with vector types for it.
8678         (IPA_NODE_REF): Changed to access an on-the-side vector.
8679         (IPA_EDGE_REF): Changed to access an on-the-side vector.
8680         (ipa_check_create_node_params): New function.
8681         (ipa_check_create_edge_args): New function.
8682
8683         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
8684         all users.
8685
8686 2008-07-07  Tom Tromey  <tromey@redhat.com>
8687
8688         * configure, config.in: Rebuilt.
8689         * configure.ac: Don't check for scandir or alphasort.
8690
8691 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
8692
8693         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
8694         types immediately after creating them.
8695
8696 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
8697
8698         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
8699
8700 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
8701
8702         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
8703         dump_constraint_graph.
8704         (dump_constraint_edge): New function.
8705         (dump_constraint_graph): New function.
8706         (debug_constraint_graph): New function.
8707         (dump_constraint): Removed useless comparison.
8708         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
8709         (dump_constraint_graph): Declare.
8710         (debug_constraint_graph): Declare.
8711         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
8712
8713 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
8714
8715         * config/i386/i386.c (is_va_list_char_pointer): New.
8716         (ix86_va_start): Replace compare with ms_va_list_type_node
8717         by is_va_list_char_pointer.
8718         (ix86_gimplify_va_arg): Likewise.
8719
8720 2008-07-07  Martin Jambor  <mjambor@suse.cz>
8721
8722         * cgraph.c (cgraph_edge_max_uid): New variable.
8723         (struct cgraph_edge_hook_list): New type.
8724         (struct cgraph_node_hook_list): New type.
8725         (struct cgraph_2edge_hook_list): New type.
8726         (struct cgraph_2node_hook_list): New type.
8727         (first_cgraph_edge_removal_hook): New variable.
8728         (first_cgraph_node_removal_hook): New variable.
8729         (first_cgraph_edge_duplicated_hook): New variable.
8730         (first_cgraph_node_duplicated_hook): New variable.
8731         (cgraph_add_edge_removal_hook): New function.
8732         (cgraph_remove_edge_removal_hook): New function.
8733         (cgraph_call_edge_removal_hooks):  New function.
8734         (cgraph_add_node_removal_hook):  New function.
8735         (cgraph_remove_node_removal_hook):  New function.
8736         (cgraph_call_node_removal_hooks):  New function.
8737         (cgraph_add_edge_duplication_hook):  New function.
8738         (cgraph_remove_edge_duplication_hook):  New function.
8739         (cgraph_call_edge_duplication_hooks):  New function.
8740         (cgraph_add_node_duplication_hook):  New function.
8741         (cgraph_remove_node_duplication_hook):  New function.
8742         (cgraph_call_node_duplication_hooks):  New function.
8743         (cgraph_create_edge): Assign to edge uid.
8744         (cgraph_remove_edge): Call edge removal hooks.
8745         (cgraph_node_remove_callees): Call edge removal hooks.
8746         (cgraph_node_remove_callers): Call edge removal hooks.
8747         (cgraph_remove_node): Call node removal hooks.
8748         (cgraph_clone_edge): Call edge duplication hooks.
8749         (cgraph_clone_node): Call node duplication hooks.
8750
8751         * cgraph.h (cgraph_edge): New field uid.
8752         (cgraph_edge_hook): New type.
8753         (cgraph_node_hook): New type.
8754         (cgraph_2edge_hook): New type.
8755         (cgraph_2node_hook): New type.
8756
8757 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
8758
8759         * config.in: Regenerate.
8760
8761 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
8762
8763         * gcc.c (print_sysroot): New.
8764         (option_map, display_help, process_command): Handle the
8765         -print-sysroot option.
8766         (main): Print the sysroot if requested.
8767         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
8768
8769 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8770
8771         PR target/34780
8772         * unwind-pe.h (size_of_encoded_value): add attribute unused.
8773
8774 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
8775
8776         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
8777         (assign_parm_setup_block_p): Also check mode of entry_parm.
8778
8779 2008-07-07  Richard Guenther  <rguenther@suse.de>
8780
8781         * tree-ssa-structalias.h (set_used_smts): Remove.
8782         * tree-ssa-structalias.c (used_smts): Likewise.
8783         (set_used_smts): Likewise.
8784         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
8785         call to set_used_smts.
8786
8787 2008-07-07  Richard Guenther  <rguenther@suse.de>
8788
8789         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
8790         (new_var_info): Set it to false.
8791         (solution_set_add): Correctly handle pointers outside a var and
8792         inside a field.
8793         (type_safe): Treat variables with is_full_var properly.
8794         (do_sd_constraint): Likewise.
8795         (do_ds_constraint): Likewise.
8796         (process_constraint): Remove zeroing offset for !use_field_sensitive.
8797         (get_constraint_for_ptr_offset): New function.
8798         (get_constraint_for_component_ref): For addresses at least include
8799         the last field of the variable.  Handle is_full_vars properly.
8800         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
8801         (handle_ptr_arith): Remove.
8802         (find_func_aliases): Simplify assignment handling.
8803         (create_function_info_for): For parameter and result varinfos set
8804         is_full_var flag.
8805         (create_variable_info_for): Set is_full_var flag whenever we
8806         just created a single varinfo for a decl.
8807         (init_alias_vars): Initialize use_field_sensitive from
8808         max-fields-for-field-sensitive parameter.
8809
8810 2008-07-07  Richard Guenther  <rguenther@suse.de>
8811
8812         PR tree-optimization/36713
8813         * tree-flow-inline.h (is_call_used): New function.
8814         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
8815         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
8816         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
8817
8818 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
8819
8820         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
8821
8822 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
8823
8824         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
8825
8826 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
8827             Nathan Sidwell  <nathan@codesourcery.com>
8828
8829         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
8830         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
8831         tmake_file.
8832         * config/m68k/t-linux: New.
8833         * doc/install.texi: Document m68k-*-linux is now multilibbed by
8834         default.
8835
8836 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
8837
8838         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
8839         * config/m68k/m68k-devices.def: Remove multilibs that only differ
8840         by MAC/EMAC.
8841
8842 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8843
8844         * gcc.c (execute): Fix -Wc++-compat warning.
8845
8846 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
8847
8848         PR target/36720
8849         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
8850         constant for little endian.
8851
8852 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
8853
8854         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
8855         mips_base_mips16 instead of TARGET_MIPS16.
8856         (mips_base_mips16): Declare.
8857         * config/mips/mips.c (mips_base_mips16): Make global.
8858         (was_mips16_p): Remove GTY marker.
8859         (was_mips16_pch_p): New variable.
8860         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
8861         (mips_override_options): Force to non-MIPS16 mode initially.
8862         Do not complain about MIPS16 PIC incompatibilities here.
8863         Only allow -mgpopt if -mexplicit-relocs is in force for
8864         non-MIPS16 code.
8865
8866 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
8867
8868         * configure.ac: Check for caddr_t, define to char * if not defined.
8869         * configure: Regenerate.
8870         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
8871         (mmap_gt_pch_use_address): Likewise.
8872         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
8873
8874 2008-07-06  Richard Guenther  <rguenther@suse.de>
8875
8876         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
8877         (new_var_info): Deal with it.
8878         (solution_set_add): Likewise.
8879         (bitpos_of_field): Make signed, fix.
8880         (struct fieldoff): Remove type and decl fields.  Make size field
8881         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
8882         flags.
8883         (fieldoff_compare): Deal with it.
8884         (push_fields_onto_fieldstack): Remove has_union argument, glob
8885         adjacent non-pointer fields together.
8886         (create_function_info_for): Do not set has_union.
8887         (create_variable_info_for): Simplify.
8888
8889 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
8890
8891         * config.gcc (extra_headers): Add cross-stdarg.h for target
8892         x86_64-*-* and i?86-*-*.
8893         * config/i386/cross-stdarg.h: New.
8894         * builtins.c (std_fn_abi_va_list): New.
8895         (std_canonical_va_list_type): New.
8896         (stabilize_va_list): Replace va_list_type_node use by
8897         mtarget.canonical_va_list_type.
8898         (gimplify_va_arg_expr): Likewise.
8899         (expand_builtin_va_copy): Replace va_list_type_node use by
8900         mtarget.fn_abi_va_list.
8901         * tree-sra.c (is_va_list_type): New helper.
8902         (decl_can_be_decomposed_p): Replace
8903         va_list_type_node use by is_va_list_type.
8904         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
8905         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8906         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
8907         * config/i386/i386-protos.h (ix86_get_valist_type): New.
8908         (ix86_enum_va_list): New.
8909         * config/i386/i386.c (sysv_va_list_type_node): New.
8910         (ms_va_list_type_node): New.
8911         (ix86_function_type_abi): Remove sorry.
8912         (ix86_build_builtin_va_list_abi): New.
8913         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
8914         for 64-bit targets.
8915         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
8916         (ix86_init_builtins_va_builtins_abi): New.
8917         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
8918         for 64-bit targets.
8919         (ix86_handle_abi_attribute): New.
8920         (attribute_spec): Add sysv_abi and ms_abi.
8921         (ix86_fn_abi_va_list): New.
8922         (ix86_canonical_va_list_type): New.
8923         (ix86_enum_va_list): New.
8924         (TARGET_FN_ABI_VA_LIST): New.
8925         (TARGET_CANONICAL_VA_LIST_TYPE): New.
8926         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
8927         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
8928         (TARGET_CANONICAL_VA_LIST_TYPE): New.
8929         (TARGET_ENUM_VA_LIST): New.
8930         * expr.h (std_fn_abi_va_list): New.
8931         (std_canonical_va_list_type): New.
8932         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
8933         (TARGET_CANONICAL_VA_LIST_TYPE): New.
8934         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
8935         TARGET_CANONICAL_VA_LIST_TYPE.
8936         * target.h (struct gcc_target): Add fn_abi_va_list hook
8937         and canonical_va_list_type hook.
8938
8939 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8940
8941         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
8942         integral and pointer types.
8943
8944 2008-07-04  Roger Sayle  <roger@eyesopen.com>
8945
8946         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
8947         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
8948
8949 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
8950
8951         PR target/36684
8952         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
8953
8954 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
8955
8956         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
8957         build_gimple_modify_stmt.
8958         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
8959         gimple operand.  Use fold_build* instead of build*.
8960
8961 2008-07-04  Richard Guenther  <rguenther@suse.de>
8962
8963         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
8964         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
8965         properly to compute the reachability set if we do field-sensitive PTA.
8966         * invoke.texi (max-fields-for-field-sensitive): Document default.
8967         * opts.c (decode_options): Set max-fields-for-field-sensitive to
8968         100 for optimize >= 2.
8969
8970 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8971
8972         * ggc-zone.c (lookup_page_table_if_allocated,
8973         set_page_table_entry, zone_find_object_size, alloc_small_page,
8974         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
8975         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
8976         -Wc++-compat and/or -Wcast-qual warnings.
8977
8978 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
8979
8980         PR target/36634
8981         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
8982         pic_offset_table_rtx to be marked as used here.
8983         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
8984         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
8985         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
8986         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
8987         !TARGET_SECURE_PLT.
8988
8989 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8990
8991         * alloc-pool.c (hash_descriptor, eq_descriptor,
8992         alloc_pool_descriptor): Fix -Wc++-compat warnings.
8993         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
8994         Likewise.
8995         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
8996         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
8997         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
8998         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
8999         Likewise.
9000
9001 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
9002
9003         * tree-flow.h (loop_only_exit_p): Declare.
9004         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
9005         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
9006         the number of iterations if it is constant.  Otherwise, if this is the
9007         only possible exit of the loop, use the conservative estimate on the
9008         number of iterations of the entire loop if available.
9009
9010 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
9011
9012         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
9013         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
9014         Add synchronization functions.
9015         * config/sync.c: New file.
9016         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
9017         (LIBGCC_SYNC_CFLAGS): Likewise.
9018
9019 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
9020
9021         PR target/36710
9022         * config/i386/i386.md (mode): Add TF to "mode" attribute.
9023         (*pushtf_sse): New insn pattern.
9024         (pushtf splitters): New splitters.
9025
9026 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
9027
9028         PR middle-end/35736
9029         * predict.c (build_predict_expr): Use void_type_node for the tree
9030         type, instead of NULL_TREE.
9031
9032 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
9033
9034         * config/i386/i386.c (contains_aligned_value_p): Return true
9035         for TCmode.
9036         (ix86_data_alignment): Align TCmode to 128bits.
9037         (ix86_local_alignment): Likewise.
9038
9039 2008-07-03  Andrew Haley  <aph@redhat.com>
9040
9041         PR bootstrap/33304
9042         * vec.h (VEC_TA): New.
9043         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
9044         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
9045         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
9046         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
9047         (C_COMMON_FIXED_TYPES): Remove first arg.
9048         (C_COMMON_FIXED_MODE_TYPES): Likewise.
9049         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
9050         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
9051         not to use empty macro arguments.
9052
9053 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
9054
9055         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
9056         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
9057         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
9058         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
9059         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
9060         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
9061         config/ia64/crtn.asm, config/m68hc11/larith.asm,
9062         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
9063         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
9064         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
9065         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
9066         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
9067         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
9068         config/rs6000/e500crtres64gpr.asm,
9069         config/rs6000/e500crtres64gprctr.asm,
9070         config/rs6000/e500crtrest32gpr.asm,
9071         config/rs6000/e500crtrest64gpr.asm,
9072         config/rs6000/e500crtresx32gpr.asm,
9073         config/rs6000/e500crtresx64gpr.asm,
9074         config/rs6000/e500crtsav32gpr.asm,
9075         config/rs6000/e500crtsav64gpr.asm,
9076         config/rs6000/e500crtsav64gprctr.asm,
9077         config/rs6000/e500crtsavg32gpr.asm,
9078         config/rs6000/e500crtsavg64gpr.asm,
9079         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
9080         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
9081         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
9082         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
9083         config/sparc/sol2-cn.asm: Remove .file directives.
9084
9085 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
9086
9087         * resource.c (mark_referenced_resources): Look inside
9088         UNSPEC_VOLATILEs and ASM_INPUTs.
9089
9090 2008-07-02  Ian Lance Taylor  <iant@google.com>
9091
9092         * rtlanal.c (add_reg_note): New function.
9093         * rtl.h (add_reg_note): Declare.
9094         * auto-inc-dec.c (attempt_change): Use add_reg_note.
9095         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
9096         * builtins.c (expand_builtin_longjmp): Likewise.
9097         (expand_builtin_nonlocal_goto): Likewise.
9098         * calls.c (emit_call_1, expand_call): Likewise.
9099         * cfgexpand.c (add_reg_br_prob_note): Likewise.
9100         * cfglayout.c (fixup_reorder_chain): Likewise.
9101         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
9102         (commit_one_edge_insertion): Likewise.
9103         * combine.c (move_deaths, distribute_notes): Likewise.
9104         * df-problems.c (df_set_note): Likewise.
9105         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
9106         (set_unique_reg_note): Likewise.
9107         (emit_copy_of_insn_after): Likewise.
9108         * expr.c (expand_expr_real): Likewise.
9109         * gcse.c (add_label_notes): Likewise.
9110         * haifa-sched.c (create_check_block_twin): Likewise.
9111         * jump.c (mark_jump_label_1): Likewise.
9112         * loop-doloop.c (add_test, doloop_modify): Likewise.
9113         * loop-unswitch.c (compare_and_jump_seq): Likewise.
9114         * lower-subreg.c (move_eh_region_note): Likewise.
9115         * optabs.c (emit_libcall_block): Likewise.
9116         * predict.c (predict_insn): Likewise.
9117         (combine_predictions_for_insn): Likewise.
9118         * recog.c (peephole2_optimize): Likewise.
9119         * regmove.c (try_auto_increment): Likewise.
9120         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
9121         * reload.c (find_reloads): Likewise.
9122         * reload1.c (fixup_eh_region_note): Likewise.
9123         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
9124         * reorg.c (delete_prior_computation): Likewise.
9125         (delete_computation, dbr_schedule): Likewise.
9126         * config/pa/pa.c (legitimize_pic_address): Likewise.
9127         * config/sh/sh.c (sh_reorg): Likewise.
9128
9129 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
9130
9131         PR target/36669
9132         * config/libgcc-glibc.ver: Add %exclude.
9133         * config/m32r/libgcc-glibc.ver: Likwise.
9134         * config/s390/libgcc-glibc.ver: Likwise.
9135         * config/sh/libgcc-glibc.ver: Likwise.
9136         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
9137
9138         * config/i386/libgcc-glibc.ver: New.
9139
9140         * config/i386/libgcc-x86_64-glibc.ver: Removed.
9141
9142 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
9143
9144         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
9145         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
9146         i[34567]86-*-linux*, x86_64-*-linux*.  Add
9147         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
9148         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
9149         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
9150         i[34567]86-*-linux*, x86_64-*-linux*.
9151
9152         * libgcc-std.ver: Add empty GCC_4.4.0.
9153
9154         * mkmap-symver.awk: Support multiple versions per symbol.
9155
9156         * config/i386/i386.c (ix86_init_builtins): Always define
9157         __builtin_fabsq and __builtin_copysignq with fallbacks.
9158         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
9159         and __builtin_copysignq if SSE2 isn't available.
9160
9161         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
9162         (LIBGCC2_TF_CEXT): Likwise.
9163         (TF_SIZE): Likwise.
9164
9165         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
9166
9167         * config/i386/sfp-machine.h: Moved to libgcc.
9168
9169         * config/i386/sfp-machine.h: New.
9170         * config/i386/t-linux: Likwise.
9171
9172         * config/i386/t-darwin: Remove softfp_wrap_start and
9173         softfp_wrap_end.
9174         * config/i386/t-darwin64: Likewise.
9175
9176         * config/i386/t-fprules-softfp64: Renamed to ...
9177         * config/i386/t-fprules-softfp: This.
9178
9179         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
9180         and softfp_wrap_end.
9181
9182 2008-07-02  Jason Merrill  <jason@redhat.com>
9183
9184         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
9185
9186         * tree.c (ctor_to_list): New fn.
9187         * tree.h: Declare it.
9188         (CONSTRUCTOR_ELT): New macro.
9189         (CONSTRUCTOR_NELTS): New macro.
9190
9191 2008-07-02  Richard Guenther  <rguenther@suse.de>
9192
9193         * tree-ssa-structalias.c (struct variable_info): Reorder
9194         to fill padding on 64bit hosts.  Make collapsed_to an int.
9195         (get_varinfo_fc): Deal with that.
9196         (new_var_info): Likewise.
9197         (collapse_rest_of_var): Likewise.
9198
9199 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
9200
9201         * doc/install.texi (--enable-java-home): Document.
9202         (--enable-aot-compile-rpm): Likewise.
9203         (--with-arch-directory): Likewise.
9204         (--with-os-directory): Likewise.
9205         (--with-origin-name): Likewise.
9206         (--with-arch-suffix): Likewise.
9207         (--with-jvm-root-dir): Likewise.
9208         (--with-jvm-jar-dir): Likewise.
9209         (--with-python-dir): Likewise.
9210
9211 2008-07-02  Richard Guenther  <rguenther@suse.de>
9212
9213         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
9214         from decls explicitly.  Merge operand checking from tuples.
9215
9216 2008-07-02  Martin Jambor  <mjambor@suse.cz>
9217
9218         * tree-switch-conversion.c: Included timevar.h which I forgot before.
9219
9220 2008-07-02  Martin Jambor  <mjambor@suse.cz>
9221
9222         * tree-switch-conversion.c: Included timevar.h
9223         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
9224
9225         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
9226
9227 2008-07-02  Martin Jambor  <mjambor@suse.cz>
9228
9229         * tree-switch-conversion.c: Corrected various comments and
9230         whitespace issues
9231         (build_constructors): Fixed minor formatting mistakes.
9232
9233         * invoke.texi (Optimize Options): Corrected the
9234         switch-conversion-max-branch-ratio parameter.
9235
9236 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
9237
9238         * final.c (asm_insn_count): Return zero for an empty asm body.
9239
9240 2008-07-02  Richard Guenther  <rguenther@suse.de>
9241
9242         * bitmap.h (bitmap_set_bit): Return bool.
9243         (bitmap_clear_bit): Likewise.
9244         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
9245         write to the bitmap if it would.
9246         (bitmap_clear_bit): Likewise.
9247         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
9248         bitmap_set_bit return value.
9249         (add_pred_graph_edge): Likewise.
9250         (add_graph_edge): Likewise.
9251         (do_sd_constraint): Likewise.
9252         (do_ds_constraint): Likewise.
9253
9254 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9255
9256         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
9257         Fix -Wc++-compat and/or -Wcast-qual warnings.
9258         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
9259         gen_regparm_prefix): Likewise.
9260         * vmsdbgout.c (write_modbeg, lookup_filename,
9261         vmsdbgout_source_line, vmsdbgout_init): Likewise.
9262
9263 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
9264
9265         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
9266         defaults.h definition apply.
9267
9268 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
9269
9270         * function.c (assign_parm_remove_parallels): New.
9271         (assign_parm_setup_block_p): Do not return true for non-BLKmode
9272         PARALLELs.
9273         (assign_parm_setup_block): Do not handle them.
9274         (assign_parm_setup_reg, assign_parm_setup_stack): Call
9275         assign_parm_remove_parallels.
9276
9277 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
9278
9279         * c-typeck.c (convert_for_assignment): Use
9280         vector_targets_convertible_p.
9281         * c-common.c (vector_targets_convertible_p): New.
9282         * c-common.h (vector_targets_convertible_p): New prototype.
9283         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
9284         opaque_p_V2SI_type_node.
9285
9286 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
9287
9288         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
9289         RFmode constants.
9290
9291 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
9292
9293         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
9294         TFmode constants via two element DImode vector for hosts with
9295         HOST_BITS_PER_WIDE_INT < 64.
9296         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
9297         also for HOST_BITS_PER_WIDE_INT < 64.
9298
9299 2008-07-01  Richard Guenther  <rguenther@suse.de>
9300
9301         PR tree-optimization/36666
9302         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
9303         (get_constraint_exp_from_ssa_var): Split into ...
9304         (get_constraint_exp_for_temp): ... this ...
9305         (get_constraint_for_ssa_var): ... and that.
9306         Return constraint expressions for all touched sub-fields
9307         if the results address is not taken.
9308         (process_constraint): Remove assertion that aggregate
9309         assignments do not happen at this place.
9310         (get_constraint_for_component_ref): Add address_p argument.
9311         Return constraint expressions for all touched sub-fields
9312         if the results address is not taken.
9313         (do_deref): Use get_constraint_exp_for_temp.
9314         (get_constraint_for_1): Rename from ...
9315         (get_constraint_for): ... this.  Add the old function as wrapper.
9316         (do_structure_copy): Use get_constraint_for_1.
9317
9318 2008-07-01  Martin Jambor  <mjambor@suse.cz>
9319
9320         * Makefile.in (tree-switch-conversion.o): Add.
9321         (OBJS-common): Add tree-swtch-conversion.o.
9322         * passes.c (init_optimization_passes): Add pass_convert_switch.
9323         * tree-pass.h: (pass_convert_switch): Add.
9324         * tree-switch-conversion.c: New file.
9325         * gcc.dg/tree-ssa/cswtch.c: New testcase.
9326         * common.opt (ftree-cswtch): New option.
9327         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
9328         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
9329         * opts.c (decode_options): Set flag_tree_switch_conversion when
9330         optimization level is >= 2.
9331         * doc/invoke.texi (Optimize Options): Added description of
9332         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
9333
9334 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9335
9336         * config/darwin-driver.c (darwin_default_min_version): Fix
9337         -Wc++-compat warnings.
9338
9339 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
9340
9341         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
9342         of operand 0.
9343
9344 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
9345
9346         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
9347
9348 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
9349
9350         PR rtl-optimization/34744
9351         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
9352         (df_scan_free_internal): Free data structures not
9353         allocated in storage pools.
9354         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
9355         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
9356         df_scan_free_mws_vec.
9357         * dse.c (dse_step6): Free offset_map_p and offset_map_n
9358         unconditionally.
9359
9360 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
9361
9362         * config/i386/i386.c (contains_aligned_value_p): Return true
9363         for __float128.
9364         (ix86_function_arg_boundary): Return its natural boundary
9365         for __float128.
9366         (return_in_memory_32): Don't check TDmode.
9367         (ix86_split_to_parts): Support splitting into 4 parts and
9368         support TFmode for 32bit target.
9369         (ix86_split_long_move): Support splitting into 4 parts.
9370         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
9371         for SSE2.
9372         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
9373         (ix86_init_builtins): Here.
9374         (ix86_scalar_mode_supported_p): Always return true for TFmode.
9375         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
9376         'q' and 'w', respectively.
9377
9378         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
9379         TARGET_64BIT.
9380         (movtf_internal): Likewise.
9381         (<code>tf2): Likewise.
9382         (*absnegtf2_sse): Likewise.
9383         (copysign<mode>3): Likewise.
9384         (copysign<mode>3_const): Likewise.
9385         (copysign<mode>3_var): Likewise.
9386         (define_split UNSPEC_COPYSIGN): Likewise.
9387         * config/i386/sse.md (*nandtf3): Likewise.
9388         (<code>tf3): Likewise.
9389         (*<code>tf3): Likewise.
9390
9391 2008-06-30  Joey Ye  <joey.ye@intel.com>
9392             H.J. Lu  <hongjiu.lu@intel.com>
9393
9394         * global.c (compute_regsets): Set frame_pointer_needed here.
9395         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
9396
9397 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
9398
9399         * doc/install.texi (specific): Expand Windows build notes.
9400
9401 2008-06-30  Ira Rosen  <irar@il.ibm.com>
9402
9403         PR tree-optimization/36648
9404         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
9405         number of prolog iterations by step. Fix the comment.
9406
9407 2008-06-30  Richard Guenther  <rguenther@suse.de>
9408
9409         PR middle-end/36671
9410         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
9411         handle calls from ECF_MALLOC functions.
9412         (handle_pure_call): ECF_MALLOC functions do not return
9413         call-used memory.
9414         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
9415
9416 2008-06-29  Andreas Schwab  <schwab@suse.de>
9417
9418         * config/m68k/m68k.c (print_operand): Always print a float
9419         constant in hex.
9420         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
9421         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
9422         Remove macros.
9423
9424         * config/rs6000/x-linux64: Remove never used file.
9425
9426 2008-06-29  Richard Guenther  <rguenther@suse.de>
9427
9428         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
9429         prototype.
9430         (struct alias_info): Move ...
9431         * tree-ssa-alias.c: ... here.
9432         (update_alias_info): Declare.
9433         (compute_may_aliases): Call it.
9434         (update_alias_info): New function.
9435         * tree-ssa-structalias.c (update_alias_info): Move ...
9436         * tree-ssa-alias.c (update_alias_info_1): ... here.
9437         * tree-ssa-structalias.c (process_constraint_1): Remove
9438         unused from_call argument.  Rename to ...
9439         (process_constraint): ... this.  Delete old wrapper.
9440         (make_constraint_to): Adjust callers.
9441         (handle_const_call): Likewise.
9442         (handle_pure_call): Likewise.
9443         (init_base_vars): Likewise.
9444         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
9445         (find_func_aliases): We don't need structure copies for
9446         complex types.
9447         (make_constraint_from_anything): Remove.
9448         (create_variable_info_for): For globals make constraints
9449         from escaped, not from anything.
9450         (compute_points_to_sets): Do not call update_alias_info.
9451         (ipa_pta_execute): Use make_constraint_from.
9452
9453 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9454
9455         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
9456         (bitmap.o-warn, dominance.o-warn): New.
9457         * configure.ac (cxx_compat_warn): Delete.
9458         (loose_warn): Add -Wcast-qual and -Wc++-compat.
9459         * system.h: Remove #pragma diagnostic for -Wcast-qual and
9460         -Wc++-compat.
9461         * configure: Regenerate.
9462
9463         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
9464         warnings.
9465
9466 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9467
9468         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
9469         * df-scan.c (df_notes_rescan): Likewise.
9470         * ggc-page.c (set_page_table_entry): Likewise.
9471         * intl.c (gcc_gettext_width): Likewise.
9472         * varasm.c (get_unnamed_section, get_noswitch_section,
9473         get_section): Likewise.
9474
9475 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
9476
9477         * regrename.c (build_def_use): Don't copy RTX.
9478
9479 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
9480
9481         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
9482         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
9483         punctuation.  Use @ref instead of @xref.
9484         (Function Names): Remove stray @display/@end display.
9485         (C++ Attributes): Use @ref instead of @xref.
9486         (Deprecated Features): Fix punctuation around @xref.
9487         (Backwards Compatibility): Likewise.
9488         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
9489
9490 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
9491
9492         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
9493         constants for E500 double.
9494
9495 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9496
9497         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
9498         element type of const_vector.
9499
9500 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
9501
9502         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
9503         Remove FLAGS_REG clobber from expander pattern.
9504         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
9505         (anddi3, andsi3, andhi3, andqi3): Ditto.
9506         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
9507         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
9508         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
9509         (ashlsi3, ashlhi3, ashlqi3): Ditto.
9510         (ashrsi3, ashrhi3, ashrqi3): Ditto.
9511         (lshrsi3, lshrhi3, lshrqi3): Ditto.
9512         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
9513         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
9514
9515 2008-06-28  Richard Guenther  <rguenther@suse.de>
9516
9517         * tree-ssa-structalias.c (callused_id, var_callused,
9518         callused_tree): Add.
9519         (handle_pure_call): New function.
9520         (find_func_aliases): Call it.
9521         (find_what_p_points_to): Handle the call-used set.
9522         (clobber_what_escaped): Likewise.
9523         (compute_call_used_vars): New function.
9524         (init_base_vars): Init the call-used variable.
9525         (do_sd_constraint): Do not propagate the solution from CALLUSED
9526         but use CALLUSED as a placeholder.
9527         (solve_graph): Likewise.
9528         * tree-flow-inline.h (gimple_call_used_vars): New function.
9529         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
9530         (compute_call_used_vars): Declare.
9531         * tree-ssa-alias.c (set_initial_properties): Call
9532         compute_call_used_vars.
9533         (reset_alias_info): Clear call-used variables.
9534         (add_call_clobber_ops): Assert we are not called for const/pure
9535         functions.  Remove handling of them.
9536         (add_call_read_ops): Handle pure functions by adding the
9537         call-used set of variables as VUSEs.
9538         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
9539         (delete_tree_ssa): Free it.
9540         * tree-dfa.c (remove_referenced_var): Clear the var from the
9541         call-used bitmap.
9542
9543 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
9544
9545         * tree.c (build_varargs_function_type_list): New.
9546         (build_function_type_list_1): New.
9547         (build_function_type_list): Use build_function_type_list_1.
9548         * tree.h (build_varargs_function_type_list): New.
9549
9550 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9551
9552         PR target/34856
9553         * config/spu/spu.c (spu_builtin_splats): Do not generate
9554         invalid CONST_VECTOR expressions.
9555         (spu_expand_vector_init): Likewise.
9556
9557 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
9558
9559         * optabs.c (libfunc_decls): New variable.
9560         (libfunc_decl_hash, libfunc_decl_eq): New functions.
9561         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
9562         for the same function twice.
9563
9564 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
9565
9566         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
9567         ix86_expand_binary_operator directly.
9568         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
9569         for operand 2.
9570         (*ashrti3_1): Ditto.
9571         (*lshrti3_1): Ditto.
9572         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
9573         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
9574         using only one splitter.  Conditionaly execute splitter before or
9575         after peephole2 pass.
9576         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
9577         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
9578         Use only one alternative in asm template.
9579         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
9580         in asm template.
9581         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
9582         "J" operand constraint for operand 2.
9583         (*ashldi3_cconly_rex64): Ditto.
9584         (*ashrdi3_cmp_rex64): Ditto.
9585         (*ashrdi3_cconly_rex64): Ditto.
9586         (*lshrdi3_cmp_rex64): Ditto.
9587         (*lshrdi3_cconly_rex64): Ditto.
9588         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
9589         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
9590         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
9591         gen_x86_shrd_1.
9592
9593 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
9594
9595         * gimplify.c (omp_is_private): Don't return true if decl is not
9596         already private on #pragma omp for or #pragma omp parallel for.
9597
9598         PR debug/36617
9599         * tree-cfg.c (struct move_stmt_d): Replace block field with
9600         orig_block and new_block fields.
9601         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
9602         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
9603         (move_block_to_fn): Replace vars_map and new_label_map arguments
9604         with struct move_stmt_d pointer.
9605         (replace_block_vars_by_duplicates): New function.
9606         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
9607         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
9608         all subblocks of ORIG_BLOCK to the new function.  Call
9609         replace_block_vars_by_duplicates.
9610         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
9611         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
9612         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
9613         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
9614         (expand_omp): Temporarily set input_location to the location of
9615         region's controlling stmt.
9616         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
9617         BIND_EXPR, push ctx->block_vars and gimplification vars into
9618         the BIND_EXPR and its block's BLOCK_VARS instead of directly
9619         into dest function.
9620         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
9621         there are any BLOCK_VARS.
9622         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
9623         OMP_PARALLEL or OMP_TASK stmt.
9624         (lower_omp): Save and restore input_location around the lower_omp_1
9625         call.
9626
9627 2008-06-27  Richard Guenther  <rguenther@suse.de>
9628
9629         PR tree-optimization/36400
9630         PR tree-optimization/36373
9631         PR tree-optimization/36344
9632         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
9633         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
9634         (update_alias_info): Remove call clobbering code.
9635         (make_constraint_to): New helper function.
9636         (make_escape_constraint): Likewise.
9637         (handle_rhs_call): Use it on all pointer containing arguments.
9638         Also mark the static chain escaped.
9639         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
9640         instead of ANYTHING.
9641         (make_constraint_from): New helper split out from ...
9642         (make_constraint_from_anything): ... here.
9643         (find_func_aliases): Add constraints for escape sites.
9644         (intra_create_variable_infos): Make constraints from NONLOCAL
9645         for parameters.
9646         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
9647         as ANYTHING.
9648         (clobber_what_p_points_to): Remove.
9649         (clobber_what_escaped): New function.
9650         (init_base_vars): Init NONLOCAL and ESCAPED.
9651         (do_sd_constraint): Do not propagate the solution from ESCAPED
9652         but use ESCAPED as a placeholder.
9653         (solve_graph): Likewise.
9654         * tree-flow.h (clobber_what_p_points_to): Remove.
9655         (clobber_what_escaped): Declare.
9656         * tree-ssa-alias.c (set_initial_properties): Call it.
9657         Remove code clobbering escaped pointers.
9658
9659 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
9660
9661         * function.c (allocate_struct_function): Only allocate a unique
9662         funcdef_no if the decl is nonzero.
9663
9664 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
9665
9666         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
9667         * config/mips/mips.c (mips_split_const_insns): New function.
9668         * config/mips/mips.md (move_type): New attribute.
9669         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
9670         (dword_mode): New attribute.
9671         (type): Avoid long line.  Map "move_type"s to "type"s,
9672         choosing "multi" for doubleword moves if appropriate.
9673         Swap MTC/MFC comments to match their declaration order.
9674         (extended_mips16): Default to "yes" if "move_type" is "sll0",
9675         "type" is "branch" or "jal" is "direct".
9676         (length): Handle "extended_mips16" first.  Make the default
9677         "0" for "ghost" instructions.  Set the length from "move_type".
9678         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
9679         of "type", with "sll0" for the register alternative.  Remove the
9680         "extended_mips16" attribute.
9681         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
9682         of "type", with "shift_shift" for the register alternative.
9683         Remove the "length" attribute.
9684         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
9685         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
9686         of "type", with "andi" for the register alternative.
9687         (*zero_extendqihi2): Likewise.
9688         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
9689         of "andi" instead of a "type" of "arith".
9690         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
9691         instead of "type".
9692         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
9693         (mov_<store>r, *mov<mode>_ra): Likewise.
9694         (extendsidi2): Use "move_type" instead of "type", with "move"
9695         for the register alternative.
9696         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
9697         of "type", with "signext" for the register alternative.
9698         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
9699         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
9700         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
9701         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
9702         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
9703         (unnamed branch insn): Likewise.
9704         (*movdi_gp32_fp64): Fold into...
9705         (*movdi_32bit): ...here.
9706         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
9707         (*movdf_hardfloat): ...this new pattern.
9708         (*movdf_softfloat): Remove redundant FPR alternatives.
9709         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
9710         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
9711         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
9712         the "move" attribute.
9713         (*movdi_32bit): Use "move_type" instead of "type" and remove the
9714         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
9715         and "store" for COP loads and stores.
9716         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
9717         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
9718         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
9719         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
9720         (*movtf_mips16, *movv2sf): Likewise.
9721         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
9722         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
9723         (mfhc1<mode>): Use "move_type" instead of "move".
9724         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
9725         (loadgp_blockage): Remove the "length" attribute.
9726         (blockage, set_got_version, update_got_version): Likewise.
9727         (call_internal): Remove the "extended_mips16" attribute.
9728         (call_value_internal, call_value_multiple_internal): Likewise.
9729         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
9730         instead of "move".
9731         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
9732         the "length" attribute.
9733
9734 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9735
9736         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
9737         -Wcast-qual warnings.
9738         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
9739         handle_pragma_pop_macro): Likewise.
9740         * collect2.c (resolve_lib_name): Likewise.
9741         * config/arc/arc.c (arc_init): Likewise.
9742         * config/arm/arm.c (neon_builtin_compare,
9743         locate_neon_builtin_icode): Likewise.
9744         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
9745         * config/bfin/bfin.c (bfin_init_machine_status,
9746         bfin_optimize_loop): Likewise.
9747         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
9748         * config/cris/cris.c (cris_init_expanders): Likewise.
9749         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
9750         * config/darwin.c (machopic_indirection_eq,
9751         machopic_indirection_name, machopic_output_indirection): Likewise.
9752         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
9753         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
9754         frv_optimize_membar): Likewise.
9755         * config/i386/cygwin.h (mingw_scan,
9756         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
9757         * config/i386/cygwin1.c (mingw_scan): Likewise.
9758         * config/i386/i386.c (machopic_output_stub): Likewise.
9759         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
9760         i386_pe_unique_section): Likewise.
9761         * config/ia64/ia64.c (ia64_init_machine_status,
9762         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
9763         Likewise.
9764         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
9765         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
9766         * config/m68k/m68k.c (m68k_handle_option,
9767         m68k_sched_md_init_global): Likewise.
9768         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
9769         mcore_unique_section): Likewise.
9770         * config/mips/mips.c (mips_block_move_straight,
9771         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
9772         Likewise.
9773         * config/mmix/mmix.c (mmix_init_machine_status,
9774         mmix_encode_section_info): Likewise.
9775         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
9776         * config/rs6000/rs6000.c (rs6000_init_machine_status,
9777         print_operand_address, output_toc, redefine_groups,
9778         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
9779         * config/s390/s390.c (s390_init_machine_status): Likewise.
9780         * config/score/score.c (score_block_move_straight,
9781         score_block_move_loop_body): Likewise.
9782         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
9783         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
9784         * emit-rtl.c (find_auto_inc): Likewise.
9785         * gcc.c (translate_options, process_command): Likewise.
9786         * reorg.c (dbr_schedule): Likewise.
9787         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
9788         * xcoffout.c (xcoffout_declare_function): Likewise.
9789
9790 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
9791
9792         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
9793         ipa-pta working again.
9794
9795 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
9796
9797         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
9798         genautomata.
9799
9800 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
9801
9802         * config.gcc (powerpc*-*-*): Add new core e500mc.
9803         * config/rs6000/e500mc.md: New file.
9804         * config/rs6000/rs6000.c (processor_costs): Add new costs for
9805         e500mc.
9806         (rs6000_override_options): Add e500mc case to
9807         processor_target_table. Altivec and Spe options not allowed
9808         with e500mc. Add isel instruction to e500mc by
9809         default. Initialize rs6000_cost for e500mc.
9810         (rs6000_issue_rate): Set issue rate for e500mc.
9811         * config/rs6000/rs6000.h (processor_type): Add
9812         PROCESSOR_PPCE500MC.
9813         (ASM_CPU_SPEC): Add e500mc.
9814         Set TARGET_ISEL to rs6000_isel.
9815         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
9816         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
9817         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
9818         Include e500mc.md.
9819         * doc/invoke.texi: Add e500mc to list of cpus.
9820
9821 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9822
9823         PR c/34867
9824         * c-lex.c (lex_charconst): Initialize unsignedp.
9825
9826 2008-06-27  Olivier Hainque  <hainque@adacore.com>
9827
9828         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
9829         documented assumptions.
9830
9831 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
9832
9833         * dwarf2out.c: Remove trailing white spaces.  Break long line
9834         in comments.
9835
9836 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
9837
9838         * libfuncs.h (LTI_synchronize): New libfunc_index.
9839         (synchronize_libfunc): Declare.
9840         * builtins.c (expand_builtin_synchronize): Consider using
9841         synchronize_libfunc before falling back on an asm blockage.
9842         * config/mips/mips.c: Include libfuncs.h
9843         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
9844
9845 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
9846
9847         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
9848         parameter.  Copy stack_reg to r11 where appropriate.
9849         (no_global_regs_above): Add gpr parameter.
9850         (rs6000_stack_info): Only add padding for SPE save area if we
9851         are saving SPE GPRs and CR.
9852         (saveres_routine_syms): New variable.
9853         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
9854         Define.
9855         (rs6000_savres_routine_sym): New function.
9856         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
9857         split out of...
9858         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
9859         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
9860         Tweak FPR out-of-line saving.
9861         (rs6000_make_savres_rtx): New function.
9862         (rs6000_use_multiple_p): New function.
9863         (rs6000_savres_strategy): New function.
9864         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
9865         out-of-line if appropriate.
9866         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
9867         if we are optimizing for size.
9868         (GP_SAVE_INLINE): Define.
9869         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
9870         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
9871         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
9872         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
9873         (*save_fpregs_<mode>): Add use of r11.
9874         (*restore_gpregs_<mode>): New insn.
9875         (*return_and_restore_gpregs_<mode>): New insn.
9876         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
9877         use r11.
9878         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
9879         (*restore_gpregs_spe): New insn.
9880         (*return_and_restore_gpregs_spe): New insn.
9881         * config/rs6000/predicates.md (save_world_operation): Fix check.
9882
9883 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
9884
9885         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
9886         this point, so assert that.
9887
9888 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
9889
9890         * cfganal.c: Include vec.h and vecprim.h.
9891         (compute_idf): Import from...
9892         * tree-into-ssa (compute_idf): ...here.
9893         * basic-block.h (compute_idf): Export.
9894
9895 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
9896
9897         * c-decl.c (merge_decls): Use !current_function_decl to check for
9898         extern declaration of C99 inline function being at file scope.
9899
9900 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
9901
9902         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
9903
9904 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9905
9906         * alias.c (record_alias_subset, init_alias_analysis): Fix
9907         -Wc++-compat and/or -Wcast-qual warnings.
9908         * attribs.c (lookup_attribute_spec): Likewise.
9909         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
9910         copy_bb, connect_traces,
9911         find_rarely_executed_basic_blocks_and_cr): Likewise.
9912         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
9913         note_btr_set, migrate_btr_defs): Likewise.
9914         * builtins.c (result_vector, expand_builtin_memcpy,
9915         expand_builtin_mempcpy_args, expand_builtin_strncpy,
9916         builtin_memset_read_str, expand_builtin_printf,
9917         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
9918         Likewise.
9919         * caller-save.c (mark_set_regs): Likewise.
9920         * calls.c (expand_call, emit_library_call_value_1): Likewise.
9921         * cgraph.c (cgraph_edge): Likewise.
9922         * combine.c (likely_spilled_retval_1): Likewise.
9923         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
9924         htab_counts_entry_del, get_coverage_counts): Likewise.
9925         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
9926         new_cselib_val): Likewise.
9927         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
9928         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
9929         Likewise.
9930         * df-core.c (df_compact_blocks): Likewise.
9931         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
9932         * df-scan.c (df_grow_reg_info, df_ref_create,
9933         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
9934         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
9935         df_record_entry_block_defs, df_record_exit_block_uses,
9936         df_bb_verify): Likewise.
9937         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
9938         DF_REF_EXTRACT_MODE_CONST): New.
9939         * dominance.c (get_immediate_dominator, get_dominated_by,
9940         nearest_common_dominator, root_of_dom_tree,
9941         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
9942         -Wc++-compat and/or -Wcast-qual warnings.
9943         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
9944         record_store, replace_read, check_mem_read_rtx, scan_insn,
9945         dse_step1, dse_record_singleton_alias_set): Likewise.
9946         * dwarf2asm.c (dw2_force_const_mem): Likewise.
9947
9948 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9949
9950         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
9951         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
9952         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
9953         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
9954         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
9955         add_ranges_num, add_ranges_by_labels, file_info_cmp,
9956         file_name_acquire, output_file_names, add_const_value_attribute,
9957         premark_used_types_helper, file_table_eq, file_table_hash,
9958         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
9959         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
9960         -Wcast-qual warnings.
9961         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
9962         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
9963         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
9964         gen_reg_rtx, start_sequence, init_emit): Likewise.
9965         * et-forest.c (et_new_occ, et_new_tree): Likewise.
9966         * except.c (init_eh_for_function, gen_eh_region,
9967         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
9968         arh_to_landing_pad, arh_to_label, add_action_record,
9969         add_call_site, switch_to_exception_section): Likewise.
9970         * expmed.c (synth_mult): Likewise.
9971         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
9972         store_expr): Likewise.
9973         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
9974         Likewise.
9975         * function.c (assign_stack_temp_for_type,
9976         allocate_struct_function, match_asm_constraints_1): Likewise.
9977         * gcov-io.c (gcov_allocate): Likewise.
9978         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
9979         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
9980         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
9981         record_one_set, insert_expr_in_table, insert_set_in_table,
9982         dump_hash_table, compute_hash_table_work, alloc_hash_table,
9983         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
9984         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
9985         -Wcast-qual warnings.
9986
9987 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9988
9989         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
9990         -Wcast-qual warnings.
9991         * gcc.c (process_command): Likewise.
9992         * genattrtab.c (oballoc): Use XOBNEW.
9993         (oballocvec): Define.
9994         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
9995         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
9996         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
9997         -Wc++-compat and/or -Wcast-qual warnings.
9998         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
9999         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
10000         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
10001         gen_presence_absence_set, gen_automaton, gen_regexp_el,
10002         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
10003         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
10004         add_excls, process_presence_absence_names,
10005         process_presence_absence_patterns, add_presence_absence,
10006         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
10007         get_free_state, add_arc, get_free_automata_list_el,
10008         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
10009         transform_3, cache_presence, create_ainsns, create_automata,
10010         create_state_ainsn_table, dfa_insn_code_enlarge,
10011         output_trans_func, output_min_issue_delay_func,
10012         output_dead_lock_func, output_reset_func,
10013         output_get_cpu_unit_code_func, output_dfa_start_func,
10014         expand_automata): Likewise.
10015         * genextract.c (gen_insn): Likewise.
10016         * gengtype-lex.l: Likewise.
10017         * gengtype.c (read_input_list, adjust_field_type,
10018         process_gc_options): Likewise.
10019         * genoutput.c (note_constraint): Likewise.
10020         * genpreds.c (mangle, add_constraint): Likewise.
10021         * genrecog.c (process_define_predicate, new_decision,
10022         add_to_sequence): Likewise.
10023         * gensupport.c (record_insn_name): Likewise.
10024
10025 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10026
10027         * config/i386/driver-i386.c (detect_caches_amd,
10028         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
10029         and/or -Wcast-qual warnings.
10030         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
10031         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
10032         gt_pch_save): Likewise.
10033         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
10034         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
10035         * global.c (compute_regsets): Likewise.
10036         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
10037         finish_graph_dump_file): Likewise.
10038         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
10039         unlink_bb_notes): Likewise.
10040         * integrate.c (get_hard_reg_initial_val): Likewise.
10041         * ipa-prop.c (ipa_push_func_to_list): Likewise.
10042         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
10043         * local-alloc.c (update_equiv_regs): Likewise.
10044         * loop-invariant.c (check_invariant_table_size,
10045         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
10046         Likewise.
10047         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
10048         altered_reg_used, mark_altered): Likewise.
10049         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
10050         insert_var_expansion_initialization,
10051         combine_var_copies_in_loop_exit, apply_opt_in_copies,
10052         release_var_copies): Likewise.
10053         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
10054         analyze_matrix_decl, add_allocation_site, analyze_transpose,
10055         analyze_accesses_for_phi_node, check_var_notmodified_p,
10056         check_allocation_function, find_sites_in_func,
10057         record_all_accesses_in_func, transform_access_sites,
10058         transform_allocation_sites): Likewise.
10059         * omp-low.c (new_omp_region, create_omp_child_function_name,
10060         check_omp_nesting_restrictions, check_combined_parallel,
10061         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
10062         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
10063         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
10064         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
10065         Likewise.
10066         * opts-common.c (prune_options): Likewise.
10067         * opts.c (add_input_filename, print_filtered_help,
10068         get_option_state): Likewise.
10069         * params.c (add_params): Likewise.
10070         * passes.c (set_pass_for_id, next_pass_1,
10071         do_per_function_toporder, pass_fini_dump_file): Likewise.
10072         * postreload.c (reload_cse_simplify_operands): Likewise.
10073         * predict.c (tree_predicted_by_p, tree_predict_edge,
10074         clear_bb_predictions, combine_predictions_for_bb): Likewise.
10075
10076 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10077
10078         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
10079         warnings.
10080         * recog.c (check_asm_operands, validate_change_1): Likewise.
10081         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
10082         subst_asm_stack_regs): Likewise.
10083         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
10084         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
10085         * regmove.c (reg_is_remote_constant_p): Likewise.
10086         * regrename.c (regrename_optimize, scan_rtx_reg,
10087         kill_clobbered_value, kill_set_value, kill_autoinc_value):
10088         Likewise.
10089         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
10090         regstat_compute_calls_crossed): Likewise.
10091         * reload1.c (init_reload, new_insn_chain,
10092         has_nonexceptional_receiver, reload, copy_reloads,
10093         calculate_needs_all_insns, init_elim_table): Likewise.
10094         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
10095         * rtl.c (shallow_copy_rtx_stat): Likewise.
10096         * rtlanal.c (parms_set): Likewise.
10097         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
10098         sbitmap_resize, sbitmap_vector_alloc): Likewise.
10099         * sched-ebb.c (earliest_block_with_similiar_load,
10100         add_deps_for_risky_insns): Likewise.
10101         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
10102         schedule_region): Likewise.
10103         * see.c (eq_descriptor_pre_extension,
10104         hash_descriptor_pre_extension, hash_del_pre_extension,
10105         eq_descriptor_properties, hash_descriptor_properties,
10106         hash_del_properties, see_seek_pre_extension_expr,
10107         see_initialize_data_structures, see_print_register_properties,
10108         see_print_pre_extension_expr, see_delete_merged_def_extension,
10109         see_delete_unmerged_def_extension, see_emit_use_extension,
10110         see_pre_delete_extension, see_map_extension, see_commit_changes,
10111         see_analyze_merged_def_local_prop,
10112         see_analyze_merged_def_local_prop,
10113         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
10114         see_set_prop_merged_def, see_set_prop_unmerged_def,
10115         see_set_prop_unmerged_use, see_print_one_extension,
10116         see_merge_one_use_extension, see_merge_one_def_extension,
10117         see_store_reference_and_extension, see_update_uses_relevancy,
10118         see_update_defs_relevancy): Likewise.
10119         * statistics.c (hash_statistics_hash, hash_statistics_eq,
10120         hash_statistics_free, curr_statistics_hash): Likewise.
10121         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
10122         expand_asm_operands, expand_return, case_bit_test_cmp,
10123         expand_case): Likewise.
10124         * stor-layout.c (start_record_layout): Likewise.
10125         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
10126         gt_pch_save_stringpool): Likewise.
10127         * tree-data-ref.c (hash_stmt_vertex_info,
10128         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
10129         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
10130
10131 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
10132
10133         PR target/36627
10134         * config/i386/i386.md : Change constraints of HImode and QImode
10135         immediate operands from "i" to "n".  Change SImode "ni" constraint to
10136         "i" and SImode "rmi" constraint to "g".  Remove all constraints
10137         from const0_operand and const1_operand predicated operands.
10138         (i): Change QImode and HImode attribute from "i" to "n".
10139         (*subqi_2): Change HImode operands to QImode.
10140         (*subqi_3): Ditto.
10141
10142 2008-06-25  Olivier Hainque  <hainque@adacore.com>
10143
10144         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
10145         sed substitutions.
10146
10147 2008-06-25  Richard Guenther  <rguenther@suse.de>
10148
10149         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
10150         not overflow the result type.
10151
10152 2008-06-25  Richard Guenther  <rguenther@suse.de>
10153
10154         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
10155         (vn_lookup): Likewise.
10156
10157 2008-06-25  Richard Guenther  <rguenther@suse.de>
10158
10159         PR tree-optimization/35518
10160         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
10161         * tree-sra.c (instantiate_element): Use fold_build3 to build
10162         BIT_FIELD_REFs.
10163         (try_instantiate_multiple_fields): Likewise.
10164
10165 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10166
10167         * config/rs6000/rs6000.md: Change all string instruction's clobber to
10168         be early clobbers.
10169
10170 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10171
10172         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
10173         use_backchain_to_restore_sp to true
10174         if the offset of the link register save area would go over the 32k - 1
10175         offset limit of the load
10176         instructions.
10177
10178 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
10179
10180         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
10181         anchor for the type-punning blurb.  Cross-reference "Structures
10182         unions enumerations and bit-fields implementation".  Provide a
10183         cast-through-pointer example.  Make final sentence self-contained.
10184         * doc/implement-c.texi (Structures unions enumerations and
10185         bit-fields implementation): Cross-reference the type-punning blurb
10186         in the -fstrict-aliasing documentation.
10187
10188 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10189
10190         PR middle-end/36594
10191         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
10192         the memory instead of the memory itself for the save area.
10193
10194 2008-06-24  Olivier Hainque  <hainque@adacore.com>
10195             Nicolas Roche  <roche@adacore.com>
10196
10197         * gengtype.c (srcdir_len): size_t instead of int.
10198         (get_file_realbasename): New function.  For F a filename, the real
10199         basename of F, with all the path components stripped.
10200         (get_file_srcdir_relative_path): New function.  For F a filename, the
10201         relative path to F from $(srcdir).
10202         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
10203         get_file_realbasename.  Adjust the head comment.
10204         (get_prefix_langdir_index): New function. For F a filename, return the
10205         lang_dir_names[] relative index of the language directory that is
10206         a prefix in F.
10207         (get_file_langdir): For F a filename, return the name of the language
10208         directory where F is located.
10209         (get_file_gtfilename): New function. The gt- output file name for an
10210         input filename F.
10211         (get_output_file_with_visibility): Replace in-line computations with
10212         uses of get_file_gtfilename and get_prefix_langdir_index.
10213         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
10214
10215 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
10216
10217         PR tree-optimization/36504
10218         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
10219         references without base address.
10220
10221 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
10222
10223         PR middle-end/36584
10224         * calls.c (expand_call): Increase alignment for recursive functions.
10225
10226 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
10227
10228         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
10229         (TARGET_FUNCTION_VALUE): New define.
10230         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
10231         * config/avr/avr.h (FUNCTION_VALUE): Remove.
10232
10233 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
10234
10235         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
10236         (fmod<mode>3): Ditto.
10237         (remainderxf3): Ditto.
10238         (remainder<mode>3): Ditto.
10239
10240 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
10241
10242         PR target/36533
10243         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
10244         REG is a hard register.
10245
10246         PR tree-optimization/36508
10247         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
10248         499, don't check it at all in release compilers.
10249
10250 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
10251
10252         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
10253         together with SSE_TARGET_MATH to disable insn pattern.
10254         (*fop_<MODEF:mode>_2_i387): Ditto.
10255         (*fop_<MODEF:mode>_3_i387): Ditto.
10256
10257 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
10258
10259         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
10260
10261 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10262
10263         PR middle-end/34906
10264         * gimplify.c (gimplify_asm_expr): Check the return code of
10265         parse_output_constraint call, set function return and is_inout
10266         value if it failed.
10267
10268 2008-06-22  Ian Lance Taylor  <iant@google.com>
10269
10270         * c-lex.c (narrowest_unsigned_type): Change itk to int.
10271         (narrowest_signed_type): Likewise.
10272         * c-typeck.c (c_common_type): Change local variable mclass to enum
10273         mode_class, twice.
10274         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
10275         tcc_comparison, not the tree code itself.
10276         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
10277         (c_expand_expr): Cast modifier to enum expand_modifier.
10278         * c-common.h (C_RID_CODE): Add casts.
10279         (C_SET_RID_CODE): Define.
10280         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
10281         (c_lex_one_token): Add cast to avoid warning.
10282         (c_parser_objc_type_name): Rename local typename to type_name.
10283         (check_no_duplicate_clause): Change code parameter to enum
10284         omp_clause_code.
10285         (c_parser_omp_var_list_parens): Change kind parameter to enum
10286         omp_clause_code.
10287         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
10288         c_parser_omp_list_var_parens.
10289         (c_parser_omp_threadprivate): Likewise.
10290         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
10291         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
10292         * c-format.c (NO_FMT): Define.
10293         (printf_length_specs): Use NO_FMT.
10294         (asm_fprintf_length_specs): Likewise.
10295         (gcc_diag_length_specs): Likewise.
10296         (scanf_length_specs): Likewise.
10297         (strfmon_length_specs): Likewise.
10298         (gcc_gfc_length_specs): Likewise.
10299         (printf_flag_specs): Change 0 to STD_C89.
10300         (asm_fprintf_flag_specs): Likewise.
10301         (gcc_diag_flag_specs): Likewise.
10302         (gcc_cxxdiag_flag_specs): Likewise.
10303         (scanf_flag_specs): Likewise.
10304         (strftime_flag_specs): Likewise.
10305         (strfmon_flag_specs): Likewise.
10306         (print_char_table): Likewise.
10307         (asm_fprintf_char_table): Likewise.
10308         (gcc_diag_char_table): Likewise.
10309         (gcc_tdiag_char_table): Likewise.
10310         (gcc_cdiag_char_table): Likewise.
10311         (gcc_cxxdiag_char_table): Likewise.
10312         (gcc_gfc_char_table): Likewise.
10313         (scan_char_table): Likewise.
10314         (time_char_table): Likewis.
10315         (monetary_char_table): Likewise.
10316         * c-format.h (BADLEN): Likewise.
10317
10318 2008-06-21  Ian Lance Taylor  <iant@google.com>
10319
10320         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
10321         Define END_OF_BASE_TREE_CODES around inclusion.
10322         * tree.c (tree_code_type): New global array.
10323         (tree_code_length, tree_code_name): Likewise.
10324         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
10325         $(lang_tree_files).
10326         (all-tree.def, s-alltree): New targets.
10327         (gencheck.h, s-gencheck): Remove.
10328         (tree.o): Depend upon all-tree.def.
10329         (build/gencheck.o): Remove gencheck.h dependency.
10330         (mostlyclean): Don't remove gencheck.h.
10331         * c-common.h (enum c_tree_code): Remove.
10332         * c-lang.c (tree_code_type): Remove.
10333         (tree_code_length, tree_code_name): Remove.
10334         * gencheck.c (tree_codes): Include all-tree.def, rather than
10335         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
10336         after it is used.
10337         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
10338         than tree.def.
10339         * cp/cp-tree.h (enum cplus_tree_code): Remove.
10340         (operator_name_info): Size to MAX_TREE_CODES.
10341         (assignment_operator_name_info): Likewise.
10342         * cp/cp-lang.c (tree_code_type): Remove.
10343         (tree_code_length, tree_code_name): Remove.
10344         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
10345         (assignment_operator_name_info): Likewise.
10346         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
10347         MAX_TREE_CODES.
10348         * cp/mangle.c (write_expression): Likewise.
10349         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
10350         * fortran/f95-lang.c (tree_code_type): Remove.
10351         (tree_code_length, tree_code_name): Remove.
10352         * java/java-tree.h (enum java_tree_code): Remove.
10353         * java/lang.c (tree_code_type): Remove.
10354         (tree_code_length, tree_code_name): Remove.
10355         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
10356         * objc/objc-act.h (enum objc_tree_code): Remove.
10357         * objc/objc-lang.c (tree_code_type): Remove.
10358         (tree_code_length, tree_code_name): Remove.
10359         * objcp/objcp-lang.c (tree_code_type): Remove.
10360         (tree_code_length, tree_code_name): Remove.
10361         * ada/ada-tree.h (enum gnat_tree_code): Remove.
10362         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
10363         * ada/misc.c (tree_code_type): Remove.
10364         (tree_code_length, tree_code_name): Remove.
10365
10366 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
10367
10368         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
10369         the grand_bitmap_obstack.
10370
10371 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10372
10373         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
10374         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
10375         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
10376         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
10377         move_stmt_r, new_label_mapper): Likewise.
10378         * tree-complex.c (cvc_lookup): Likewise.
10379         * tree-dfa.c (create_function_ann): Likewise.
10380         * tree-dump.c (dump_register): Likewise.
10381         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
10382         find_phi_replacement_condition): Likewise.
10383         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
10384         tree_function_versioning): Likewise.
10385         * tree-into-ssa.c (cmp_dfsnum): Likewise.
10386         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
10387         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
10388         get_nonlocal_debug_decl, convert_nonlocal_reference,
10389         convert_nonlocal_omp_clauses, get_local_debug_decl,
10390         convert_local_reference, convert_local_omp_clauses,
10391         convert_nl_goto_reference, convert_nl_goto_receiver,
10392         convert_tramp_reference, convert_call_expr): Likewise.
10393         * tree-outof-ssa.c (contains_tree_r): Likewise.
10394         * tree-parloops.c (reduction_phi, initialize_reductions,
10395         eliminate_local_variables_1, add_field_for_reduction,
10396         add_field_for_name, create_phi_for_local_result,
10397         create_call_for_reduction_1, create_loads_for_reductions,
10398         create_stores_for_reduction, create_loads_and_stores_for_name):
10399         Likewise.
10400         * tree-phinodes.c (allocate_phi_node): Likewise.
10401         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
10402         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
10403         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
10404         * tree-ssa-coalesce.c (compare_pairs): Likewise.
10405         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
10406         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
10407         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
10408         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
10409         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
10410         vn_nary_op_insert): Likewise.
10411         * tree-ssa.c (redirect_edge_var_map_add,
10412         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
10413         * tree-vectorizer.c (vectorize_loops): Likewise.
10414         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
10415         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
10416         tree_cons_stat, build1_stat, build_variant_type_copy,
10417         decl_init_priority_lookup, decl_fini_priority_lookup,
10418         decl_priority_info, decl_restrict_base_lookup,
10419         decl_restrict_base_insert, decl_debug_expr_lookup,
10420         decl_debug_expr_insert, decl_value_expr_lookup,
10421         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
10422         type_hash_add, get_file_function_name, tree_check_failed,
10423         tree_not_check_failed, tree_range_check_failed,
10424         omp_clause_range_check_failed, build_omp_clause,
10425         build_vl_exp_stat): Likewise.
10426         * value-prof.c (gimple_histogram_value,
10427         gimple_duplicate_stmt_histograms): Likewise.
10428         * var-tracking.c (attrs_list_insert, attrs_list_copy,
10429         unshare_variable, variable_union_info_cmp_pos, variable_union,
10430         dataflow_set_different_1, dataflow_set_different_2,
10431         vt_find_locations, variable_was_changed, set_variable_part,
10432         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
10433         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
10434         section_entry_hash, object_block_entry_eq,
10435         object_block_entry_hash, create_block_symbol,
10436         initialize_cold_section_name, default_function_rodata_section,
10437         strip_reg_name, set_user_assembler_name, const_desc_eq,
10438         build_constant_desc, output_constant_def, lookup_constant_def,
10439         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
10440         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
10441         default_internal_label): Likewise.
10442         * varray.c (varray_init, varray_grow): Likewise.
10443         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
10444
10445 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
10446
10447         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
10448         operators for "test" insn.  Macroize insn using SWI mode macro.
10449         (*jcc_fused_2): Ditto.
10450         (*jcc_fused_3): Macroize insn using SWI mode macro.
10451         (*jcc_fused_4): Ditto.
10452
10453 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
10454
10455         * tree-ssa-pre.c: Fix typo in comment.
10456         (init_antic, fini_antic): Add explicit funtions for
10457         initializing and deinitializing ANTIC and AVAIL sets.
10458         (create_expression_by_pieces): Fix typo in comment.
10459         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
10460         (execute_pre): Eventually dump details about ANTIC_IN.
10461
10462 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10463
10464         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
10465         * gcc.c (translate_options, init_spec, store_arg, read_specs,
10466         add_to_obstack, file_at_path, find_a_file, execute,
10467         add_preprocessor_option, add_assembler_option, add_linker_option,
10468         process_command, insert_wrapper, do_option_spec, do_self_spec,
10469         spec_path, do_spec_1, is_directory, main, used_arg,
10470         getenv_spec_function): Likewise.
10471         * tlink.c (symbol_hash_lookup, file_hash_lookup,
10472         demangled_hash_lookup, symbol_push, file_push, frob_extension):
10473         Likewise.
10474
10475 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
10476
10477         * doc/rtl.texi: Updated subreg section.
10478
10479 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
10480
10481         PR c++/36523
10482         * cgraphunit.c (cgraph_process_new_functions): Don't clear
10483         node->needed and node->reachable.
10484         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
10485         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
10486         (expand_task_call): Don't call expand_task_copyfn.
10487         (expand_task_copyfn): Renamed to...
10488         (finalize_task_copyfn): ... this.
10489
10490 2008-06-19  Jan Hubicka  <jh@suse.cz>
10491
10492         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
10493         clobbering framepointer.
10494
10495 2008-06-19  Jan Hubicka  <jh@suse.cz>
10496
10497         * tree-optimize.c (execute_early_local_optimizations): Set
10498         cgraph_state only at first invocation.
10499
10500 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10501
10502         * system.h (-Wc++-compat): Activate as a warning, no an error.
10503
10504 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
10505
10506         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
10507         instead of "#" in insn asm template.
10508         (*jcc_fused_2): Ditto.
10509
10510 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
10511
10512         * config/i386/i386.h (ix86_tune_indices)
10513         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
10514         (TARGET_FUSE_CMP_AND_BRANCH): New define.
10515         * config/i386/i386.md (*jcc_fused_1): New insn pattern
10516         (*jcc_fused_2): Ditto.
10517         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
10518         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
10519         (print operand): Handle 'E' and 'e' code.
10520
10521 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
10522
10523         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
10524         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
10525         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
10526
10527 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
10528
10529         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
10530         node->decl.
10531         (cgraph_expand_function): Use local copy of decl.
10532         (cgraph_expand_all_functions): Remove redundant initialization of
10533         order_pos.
10534         (cgraph_optimize): Reword internal_error message.
10535
10536 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
10537
10538         * arm-protos.h (arm_return_in_memory): Remove public
10539         arm_return_in_memory() prototype.
10540         * arm.c (arm_return_in_memory): Add static prototype, add target
10541         hook macro, change definition and comments.
10542         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
10543
10544 2008-06-19  Ben Elliston  <bje@au.ibm.com>
10545
10546         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
10547         real.c: Remove references to IEEE 754R.
10548         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
10549         * doc/libgcc.texi (Decimal float library routines): Likewise.
10550
10551 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10552
10553         * targhooks.h (struct gcc_target): New member unwind_word_mode.
10554         (default_unwind_word_mode): Add prototype.
10555         * targhooks.c (default_unwind_word_mode): New function.
10556         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
10557         instead of word_mode.
10558         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
10559         (TARGET_INITIALIZER): Use it.
10560
10561         * c-common.c (handle_mode_attribute): Support "unwind_word"
10562         mode attribute.
10563         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
10564
10565         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
10566         word_mode to access SjLj_Function_Context member "data".
10567         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
10568         conversion from targetm.eh_return_filter_mode () to
10569         targetm.unwind_word_mode () if they differ.
10570
10571         * builtin-types.def (BT_UNWINDWORD): New primitive type.
10572         (BT_FN_UNWINDWORD_PTR): New function type.
10573         (BT_FN_WORD_PTR): Remove.
10574         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
10575         * except.c (expand_builtin_extend_pointer): Convert pointer to
10576         targetm.unwind_word_mode () instead of word_mode.
10577
10578         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
10579         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
10580         (spu_unwind_word_mode): New function.
10581         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
10582         (TARGET_UNWIND_WORD_MODE): Define.
10583         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
10584
10585 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10586
10587         * config/spu/spu.c (reg_align): Remove.
10588         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
10589         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
10590         (spu_split_store): Likewise.
10591
10592 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
10593
10594         * gcc/tree-vn.c: Fix typo in comment.
10595
10596 2008-06-18  Jan Hubicka  <jh@suse.cz>
10597
10598         * cgraphunit.c (cgraph_optimize): Output debug info when doing
10599         toplevel reorder too.
10600
10601 2008-06-18  Jan Hubicka  <jh@suse.cz>
10602
10603         * c-opts.c (c_common_post_options): PCH is not compatible with
10604         no-unit-at-a-time.
10605         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
10606         -fno-toplevel-reorder by default now.
10607
10608 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10609
10610         PR documentation/30739
10611         * doc/install.texi (Prerequisites): Document dependency on awk.
10612
10613 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
10614             Ian Lance Taylor  <iant@google.com>
10615
10616         PR rtl-optimization/35604
10617         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
10618         only want to change jump destinations, not eventual label comparisons.
10619
10620 2008-06-16  Jan Hubicka  <jh@suse.cz>
10621
10622         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
10623         syntax errors.
10624         (cgraph_analyze_function): Likewise.
10625
10626 2008-06-16  Jan Hubicka  <jh@suse.cz>
10627
10628         * cgraph.h (cgraph_mark_if_needed): New function.
10629         * cgraphunit.c (cgraph_mark_if_needed): New function.
10630         * c-decl.c (duplicate_decl): Use it.
10631
10632 2008-06-16  Jan Hubicka  <jh@suse.cz>
10633
10634         * cgraph.c (cgraph_add_new_function): When in expansion state, do
10635         lowering.
10636
10637 2008-06-16  Jan Hubicka  <jh@suse.cz>
10638
10639         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
10640
10641 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
10642             Kazu Hirata  <kazu@codesourcery.com>
10643             Maxim Kuvyrkov  <maxim@codesourcery.com
10644
10645         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
10646         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
10647         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
10648         EXTRA_SPEC_FUNCTIONS.
10649         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
10650         (DRIVER_SELF_SPECS): Adjust.
10651         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
10652         * config/mips/st.h, config/mips/t-st: New.
10653         * config/mips/driver-native.c, config/mips/x-native: New.
10654         * doc/invoke.texi (MIPS): Document 'native' value for -march and
10655         -mtune options.
10656
10657 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
10658
10659         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
10660         from it.
10661         (ISA_HAS_FP_CONDMOVE): New macro.
10662         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
10663         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
10664         (ISA_HAS_NMADD3_NMSUB3): New macro.
10665         * config/mips/mips.c (mips_rtx_costs): Update.
10666         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
10667         compiling for ST Loongson 2E/2F.
10668         (madd<mode>): Rename to madd4<mode>.  Update.
10669         (madd3<mode>): New pattern.
10670         (msub<mode>): Rename to msub4<mode>.  Update.
10671         (msub3<mode>): New pattern.
10672         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
10673         (nmadd3<mode>): New pattern.
10674         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
10675         (nmadd3<mode>_fastmath): New pattern.
10676         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
10677         (nmsub3<mode>): New pattern.
10678         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
10679         (nmsub3<mode>_fastmath): New pattern.
10680         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
10681
10682 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
10683
10684         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
10685         (DF_REF_INSN_INFO): New.
10686         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
10687         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
10688         with a NULL DF_REF_INSN_INFO.
10689         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
10690         DF_INSN_SET.
10691         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
10692         DF_INSN_INFO_EQ_USES): New.
10693         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
10694         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
10695         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
10696         * df-core.c: Update comment for above changes.
10697         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
10698         DF_INSN_UID_* macros.
10699         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
10700         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
10701         insn rtx.  Update all callers.
10702         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
10703         df_ref_create_structure, df_insn_refs_collect): Likewise.
10704         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
10705         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
10706         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
10707         macros to access the insn refs.
10708         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
10709         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
10710         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
10711         for accessing the refs.
10712         (try_fwprop_subst): Likewise.
10713         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
10714         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
10715         for accessing the refs.
10716         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
10717         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
10718         to look at the insn refs.
10719         (record_uses): Likewise.
10720         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
10721         function anymore.
10722         (mark_artificial_uses): Don't mark_insn for artificial refs.
10723         (mark_reg_rependencies): Likewise.
10724
10725         * doc/rtl.texi: Remove documentation of ADDRESSOF.
10726
10727 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10728
10729         * configure: Regenerate.
10730
10731 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
10732
10733         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
10734         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10735         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10736
10737 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
10738
10739         * config/avr/avr.c (avr_mcu_t): Add attiny167.
10740         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10741         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10742
10743 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
10744
10745         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
10746         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10747         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10748
10749 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
10750
10751         * tree-ssa-sccvn.c: Fix format of comments.
10752
10753 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
10754
10755         * cgraph.c: Remove unneeded forward declarations of eq_node()
10756         and hash_node().
10757
10758 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
10759
10760         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
10761         REG_RETVAL notes.
10762         (see_update_relevancy): Likewise.
10763         * fwprop.c (try_fwprop_subst): Likewise.
10764         * rtlanal.c (noop_move_p): Likewise.
10765         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
10766         notes to non-existing libcall blocks.
10767         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
10768         Remove orig_set.
10769         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
10770         (dead_libcall_p): Remove.
10771         (delete_trivially_dead_insns): Don't use it.
10772         * web.c (union_defs): Remove comment about keeping nops.
10773         * gcse.c (hash_scan_insn): Don't take libcall pointers.
10774         (compute_hash_table_work): Don't track libcall notes.
10775         (do_local_cprop): Don't take libcall pointers.  Don't update
10776         libcall notes.
10777         (adjust_libcall_notes): Deleted.
10778         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
10779         ever have existed in the first place).
10780         (replace_store_insn): Don't try to remove libcall notes.
10781         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
10782         (resolve_reg_notes): Don't call them.
10783         (resolve_simple_move): Likewise.
10784         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
10785         Don't remove REG_RETVAL notes.
10786         * emit-rtl.c (try_split): Don't update libcall notes.
10787         (emit_copy_of_insn_after): Dito.
10788         * cselib.c (cselib_current_insn_in_libcall): Remove.
10789         (cselib_process_insn): Don't set/clear it.
10790         (new_elt_loc_list): Don't record it.
10791         (cselib_init): Don't initialize it.
10792         * cselib.c (struct elt_loc_list): Remove in_libcall field.
10793         * loop-invariant.c (find_invariant_insn): Don't look for libcall
10794         notes.
10795         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
10796         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
10797         (init_deps): Don't initialize it.
10798         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
10799         * combine.c (delete_noop_moves): Don't update libcall notes.
10800         (can_combine_p): Remove now pointless #if 0 block.
10801         (try_combine): Remove another obsolete #if 0 block.
10802         (distribute_notes): Don't distribute libcall notes.
10803         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
10804         * dce.c (libcall_dead_p): Remove.
10805         (delete_unmarked_insns): Don't handle libcall blocks.
10806         (preserve_libcall_for_dce): Remove.
10807         (prescan_insns_for_dce): Don't special-case libcall block insns.
10808         * reload1 (reload): Don't handle libcall notes.
10809         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
10810         documentation.
10811
10812 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
10813
10814         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
10815         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10816         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10817
10818 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
10819
10820         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
10821         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
10822         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
10823
10824 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10825
10826         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
10827
10828 2008-06-16  Ira Rosen  <irar@il.ibm.com>
10829
10830         PR tree-optimization/36493
10831         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
10832         the arguments list. Use VECTYPE to create vector pointer.
10833         (vectorizable_store): Fail if accesses through a pointer to vectype
10834         do not alias the original memory reference operands.
10835         Call vect_create_data_ref_ptr without the removed argument.
10836         (vectorizable_load): Likewise.
10837         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
10838         removed argument.
10839
10840 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
10841
10842         PR target/36336
10843         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
10844         reg_equiv_constant.
10845
10846 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
10847
10848         * config/mips/loongson2ef.md: New file.
10849         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
10850         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
10851         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
10852         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
10853         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
10854         and loongson_2f.
10855         (loongson2ef.md): New include.
10856         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
10857         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
10858         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
10859         (loongson_gt_<mode>, loongson_extract_halfword)
10860         (loongson_insert_halfword_0, loongson_insert_halfword_2)
10861         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
10862         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
10863         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
10864         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
10865         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
10866         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
10867         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
10868         (vec_interleave_low<mode>): Define type attribute.
10869         * config/mips/mips.c (mips_ls2): New static variable.
10870         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
10871         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
10872         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
10873         Implement target scheduling hooks.
10874         (mips_multipass_dfa_lookahead): Update to handle tuning for
10875         Loongson 2E/2F.
10876         (mips_sched_init): Initialize data for Loongson scheduling.
10877         (mips_ls2_variable_issue): New static function.
10878         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
10879         Add sanity check.
10880         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
10881         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
10882         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
10883         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
10884         Handle ST Loongson 2E/2F cores.
10885         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
10886
10887 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10888
10889         * omp-low.c (extract_omp_for_data): Fix comment typo.
10890         * c.opt: Fix typo.
10891
10892 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10893
10894         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
10895         FIXME note about gcc/config.guess.
10896         * doc/options.texi (Option file format): Remove non-ASCII bytes.
10897         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
10898         * doc/cppopts.texi: Likewise.
10899         * doc/extend.texi: Likewise.
10900         * doc/gcc.texi: Likewise.
10901         * doc/gccint.texi: Likewise.
10902         * doc/gcov.texi: Likewise.
10903         * doc/gty.texi: Likewise.
10904         * doc/hostconfig.texi: Likewise.
10905         * doc/install.texi: Likewise.
10906         * doc/invoke.texi: Likewise.
10907         * doc/loop.texi: Likewise.
10908         * doc/makefile.texi: Likewise.
10909         * doc/md.texi: Likewise.
10910         * doc/passes.texi: Likewise.
10911         * doc/tm.texi: Likewise.
10912         * doc/tree-ssa.texi: Likewise.
10913         * doc/trouble.texi: Likewise.
10914
10915 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
10916             Nathan Sidwell  <nathan@codesourcery.com>
10917             Maxim Kuvyrkov  <maxim@codesourcery.com>
10918             Richard Sandiford  <rdsandiford@googlemail.com>
10919
10920         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
10921         * config/mips/mips-protos.h (mips_expand_vector_init): New.
10922         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
10923         builtins.
10924         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
10925         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
10926         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
10927         V8QImode cases.
10928         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
10929         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
10930         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
10931         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
10932         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
10933         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
10934         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
10935         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
10936         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
10937         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
10938         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
10939         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
10940         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
10941         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
10942         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
10943         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
10944         (mips_builtins): Add Loongson builtins.
10945         (mips_loongson_2ef_bdesc): New.
10946         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
10947         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
10948         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
10949         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
10950         New.
10951         (mips_expand_vector_init): New.
10952         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
10953         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
10954         if appropriate.
10955         * config/mips/mips.md: Add unspec numbers for Loongson
10956         builtins.  Include loongson.md.
10957         (MOVE64): Include Loongson vector modes.
10958         (SPLITF): Include Loongson vector modes.
10959         (HALFMODE): Handle Loongson vector modes.
10960         * config/mips/loongson.md: New.
10961         * config/mips/loongson.h: New.
10962         * config.gcc: Add loongson.h header for mips*-*-* targets.
10963         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
10964
10965 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
10966
10967         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
10968         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
10969         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
10970         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
10971         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
10972         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
10973         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
10974         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
10975         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
10976         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
10977         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
10978         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
10979         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
10980         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
10981         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
10982         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
10983         Remove use_fixproto=yes.
10984         (ia64*-*-hpux*): Remove comment about using fixproto.
10985         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
10986
10987 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10988
10989         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
10990         library rebuilds.
10991         * configure: Regenerate.
10992
10993 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
10994
10995         PR middle-end/36520
10996         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
10997         before evaluating it.
10998
10999 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
11000
11001         PR c/36507
11002         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
11003         nested inline functions.
11004         (start_decl, start_function): Don't invert DECL_EXTERNAL
11005         for nested inline functions.
11006
11007 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
11008
11009         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
11010         splits that must be made for correctness.
11011
11012 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
11013
11014         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
11015         (AVAIL_NON_MIPS16): Likewise.
11016         (mips_builtin_description): Replace target_flags with a predicate.
11017         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
11018         (dspr2_32): New availability predicates.
11019         (MIPS_BUILTIN): New macro.
11020         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
11021         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
11022         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
11023         Replace the TARGET_FLAGS parameters with AVAIL parameters.
11024         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
11025         (mips_dsp_32only_bdesc): Merge into...
11026         (mips_builtins): ...this new array.
11027         (mips_bdesc_map, mips_bdesc_arrays): Delete.
11028         (mips_init_builtins): Update after above changes.
11029         (mips_expand_builtin_1): Merge into...
11030         (mips_expand_builtin): ...here and update after above changes.
11031
11032 2008-06-12  Paul Brook  <paul@codesourcery.com>
11033
11034         * longlong.h (__arm__): Define count_leading_zeros.
11035         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
11036         (clzsi2, clzdi2): New functions.
11037         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
11038         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
11039         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
11040         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
11041         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
11042         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
11043         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
11044         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
11045         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
11046         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
11047
11048 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
11049
11050         * config/m68k/m68k.c (m68k_tune_flags): New.
11051         (override_options): Compute m68k_tune_flags.
11052         (MULL_COST, MULW_COST): Update for various variants of CFV2.
11053         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
11054
11055 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
11056
11057         PR middle-end/36506
11058         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
11059
11060 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
11061
11062         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
11063         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
11064
11065 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
11066
11067         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
11068         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
11069
11070 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
11071
11072         PR middle-end/36506
11073         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
11074         reductions.
11075
11076 2008-06-12  Richard Guenther  <rguenther@suse.de>
11077
11078         PR tree-optimization/36345
11079         * tree-flow.h (struct ptr_info_def): Align escape_mask,
11080         add memory_tag_needed flag.
11081         (may_alias_p): Declare.
11082         * tree-ssa-alias.c (may_alias_p): Export.
11083         (set_initial_properties): Use memory_tag_needed flag.
11084         (update_reference_counts): Likewise.
11085         (reset_alias_info): Reset memory_tag_needed flag.
11086         (create_name_tags): Check memory_tag_needed flag.
11087         (dump_points_to_info_for): Dump it.
11088         * tree-ssa-structalias.c (struct variable_info): Remove
11089         directly_dereferenced flag.
11090         (new_var_info): Do not initialize it.
11091         (process_constraint_1): Do not set it.
11092         (update_alias_info): Set is_dereferenced flag.
11093         (set_uids_in_ptset): Use may_alias_p.
11094         (set_used_smts): Check memory_tag_needed flag.
11095         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
11096         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
11097         memory_tag_needed flag.
11098         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
11099         from broken design.
11100
11101 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
11102
11103         * config/i386/i386.c (ix86_compute_frame_layout): Disable
11104         red zone for w64 abi.
11105         (ix86_expand_prologue): Likewise.
11106         (ix86_force_to_memory): Likewise.
11107         (ix86_free_from_memory): Likewise.
11108
11109 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
11110
11111         PR target/36425
11112         * config/rs6000/rs6000.c (rs6000_override_options): Set
11113         rs6000_isel conditionally to the absence of comand line override.
11114         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
11115         Remove duplicate rs6000_isel setting.
11116         * config/rs6000/eabispe.h: Ditto.
11117
11118 2008-06-11  Richard Guenther  <rguenther@suse.de>
11119
11120         * alias.c (get_alias_set): Use the element alias-set for arrays.
11121         (record_component_aliases): For arrays and vectors do nothing.
11122         * c-common.c (strict_aliasing_warning): Handle the cases
11123         of alias set zero explicitly.
11124         * Makefile.in (dfp.o-warn): Add -Wno-error.
11125
11126 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
11127
11128         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
11129         tune_32 tune_64.
11130         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
11131         tune_32 tune_64 to supported_defaults.  Allow values not
11132         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
11133         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
11134         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
11135         with_cpu_64 to generic for 64-bit-supporting configurations, not
11136         with_cpu.  Remove FIXMEs.
11137         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
11138         --with-arch-64, --with-tune-32, --with-tune-64): Document.
11139         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
11140         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
11141         arch_32 and arch_64.
11142
11143 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
11144             Olivier Hainque  <hainque@adacore.com>
11145
11146         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
11147         Use DECL_SIZE_UNIT to retrieve the size of the field.
11148
11149 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
11150
11151         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
11152         with function calls after declarations.  Lay out
11153         neon_float_type_node before further use.
11154
11155 2008-06-11  Richard Guenther  <rguenther@suse.de>
11156
11157         * tree-flow.h (may_point_to_global_var): Declare.
11158         * tree-ssa-alias.c (may_point_to_global_var): New function.
11159         * tree-ssa-sink.c (is_hidden_global_store): Use it.
11160
11161 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
11162
11163         * configure.ac: Teach that fido supports .debug_line.
11164         * configure: Regenerate.
11165
11166 2008-06-10  Tom Tromey  <tromey@redhat.com>
11167
11168         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
11169         debug hook.
11170
11171 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
11172
11173         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
11174         (encode_decimal64, decode_decimal64, encode_decimal128,
11175         decode_decimal128): Reverse order of 32-bit parts of value if host
11176         and target endianness differ.
11177
11178 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
11179
11180         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
11181         Avoid division by 0.
11182         (tree_mod_pow2_value_transform): Likewise.
11183         (tree_ic_transform): Likewise.
11184         (tree_stringops_transform): Likewise.
11185         (tree_mod_subtract_transform): Likewise.
11186         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
11187         (copy_edges_for_bb): Likewise.
11188         (initialize_cfun): Likewise.
11189
11190 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
11191
11192         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
11193         nonmemory_operand. Add "N" operand constraint.
11194         (*btsi): Ditto.
11195         (*jcc_btdi_mask_rex64): New instruction and split pattern.
11196         (*jcc_btsi_mask): Ditto.
11197         (*jcc_btsi_mask_1): Ditto.
11198
11199 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
11200
11201         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
11202         TYPE_CANONICAL for copied element type.
11203
11204 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
11205
11206         PR target/36473
11207         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
11208         Add m_CORE2 and m_GENERIC.
11209         * config/i386/predicates.md (bt_comparison_operator): New predicate.
11210         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
11211         (*btsi): Ditto.
11212         (*jcc_btdi_rex64): New instruction and split pattern.
11213         (*jcc_btsi): Ditto.
11214         (*jcc_btsi_1): Ditto.
11215         (*btsq): Fix Intel asm dialect operand order.
11216         (*btrq): Ditto.
11217         (*btcq): Ditto.
11218
11219 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
11220
11221         PR middle-end/36447
11222         * simplify-rtx.c (simplify_subreg): Add check for shift count
11223         greater than size.
11224
11225 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
11226
11227         * doc/md.texi: Synchronize with later constraints.md change.
11228         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
11229         with a C implementation.
11230         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
11231         MFLO handling.
11232         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
11233         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
11234         when moving to and from MD_REGNUM.
11235         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
11236         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
11237         Handle byte and halfword moves.
11238         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
11239         separately.
11240         * config/mips/constraints.md (h): Turn into NO_REGS.
11241         (l, x): Update documentation.
11242         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
11243         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
11244         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
11245         (HILO): New mode iterator.
11246         (MOVE128): Add TI.
11247         (any_div): New code iterator.
11248         (u): Extend code attribute to div and udiv.
11249         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
11250         d_operand in the splitters.  Remove redundant CONST_INT checks.
11251         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
11252         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
11253         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
11254         accordingly, using normal moves instead of unspecs to move LO into
11255         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
11256         (<u>mulsidi3): Handle expansion in C code.
11257         (<u>mulsidi3_32bit_internal): Rename to...
11258         (<u>mulsidi3_32bit): ...this.
11259         (<u>mulsidi3_32bit_r4000): Fix insn separator.
11260         (*<u>mulsidi3_64bit): Rename to...
11261         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
11262         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
11263         to set LO and HI to the multiplication result.  Use a normal move
11264         for MFLO and an unspec for MFHI.
11265         (*<u>mulsidi3_64bit_parts): Replace with...
11266         (<u>mulsidi3_64bit_hilo): ...this new instruction.
11267         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
11268         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
11269         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
11270         instead of HI.  Split the instruction into a separate multiplication
11271         and MFHI if !TARGET_FIX_R4000.
11272         (<su>muldi3_highpart): Likewise.
11273         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
11274         and the "=h" clobber.
11275         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
11276         (<u>mulditi3): New expander.
11277         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
11278         (madsi): Remove "=h" clobber.
11279         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
11280         Force the modulus result to be a GPR and split the instruction into
11281         a division followed by an MFHI after reload.
11282         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
11283         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
11284         the MIPS16 HIGH define_split.
11285         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
11286         of acc<->gpr moves to "multi".
11287         (*movdi_64bit): Replace the single "x" alternative with
11288         alternatives for moving into and out of "a".
11289         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
11290         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
11291         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
11292         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
11293         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
11294         (movti): New expander.
11295         (*movti, *movti_mips16): New insns.
11296         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
11297         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
11298         (mthi<GPR:mode>_<HILO:mode>): Likewise.
11299         * config/mips/predicates.md (fpr_operand): Delete.
11300         (d_operand): New predicate.
11301
11302 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
11303
11304         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
11305         failure on some Bourne shells.
11306         (x86_64-*-*): Ditto.
11307
11308 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
11309
11310         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
11311
11312 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
11313
11314         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
11315         (sparc-sun-solaris2*): Likewise.
11316
11317 2008-06-09  Arnaud Charlet  <charlet@adacore.com
11318
11319         * doc/install.texi: Update requirements to build the Ada compiler.
11320
11321 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
11322
11323         * df-scan.c (struct df_scan_problem_data): Remove the
11324         mw_link_pool alloc pool.
11325         (df_scan_free_internal): Don't free it.
11326         (df_scan_alloc): Don't allocate it.
11327         * df.h (struct df_link): Update comment.
11328
11329 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
11330
11331         * except.h: Correct checks for when SJLJ exceptions must be used.
11332
11333 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11334
11335         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
11336         default.
11337
11338 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
11339
11340         PR tree-optimization/36218
11341         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
11342         configure for the build system.
11343         (BUILD_LDFLAGS): Define.
11344         * configure: Regenerate.
11345         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
11346
11347 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
11348
11349         PR target/36424
11350         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
11351         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
11352         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
11353
11354 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
11355
11356         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
11357
11358 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
11359
11360         * config.gcc (Obsolete configurations): Remove list of
11361         configurations.
11362         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
11363         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
11364         targets matched by those patterns.
11365         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
11366         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
11367         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
11368         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
11369         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
11370         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
11371         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
11372         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
11373         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
11374         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
11375         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
11376         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
11377         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
11378         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
11379         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
11380         Make code for Solaris 7 and greater unconditional for Solaris.
11381         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
11382         Remove --with-* handling.
11383         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
11384         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
11385         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
11386         LINK_OS_WINDISS_SPEC): Remove.
11387         * config/rs6000/sysv4.opt (mwindiss): Remove.
11388         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
11389         * configure: Regenerate.
11390         * doc/cpp.texi: Don't mention BeOS.
11391         * doc/extend.texi (interrupt): Don't mention MS1.
11392         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
11393         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
11394         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
11395         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
11396         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
11397         Remove.
11398         * doc/invoke.texi (MT Options): Remove.
11399         (-mwindiss): Remove.
11400         (CRIS Options): Remove cris-axis-aout references.
11401         (HPPA Options): Don't mention hppa1.1-*-pro.
11402         * doc/md.texi: (MorphoTech family): Remove.
11403         * libgcc2.c: Don't handle UWIN.
11404         * config/alpha/t-unicosmk: Remove.
11405         * config/alpha/unicosmk.h: Remove.
11406         * config/arm/kaos-arm.h: Remove.
11407         * config/arm/kaos-strongarm.h: Remove.
11408         * config/arm/strongarm-coff.h: Remove.
11409         * config/arm/strongarm-elf.h: Remove.
11410         * config/arm/strongarm-pe.h: Remove.
11411         * config/arm/t-strongarm-pe: Remove.
11412         * config/arm/t-xscale-coff: Remove.
11413         * config/arm/t-xscale-elf: Remove.
11414         * config/arm/xscale-coff.h: Remove.
11415         * config/arm/xscale-elf.h: Remove.
11416         * config/chorus.h: Remove.
11417         * config/cris/aout.h: Remove.
11418         * config/cris/aout.opt: Remove.
11419         * config/cris/t-aout: Remove.
11420         * config/i386/beos-elf.h: Remove.
11421         * config/i386/kaos-i386.h: Remove.
11422         * config/i386/ptx4-i.h: Remove.
11423         * config/i386/sco5.h: Remove.
11424         * config/i386/sco5.opt: Remove.
11425         * config/i386/sysv4-cpp.h: Remove.
11426         * config/i386/sysv5.h: Remove.
11427         * config/i386/t-beos: Remove.
11428         * config/i386/t-sco5: Remove.
11429         * config/i386/t-uwin: Remove.
11430         * config/i386/uwin.asm: Remove.
11431         * config/i386/uwin.h: Remove.
11432         * config/kaos.h: Remove.
11433         * config/mips/windiss.h: Remove.
11434         * config/mt: Remove directory.
11435         * config/pa/pa-osf.h: Remove.
11436         * config/pa/pa-pro-end.h: Remove.
11437         * config/pa/t-pro: Remove.
11438         * config/ptx4.h: Remove.
11439         * config/rs6000/beos.h: Remove.
11440         * config/rs6000/kaos-ppc.h: Remove.
11441         * config/rs6000/t-beos: Remove.
11442         * config/rs6000/windiss.h: Remove.
11443         * config/sh/kaos-sh.h: Remove.
11444         * config/sol2-6.h: Remove.
11445         * config/sparc/sol26-sld.h: Remove.
11446         * config/sparc/sysv4-only.h: Remove.
11447         * config/vax/bsd.h: Remove.
11448         * config/vax/t-memfuncs: Remove.
11449         * config/vax/ultrix.h: Remove.
11450         * config/vax/vaxv.h: Remove.
11451         * config/windiss.h: Remove.
11452
11453 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
11454
11455         PR rtl-optimization/36438
11456         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
11457         for vector shifts with constant scalar shift operands.
11458
11459 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
11460
11461         * doc/invoke.texi: Document -march=xlr.
11462         * config/mips/xlr.md: New file.
11463         * config/mips/mips.md: Include it.
11464         (cpu): Add "xlr".
11465         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
11466         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
11467         (mips_rtx_cost_data): Likewise.
11468
11469 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
11470
11471         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
11472         PRE_INC and PRE_DEC cases.
11473
11474 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
11475
11476         PR rtl-optimization/36419
11477         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
11478         the emitting jump insn.
11479
11480         PR target/36362
11481         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
11482         is not bool, boolify the whole *expr_p and convert to the desired type.
11483
11484 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
11485
11486         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
11487         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
11488         Add omp_private_outer_ref hook, add another argument to
11489         omp_clause_default_ctor hook.
11490         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
11491         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
11492         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
11493         hook_tree_tree_tree_tree_null.
11494         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
11495         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
11496         * hooks.c (hook_tree_tree_tree_tree_null): New function.
11497         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
11498         * tree.def (OMP_TASK): New tree code.
11499         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
11500         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
11501         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
11502         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
11503         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
11504         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
11505         OMP_CLAUSE_COLLAPSE_EXPR): Define.
11506         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
11507         (OMP_DIRECTIVE_P): Add OMP_TASK.
11508         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
11509         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
11510         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
11511         and OMP_CLAUSE_UNTIED entries.
11512         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
11513         num_ops to 2.
11514         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
11515         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
11516         * tree-pretty-print.c (dump_omp_clause): Handle
11517         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
11518         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
11519         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
11520         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
11521         warning about unsigned iterators.  Change decl/init/cond/incr
11522         arguments to TREE_VECs, check arguments for all collapsed loops.
11523         (c_finish_omp_taskwait): New function.
11524         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
11525         ws_clauses.
11526         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
11527         default_function_array_conversion on init.  Add par_clauses argument.
11528         If decl is present in parallel's lastprivate clause, change it to
11529         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
11530         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
11531         collapse count in clauses.
11532         (c_parser_omp_for, c_parser_omp_parallel): Adjust
11533         c_parser_omp_for_loop callers.
11534         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
11535         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
11536         (c_parser_omp_clause_name): Handle collapse and untied clauses.
11537         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
11538         functions.
11539         (c_parser_omp_clause_schedule): Handle schedule(auto).
11540         Include correct location in the error message.
11541         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
11542         and PRAGMA_OMP_CLAUSE_UNTIED.
11543         (OMP_TASK_CLAUSE_MASK): Define.
11544         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
11545         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
11546         * tree-nested.c (convert_nonlocal_omp_clauses,
11547         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
11548         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
11549         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
11550         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
11551         OMP_CLAUSE_DECL.
11552         (conver_nonlocal_reference, convert_local_reference,
11553         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
11554         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
11555         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
11556         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
11557         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
11558         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
11559         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
11560         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
11561         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
11562         OMP_CLAUSE_UNTIED.
11563         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
11564         * c-common.h (c_finish_omp_taskwait): New prototype.
11565         * gimple-low.c (lower_stmt): Handle OMP_TASK.
11566         * tree-parloops.c (create_parallel_loop): Create 1 entry
11567         vectors for OMP_FOR_{INIT,COND,INCR}.
11568         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
11569         (make_edges): Handle OMP_TASK.
11570         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
11571         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11572         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
11573         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
11574         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
11575         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
11576         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
11577         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
11578         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
11579         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
11580         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
11581         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
11582         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
11583         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
11584         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
11585         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
11586         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
11587         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
11588         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
11589         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
11590         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
11591         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
11592         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
11593         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
11594         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
11595         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
11596         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
11597         original iterator is present in lastprivate clause or if
11598         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
11599         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11600         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
11601         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
11602         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
11603         if it is set, lookup var in outer contexts too.  Handle
11604         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
11605         to be implicitly determined firstprivate for task regions.
11606         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
11607         if it is set, lookup var in outer contexts too.  Set
11608         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
11609         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
11610         OMP_CLAUSE_UNTIED.  Take region_type as last argument
11611         instead of in_parallel and in_combined_parallel.
11612         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
11613         Adjust callers.
11614         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
11615         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
11616         (new_omp_context): Set default_kind to
11617         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
11618         (omp_region_type): New enum.
11619         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
11620         fields, add region_type.
11621         (new_omp_context): Take region_type as argument instead of is_parallel
11622         and is_combined_parallel.
11623         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
11624         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
11625         ctx->is_combined_parallel checks.
11626         (gimplify_omp_task): New function.
11627         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
11628         OMP_CLAUSE_UNTIED.
11629         * omp-low.c (extract_omp_for_data): Use schedule(static)
11630         for schedule(auto).  Handle pointer and unsigned iterators.
11631         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
11632         Add loops argument.  Extract data for collapsed OMP_FOR loops.
11633         (expand_parallel_call): Assert sched_kind isn't auto,
11634         map runtime schedule to index 3.
11635         (struct omp_for_data_loop): New type.
11636         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
11637         Add loop, loops, collapse and iter_type fields.
11638         (workshare_safe_to_combine_p): Disallow combined for if
11639         iter_type is unsigned long long.  Don't combine collapse > 1 loops
11640         unless all bounds and steps are constant.  Adjust extract_omp_for_data
11641         caller.
11642         (expand_omp_for_generic): Handle pointer, unsigned and long long
11643         iterators.  Handle collapsed OMP_FOR loops.  Adjust
11644         for struct omp_for_data changes.  If libgomp function doesn't return
11645         boolean_type_node, add comparison of the return value with 0.
11646         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
11647         pointer, unsigned and long long iterators.  Adjust for struct
11648         omp_for_data changes.
11649         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
11650         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
11651         unsigned long long.  Allocate loops array, pass it to
11652         extract_omp_for_data.  For collapse > 1 loops use always
11653         expand_omp_for_generic.
11654         (omp_context): Add sfield_map and srecord_type fields.
11655         (is_task_ctx, lookup_sfield): New functions.
11656         (use_pointer_for_field): Use is_task_ctx helper.  Change first
11657         argument's type from const_tree to tree.  Clarify comment.
11658         In OMP_TASK disallow copy-in/out sharing.
11659         (build_sender_ref): Call lookup_sfield instead of lookup_field.
11660         (install_var_field): Add mask argument.  Populate both record_type
11661         and srecord_type if needed.
11662         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
11663         in srecord_type.
11664         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
11665         and DECL_FIELD_OFFSET.
11666         (scan_sharing_clauses): Adjust install_var_field callers.  For
11667         firstprivate clauses on explicit tasks allocate the var by value in
11668         record_type unconditionally, rather than by reference.
11669         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
11670         Use is_taskreg_ctx instead of is_parallel_ctx.
11671         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
11672         (create_omp_child_function_name): Add task_copy argument, use
11673         *_omp_cpyfn* names if it is true.
11674         (create_omp_child_function): Add task_copy argument, if true create
11675         *_omp_cpyfn* helper function.
11676         (scan_omp_parallel): Adjust create_omp_child_function callers.
11677         Rename parallel_nesting_level to taskreg_nesting_level.
11678         (scan_omp_task): New function.
11679         (lower_rec_input_clauses): Don't run constructors for firstprivate
11680         explicit task vars which are initialized by *_omp_cpyfn*.
11681         Pass outer var ref to omp_clause_default_ctor hook if
11682         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
11683         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
11684         OMP_CLAUSE_REDUCTION_INIT.
11685         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
11686         avoid duplicate setting of fields.  Handle
11687         OMP_CLAUSE_PRIVATE_OUTER_REF.
11688         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
11689         copy-out if TREE_READONLY, only copy-in.
11690         (expand_task_copyfn): New function.
11691         (expand_task_call): New function.
11692         (struct omp_taskcopy_context): New type.
11693         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
11694         New functions.
11695         (lower_omp_parallel): Rename to...
11696         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
11697         Call create_task_copyfn if srecord_type is needed.  Adjust
11698         sender_decl type.
11699         (task_shared_vars): New variable.
11700         (check_omp_nesting_restrictions): Warn if work-sharing,
11701         barrier, master or ordered region is closely nested inside OMP_TASK.
11702         Add warnings for barrier if closely nested inside of work-sharing,
11703         ordered, or master region.
11704         (scan_omp_1): Call check_omp_nesting_restrictions even for
11705         GOMP_barrier calls.  Rename parallel_nesting_level to
11706         taskreg_nesting_level.  Handle OMP_TASK.
11707         (lower_lastprivate_clauses): Even if some lastprivate is found on a
11708         work-sharing construct, continue looking for them on parent parallel
11709         construct.
11710         (lower_omp_for_lastprivate): Add lastprivate clauses
11711         to the beginning of dlist rather than end.  Adjust for struct
11712         omp_for_data changes.
11713         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
11714         not after it.  Handle collapsed OMP_FOR loops, adjust for
11715         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
11716         (get_ws_args_for): Adjust extract_omp_for_data caller.
11717         (scan_omp_for): Handle collapsed OMP_FOR
11718         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
11719         (lower_omp_single_simple): If libgomp function doesn't return
11720         boolean_type_node, add comparison of the return value with 0.
11721         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
11722         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
11723         (parallel_nesting_level): Rename to...
11724         (taskreg_nesting_level): ... this.
11725         (is_taskreg_ctx): New function.
11726         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
11727         of is_parallel_ctx.
11728         (execute_lower_omp): Rename parallel_nesting_level to
11729         taskreg_nesting_level.
11730         (expand_omp_parallel): Rename to...
11731         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
11732         Call omp_task_call for OMP_TASK regions.
11733         (expand_omp): Adjust caller, handle OMP_TASK.
11734         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
11735
11736         * bitmap.c (bitmap_default_obstack_depth): New variable.
11737         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
11738         if argument is NULL and bitmap_default_obstack is already initialized.
11739         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
11740         at the end.
11741         * matrix-reorg.c (matrix_reorg): Likewise.
11742
11743 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
11744
11745         * config/i386/i386.md (*indirect_jump): Macroize using P
11746         mode iterator.  Remove !TARGET_64BIT from insn constraints.
11747         (*tablejump_1): Ditto.
11748         (*indirect_jump_rex64): Remove insn pattern.
11749         (*tablejump_1_rex64): Ditto.
11750         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
11751         and eh_return_si insn patterns.
11752
11753 2008-06-06  Richard Guenther  <rguenther@suse.de>
11754
11755         * tree-ssa-structalias.c (merge_smts_into): Remove.
11756         (find_what_p_points_to): Do not bother to compute the
11757         points-to set for pt_anything pointers.
11758         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
11759         for pt_anything pointers is ok.
11760
11761 2008-06-06  Jan Hubicka  <jh@suse.cz>
11762
11763         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
11764
11765 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11766
11767         * cgraph.c: Fix typos in comments.
11768         (cgraph_availability_names): Fix string typo.
11769         * fold-const.c: Fix typos in comments.
11770         (fold_binary): Fix typo in warning.
11771         * genautomata.c: Fix typos in comments.
11772         (check_presence_pattern_sets): Fix typo in local variable.
11773         (output_description): Fix typo in output.
11774         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
11775         * hwint.h: Likewise.
11776         * matrix-reorg.c (check_allocation_function): Likewise.
11777         * omega.c (smooth_weird_equations): Likewise.
11778         * auto-inc-dec.c: Fix typos in comments.
11779         * bb-reorder.c: Likewise.
11780         * builtins.c: Likewise.
11781         * c-common.c: Likewise.
11782         * c-cppbuiltin.c: Likewise.
11783         * c-parser.c: Likewise.
11784         * c-pretty-print.c: Likewise.
11785         * cfgcleanup.c: Likewise.
11786         * cfgexpand.c: Likewise.
11787         * cfghooks.c: Likewise.
11788         * cfglayout.c: Likewise.
11789         * cfgloopmanip.c: Likewise.
11790         * cgraphunit.c: Likewise.
11791         * coverage.c: Likewise.
11792         * dbxout.c: Likewise.
11793         * df-byte-scan.c: Likewise.
11794         * df-core.c: Likewise.
11795         * df-problems.c: Likewise.
11796         * df-scan.c: Likewise.
11797         * dfp.c: Likewise.
11798         * dominance.c: Likewise.
11799         * domwalk.c: Likewise.
11800         * dse.c: Likewise.
11801         * dwarf2out.c: Likewise.
11802         * emit-rtl.c: Likewise.
11803         * et-forest.c: Likewise.
11804         * function.c: Likewise.
11805         * function.h: Likewise.
11806         * gcc.c: Likewise.
11807         * gcov-io.c: Likewise.
11808         * gcov.c: Likewise.
11809         * gcse.c: Likewise.
11810         * genattrtab.c: Likewise.
11811         * ggc-page.c: Likewise.
11812         * gimplify.c: Likewise.
11813         * gthr-lynx.h: Likewise.
11814         * haifa-sched.c: Likewise.
11815         * ipa-cp.c: Likewise.
11816         * ipa-inline.c: Likewise.
11817         * ipa-prop.h: Likewise.
11818         * ipa-pure-const.c: Likewise.
11819         * ipa-struct-reorg.c: Likewise.
11820         * ipa-struct-reorg.h: Likewise.
11821         * ipa-type-escape.c: Likewise.
11822         * ipa.c: Likewise.
11823         * loop-doloop.c: Likewise.
11824         * mips-tfile.c: Likewise.
11825         * mkmap-flat.awk: Likewise.
11826         * mkmap-symver.awk: Likewise.
11827         * modulo-sched.c: Likewise.
11828         * omp-low.c: Likewise.
11829         * optabs.c: Likewise.
11830         * optabs.h: Likewise.
11831         * opts.c: Likewise.
11832         * passes.c: Likewise.
11833         * postreload-gcse.c: Likewise.
11834         * postreload.c: Likewise.
11835         * predict.c: Likewise.
11836         * pretty-print.h: Likewise.
11837         * profile.c: Likewise.
11838         * protoize.c: Likewise.
11839         * ra-conflict.c: Likewise.
11840         * real.c: Likewise.
11841         * recog.c: Likewise.
11842         * regclass.c: Likewise.
11843         * regs.h: Likewise.
11844         * reload.c: Likewise.
11845         * rtl-error.c: Likewise.
11846         * rtlanal.c: Likewise.
11847         * scan.h: Likewise.
11848         * sched-rgn.c: Likewise.
11849         * see.c: Likewise.
11850         * stmt.c: Likewise.
11851         * target.h: Likewise.
11852         * tree-dfa.c: Likewise.
11853         * tree-eh.c: Likewise.
11854         * tree-flow-inline.h: Likewise.
11855         * tree-inline.c: Likewise.
11856         * tree-into-ssa.c: Likewise.
11857         * tree-loop-distribution.c: Likewise.
11858         * tree-nested.c: Likewise.
11859         * tree-parloops.c: Likewise.
11860         * tree-pass.h: Likewise.
11861         * tree-pretty-print.c: Likewise.
11862         * tree-profile.c: Likewise.
11863         * tree-scalar-evolution.c: Likewise.
11864         * tree-sra.c: Likewise.
11865         * tree-ssa-alias-warnings.c: Likewise.
11866         * tree-ssa-ccp.c: Likewise.
11867         * tree-ssa-coalesce.c: Likewise.
11868         * tree-ssa-dom.c: Likewise.
11869         * tree-ssa-dse.c: Likewise.
11870         * tree-ssa-forwprop.c: Likewise.
11871         * tree-ssa-live.c: Likewise.
11872         * tree-ssa-live.h: Likewise.
11873         * tree-ssa-loop-im.c: Likewise.
11874         * tree-ssa-loop-ivopts.c: Likewise.
11875         * tree-ssa-loop-niter.c: Likewise.
11876         * tree-ssa-loop-prefetch.c: Likewise.
11877         * tree-ssa-phiopt.c: Likewise.
11878         * tree-ssa-phiprop.c: Likewise.
11879         * tree-ssa-sccvn.c: Likewise.
11880         * tree-ssa-ter.c: Likewise.
11881         * tree-ssa-threadupdate.c: Likewise.
11882         * tree-ssa.c: Likewise.
11883         * tree-vect-analyze.c: Likewise.
11884         * tree-vect-transform.c: Likewise.
11885         * tree-vectorizer.c: Likewise.
11886         * tree-vn.c: Likewise.
11887         * tree-vrp.c: Likewise.
11888         * tree.c: Likewise.
11889         * tree.def: Likewise.
11890         * tree.h: Likewise.
11891         * unwind-dw2-fde.c: Likewise.
11892         * unwind.inc: Likewise.
11893         * value-prof.c: Likewise.
11894         * vmsdbgout.c: Likewise.
11895
11896 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
11897
11898         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
11899         always place FP constants in the TOC for TARGET_POWERPC64.
11900         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
11901
11902 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
11903
11904         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
11905         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
11906         enable for TARGET_E500_DOUBLE.
11907         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
11908         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
11909         floating-point modes like integer modes for E500 double.
11910         (rs6000_legitimate_offset_address_p): Likewise.
11911         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
11912         addressing for DDmode for E500 double.
11913         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
11914         modes as using 64-bits of registers for E500 double.
11915         (spe_build_register_parallel): Do not handle DDmode or TDmode.
11916         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
11917         specially for E500 double.
11918         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
11919         TDmode for E500 double.
11920         (rs6000_gimplify_va_arg): Only handle SDmode in registers
11921         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
11922         (rs6000_split_multireg_move): Do not handle TDmode specially for
11923         E500 double.
11924         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
11925         using 64-bit registers for E500 double.
11926         (emit_frame_save): Do not handle DDmode specially for E500 double.
11927         (gen_frame_mem_offset): Likewise.
11928         (rs6000_function_value): Do not call spe_build_register_parallel
11929         for DDmode or TDmode.
11930         (rs6000_libcall_value): Likewise.
11931         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
11932         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
11933         for E500 double.
11934
11935 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
11936
11937         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
11938         in comments.
11939
11940 2008-06-04  Junjie Gu <jgu@tensilica.com>
11941
11942         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
11943         comparison for frame pointers.
11944
11945 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
11946
11947         PR target/27386
11948         * config/avr/avr.h (PUSH_ROUNDING): Remove.
11949
11950 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
11951
11952         PR target/30243
11953         * builtins.c (expand_builtin_signbit): Don't take lowpart when
11954         register is already smaller or equal to required mode.
11955
11956 2008-06-04  Xinliang David Li  <davidxl@google.com>
11957
11958         * tree-call-cdce.c: New file.
11959         (cond_dead_built_in_calls): New static variable.
11960         (input_domain): New struct.
11961         (check_pow): New function.
11962         (check_builtin_call): Ditto.
11963         (check_target_format): Ditto.
11964         (is_call_dce_candidate): Ditto.
11965         (gen_one_condition): Ditto.
11966         (gen_conditions_for_domain): Ditto.
11967         (get_domain): Ditto.
11968         (gen_conditions_for_pow_cst_base): Ditto.
11969         (gen_conditions_for_pow_int_base): Ditto.
11970         (gen_conditions_for_pow): Ditto.
11971         (get_no_error_domain): Ditto.
11972         (gen_shrink_wrap_conditions): Ditto.
11973         (shrink_wrap_one_built_in_call): Ditto.
11974         (shink_wrap_conditional_dead_built_in_calls): Ditto.
11975         (tree_call_cdce): Ditto.
11976         (gate_call_cdce): Ditto.
11977         (pass_call_cdce): New gimple pass.
11978         * passes.c: (init_optimization_passes): New pass.
11979         * tree-pass.h: New pass declaration.
11980         * opts.c (decode_options): New flag setting.
11981         * common.opt: Add -ftree-builtin-call-dce flag.
11982         * Makefile.in: Add new source file.
11983         * tempvar.def: New tv_id.
11984         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
11985
11986 2008-06-04  Richard Guenther  <rguenther@suse.de>
11987
11988         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
11989         (is_call_clobbered): Always check var_ann->call_clobbered.
11990         (mark_call_clobbered): Always set var_ann->call_clobbered.
11991         (clear_call_clobbered): Always clear var_ann->call_clobbered.
11992         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
11993         (reset_alias_info): Clear call clobbering info on MTAGs and
11994         globals as well.
11995         (set_pt_anything): Set pt_global_mem.
11996         (create_tag_raw): Adjust comment.
11997         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
11998
11999 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
12000             Maxim Kuvyrkov  <maxim@codesourcery.com>
12001
12002         * config/m68k/m68k.opt (mxgot): New option.
12003         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
12004         (m68k_output_addr_const_extra): New.
12005         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
12006         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
12007         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
12008         * doc/invoke.texi (M680x0 Options): Document -mxgot.
12009
12010 2008-06-04  Richard Guenther  <rguenther@suse.de>
12011
12012         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
12013         negative or non-representable offsets.
12014
12015 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
12016
12017         * config/i386/i386.c (ix86_gen_leave): New.
12018         (ix86_gen_pop1): Likewise.
12019         (ix86_gen_add3): Likewise.
12020         (ix86_gen_sub3): Likewise.
12021         (ix86_gen_sub3_carry): Likewise.
12022         (ix86_gen_one_cmpl2): Likewise.
12023         (ix86_gen_monitor): Likewise.
12024         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
12025         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
12026         ix86_gen_one_cmpl2 and ix86_gen_monitor.
12027         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
12028         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
12029         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
12030         (ix86_expand_epilogue): Updated.
12031         (print_operand): Handle integer register operand for 'z'.
12032         (ix86_expand_strlensi_unroll_1): Likewise.
12033         (ix86_expand_strlen): Likewise.
12034         (ix86_expand_builtin): Likewise.
12035         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
12036         mov{q}/mov{l} and add{q}/add{l}.
12037
12038 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
12039
12040         * config/i386/i386.md (P): New mode iterator.
12041         (SFmode push_operand splitter): Macroize DImode and SImode pushes
12042         using P mode iterator.
12043         (DFmode push_operand splitter): Ditto.
12044         (XFmode push_operand splitter): Ditto.
12045         (DFmode float_extend SFmode push_operand splitter): Ditto.
12046         (XFmode float_extend SFmode push_operand splitter): Do not generate
12047         SImode pushes for 64bit target.  Macroize Dimode and SImode
12048         pushes using P mode iterator.
12049         (XFmode float_extend DFmode push_operand splitter): Ditto.
12050
12051 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
12052
12053         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
12054         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
12055         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
12056         return type to int.
12057         (ix86_call_abi_override): Remove check for call_used_regs.
12058
12059 2008-06-03  Richard Guenther  <rguenther@suse.de>
12060
12061         * tree-ssa-structalias.c (find_func_aliases): Add constraints
12062         for the lhs of calls if the return type contains pointers.
12063
12064 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
12065
12066         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
12067         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
12068         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
12069         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
12070         of cfun and DEFAULT_ABI to deceide abi mode.
12071         (DEFAULT_ABI): New.
12072         (REG_PARM_STACK_SPACE): Removed.
12073         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
12074         (STACK_BOUNDARY): Use default target to deceide stack boundary.
12075         * config/i386/i386-protos.h (ix86_cfun_abi): New.
12076         (ix86_function_abi): Likewise.
12077         (ix86_function_type_abi): Likewise.
12078         (ix86_call_abi_override): Likewise.
12079         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
12080         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
12081         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
12082         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
12083         specific defines.
12084         (X86_64_REGPARM_MAX): New.
12085         (X86_64_SSE_REGPARM_MAX): New.
12086         (X64_REGPARM_MAX): New.
12087         (X64_SSE_REGPARM_MAX): New.
12088         (X86_32_REGPARM_MAX): New.
12089         (X86_32_SSE_REGPARM_MAX): New.
12090         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
12091         (ix86_function_regparm): Handle user calling abi.
12092         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
12093         by DEFAULT_ABI versus SYSV_ABI check.
12094         (ix86_reg_parm_stack_space): New.
12095         (ix86_function_type_abi): New.
12096         (ix86_call_abi_override): New.
12097         (ix86_function_abi): New.
12098         (ix86_cfun_abi): New.
12099         (init_cumulative_args): Call abi specific initialization.
12100         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
12101         (function_arg_64): Extend SSE_REGPARM_MAX check.
12102         (function_arg (): Remove TARGET_64BIT_MS_ABI.
12103         (ix86_pass_by_reference): Likewise.
12104         (ix86_function_value_regno_p): Likewise.
12105         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
12106         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
12107         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
12108         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
12109         (setup_incoming_varargs_64): Adjust regparm for call abi.
12110         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
12111         (ix86_va_start): Likewise.
12112         (ix86_gimplify_va_arg): Likewise.
12113         (ix86_expand_prologue): Likewise.
12114         (output_pic_addr_const): Likewise.
12115         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
12116         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
12117         (x86_output_mi_thunk): Likewise.
12118         (x86_function_profiler): Likewise.
12119         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
12120         (SYSV_ABI, MS_ABI): New constants.
12121         (DEFAULT_ABI): New.
12122         (init_regs): Add prototype of function in regclass.c file.
12123         (OVERRIDE_ABI_FORMAT): New.
12124         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
12125         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
12126         (OUTGOING_REG_PARM_STACK_SPACE): New.
12127         (ix86_reg_parm_stack_space): New prototype.
12128         (CUMULATIVE_ARGS): Add call_abi member.
12129         (machine_function): Add call_abi member.
12130         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
12131         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
12132
12133 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
12134
12135         PR target/34879
12136         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
12137         (avr_builtin_setjmp_frame_value): New function.
12138         * config/avr/avr.md (nonlocal_goto_receiver): Define.
12139         (nonlocal_goto): Define.
12140
12141 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
12142
12143         * config/mips/mips.c (mips_emit_loadgp): Return early if
12144         there is nothing do to, otherwise emit a blockage if
12145         !TARGET_EXPLICIT_RELOCS || crtl->profile.
12146         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
12147
12148 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12149
12150         * configure.ac: Drop unneeded backslash ending up in config.in.
12151         * acinclude.m4: Likewise.
12152         * config.in: Regenerate.
12153
12154 2008-05-26  Jan Hubicka  <jh@suse.cz>
12155
12156         * predict.c (maybe_hot_frequency_p): Break out of...
12157         (maybe_hot_bb_p): ... here.
12158         (maybe_hot_edge_p): New.
12159         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
12160         * basic-block.h (maybe_hot_edge_p): Declare.
12161
12162 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
12163
12164         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
12165         (*cmpfp_<mode>_cc): Ditto.
12166         (*fp_jcc_8<mode>_387): Ditto.
12167         (*fop_<MODEF:mode>_2_i387): Ditto.
12168         (*fop_<MODEF:mode>_3_i387): Ditto.
12169         (*fop_xf_2_i387): Ditto.
12170         (*fop_xf_3_i387): Ditto.
12171
12172 2008-06-02  Tomas Bily  <tbily@suse.cz>
12173
12174         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
12175
12176 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
12177
12178         * config/mips/mips.c (mips_valid_offset_p): New function.
12179         (mips_valid_lo_sum_p): Likewise.
12180         (mips_classify_address): Use them.
12181         (mips_force_address): New function.
12182         (mips_legitimize_address): Use it.
12183         * config/mips/mips.md (MOVE128): New mode iterator.
12184         (movtf): Require TARGET_64BIT.  Remove empty strings.
12185         (*movtf_internal): Rename to...
12186         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
12187         of "R" and use {,fp}{load,store} attributes instead of "multi".
12188         Use a separate define_split.
12189         (*movtf_mips16): New pattern.
12190
12191 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
12192
12193         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
12194         * config/mips/mips.c (mips_expand_before_return): New function.
12195         (mips_expand_epilogue): Call it.
12196         * config/mips/mips.md (return): Turn into a define_expand.
12197         (*return): New insn.
12198
12199 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
12200
12201         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
12202         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
12203         functions.  Do not emit uses and clobbers of CONCATs; individually
12204         use and clobber their operands.
12205         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
12206         gen_clobber, emit_use and gen_use.
12207         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
12208         (expand_builtin_return): Likewise.
12209         * cfgbuild.c (count_basic_blocks): Likewise.
12210         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
12211         * explow.c (emit_stack_restore): Likewise.
12212         * expmed.c (extract_bit_field_1): Likewise.
12213         * expr.c (convert_move, emit_move_complex_parts): Likewise.
12214         (emit_move_multi_word, store_constructor): Likewise.
12215         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
12216         (thread_prologue_and_epilogue_insns): Likewise.
12217         * lower-subreg.c (resolve_simple_move): Likewise.
12218         * optabs.c (widen_operand, expand_binop): Likewise.
12219         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
12220         * reload.c (find_reloads): Likewise.
12221         * reload1.c (eliminate_regs_in_insn): Likewise.
12222         * stmt.c (expand_nl_goto_receiver): Likewise.
12223         * config/alpha/alpha.md (builtin_longjmp): Likewise.
12224         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
12225         * config/arm/arm.c (arm_load_pic_register): Likewise.
12226         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
12227         * config/arm/arm.md (untyped_return): Likewise.
12228         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
12229         * config/avr/avr.c (expand_prologue): Likewise.
12230         * config/bfin/bfin.c (do_unlink): Likewise.
12231         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
12232         * config/cris/cris.c (cris_expand_prologue): Likewise.
12233         * config/darwin.c (machopic_indirect_data_reference): Likewise.
12234         (machopic_legitimize_pic_address): Likewise.
12235         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
12236         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
12237         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
12238         (ix86_expand_convert_uns_didf_sse): Likewise.
12239         (ix86_expand_vector_init_general): Likewise.
12240         * config/ia64/ia64.md (eh_epilogue): Likewise.
12241         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
12242         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
12243         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
12244         (config/iq2000/iq2000.c): Likewise.
12245         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
12246         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
12247         (builtin_longjmp): Likewise.
12248         * config/mn10300/mn10300.md (call, call_value): Likewise.
12249         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
12250         * config/pdp11/pdp11.md (abshi2): Likewise.
12251         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
12252         * config/s390/s390.c (s390_emit_prologue): Likewise.
12253         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
12254         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
12255         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
12256         * config/sh/sh.c (prepare_move_operands): Likewise.
12257         (output_stack_adjust, sh_expand_epilogue): Likewise.
12258         (sh_set_return_address, sh_expand_t_scc): Likewise.
12259         * config/sparc/sparc.c (load_pic_register): Likewise.
12260         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
12261         * config/spu/spu.c (spu_expand_epilogue): Likewise.
12262         * config/v850/v850.c (expand_epilogue): Likewise.
12263
12264 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
12265
12266         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
12267         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
12268         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
12269         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
12270         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
12271         stack pointer register.
12272         (output_movhi): Remove code for interrupt specific writing to the
12273         stack pointer register.
12274
12275 2008-05-31  Richard Guenther  <rguenther@suse.de>
12276
12277         PR tree-optimization/34244
12278         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
12279         (tree_expr_nonzero_warnv_p): Likewise.
12280         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
12281         ssa_name_nonnegative_p.
12282         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
12283         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
12284         not tree_expr_nonzero_warnv_p.
12285
12286         PR tree-optimization/36262
12287         Revert
12288         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
12289
12290         PR tree-optimization/34244
12291         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
12292         (record_numbers_of_iterations): New function.
12293         (execute_vrp): Cache the numbers of iterations of loops.
12294         * tree-scalar-evolution.c (scev_reset_except_niters):
12295         New function.
12296         (scev_reset): Use scev_reset_except_niters.
12297         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
12298
12299 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
12300
12301         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
12302         __WORKAROUND_RETS when appropriate.
12303
12304 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
12305
12306         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
12307         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
12308         mode iterator.
12309         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
12310         *fop_df_comm_sse insn patterns using MODEF mode iterator.
12311         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
12312         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
12313         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
12314         *fop_df_1_mixed insn patterns using MODEF mode iterator.
12315         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
12316         *fop_df_1_sse insn patterns using MODEF mode iterator.
12317         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
12318         *fop_df_1_i387 insn patterns using MODEF mode iterator.
12319         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
12320         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
12321         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
12322         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
12323         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
12324         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
12325         (*fop_xf_4_i387): Use <MODE> for mode attribute.
12326         (*fop_xf_5_i387): Ditto.
12327         (*fop_xf_6_i387): Ditto.
12328
12329 2008-05-30  Richard Guenther  <rguenther@suse.de>
12330
12331         * builtins.c (build_string_literal): Avoid generating
12332         a non-gimple_val result.
12333
12334 2008-05-30  DJ Delorie  <dj@redhat.com>
12335
12336         * exec-tool.in: Use an environment variable (private) instead of a
12337         file (shared) as a semaphore, so as to not break parallel builds.
12338
12339 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
12340
12341         * optabs.c (maybe_encapsulate_block): Remove.
12342         (emit_libcall_block): Adjust accordingly.
12343         * optabs.h (maybe_encapsulate_block): Remove prototype.
12344
12345         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
12346         Don't use maybe_encapsulate_block.
12347
12348 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
12349
12350         * config/rs6000/rs6000.c (rs6000_legitimize_address,
12351         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
12352         rtx is a SYMBOL_REF before calling get_pool_constant.
12353
12354 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
12355
12356         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
12357
12358 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
12359
12360         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
12361         rather than OS names to choose INO_T_EQ definition.
12362         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
12363         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
12364
12365 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
12366
12367         PR target/36348
12368         * config/darwin-f.c: New.
12369         * config/t-darwin: Added rule to build darwin-f.o.
12370         * config.gcc: Defined new variable, fortran_target_objs.
12371         (*-*-darwin*): Set fortran_target_objs.
12372         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
12373         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
12374         * configure: Regenerated.
12375
12376 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
12377
12378         PR target/35771
12379         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
12380         canonical type if needed.
12381
12382 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
12383
12384         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
12385
12386 2008-05-29  Richard Guenther  <rguenther@suse.de>
12387
12388         PR tree-optimization/36343
12389         PR tree-optimization/36346
12390         PR tree-optimization/36347
12391         * tree-flow.h (clobber_what_p_points_to): Declare.
12392         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
12393         pointed-to variable is dereferenced is irrelevant to whether
12394         the pointer can access the pointed-to variable.
12395         (clobber_what_p_points_to): New function.
12396         * tree-ssa-alias.c (set_initial_properties): Use it.
12397         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
12398         call clobber check for NMTs.
12399
12400 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
12401
12402         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
12403         for printing gcov_type.
12404
12405 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
12406
12407         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
12408         and the eh region information.
12409         * value-prof.c (gimple_move_stmt_histograms): New function.
12410         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
12411
12412 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
12413
12414         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
12415
12416 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
12417
12418         * value-prof.c (tree_ic_transform): Print counts.
12419         * tree-profile.c (tree_gen_ic_func_profiler):
12420         Clear __gcov_indreict_call_callee variable to avoid misattribution
12421         of the profile.
12422
12423 2008-05-28  Rafael Espíndola  <espindola@google.com>
12424
12425         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
12426         invalid sharing.
12427
12428 2008-05-28  Richard Guenther  <rguenther@suse.de>
12429
12430         PR tree-optimization/36339
12431         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
12432         and clobbering code out of the loop.
12433
12434 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
12435
12436         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
12437         letters defined.
12438
12439         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
12440         s390_contiguous_bitmask_p, s390_symref_operand_p,
12441         s390_check_symref_alignment, s390_reload_larl_operand,
12442         s390_reload_symref_address): New functions.
12443         (s390_branch_condition_mnemonic): Support compare and branch
12444         instructions.
12445         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
12446         and 'W' constraints.
12447         (s390_secondary_reload): Add secondary reloads for unaligned
12448         symbol refs or symbol refs to floating point or QI/TI mode
12449         integer values.
12450         (legitimate_address_p): Accept symbol references as addresses.
12451         (s390_expand_insv): Use rotate and insert selected bits
12452         instruction for insv when building for z10.
12453         (print_operand_address): Handle symbol ref addresses.
12454         (print_operand): Output modifier 'c' added for signed byte values.
12455         (s390_encode_section_info): Mark symbol refs with
12456         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
12457
12458         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
12459         (length attribute): RRF, RRR have 4 byte length.
12460         (FPALL, INTALL): New mode iterators added.
12461         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
12462         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
12463         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
12464         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
12465         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
12466         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
12467         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
12468         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
12469         instructions.
12470         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
12471         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
12472         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
12473         reload<INTALL:mode><P:mode>_toreg_z10,
12474         reload<FPALL:mode><P:mode>_tomem_z10,
12475         reload<FPALL:mode><P:mode>_toreg_z10,
12476         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
12477         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
12478         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
12479         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
12480         definition.
12481         (movmem, clrmem, cmpmem): New splitters added.
12482
12483         * config/s390/predicates.md (larl_operand): Use
12484         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
12485         SYMBOL_REF_ALIGN1_P.
12486         (s390_signed_integer_comparison,
12487         s390_unsigned_integer_comparison): New predicates.
12488
12489         * config/s390/s390-protos.h (s390_check_symref_alignment,
12490         s390_contiguous_bitmask_p, s390_reload_larl_operand,
12491         s390_reload_symref_address,
12492         s390_compare_and_branch_condition_mask): Prototypes added.
12493
12494         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
12495         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
12496         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
12497
12498 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
12499
12500         * config/s390/s390.c (z10_cost): New cost function for z10.
12501         (s390_handle_arch_option, override_options): Support -march=z10 switch.
12502         (s390_issue_rate): Adjust issue rate for z10.
12503         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
12504         (processor_flags): Add PF_Z10.
12505         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
12506         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
12507         * gcc/config.gcc: Add z10.
12508
12509 2008-05-28  Richard Guenther  <rguenther@suse.de>
12510
12511         PR tree-optimization/36291
12512         * tree-flow. h (struct gimple_df): Remove var_anns member.
12513         * tree-flow-inline.h (gimple_var_anns): Remove.
12514         (var_ann): Simplify.
12515         * tree-dfa.c (create_var_ann): Simplify.
12516         (remove_referenced_var): Clear alias info from var_anns of globals.
12517         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
12518         (delete_tree_ssa): Clear alias info from var_anns of globals.
12519         Do not free var_anns.
12520         (var_ann_eq): Remove.
12521         (var_ann_hash): Likewise.
12522
12523 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
12524
12525         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
12526         and loongson2f entries.
12527         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
12528         * config/mips/mips.h (processor_type): Add Loongson-2E
12529         and Loongson-2F entries.
12530         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
12531         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
12532         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
12533         * doc/invoke.texi (MIPS Options): Document loongson2e
12534         and loongson2f processor names.
12535
12536 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
12537
12538         PR target/35767
12539         PR target/35771
12540         * config/i386/i386.c (ix86_function_arg_boundary): Use
12541         alignment of canonical type.
12542         (ix86_expand_vector_move): Check unaligned memory access for
12543         all SSE modes.
12544
12545 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
12546
12547         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
12548         Moved to the front of file.
12549
12550 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
12551             H.J. Lu  <hongjiu.lu@intel.com>
12552
12553         * dwarf2out.c (current_fde): New.
12554         (add_cfi): Use it.
12555         (lookup_cfa:): Likewise.
12556         (dwarf2out_end_epilogue): Likewise.
12557         (dwarf2out_note_section_used): Likewise.
12558
12559 2008-05-27  Michael Matz  <matz@suse.de>
12560
12561         PR c++/27975
12562         * c.opt (Wenum-compare): New warning option.
12563         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
12564
12565 2008-05-27  Michael Matz  <matz@suse.de>
12566
12567         PR middle-end/36326
12568         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
12569         non-BLKmode types.
12570         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
12571         into memory as tail calls.
12572
12573 2008-05-27  Richard Guenther  <rguenther@suse.de>
12574
12575         PR tree-optimization/36339
12576         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
12577         pointers cause all addressable variables to be call clobbered.
12578
12579 2008-05-27  Richard Guenther  <rguenther@suse.de>
12580
12581         PR tree-optimization/36245
12582         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
12583
12584 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
12585
12586         * config/s390/s390.md: Replace all occurences of the 'm'
12587         constraint with 'RT'.
12588
12589 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
12590
12591         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
12592         definitions added.
12593         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
12594         "*movdi_64".
12595         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
12596         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
12597         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
12598
12599 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
12600
12601         * reload.c: (find_reloads): Skip alternatives according to the
12602         "enabled" attribute. Constify the constraint variable.
12603         * recog.c (get_attr_enabled): Add default implementation.
12604         (extract_insn): Set the alternative_enabled_p array
12605         in the recog_data struct.
12606         (preprocess_constraints, constrain_operands): Skip
12607         alternatives according to the "enabled" attribute
12608         * recog.h (struct recog_data): New field alternative_enabled_p.
12609         (skip_alternative): New inline function.
12610         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
12611         (record_reg_classes): Skip alternative according to the
12612         "enabled" attribute.
12613
12614         * doc/md.texi: Add documention for the "enabled" attribute.
12615
12616 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
12617
12618         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
12619         * postreload.c (reload_cse_simplify_operands): Replace 'm'
12620         constraint with TARGET_MEM_CONSTRAINT.
12621         * recog.c (asm_operand_ok, preprocess_constraints,
12622         constrain_operands): Likewise.
12623         * regclass.c (record_reg_classes): Likewise.
12624         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
12625         * reload1.c (maybe_fix_stack_asms): Likewise.
12626         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
12627         * recog.h: Adjust comment.
12628         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
12629         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
12630         * doc/md.texi: Add a note to description of 'm' constraint.
12631         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
12632
12633 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
12634
12635         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
12636         that the bitfield is of integral type before testing its precision.
12637
12638 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
12639             Sa Liu  <saliu@de.ibm.com>
12640
12641         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
12642         __modti3, __udivti3, __umodti3 and __udivmodti4.
12643         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
12644         that implement TImode mul and div functions.
12645         * config/spu/multi3.c: New. Implement __multi3.
12646         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
12647         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
12648         functions on SPU.
12649
12650 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
12651
12652         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
12653         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
12654         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
12655         tls_sysv_suffix): New mode and mode attribute iterators.
12656         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
12657         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
12658         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
12659         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
12660         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
12661         iterators.
12662
12663 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
12664
12665         PR tree-optimization/36329
12666         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
12667         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
12668         * cgraphbuild.c (initialize_inline_failed): Use the latter
12669         macro in lieu of the former.
12670         * ipa-inline.c (cgraph_mark_inline): Likewise.
12671         (cgraph_decide_inlining_of_small_function): Likewise.
12672         (cgraph_decide_inlining): Likewise.
12673         (cgraph_decide_inlining_incrementally): Likewise.
12674
12675 2008-05-26  Tristan Gingold  <gingold@adacore.com>
12676             Anatoly Sokolov  <aesok@post.ru>
12677
12678         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
12679         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
12680         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
12681         optimization for 'avr6' architecture.
12682
12683 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
12684
12685         PR target/34932
12686         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
12687
12688 2008-05-26  Richard Guenther  <rguenther@suse.de>
12689
12690         * tree-ssa-sccvn.c (expr_has_constants): Declare.
12691         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
12692
12693 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
12694
12695         PR middle-end/36253
12696         * caller-save.c (insert_restore): Verify alignment of spill space.
12697         (insert_save): Likewise.
12698         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
12699         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
12700         (STACK_SLOT_ALIGNMENT): Likewise.
12701         * function.c (LOCAL_ALIGNMENT): Removed.
12702         (get_stack_local_alignment): New.
12703         (assign_stack_local): Use it.  Set alignment on stack slot.
12704         (assign_stack_temp_for_type): Use get_stack_local_alignment.
12705         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
12706         (STACK_SLOT_ALIGNMENT): New.
12707         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
12708         stack slot in XFmode.
12709
12710         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
12711
12712 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
12713
12714         PR/36321
12715         * config/i386/i386.md (allocate_stack_worker_64): Make sure
12716         argument operand in rax isn't removed.
12717
12718 2008-05-26  Richard Guenther  <rguenther@suse.de>
12719
12720         PR middle-end/36300
12721         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
12722         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
12723
12724 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
12725
12726         PR bootstrap/36331
12727         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
12728
12729 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
12730
12731         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
12732         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
12733
12734 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12735
12736         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
12737         build a trampoline if we don't want one.
12738         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
12739         return zero for nested functions if we don't want a trampoline.
12740
12741 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
12742
12743         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
12744
12745 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
12746
12747         PR fortran/18428
12748         * c.opt: Removed undocumented option '-lang-fortran'.
12749         * c-common.h: Removed global variable 'lang_fortran'.
12750         * c-opts.c (c_common_handle_option): Removed code to handle
12751         option '-lang-fortran'. Updated includes.
12752         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
12753         definition of '__GFORTRAN__'.
12754         (define__GNUC__): Reimplemented to use BASEVER and
12755         cpp_define_formatted.
12756         (builtin_define_with_value_n): Removed.
12757         * c-incpath.h: Renamed to ...
12758         * incpath.h: ... this.
12759         * c-incpath.c: Renamed to ...
12760         * incpath.c: ... this. Updated includes.
12761         * fix-header.c: Updated includes.
12762         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
12763         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
12764         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
12765
12766 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12767
12768         * tree.h: Update the table of flags used on tree nodes.
12769         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
12770         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
12771         (FORCED_LABEL): Add access check.
12772         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
12773         (ASM_INPUT_P): Likewise.
12774         (ASM_VOLATILE_P): Likewise.
12775         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
12776         (OMP_SECTION_LAST): Access private_flag directly.
12777         (OMP_RETURN_NOWAIT): Likewise.
12778         (OMP_PARALLEL_COMBINED): Likewise.
12779         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
12780         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
12781         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
12782         deprecated_flag directly.
12783
12784 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
12785
12786         * final.c (frame_pointer_needed): Removed.
12787         * flags.h (frame_pointer_needed): Likewise.
12788
12789         * function.h (rtl_data): Add frame_pointer_needed.
12790         (frame_pointer_needed): New.
12791
12792 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
12793
12794         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
12795
12796 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
12797
12798         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
12799         SRC is a REG.
12800
12801 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
12802
12803         * c-common.c (strip_array_types): Move function to..
12804         * tree.c: ..here.
12805         (get_inner_array_type): Delete.
12806         * c-common.h (strip_array_types): Move declaration to..
12807         * tree.h: ..here.
12808         (get_inner_array_type): Delete.
12809         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
12810         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
12811         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12812         * config/pa/pa.c (emit_move_sequence): Likewise.
12813
12814 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
12815
12816         * config/i386/i386.md (*sse_prologue_save_insn): Set length
12817         attribute to 34.
12818
12819 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
12820
12821         * function.c: Include target hook for nonlocal_goto frame value.
12822
12823 2008-05-24  Richard Guenther  <rguenther@suse.de>
12824
12825         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
12826         variable can be only accessed through a pointer or a union.
12827
12828 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12829
12830         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
12831         * doc/extend.texi: Likewise.
12832
12833 2008-05-23  DJ Delorie  <dj@redhat.com>
12834
12835         * config/m32c/jump.md (untyped_call): Add.
12836
12837         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
12838         for A24 to PSImode.
12839         (m32c_address_cost): Detail costs for indirect offsets.
12840
12841 2008-05-23  Rafael Espíndola  <espindola@google.com>
12842
12843         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
12844         if a node is a SUBREG.
12845         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
12846         is a SUBREG.
12847
12848 2008-05-23  Paul Brook  <paul@codesourcery.com>
12849             Carlos O'Donell  <carlos@codesourcery.com>
12850
12851         * doc/extend.texi: Clarify use of __attribute__((naked)).
12852         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
12853         * target.h (gcc_target): Add allocate_stack_slots_for_args.
12854         * function.c (use_register_for_decl): Use
12855         targetm.calls.allocate_stack_slots_for_args.
12856         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
12857         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
12858         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
12859
12860 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
12861
12862         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
12863
12864 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
12865
12866         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
12867         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
12868         is only rounded once.
12869
12870 2008-05-23  Richard Guenther  <rguenther@suse.de>
12871
12872         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
12873
12874 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
12875             Jakub Jelinek  <jakub@redhat.com>
12876
12877         PR target/36079
12878         * configure.ac: Handle --enable-cld.
12879         * configure: Regenerated.
12880         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
12881         * config/i386/i386.h (struct machine_function): Add needs_cld field.
12882         (ix86_current_function_needs_cld): New define.
12883         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
12884         (cld): New isns pattern.
12885         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
12886         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
12887         * config/i386/i386.opt (mcld): New option.
12888         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
12889         TARGET_CLD and ix86_current_function_needs_cld.
12890         (override_options): Use -mcld by default for 32-bit code if
12891         USE_IX86_CLD.
12892
12893         * doc/install.texi (Options specification): Document --enable-cld.
12894         * doc/invoke.texi (Machine Dependent Options)
12895         [i386 and x86-64 Options]: Add -mcld option.
12896         (Intel 386 and AMD x86-64 Options): Document -mcld option.
12897
12898 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
12899         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
12900         (return_in_memory_64): Likewise.
12901         (return_in_memory_ms_64): Likewise.
12902
12903 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12904
12905         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
12906         * builtins.c (fold_builtin_fpclassify): New.
12907         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
12908         * builtins.def (BUILT_IN_FPCLASSIFY): New.
12909         * c-common.c (handle_type_generic_attribute): Adjust to accept
12910         fixed arguments before an elipsis.
12911         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
12912         * doc/extend.texi: Document __builtin_fpclassify.
12913
12914 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
12915
12916         * omp-low.c (gate_expand_omp_ssa): Remove.
12917         (pass_expand_omp_ssa): Remove.
12918         (gate_expand_omp): Do not check for flag_openmp_ssa.
12919         * common.opt (-fopenmp-ssa): Remove.
12920         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
12921
12922 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
12923
12924         * config/sh/sh.opt (mfixed-range): New option.
12925         * config/sh/sh-protos.h (sh_fix_range): Declare.
12926         * config/sh/sh.c (sh_fix_range): New function.
12927         * config/sh/sh.h (sh_fixed_range_str): Declare.
12928         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
12929         is not empty.
12930         * doc/invoke.texi (SH Options): Document -mfixed-range.
12931
12932 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
12933
12934         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
12935         it before the redeclaration.
12936
12937 2008-05-22  Anatoly Sokolov <aesok@post.ru>
12938
12939         * config/avr/avr.c (get_sequence_length): Add new function.
12940         (expand_prologue, expand_epilogue): Remove duplicate code.
12941
12942 2008-05-22  Rafael Espíndola  <espindola@google.com>
12943
12944         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
12945         sharing.
12946
12947 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
12948
12949         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
12950         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
12951
12952         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
12953         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
12954         (vect_update_misalignment_for_peel): Likewise.
12955         (vector_alignment_reachable_p): Likewise.
12956         * tree-vect-transform.c (vectorizable_load): Likewise.
12957         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
12958         (get_vectype_for_scalar_type): Pass mode of scalar_type
12959         to UNITS_PER_SIMD_WORD.
12960
12961         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
12962         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
12963         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
12964         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
12965         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
12966
12967 2008-05-22  Ira Rosen  <irar@il.ibm.com>
12968
12969         PR tree-optimization/36293
12970         * tree-vect-transform.c (vect_transform_strided_load): Don't check
12971         if the first load must be skipped because of a gap.
12972
12973 2008-05-22  Richard Guenther  <rguenther@suse.de>
12974
12975         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
12976         more cases of offset disambiguation that is possible if
12977         strict-aliasing rules apply.
12978         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
12979         for basic offset and type-based disambiguation.
12980
12981 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
12982
12983         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
12984         ix86_expand_vector_set on V16QImode for SSE4.1.
12985
12986 2008-05-21  Tom Tromey  <tromey@redhat.com>
12987
12988         * c.opt (Wimport): Mark as undocumented.
12989         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
12990         -Wno-import.
12991         (Warning Options): Likewise.
12992         * doc/cppopts.texi: Don't mention -Wimport.
12993
12994 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
12995
12996         PR tree-optimization/36287
12997         PR tree-optimization/36286
12998         * lambda-code.c (build_access_matrix): Do not use the loop->num
12999         for computing the number of induction variables: use the loop depth
13000         instead.
13001
13002 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
13003
13004         PR/36280
13005         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
13006         option -f(no-)leading-underscore.
13007
13008 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13009
13010         * config/i386/i386.c (ix86_expand_vector_init_general): Use
13011         GET_MODE_NUNITS (mode).
13012
13013 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
13014
13015         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
13016         (-mmulhw): Add 464 to description.
13017         (-mdlmzb): Likewise.
13018         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
13019         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
13020         464fp entries.
13021         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
13022         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
13023         * config/rs6000/rs6000.md: Update comments for 464.
13024
13025 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
13026
13027         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
13028
13029 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13030
13031         * config/i386/sse.md (vec_extractv4sf): Removed.
13032         (vec_extractv2df): Likewise.
13033         (vec_extractv2di): Likewise.
13034         (vec_extractv4si): Likewise.
13035         (vec_extractv8hi): Likewise.
13036         (vec_extractv16qi): Likewise.
13037         (vec_extract<mode>): New.
13038
13039 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13040
13041         * config/i386/sse.md (vec_setv4sf): Removed.
13042         (vec_setv2df): Likewise.
13043         (vec_setv2di): Likewise.
13044         (vec_setv4si): Likewise.
13045         (vec_setv8hi): Likewise.
13046         (vec_setv16qi): Likewise.
13047         (vec_set<mode>): New.
13048
13049 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13050
13051         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
13052         goto for vec_concat and vec_interleave.
13053
13054 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
13055
13056         * config/i386/sse.md (vec_initv4sf): Removed.
13057         (vec_initv2df): Likewise.
13058         (vec_initv2di): Likewise.
13059         (vec_initv4si): Likewise.
13060         (vec_initv8hi): Likewise.
13061         (vec_initv16qi): Likewise.
13062         (vec_init<mode>): New.
13063
13064 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
13065
13066         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
13067
13068 2008-05-21  Tom Tromey  <tromey@redhat.com>
13069
13070         * ggc-zone.c (lookup_page_table_if_allocated): New function.
13071         (zone_find_object_offset): Likewise.
13072         (gt_ggc_m_S): Likewise.
13073         (highest_bit): Likewise.
13074         * ggc-page.c (gt_ggc_m_S): New function.
13075         * stringpool.c (string_stack): Remove.
13076         (init_stringpool): Update.
13077         (ggc_alloc_string): Use ggc_alloc.
13078         (maybe_delete_ident): New function.
13079         (ggc_purge_stringpool): Likewise.
13080         (gt_ggc_m_S): Remove.
13081         * ggc-common.c (ggc_protect_identifiers): New global.
13082         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
13083         ggc_protect_identifiers.
13084         * ggc.h (ggc_protect_identifiers): Declare.
13085         (gt_ggc_m_S): Update.
13086         (ggc_purge_stringpool): Declare.
13087         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
13088         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
13089         special case.
13090         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
13091
13092 2008-05-21  David S. Miller  <davem@davemloft.net>
13093
13094         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
13095         tmake_file.
13096
13097 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
13098
13099         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
13100         once finished.
13101
13102 2008-05-20  David Daney  <ddaney@avtrex.com>
13103
13104         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
13105         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
13106         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
13107         UNSPEC_UPDATE_GOT_VERSION): Renumber.
13108         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
13109         (atomic_hiqi_op): New define_code_iterator.
13110         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
13111         mips_expand_compare_and_swap_12.
13112         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
13113         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
13114         (sync_<optab><mode>, sync_old_<optab><mode>,
13115         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
13116         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
13117         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
13118         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
13119         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
13120         (test_and_set_12): New insn.
13121         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
13122         sync_new_<optab><mode>, sync_old_nand<mode>,
13123         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
13124         clobber to operand 0 for SI and DI mode insns.
13125         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
13126         mips_gen_fn_4): New typedefs.
13127         (mips_gen_fn_ptrs): Define new union type.
13128         (mips_expand_compare_and_swap_12): Remove declaration.
13129         (mips_expand_atomic_qihi): Declare function.
13130         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
13131         (mips_expand_atomic_qihi): ... this.  Use new generator function
13132         parameter.
13133         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
13134         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
13135         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
13136         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
13137         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
13138         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
13139         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
13140         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
13141         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
13142         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
13143         New macros.
13144
13145 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
13146
13147         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
13148         the missing break.
13149
13150 2008-05-20  Anatoly Sokolov <aesok@post.ru>
13151
13152         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
13153         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
13154         (avr_attribute_table): Add 'OS_main' function attribute.
13155         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
13156         functions with 'OS_main' attribute.
13157
13158 2008-05-20  Richard Guenther  <rguenther@suse.de>
13159
13160         PR tree-optimization/35204
13161         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
13162         helper, split out from ...
13163         (DFS): ... here.  Make the DFS walk non-recursive.
13164
13165 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
13166             Jan Sjodin  <jan.sjodin@amd.com>
13167
13168         PR tree-optimization/36181
13169         * tree-parloops.c (loop_has_vector_phi_nodes): New.
13170         (parallelize_loops): Don't parallelize when the loop has vector
13171         phi nodes.
13172
13173 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
13174             Sebastian Pop  <sebastian.pop@amd.com>
13175
13176         * tree-loop-linear.c (gather_interchange_stats): Look in the access
13177         matrix, and never look at the tree representation of the memory
13178         accesses.
13179         (linear_transform_loops): Computes parameters and access matrices.
13180         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
13181         when fails.
13182         (access_matrix_get_index_for_parameter): New.
13183         * tree-data-ref.h (struct access_matrix): New.
13184         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
13185         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
13186         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
13187         am_vector_index_for_loop): New.
13188         (struct data_reference): Add field access_matrix.
13189         (DR_ACCESS_MATRIX): New.
13190         (compute_data_dependences_for_loop): Update declaration.
13191         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
13192         * lambda.h (lambda_vector_vec_p): Declared.
13193         * lambda-code.c: Depend on pointer-set.h.
13194         (lambda_collect_parameters_from_af, lambda_collect_parameters,
13195         av_for_af_base, av_for_af, build_access_matrix,
13196         lambda_compute_access_matrices): New.
13197         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
13198
13199 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
13200
13201         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
13202         $SOURCEDIR/include.
13203
13204 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
13205             Sebastian Pop  <sebastian.pop@amd.com>
13206
13207         PR tree-optimization/36206
13208         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
13209         FOLD_CONVERSIONS.
13210         (instantiate_scev_1): Rename flags to fold_conversions.
13211         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
13212         outeside instantiation_loop.
13213         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
13214         (evolution_function_is_affine_or_constant_p): Removed.
13215         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
13216         instantiate_scev.
13217         (analyze_siv_subscript): Pass in the loop nest number.
13218         Call evolution_function_is_affine_in_loop instead of
13219         evolution_function_is_affine_p.
13220         (analyze_overlapping_iterations): Pass in the loop nest number.
13221
13222 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
13223             Sebastian Pop  <sebastian.pop@amd.com>
13224
13225         PR tree-optimization/36206
13226         * tree-chrec.h (chrec_fold_op): New.
13227         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
13228         and other trees.
13229
13230 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
13231
13232         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
13233         (DIRS_EQ): New.
13234         (remove_duplicates): Do not set inode on non-inode systems.
13235         Use DIRS_EQ.
13236
13237 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
13238
13239         * config.gcc (tm_file): Update comments about relative pathnames.
13240
13241 2008-05-20  Richard Guenther  <rguenther@suse.de>
13242
13243         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
13244         * tree-ssa-sccvn.c (process_scc): Likewise.
13245         * tree-ssa-sink.c (execute_sink_code): Likewise.
13246         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
13247         * tree-vrp.c (process_assert_insertions): Likewise.
13248         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
13249         (perform_tree_ssa_dce): Likewise.
13250         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
13251         (dump_dominator_optimization_stats): Likewise.
13252         * tree-vectorizer.c (vectorize_loops): Likewise.
13253
13254 2008-05-20  Richard Guenther  <rguenther@suse.de>
13255
13256         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
13257
13258 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
13259
13260         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
13261         (ix86_i386elf_return_in_memory): Likewise.
13262         (ix86_i386interix_return_in_memory): Likewise.
13263         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
13264         (SUBTARGET_RETURN_IN_MEMORY): New.
13265         * config/i386/i386elf.h: Likewise.
13266         * config/i386/ptx4-i.h: Likewise.
13267         * config/i386/sol2-10.h: Likewise.
13268         * config/i386/sysv4.h: Likewise.
13269         * config/i386/vx-common.h: Likewise.
13270         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
13271         * config/i386/i386.c (ix86_return_in_memory): Made static and
13272         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
13273         (ix86_i386elf_return_in_memory): Removed.
13274         (ix86_i386interix_return_in_memory): Removed.
13275         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
13276         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
13277
13278 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
13279
13280         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
13281
13282 2008-05-19  Xinliang David Li  <davidxl@google.com>
13283
13284         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
13285         * opts.c: Ditto.
13286         * common.opt: Ditto.
13287         * doc/invoke.texi: Ditto.
13288
13289 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
13290
13291         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
13292         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
13293
13294 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
13295
13296         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
13297         sizes of operand array from 8/4 to 4/2.
13298         (ix86_expand_vector_init_general): Change size of operand array
13299         from 32 to 16.  Remove op0, op1 and half_mode.
13300
13301 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
13302
13303         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
13304         (ix86_expand_vector_init_interleave): Likewise.
13305         (ix86_expand_vector_init_general): Use them.  Assert
13306         word_mode == SImode when n_words == 4.
13307
13308 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
13309
13310         * config/i386/i386.c (ix86_secondary_reload): New static function.
13311         (TARGET_SECONDARY_RELOAD): New define.
13312         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
13313         * config/i386/i386.md (reload_outqi): Remove.
13314
13315 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13316
13317         PR middle-end/35509
13318         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
13319         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
13320         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
13321         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
13322         (fold_builtin_1): Likewise.
13323         * builtins.def (BUILT_IN_ISINF_SIGN): New.
13324         c-common.c (check_builtin_function_arguments): Handle
13325         BUILT_IN_ISINF_SIGN.
13326         * doc/extend.texi: Document __builtin_isinf_sign.
13327         * fold-const.c (operand_equal_p): Handle COND_EXPR.
13328
13329 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
13330
13331         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
13332         EH cleanup at the end of the pass, search for those that have been
13333         turned into forwarder blocks and do the cleanup on their successor.
13334
13335 2008-05-18  Richard Guenther  <rguenther@suse.de>
13336
13337         * tree-cfg.c (verify_gimple_expr): Allow conversions from
13338         pointers to sizetype and vice versa.
13339
13340 2008-05-18 Xinliang David Li   <davidxl@google.com>
13341
13342         * gcc/tree-ssa-dce.c: Coding style fix.
13343         (check_pow): Documentation comment.
13344         (check_log): Documenation comment. Coding style fix.
13345         (is_unnecessary_except_errno_call): Ditto.
13346         (gen_conditions_for_pow): Ditto.
13347         (gen_conditions_for_log): Ditto.
13348         (gen_shrink_wrap_conditions): Ditto.
13349         (shrink_wrap_one_built_in_calls): Ditto.
13350         * gcc/doc/invoke.texi: Better documentation string.
13351         * ChangeLog: Fix wrong change log entries from
13352         May 17 checkin on function call DCE.
13353
13354 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
13355
13356         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
13357
13358 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
13359
13360         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
13361         * df-problems.c (simulation routines): Fixed block comment to
13362         properly say how to add forwards scanning functions.
13363
13364 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
13365
13366         * tree-inline.c (setup_one_parameter): Remove dead code.
13367
13368 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
13369
13370         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
13371         a BIT_AND_EXPR only for an INTEGER_TYPE.
13372
13373 2008-05-17 Xinliang David Li   <davidxl@google.com>
13374
13375         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
13376         (check_pow, check_log, is_unnecessary_except_errno_call): New
13377         functions to check for eliminating math functions that are pure
13378         except for setting errno.
13379         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
13380         general condition expressions for shrink-wrapping pow/log calls.
13381         (gen_shrink_wrap_conditions): Ditto.
13382         (shrink_wrap_one_built_in_call): Ditto.
13383         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
13384         (mark_operand_necessary): If debugging, output if OP is necessary.
13385         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
13386         unnecessary.
13387         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
13388         opt level >= 2.
13389         * gcc/common.opt: New user flag -ftree-builtin-dce.
13390         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
13391
13392 2008-05-16  David S. Miller  <davem@davemloft.net>
13393
13394         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
13395         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
13396
13397 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
13398
13399         PR target/36246
13400         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
13401
13402 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
13403
13404         * ifcvt.c (dead_or_predicable): Rename
13405         df_simulate_one_insn_backwards to df_simulate_one_insn.
13406         * recog.c (peephole2_optimize): Ditto.
13407         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
13408         Ditto.
13409         * df.h: Rename df_simulate_one_insn_backwards to
13410         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
13411         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
13412         scanning of defs and uses.
13413         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
13414         (df_simulate_one_insn_forwards): Removed.
13415
13416 2008-05-16  Doug Kwan  <dougkwan@google.com>
13417
13418         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
13419         QNaN & SNaN.
13420         (real_from_string): Handle NaNs and Inf as approriate.
13421
13422 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
13423
13424         * doc/gty.texi (Source Files Containing Type Information): Note
13425         that headers should appear first in the gtfiles list.
13426
13427 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
13428
13429         * tree.def (COND_EXEC): Properly documented this code.
13430
13431 2008-05-16  Diego Novillo  <dnovillo@google.com>
13432
13433         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
13434         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
13435         the new field.
13436
13437 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
13438
13439         * tree-ssa-dse (max_stmt_uid): Removed.
13440         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
13441         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
13442         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
13443         * function.h (cfun.last_stmt_uid): New field.
13444         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
13445         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
13446         New functions.
13447         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
13448         (create_stmt_ann): Initialize the ann->uid field.
13449         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
13450         with new calls.
13451         * tree-flow.h (renumber_gimple_stmt_uids): New function.
13452
13453 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
13454
13455         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
13456         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
13457         (init_empty_tree_cfg): Call it.
13458
13459 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
13460
13461         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
13462         Update all users.
13463
13464 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
13465
13466         * doc/invoke.text (-fdump-tree-*-verbose): New option.
13467         * tree-dump.c (dump_options): New verbose option.
13468         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
13469         Add verbose dump.
13470         * tree-pass.h (TDF_VERBOSE): New dump flag.
13471         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
13472         (tree-flow.h): Added include.
13473         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
13474
13475 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
13476
13477         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
13478
13479         From Jie Zhang  <jie.zhang@analog.com>
13480         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
13481         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
13482         mcpu=bf561-none and mcpu=bf561-0.2.
13483         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
13484         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
13485         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
13486         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
13487         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
13488         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
13489         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
13490         option.
13491         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
13492         (cputype_selected): Remove.
13493         (bfin_handle_option): Don't use cputype_selected.
13494         (override_options): When no mcpu option, enable all workarounds.
13495         Don't use bfin_workarounds.
13496         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
13497         processor type.
13498         (DEFAULT_CPU_TYPE): Don't define.
13499
13500 2008-05-16  Richard Guenther  <rguenther@suse.de>
13501
13502         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
13503         on deletion of the last stmt.
13504
13505 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13506
13507         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
13508         V8HImode for SSE2 and V16QImode for SSE4.1.
13509
13510 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
13511
13512         * cgraph.h (compute_inline_parameters): Made public.
13513         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
13514         variable_generate_summary, function_write_summary,
13515         variable_write_summary, variable_read_summary.  Added generate_summary,
13516         write_summary, read_summary.
13517         * cgraphunit.c (cgraph_process_new_functions): Changed call from
13518         pass_ipa_inline.function_generate_summary, to
13519         compute_inline_parameters.
13520         * ipa-inline.c (compute_inline_parameters): Made public and added
13521         node parameter.
13522         (compute_inline_parameters_for_current): New function.
13523         (pass_inline_param): Now calls compute_inline_parameters_for_current.
13524         (inline_generate_summary): Removed parameter and made to loop over
13525         all cgraph nodes.
13526         (pass_ipa_inline): Updated for new IPA_PASS structure.
13527         * passes.c (execute_ipa_summary_passes): Now is called once per
13528         pass rather than once per node*pass.
13529
13530 2008-05-15  Anatoly Sokolov <aesok@post.ru>
13531
13532         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
13533         avr_have_mul_p, avr_asm_only_p): Remove variables.
13534         (avr_override_options): Remove initialization of removed variables.
13535         (avr_file_start):  Convert removed variables to fields of
13536         'struct base_arch_s *avr_current_arch'.
13537         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
13538         (AVR_HAVE_MUL): (Ditto.).
13539         (AVR_HAVE_MOVW): (Ditto.).
13540         (AVR_HAVE_LPMX): (Ditto.).
13541         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
13542         avr_asm_only_p): Remove declaration.
13543
13544 2008-05-15  Diego Novillo  <dnovillo@google.com>
13545
13546         * config/arm/arm.c (arm_return_in_memory): Fix return type.
13547         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
13548
13549 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
13550
13551         PR middle-end/36194
13552         * combine.c (check_conversion): Rename back to check_promoted_subreg.
13553         Don't call record_truncated_value from here.
13554         (record_truncated_value): Turn it into a for_each_rtx callback.
13555         (record_truncated_values): New function.
13556         (combine_instructions): Call note_uses with record_truncated_values.
13557         Change name of check_conversion to check_promoted_subreg.
13558
13559 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
13560
13561         * doc/sourcebuild.texi: Document support for torture tests.
13562
13563 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
13564
13565         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
13566         to alternative 4 of operand 2.
13567
13568 2008-05-15  Richard Guenther  <rguenther@suse.de>
13569
13570         * tree-pass.h (current_pass): Declare.
13571         (get_pass_for_id): Likewise.
13572         * passes.c (passes_by_id, passes_by_id_size): New globals.
13573         (set_pass_for_id): New function.
13574         (get_pass_for_id): Likewise.
13575         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
13576         (execute_function_todo): Flush per function statistics.
13577         * toplev.c (compile_file): Init statistics.
13578         (general_init): Do early statistics initialization.
13579         (finalize): Finish statistics.
13580         * statistics.h (statistics_early_init): Declare.
13581         (statistics_init): Likewise.
13582         (statistics_fini): Likewise.
13583         (statistics_fini_pass): Likewise.
13584         (statistics_counter_event): Likewise.
13585         (statistics_histogram_event): Likewise.
13586         * statistics.c: New file.
13587         * Makefile.in (OBJS-common): Add statistics.o.
13588         (statistics.o): Add dependencies.
13589         * doc/invoke.texi (-fdump-statistics): Document.
13590
13591         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
13592         (insert): Likewise.
13593         (execute_pre): Use statistics_counter_event.
13594         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
13595         (substitute_and_fold): Increment it.  Use statistics_counter_event.
13596
13597 2008-05-15  Diego Novillo  <dnovillo@google.com>
13598
13599         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
13600
13601         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
13602         * tree-ssa-alias.c (new_type_alias): Remove references to
13603         sub-variables from comment.
13604         * tree-ssa-operands.c (swap_tree_operands): Likewise.
13605
13606 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
13607
13608         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
13609         attribute to 1 only for insertps alternative.
13610
13611 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
13612
13613         * config/bfin/bfin.md (loadbytes): New pattern.
13614         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
13615         (bfin_init_builtins): Initialize it.
13616         (bdesc_1arg): Add it.
13617
13618 2008-05-15  Sa Liu  <saliu@de.ibm.com>
13619
13620         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
13621         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
13622         * testsuite/lib/target-supports.exp: Add
13623         check_effective_target_fortran_integer_16.
13624
13625 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
13626
13627         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
13628         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
13629         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
13630         (TARGET_RETURN_IN_MEMORY): Define.
13631
13632 2008-05-15  Richard Guenther  <rguenther@suse.de>
13633
13634         PR middle-end/36244
13635         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
13636         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
13637         represent unmodifiable vars.
13638
13639 2008-05-15  Richard Guenther  <rguenther@suse.de>
13640
13641         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
13642         INDIRECT_REF and TARGET_MEM_REF.
13643         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
13644         TARGET_MEM_REF.
13645
13646 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
13647             H.J. Lu  <hongjiu.lu@intel.com>
13648
13649         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
13650         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
13651         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
13652         insn alternatives.  Add missing alternatives.
13653         (*vec_concatv2di_rex64_sse4_1): Likewise.
13654         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
13655         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
13656         Require TARGET_SSE.
13657
13658 2008-05-15  Richard Guenther  <rguenther@suse.de>
13659
13660         PR tree-optimization/36009
13661         PR tree-optimization/36204
13662         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
13663         (determine_invariantness_stmt): Record the loop a store is
13664         always executed in.
13665         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
13666         dependency.
13667
13668 2008-05-15  Richard Guenther  <rguenther@suse.de>
13669
13670         PR tree-optimization/34330
13671         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
13672         through the pointer will alias the SMT.
13673
13674 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
13675
13676         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
13677
13678 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
13679
13680         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
13681
13682 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
13683             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
13684
13685         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
13686         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
13687         (vashl_optab): New optab for vector/vector shifts.
13688         (vashr_optab): Ditto.
13689         (vlshr_optab): Ditto.
13690         (vrotl_optab): Ditto.
13691         (vrotr_optab): Ditto.
13692         (optab_subtype): New enum for optab_for_tree_code call.
13693         (optab_for_tree_code): Add enum optab_subtype argument.
13694
13695         * optabs.c (optab_for_tree_code): Take an additional argument to
13696         distinguish between a vector shift by a scalar and vector shift by
13697         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
13698         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
13699         vector shift by a vector.
13700         (expand_widen_pattern_expr): Pass additional argument to
13701         optab_for_tree_code.
13702
13703         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
13704         vrotl_optab, vrotr_optab.
13705
13706         * expr.c (expand_expr_real_1): Update calls to
13707         optab_for_tree_code to distinguish between vector shifted by a
13708         scalar and vector shifted by a vector.
13709         * tree-vectorizer.c (supportable_widening_operation): Ditto.
13710         (supportable_narrowing_operation): Ditto.
13711         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
13712         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
13713         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
13714         (vect_create_epilog_for_reduction): Ditto.
13715         (vectorizable_reduction): Ditto.
13716         (vectorizable_operation): Ditto.
13717         (vect_strided_store_supported): Ditto.
13718         (vect_strided_load_supported): Ditto.
13719         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
13720         * expmed.c (expand_shift): Ditto.
13721
13722         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
13723         scalar type.
13724         (ashr@var{m}3): Ditto.
13725         (vashl@var{m}3): Document new vector/vector shift standard name.
13726         (vashr@var{m}3): Ditto.
13727         (vlshr@var{m}3): Ditto.
13728         (vrotl@var{m}3): Ditto.
13729         (vrotr@var{m}3): Ditto.
13730
13731         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
13732         (PPERM_INVERT): Ditto.
13733         (PPERM_REVERSE): Ditto.
13734         (PPERM_REV_INV): Ditto.
13735         (PPERM_ZERO): Ditto.
13736         (PPERM_ONES): Ditto.
13737         (PPERM_SIGN): Ditto.
13738         (PPERM_INV_SIGN): Ditto.
13739         (PPERM_SRC1): Ditto.
13740         (PPERM_SRC2): Ditto.
13741
13742         * config/i386/sse.md (mulv2di3): Add SSE5 support.
13743         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
13744         allows a memory operand to be the value being added, and split it
13745         to improve vectorization.
13746         (sse5_pmacsdqh_mem): Ditto.
13747         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
13748         (sse5_mulv2div2di3_high): Ditto.
13749         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
13750         (vec_pack_trunc_v4si): Ditto.
13751         (vec_pack_trunc_v2di): Ditto.
13752         (sse5_pcmov_<mode>): Remove code that tried to use use
13753         andps/andnps instead of pcmov.
13754         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
13755         pmacsdqh instructions.
13756         (vec_widen_smult_lo_v4si): Ditto.
13757
13758         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
13759         (PPERM_INVERT): Ditto.
13760         (PPERM_REVERSE): Ditto.
13761         (PPERM_REV_INV): Ditto.
13762         (PPERM_ZERO): Ditto.
13763         (PPERM_ONES): Ditto.
13764         (PPERM_SIGN): Ditto.
13765         (PPERM_INV_SIGN): Ditto.
13766         (PPERM_SRC1): Ditto.
13767         (PPERM_SRC2): Ditto.
13768         (ix86_expand_sse_movcc): Move the SSE5 test after the if
13769         true/false tests.
13770         (ix86_expand_int_vcond): If SSE5 generate all possible integer
13771         comparisons.
13772         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
13773         says ignore whether the last reference is a memory operand.
13774
13775 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
13776             Paolo Bonzini <bonzini at gnu dot org>
13777
13778         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
13779         shift patterns.
13780
13781         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
13782         (vlshr<mode>3): Rename from vlshr<mode>3.
13783         (vashr<mode>3): Rename from vashr<mode>3.
13784         (mulv4sf3): Change the names of vector shift patterns.
13785         (mulv4si3): Ditto.
13786         (negv4sf2): Ditt.
13787
13788         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
13789         shift insns.
13790
13791         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
13792         (SI_SHLHI): Ditto.
13793         (SI_SHL): Ditto.
13794         (SI_SHLI): Ditto.
13795         (SI_ROTH): Ditto.
13796         (SI_ROTHI): Ditto.
13797         (SI_ROT): Ditto.
13798         (SI_ROTI): Ditto.
13799         (SPU_RL_0): Ditto.
13800         (SPU_RL_1): Ditto.
13801         (SPU_RL_2): Ditto.
13802         (SPU_RL_3): Ditto.
13803         (SPU_RL_4): Ditto.
13804         (SPU_RL_5): Ditto.
13805         (SPU_RL_6): Ditto.
13806         (SPU_RL_7): Ditto.
13807         (SPU_SL_0): Ditto.
13808         (SPU_SL_1): Ditto.
13809         (SPU_SL_2): Ditto.
13810         (SPU_SL_3): Ditto.
13811         (SPU_SL_4): Ditto.
13812         (SPU_SL_5): Ditto.
13813         (SPU_SL_6): Ditto.
13814         (SPU_SL_7): Ditto.
13815
13816         * config/spu/spu.md (v): New iterator macro to add v for vector types.
13817         (floatunssidf2_internal): Change vector/vector shift names.
13818         (floatunsdidf2_internal): Ditto.
13819         (mulv8hi3): Ditto.
13820         (ashrdi3): Ditto.
13821         (ashrti3): Ditto.
13822         (cgt_df): Ditto.
13823         (cgt_v2df): Ditto.
13824         (dftsv): Ditto.
13825         (vashl<mode>3): Rename from ashl<mode>3.
13826         (vashr<mode>3): Rename from ashr<mode>3.
13827         (vlshr<mode>3): Rename from lshr<mode>3.
13828         (vrotl<mode>3): Rename from rotl<mode>3.
13829
13830 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
13831
13832         PR target/36224
13833         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
13834         multiply gives the wrong value when doing widening multiplies.
13835         (vec_widen_smult_lo_v4si): Ditto.
13836
13837 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
13838
13839         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
13840         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
13841         emit_library_call_value.
13842         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
13843         * tree.h (ECF_LIBCALL_BLOCK): Removed.
13844         * calls.c (initialize_argument_information, precompute_arguments,
13845         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
13846         (precompute_arguments): Removed flags parameter.
13847         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
13848
13849 2008-05-14  Richard Guenther  <rguenther@suse.de>
13850
13851         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
13852         Make sure to register the store if the use is a PHI_NODE.
13853
13854 2008-05-14  Olivier Hainque  <hainque@adacore.com>
13855
13856         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
13857         memory if the component is to be referenced in BLKmode according
13858         to get_inner_reference.
13859
13860 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
13861
13862         * calls.c (emit_library_call_value_1): Restore code clearing
13863         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
13864
13865 2008-05-14  Olivier Hainque  <hainque@adacore.com>
13866             Nicolas Roche  <roche@adacore.com>
13867
13868         * configure.ac: Add support for a "gcc_subdir" variable in
13869         config-lang.in, to denote a subdirectory where the language/GCC
13870         integration files are to be found.
13871         * configure: Regenerate.
13872
13873 2008-05-14  Ira Rosen  <irar@il.ibm.com>
13874
13875         PR tree-optimization/36098
13876         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
13877         value for the first load in the group in case of a gap.
13878         (vect_build_slp_tree): Check that there are no gaps in loads.
13879
13880 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
13881
13882         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
13883         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
13884         expand_copysign_bit, ): Change call to emit_no_conflict_block to
13885         emit_insn and remove unneeded code to construct extra args.
13886         (emit_no_conflict_block): Removed.
13887         * optabls.h: (emit_no_conflict_block): Removed.
13888         * cse.c (cse_extended_basic_block): Remove search for
13889         REG_NO_CONFLICT note.
13890         * global.c: Removed incorrect comment added in revision 117.
13891         * expr.c (convert_move): Change call to emit_no_conflict_block to
13892         emit_insn.
13893         * recog.c: Change comments so that they do not mention
13894         REG_NO_CONFLICT.
13895         * local_alloc.c (combine_regs): Removed last parameter.
13896         (no_conflict_p): Removed.
13897         (block_alloc): Removed note, no_conflict_combined_regno and set
13898         local vars. Removed all code to process REG_NO_CONFLICT blocks.
13899         (combine_regs): Removed already_dead and code to look for
13900         REG_NO_CONFLICT notes.
13901         * lower_subreg (remove_retval_note): Removed code to look for
13902         REG_NO_CONFLICT block.
13903         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
13904         (resolve_clobber): Remove code to process libcalls that have
13905         REG_NO_CONFLICT notes.
13906         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
13907         case.
13908         * combine.c (can_combine_p, distribute_notes):  Removed
13909         REG_NO_CONFLICT case.
13910         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
13911         to emit_insns.
13912         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
13913         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
13914         Ditto.
13915         * reg-notes.def (NO_CONFLICT): Removed.
13916
13917 2008-05-14  David S. Miller  <davem@davemloft.net>
13918
13919         * config/sparc/sparc.c (sparc_profile_hook): If
13920         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
13921         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
13922         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
13923
13924 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
13925
13926         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
13927
13928 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
13929
13930         PR target/36222
13931         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
13932         and op1 expansion before vector concat to have less live pseudos.
13933
13934 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
13935
13936         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
13937         ix86_expand_vector_set if supported.
13938
13939 2008-05-13  Diego Novillo  <dnovillo@google.com>
13940             Kenneth Zadeck  <zadeck@naturalbridge.com>
13941
13942         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
13943
13944         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
13945         phinodes_print_statistics, init_ssanames, fini_ssanames,
13946         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
13947         release_ssa_name, release_defs, replace_ssa_name_symbol,
13948         ssanames_print_statistics): Move ...
13949         * tree-flow.h: ... here.
13950         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
13951         Use FN instead of cfun.
13952         (make_ssa_name_fn): Rename from make_ssa_name.
13953         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
13954         * tree-flow-inline.h (make_ssa_name): Move from
13955         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
13956         * omp-low.c (expand_omp_parallel):
13957         * tree-flow-inline.h (redirect_edge_var_map_result):
13958         * tree-ssa.c (init_tree_ssa): Add argument FN.
13959         Use it instead of cfun.  Update all users.
13960
13961 2008-05-13  Tom Tromey  <tromey@redhat.com>
13962
13963         PR preprocessor/22168:
13964         * doc/cpp.texi (Top): Update menu.
13965         (Alternatives to Wrapper #ifndef): New node.
13966         (Other Directives): Document deprecation.
13967         (Obsolete Features): Remove menu.
13968         (Assertions): Merge node into Obsolete Features.
13969         (Obsolete once-only headers): Move earlier; rename to Alternatives
13970         to Wrapper #ifndef.
13971         * doc/cppopts.texi: Update.
13972         * c.opt (Wdeprecated): Enable for C and ObjC.
13973         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
13974         (C++ Dialect Options): Move -Wno-deprecated from here to...
13975         (Warning Options): ... here.
13976
13977 2008-05-13  Richard Guenther  <rguenther@suse.de>
13978
13979         PR middle-end/36227
13980         * fold-const.c (fold_sign_changed_comparison): Do not allow
13981         changes in pointer-ness.
13982
13983 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
13984
13985         PR target/24713
13986         * config/sh/sh.c (sh_expand_prologue): Don't clear
13987         RTX_FRAME_RELATED_P for push insns.
13988
13989 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
13990
13991         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
13992
13993 2008-05-12  Anatoly Sokolov <aesok@post.ru>
13994
13995         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
13996         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
13997         Use 'machine->is_leaf' instead of 'leaf_func_p'.
13998
13999 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
14000
14001         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
14002         (*vec_concatv4sf_sse): This.
14003         (*sse2_concatv2si): Renamed to ...
14004         (*vec_concatv2si_sse2): This.
14005         (*sse1_concatv2si): Renamed to ...
14006         (*vec_concatv2si_sse): This.
14007         (*vec_concatv2di_rex): Renamed to ...
14008         (*vec_concatv2di_rex64): This.
14009         (*vec_concatv2si_sse4_1): New.
14010         (*vec_concatv2di_rex64_sse4_1): Likewise.
14011
14012 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
14013
14014         PR rtl-optimization/36111
14015         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
14016         that was created for swappable operands.
14017
14018 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
14019
14020         PR ada/36001
14021         * Makefile.in: Substitute GNATMAKE and GNATBIND.
14022         * configure.ac: Add call to ACX_PROG_GNAT.
14023
14024 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
14025
14026         * optc-gen.awk: Fix comment typo.
14027
14028 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
14029
14030         * pretty-print.c (pp_integer_with_precision): Use
14031         HOST_LONG_LONG_FORMAT.
14032
14033 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
14034
14035         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
14036
14037 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
14038
14039         * config/i386/i386.c (bdesc_ptest): Removed.
14040         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
14041         (bdesc_args): Add __builtin_ia32_ptestz128,
14042         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
14043         (ix86_init_mmx_sse_builtins): Updated.
14044         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
14045         (ix86_expand_builtin): Updated.
14046
14047 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
14048
14049         * tree-cfg.c (valid_fixed_convert_types_p): New function.
14050         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
14051
14052 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
14053
14054         * value-prof.c (interesting_stringop_to_profile): Do not
14055         return early for BUILT_IN_MEMPCPY.
14056
14057 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
14058
14059         * calls.c (expand_call): Don't use callgraph to increase
14060         preferred_stack_boundary.
14061
14062         * cgraph.h (cgraph_rtl_info): Use unsigned on
14063         preferred_incoming_stack_boundary.
14064
14065         * final.c (rest_of_clean_state): Use unsigned on
14066         preferred_stack_boundary.
14067
14068 2008-05-09  Tom Tromey  <tromey@redhat.com>
14069
14070         PR preprocessor/22231:
14071         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
14072         proceeding.
14073
14074 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
14075
14076         PR tree-optimization/36129
14077         * tree-ssa-ccp.c: Include value-prof.h.
14078         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
14079         built-in function was folded to a constant.
14080         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
14081
14082 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
14083             Sebastian Pop  <sebastian.pop@amd.com>
14084
14085         * tree-scalar-evolution.c: Document instantiate_scev.
14086         (instantiate_parameters_1): Renamed instantiate_scev_1.
14087         Don't use the same loop for instantiation_loop and evolution_loop.
14088         (instantiate_scev): New.
14089         (instantiate_parameters): Moved...
14090         (resolve_mixers): Update call to instantiate_scev_1 to pass the
14091         same loop twice.  Maintains the semantics for this function.
14092         * tree-scalar-evolution.h (instantiate_scev): Declare.
14093         (instantiate_parameters): ...here.  Now static inline.
14094         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
14095         instead of resolve_mixers.
14096
14097 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
14098
14099         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
14100
14101 2008-05-09  Tomas Bily  <tbily@suse.cz>
14102
14103         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
14104         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
14105         * tree-ssa-structalias.c (get_constraint_for): Likewise.
14106         * c-common.c (c_common_truthvalue_conversion): Likewise.
14107         * tree-object-size.c (compute_object_offset): Likewise.
14108         * tree-inline.c (estimate_num_insns_1): Likewise.
14109         * varasm.c (const_hash_1, compare_constant, copy_constant)
14110         (compute_reloc_for_constant, output_addressed_constants)
14111         (initializer_constant_valid_p): Likewise.
14112         * c-omp.c (check_omp_for_incr_expr): Likewise.
14113         * gimplify.c (gimplify_expr): Likewise.
14114         * c-typeck.c (c_finish_return): Likewise.
14115         * tree-vectorizer.c (supportable_widening_operation)
14116         (supportable_narrowing_operation): Likewise.
14117         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
14118         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
14119         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
14120         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
14121         (descr_info_loc): Likewise.
14122         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
14123         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
14124         (fold_unary): Likewise.
14125         * builtins.c (get_pointer_alignment): Likewise.
14126         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
14127         (instantiate_parameters_1): Likewise.
14128         * tree.c (expr_align, stabilize_reference): Likewise.
14129         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
14130         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
14131         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
14132         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
14133         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
14134         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
14135         Likewise.
14136         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
14137         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
14138         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
14139         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
14140         (forward_propagate_comparison)
14141         (tree_ssa_forward_propagate_single_use_vars): Likewise.
14142         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
14143         * emit-rtl.c (component_ref_for_mem_expr)
14144         (set_mem_attributes_minus_bitpos): Likewise.
14145         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
14146         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
14147         Likewise.
14148         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
14149         (build_function_call, pointer_diff, build_compound_expr)
14150         (c_finish_return): Likewise.
14151         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
14152         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
14153         Likewise.
14154         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
14155         * expr.c (is_aligning_offset): Likewise.
14156         * tree-ssa-alias.c (is_escape_site): Likewise.
14157         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
14158         (check_all_va_list_escapes): Likewise.
14159         * tree-ssa-loop-ivopts.c (determine_base_object)
14160         (determine_common_wider_type): Likewise.
14161         * dojump.c (do_jump): Likewise.
14162         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
14163         * tree-gimple.c (is_gimple_cast): Likewise.
14164         * fold-const.c (decode_field_reference, )
14165         (fold_sign_changed_comparison, fold_unary, fold_comparison)
14166         (fold_binary): Likewise.
14167         * tree-ssa-alias-warnings.c (find_alias_site_helper)
14168         (already_warned_in_frontend_p): Likewise.
14169         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
14170         * tree.c (really_constant_p, get_unwidened): Likewise.
14171         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
14172         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
14173         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
14174         Likewise.
14175         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
14176         CONVERT_EXPR_P.
14177         (CONVERT_EXPR_P): Define.
14178         (CASE_CONVERT): Define.
14179
14180 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
14181
14182         PR middle-end/36117
14183         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
14184         (delete_unmarked_insns): When deleting a call, call
14185         delete_unreachable_blocks.
14186         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
14187         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
14188
14189 2008-05-08  Richard Guenther  <rguenther@suse.de>
14190
14191         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
14192         (-ftree-salias): Likewise.
14193         (salias-max-implicit-fields): Remove param documentation.
14194         (salias-max-array-elements): Likewise.
14195         * tree-pass.h (pass_create_structure_vars): Remove.
14196         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
14197         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
14198         * tree-ssa-alias.c (create_structure_vars): Remove.
14199         (gate_structure_vars): Likewise.
14200         (pass_create_structure_vars): Likewise.
14201         (gate_build_alias): Likewise.
14202         (pass_build_alias): Adjust to run always and dump the function.
14203         * common.opt (ftree-salias): Hide.
14204         * passes.c (init_optimization_passes): Remove
14205         pass_create_structure_vars, adjust comment.
14206         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
14207         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
14208         * opts.c (decode_options): Do not set flag_tree_salias.
14209         (common_handle_option): Add OPT_ftree_salias to the backward
14210         compatibility section.
14211
14212 2008-05-08  Richard Guenther  <rguenther@suse.de>
14213
14214         * tree-flow-inline.h (var_can_have_subvars): Move ...
14215         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
14216         * tree-flow.h (var_can_have_subvars): Remove.
14217         (push_fields_onto_fieldstack): Remove.
14218         (sort_fieldstack): Likewise.
14219         (struct fieldoff): Move ...
14220         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
14221         alias_set and base_for_components fields.
14222         (sort_fieldstack): Make static.
14223         (push_fields_onto_fieldstack): Likewise.  Remove code that
14224         handles anything but RECORD_TYPEs.  Remove alias_set and
14225         base_for_components handling.
14226         (create_variable_info_for): Adjust.
14227
14228 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
14229
14230         * common.opt (Wframe-larger-than=): Shorten the help message
14231         to one line.
14232         * doc/invoke.texi (Wframe-larger-than=): Add more description.
14233
14234 2008-05-08  Rafael Espíndola  <espindola@google.com>
14235
14236         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
14237         trap.
14238         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
14239         trap and that both operands are gimple values.
14240         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
14241         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
14242         is a fp operation.
14243
14244 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
14245
14246         * read-rtl.c (join_c_conditions): Return the first string if the
14247         two strings are equal.
14248
14249 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
14250
14251         * gensupport.h (pred_data): Add a "num_codes" field.
14252         (add_predicate_code): Declare.
14253         * gensupport.c (add_predicate_code): New function.
14254         (std_pred_table): Add an "allows_const_p" field.
14255         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
14256         Remove the (incomplete) list of such codes from the codes field.
14257         (init_predicate_table): Use add_predicate_code.  Add all
14258         RTX_CONST_OBJs if allows_const_p is true.
14259         * genrecog.c (process_define_predicate): Use add_predicate_code.
14260
14261 2008-05-08  David Daney  <ddaney@avtrex.com>
14262             Richard Sandiford  <rsandifo@nildram.co.uk>
14263
14264         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
14265         special case of constant zero operands.
14266         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
14267         old and new values.  Special case constant zero values.
14268         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
14269         fails.
14270         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
14271         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
14272
14273 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
14274
14275         PR target/36090
14276         * simplify-rtx.c (simplify_plus_minus): Create CONST of
14277         similar RTX_CONST_OBJ before CONST_INT.
14278
14279 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
14280
14281         * stmt.c (expand_stack_restore): Change sa mode if needed.
14282
14283 2008-05-08  Richard Guenther  <rguenther@suse.de>
14284
14285         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
14286         return type to bool.
14287         (ix86_sol10_return_in_memory): Likewise.
14288         (ix86_i386elf_return_in_memory): Likewise.
14289         (ix86_i386interix_return_in_memory): Likewise.
14290         * config/i386/i386.c (ix86_return_in_memory): Likewise.
14291         (ix86_sol10_return_in_memory): Likewise.
14292         (ix86_i386elf_return_in_memory): Likewise.
14293         (ix86_i386interix_return_in_memory): Likewise.
14294
14295 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
14296
14297         PR bootstrap/36180
14298         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
14299         fndecl argument.
14300         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
14301         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
14302         declared in front.
14303
14304 2008-05-08  Richard Guenther  <rguenther@suse.de>
14305
14306         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
14307         * tree-data-ref.h (struct dr_alias): Remove subvars field.
14308         (DR_SUBVARS): Remove.
14309         * tree-dfa.c (dump_subvars_for): Remove.
14310         (debug_subvars_for): Likewise.
14311         (dump_variable): Do not dump subvars.
14312         (remove_referenced_var): Do not remove subvars.
14313         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
14314         (lookup_subvars_for_var): Remove.
14315         (get_subvars_for_var): Likewise.
14316         (get_subvars_at): Likewise.
14317         (get_first_overlapping_subvar): Likewise.
14318         (overlap_subvar): Likewise.
14319         * tree-flow.h (subvar_t): Remove.
14320         (struct var_ann_d): Remove subvars field.
14321         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
14322         argument.  Remove special handling of SFTs.
14323         (compute_tag_properties): Likewise.
14324         (set_initial_properties): Likewise.
14325         (compute_call_clobbered): Likewise.
14326         (count_mem_refs): Likewise.
14327         (compute_memory_partitions): Likewise.
14328         (compute_flow_insensitive_aliasing): Likewise.
14329         (setup_pointers_and_addressables): Likewise.
14330         (new_type_alias): Likewise.
14331         (struct used_part): Remove.
14332         (used_portions): Likewise.
14333         (struct used_part_map): Likewise.
14334         (used_part_map_eq): Likewise.
14335         (used_part_map_hash): Likewise.
14336         (free_used_part_map): Likewise.
14337         (up_lookup): Likewise.
14338         (up_insert): Likewise.
14339         (get_or_create_used_part_for): Likewise.
14340         (create_sft): Likewise.
14341         (create_overlap_variables_for): Likewise.
14342         (find_used_portions): Likewise.
14343         (create_structure_vars): Likewise.
14344         * tree.def (STRUCT_FIELD_TAG): Remove.
14345         * tree.h (MTAG_P): Adjust.
14346         (struct tree_memory_tag): Remove base_for_components and
14347         unpartitionable flags.
14348         (struct tree_struct_field_tag): Remove.
14349         (SFT_PARENT_VAR): Likewise.
14350         (SFT_OFFSET): Likewise.
14351         (SFT_SIZE): Likewise.
14352         (SFT_NONADDRESSABLE_P): Likewise.
14353         (SFT_ALIAS_SET): Likewise.
14354         (SFT_UNPARTITIONABLE_P): Likewise.
14355         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
14356         (union tree_node): Remove sft field.
14357         * alias.c (get_alias_set): Remove special handling of SFTs.
14358         * print-tree.c (print_node): Remove handling of SFTs.
14359         * tree-dump.c (dequeue_and_dump): Likewise.
14360         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
14361         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
14362         * tree-predcom.c (set_alias_info): Do not set subvars.
14363         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
14364         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
14365         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
14366         (add_vars_for_offset): Remove.
14367         (add_virtual_operand): Remove special handling of SFTs.
14368         (add_call_clobber_ops): Likewise.
14369         (add_call_read_ops): Likewise.
14370         (get_asm_expr_operands): Likewise.
14371         (get_modify_stmt_operands): Likewise.
14372         (get_expr_operands): Likewise.
14373         (add_to_addressable_set): Likewise.
14374         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
14375         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
14376         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
14377         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
14378         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
14379         (tree_node_structure): Likewise.
14380         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
14381         handling of SFTs.
14382         (find_what_p_points_to): Likewise.
14383
14384 2008-05-08  Sa Liu  <saliu@de.ibm.com>
14385
14386         * config/spu/spu.md: Fixed subti3 pattern.
14387
14388 2008-05-08  Richard Guenther  <rguenther@suse.de>
14389
14390         PR middle-end/36154
14391         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14392         sure to create a representative for trailing arrays for PTA.
14393
14394 2008-05-08  Richard Guenther  <rguenther@suse.de>
14395
14396         PR middle-end/36172
14397         * fold-const.c (operand_equal_p): Two objects which types
14398         differ in pointerness are not equal.
14399
14400 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
14401
14402         * calls.c (compute_argument_block_size): Add argument tree fndecl.
14403         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
14404         (emit_library_call_value_1): Add new variable fndecl initialized by
14405         NULL_TREE. It should be the decl type of orgfun, but this information
14406         seems not to be available here, so it uses the default calling abi.
14407         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
14408         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
14409         by TARGET_RETURN_IN_MEMORY.
14410         * config/i386/i386-interix.h: Likewise.
14411         * config/i386/i386.h: Likewise.
14412         * config/i386/i386elf.h: Likewise.
14413         * config/i386/ptx4-i.h: Likewise.
14414         * config/i386/sol2-10.h: Likewise.
14415         * config/i386/sysv4.h: Likewise.
14416         * config/i386/vx-common.h: Likewise.
14417         * config/cris/cris.h: Removed #if 0 clause.
14418         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
14419         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
14420         argument.
14421         (ix86_sol10_return_in_memory): Likewise.
14422         (ix86_i386elf_return_in_memory): New.
14423         (ix86_i386interix_return_in_memory): New.
14424         * config/mt/mt-protos.h (mt_return_in_memory): New.
14425         * config/mt/mt.c: Likewise.
14426         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
14427         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
14428         * config/bfin/bfin.h: Likewise.
14429         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
14430         argument.
14431         * config/bfin/bfin.c: Likewise.
14432         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
14433         * config/alpha/unicosmk.h: Likewise.
14434         * config/i386/cygming.h: Likewise.
14435         * config/iq2000/iq2000.h: Likewise.
14436         * config/mips/mips.h: Likewise.
14437         * config/mn10300/mn10300.h: Likewise.
14438         * config/rs6000/rs6000.h: Likewise.
14439         * config/score/score.h: Likewise.
14440         * config/spu/spu.h: Likewise.
14441         * config/v850/v850.h: Likewise.
14442         * defaults.h: Likewise.
14443         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
14444         * expr.c (emit_block_move): Adjust use of
14445         OUTGOING_REG_PARM_STACK_SPACE.
14446         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
14447         OUTGOING_REG_PARM_STACK_SPACE.
14448         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
14449
14450 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
14451
14452         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
14453         on OMP_RETURN for OMP_FOR.
14454
14455         PR debug/35896
14456         * dwarf2out.c (dw_expand_expr, common_check): Removed.
14457         (fortran_common): New function.
14458         (gen_variable_die): Call fortran_common instead of common_check,
14459         adjust for it returning tree instead of rtx.  Formatting.
14460
14461 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
14462
14463         PR rtl/7335
14464         PR rtl/33826
14465         * see.c (see_copy_insn): Copy new pure const attributes for new call.
14466         * c-decl.c (merge_decls): Ditto.
14467         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
14468         to RTL_CONST_OR_PURE_CALL_P.
14469         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
14470         Initialized DECL_LOOPING_CONST_PURE.
14471         (process_call_operands): Set tree_side_effects properly.
14472         * tree.h (TREE_READONLY_DECL_P): Removed.
14473         (DECL_IS_PURE): Renamed to DECL_PURE_P.
14474         (DECL_LOOPING_OR_CONST_P): New macro.
14475         (struct tree_function_decl): Added looping_const_or_pure_p.
14476         (ECF_*) Renumbered.
14477         (ECF_LOOPING_OR_CONST_P): New macro.
14478         * rtlanal.c (pure_const_p): Removed.
14479         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
14480         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
14481         to RTL_CONST_CALL_P.
14482         * ipa-pure-const.c (pure_const_state_e): Added looping field.
14483         (check_decl, check_tree, check_call, scan_function): Initialize
14484         looping.
14485         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
14486         (static_execute): Set looping true for recursive functions.
14487         Undo setting state to IPA_NEITHER for recursive functions.
14488         * cse.c (cse_insn):
14489         * ifcvt.c (noce_can_store_speculate_p): Changed
14490         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
14491         RTL_CONST_OR_PURE_CALL_P.
14492         * dse.c (scan_insn): Ditto.
14493         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
14494         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
14495         RTL_CONST_OR_PURE_CALL_P.
14496         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
14497         pure_call_p to RTL_CONST_CALL_P.
14498         * gimplify.c (gimplify_call_expr): Clear side effects for
14499         non-looping pure and constant calls.
14500         * calls.c (emit_call_1): Set rtl flags from ecf flags.
14501         (flags_from_decl_or_type): Set ecf flags from decl flags.
14502         (initialize_argument_information): Turn off
14503         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
14504         Change const to pure if callee_copies is true rather than just
14505         turning off const.
14506         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
14507         way of marking pure calls.
14508         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
14509         Remove hack that was supposed to fix pr7335 and remove old
14510         way of marking pure calls.
14511         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
14512         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
14513         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
14514         RTL_CONST_OR_PURE_CALL_P.
14515         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
14516         * loop-invariant.c (find_exits, find_invariant_bb): Changed
14517         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
14518         * sched-deps.c (schedule_analyze): Ditto.
14519         * rtl.h (struct rtx_def): Use call field, unchanging field, and
14520         return_val field of calls to represent pure and const function info.
14521         (CONST_OR_PURE_CALL_P): Deleted macro.
14522         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
14523         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
14524         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
14525         TREE_READONLY.
14526         * tree-optimize.c (execute_fixup_cfg): Added test for
14527         ECF_LOOPING_CONST_OR_PURE.
14528         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
14529         DECL_PURE_P.
14530         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
14531         effects for looping pure or const calls.
14532         (verify_gimple_expr): Added verification code.
14533         * config/alpha/alpha.c (alpha_legitimize_address,
14534         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
14535         RTL_CONST_CALL_P.
14536         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
14537         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
14538         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
14539         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
14540         RTL_CONST_OR_PURE_CALL_P.
14541         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
14542         and const calls to be deleted.
14543
14544 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
14545
14546         PR target/35714
14547         * config/i386/mmx.md (mmx_subv2sf3): New expander.
14548         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
14549         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
14550         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
14551         to handle nonimmediate operands.
14552         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
14553         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
14554         to handle nonimmediate operands.
14555         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
14556         (mmx_pmulhrwv4hi3): New expander.  Use
14557         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14558         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
14559         (sse2_umulv1siv1di3): New expander.  Use
14560         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14561         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
14562         (mmx_eq<mode>3): New expander.  Use
14563         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14564         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
14565         (mmx_uavgv8qi3): New expander.  Use
14566         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14567         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
14568         (mmx_uavgv4hi3): New expander.  Use
14569         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14570
14571         * config/i386/sse.md
14572         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
14573         to handle nonimmediate operands.
14574         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
14575         to handle nonimmediate operands.
14576         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
14577         to handle nonimmediate operands.
14578         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
14579         to handle nonimmediate operands.
14580         (sse2_unpckhpd_exp): New expander.  Use
14581         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14582         (sse2_unpcklpd_exp): New expander.  Use
14583         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14584         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
14585         to handle nonimmediate operands.
14586         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
14587         to handle nonimmediate operands.
14588         (*sse2_<plusminus_insn><mode>3): Rename from
14589         sse2_<plusminus_insn><mode>3 insn pattern.
14590         (sse2_<plusminus_insn><mode>3): New expander.  Use
14591         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14592         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
14593         (sse2_umulv2siv2di3): New expander.  Use
14594         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14595         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
14596         (sse4_1_mulv2siv2di3): New expander.  Use
14597         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14598         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
14599         (sse2_pmaddwd): New expander.  Use
14600         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14601         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
14602         (sse2_eq<mode>3): New expander.  Use
14603         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14604         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
14605         (sse4_1_eqv2di3): New expander.  Use
14606         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14607         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
14608         (sse2_uavgv16qi3): New expander.  Use
14609         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14610         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
14611         (sse2_uavgv16qi3): New expander.  Use
14612         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14613         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
14614         (sse2_uavgv8hi3): New expander.  Use
14615         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14616         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
14617         (ssse3_pmulhrswv8hi3): New expander.  Use
14618         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14619         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
14620         (ssse3_pmulhrswv4hi3): New expander.  Use
14621         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14622
14623         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
14624         (<sse>_vmmul<mode>3): Ditto.
14625         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
14626         (divv2df3): Ditto.
14627         (ssse3_pmaddubsw128): Use register_operand for operand 1.
14628         (ssse3_pmaddubsw): Ditto.
14629
14630         * config/i386/i386.c (struct_builtin_description)
14631         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
14632         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
14633         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
14634         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
14635         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
14636         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
14637         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
14638         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
14639         (ix86_fixup_binary_operands): Assert that src1
14640         and src2 must have the same mode when swapped.
14641         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
14642         and ix86_binary_operator_ok.  Do not force operands in registers
14643         when optimizing.
14644
14645 2008-05-07  Jan Hubicka  <jh@suse.cz>
14646
14647         * cgraph.c (dump_cgraph_node): Update.
14648         * cgraph.h (cgraph_local_info): Break out inline summary.
14649         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
14650         hook.
14651         * ipa-inline (inline_summary): New accestor function.
14652         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
14653         cgraph_decide_inlining, compute_inline_parameters): Update.
14654         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
14655
14656 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
14657
14658         Cleanup ColdFire scheduling support and add V4 pipeline model.
14659
14660         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
14661         (define_attr cpu): Add cfv4 value.
14662         (define_attr type, define_attr type1): Merge into a single 'type'
14663         attribute.  Update all uses.
14664         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
14665         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
14666         Update all uses.
14667         (define_attr opx_mem, define_attr opy_mem): Remove.
14668         (define_attr op_mem): Clean up, update comment.
14669         (define_attr size): Use specific values instead of general int.
14670         (define_attr guess, define_attr split): Remove.  Update all uses.
14671         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
14672         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
14673         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
14674         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
14675         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
14676         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
14677         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
14678         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
14679         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
14680         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
14681         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
14682         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
14683         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
14684         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
14685         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
14686         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
14687         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
14688         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
14689         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
14690         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
14691         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
14692         Update or set attributes.
14693         (stack_tie): New fake instruction.
14694
14695         * config/m68k/m68k.h (TUNE_CFV4): New macro.
14696         (m68k_sched_attr_size): Update declaration.
14697         (m68k_sched_attr_type2): Remove.
14698         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
14699         Declare new bypass predicates.
14700
14701         * config/m68k/m68k.c (m68k_sched_issue_rate,
14702         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
14703         implementations.
14704         (TARGET_SCHED_ISSUE_RATE,
14705         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
14706         (override_options): Handle scheduling for ColdFire V4 core.
14707         (m68k_expand_prologue): Emit stack_tie.
14708         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
14709         'OP_TYPE_FPN'.  Update all uses.
14710         (sched_guess_p): Remove.
14711         (sched_address_type): Handle symbolic addresses.
14712         (sched_get_operand): New static function.
14713         (sched_operand_type): Merge into sched_attr_op_type.
14714         (sched_attr_op_type): Handle FP registers, handle quick constants,
14715         update.
14716         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
14717         (m68k_sched_attr_size): Update.  Move logic to ...
14718         (sched_get_attr_size_int): New static function.
14719         (sched_get_opxy_mem_type): New static function.
14720         (m68k_sched_attr_op_mem): Update.
14721         (m68k_sched_attr_type2): Remove.
14722         (sched_cfv4_bypass_data): New static variable.
14723         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
14724         (m68k_sched_issue_rate): Implement scheduler hook.
14725         (struct _sched_ib: enabled_p): New field.
14726         (m68k_sched_variable_issue): Update.  Handle V4.
14727         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
14728         sched_dump_class_func_t, sched_dump_split_class,
14729         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
14730         sched_dump_dfa_class, m68k_sched_dump): Remove.
14731         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
14732         hook.
14733         (m68k_sched_init_global): Remove statisctics dumping, introduce
14734         sanity check that all instructions have pipeline reservations.  Handle
14735         ColdFire V4 core.
14736         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
14737         Handle ColdFire V4 core.
14738         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
14739         New static functions.
14740         (m68k_sched_address_bypass_p): New bypass predicate.
14741         (sched_get_indexed_address_scale): New static function.
14742         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
14743
14744         * cf.md: Update comments.
14745         (define_attr type2): Remove.  Use 'type' attribute instead.
14746         Update all uses.
14747         (cf_ib): Rename to cfv123_ib.  Update all uses.
14748         (cf_oep): Rename to cfv123_oep.  Update all uses.
14749         (cf_chr): Rename to cfv123_chr.  Update all uses.
14750         (cf_mem): Rename to cfv123_mem.  Update all uses.
14751         (cf_mac): Move to more appropriate place.
14752         (cfv123_guess): New automaton and cpu_unit.
14753         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
14754         Update uses of 'size' attribute.  Handle before reload scheduling.
14755         (cfv123_guess): New dummy reservation for unhandled instructions.
14756         (cfv4_*): Pipeline description of ColdFire V4 core.
14757         (ignore): New reservation to handle 'ignore' type.
14758
14759 2008-05-07  Ian Lance Taylor  <iant@google.com>
14760
14761         PR middle-end/36013
14762         * gimplify.c (find_single_pointer_decl_1): Don't look through
14763         indirections.
14764         (find_single_pointer_decl): Adjust comments.
14765
14766 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
14767
14768         PR middle-end/36137
14769         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
14770         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
14771
14772         PR middle-end/36106
14773         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
14774         integral type rather than floating point, then VIEW_CONVERT_EXPR
14775         to the floating point type.
14776
14777 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
14778
14779         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
14780         TFmode op0 to register.
14781
14782 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
14783
14784         * c-decl.c (grokdeclarator): Comment typo.
14785
14786 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
14787
14788         * tree-flow.h: Remove prototype for computed_goto_p.
14789         * tree-cfg.c (computed_goto_p): Make static.
14790
14791 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
14792
14793         PR target/35657
14794         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
14795         (contains_aligned_value_p): This.  Handle _Decimal128.
14796         (ix86_function_arg_boundary): Only align _Decimal128 to its
14797         natural boundary and handle it properly.
14798
14799 2008-05-06  Martin Jambor  <mjambor@suse.cz>
14800
14801         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
14802         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
14803         (ipcp_method_set_orig_node): Removed.
14804         (ipcp_cval_get_cvalue_type): Removed.
14805         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
14806         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
14807         (ipcp_cval_set_cvalue_type): Removed.
14808         (ipcp_cval_get_cvalue): Removed.
14809         (ipcp_cval_set_cvalue): Removed.
14810         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
14811         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
14812         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
14813         (ipcp_cval_meet): Renamed to ipa_lattice_meet
14814         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
14815         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
14816         (ipcp_get_ith_lattice): Changed parameters.
14817         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
14818         (ipcp_lattice_from_jfunc): Changed parameters.
14819         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
14820         (ipcp_method_cval_print): Added temporary variable info.
14821         (ipcp_redirect): Removed already unused local variable caller.
14822         (ipcp_redirect): New temporary variable orig_callee_info
14823         (ipcp_redirect): Removed newly unused local variable callee.
14824         (ipcp_redirect): Removed (a bit confusing) local variable type.
14825         (ipcp_insert_stage): Added local variable info.
14826         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
14827         renamed too
14828         (ipcp_formal_create): Removed.
14829         (ipcp_method_cval_set): Removed.
14830         (ipcp_propagate_stage): Renamed lattice variables.
14831         (ipcp_method_cval_set_cvalue_type): Removed.
14832         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
14833         (ipcp_print_all_lattices): Changed printed strings to refer to
14834         lattices rather than cvals.
14835         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
14836         (ipcp_propagate_const): Changed formal parameters.
14837         (build_const_val): Changed formal parameters.
14838         (ipcp_insert_stage): Removed useless variable cvalue
14839         (build_const_val): Changed formal parameters.
14840         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
14841         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
14842         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
14843         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
14844         (ipcp_print_func_profile_counts): Changed string from "method" to
14845         "function"
14846         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
14847         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
14848         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
14849         (ipcp_structures_print): Renamed to ipcp_print_all_structures
14850         (ipcp_profile_print): Renamed to ipcp_print_profile_data
14851         (ipcp_lat_is_const): Changed parameters and made inline.
14852         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
14853         (ipcp_redirect): Renamed to ipcp_need_redirect_p
14854         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
14855         the predicate condition directly
14856         (ipcp_propagate_stage): Added local variable args. Removed local
14857         variable callee.  (Both are mere code simplifications.)
14858         (ipcp_method_dont_insert_const): Renamed to
14859         ipcp_node_not_modifiable_p.
14860         (ipcp_node_not_modifiable_p): Made inline.
14861         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
14862         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
14863         (ipcp_print_all_lattices): Removed variable cvalue
14864         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
14865         Updated comments.
14866
14867 2008-05-06  Olivier Hainque  <hainque@adacore.com>
14868
14869         * tree-sra.c (try_instantiate_multiple_fields): Early return
14870         if field has POINTER_TYPE.
14871
14872 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
14873
14874         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
14875         by using 'q' specifier for instruction.
14876         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
14877
14878 2008-05-06  Anatoly Sokolov <aesok@post.ru>
14879
14880         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
14881         Change mode of zero_extract from QImode to HImode.
14882         (sign bit tests peepholes): (Ditto.).
14883
14884 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
14885
14886         * config/i386/mmx.md: Remove double backslashes from asm templates.
14887         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
14888         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
14889         to handle nonimmediate operands.
14890         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
14891         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
14892         to handle nonimmediate operands.
14893         (*mmx_<code>v2sf3_finite): New insn pattern.
14894         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
14895         (mmx_<code>v2sf3): New expander.  Use
14896         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14897         (mmx_<plusminus_insn><mode>3): New expander.  Use
14898         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14899         (*mmx_<plusminus_insn><mode>3): New insn pattern.
14900         (mmx_add<mode>3): Removed.
14901         (mmx_ssadd<mode>3): Ditto.
14902         (mmx_usadd<mode>3): Ditto.
14903         (mmx_sub<mode>3): Ditto.
14904         (mmx_sssub<mode>3): Ditto.
14905         (mmx_ussub<mode>3): Ditto.
14906         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
14907         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
14908         to handle nonimmediate operands.
14909         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
14910         insn pattern.
14911         (mmx_smulv4hi3_highpart): New expander.  Use
14912         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14913         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
14914         insn pattern.
14915         (mmx_umulv4hi3_highpart): New expander.  Use
14916         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14917         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
14918         (mmx_<code>v4hi3): New expander.  Use
14919         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14920         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
14921         (mmx_<code>v8qi3): New expander.  Use
14922         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14923         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
14924         (mmx_<code><mode>3): New expander.  Use
14925         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
14926
14927 2008-05-05  Jan Hubicka  <jh@suse.cz>
14928
14929         PR tree-optimization/36118
14930         * passes.c (pass_init_dump_file): Fix dump header.
14931
14932 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14933
14934         PR middle-end/36141
14935         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
14936         VCE for function decls.
14937
14938 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
14939
14940         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
14941
14942 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
14943
14944         * config/i386/i386.md (sat_plusminus): New.
14945         (plusminus_insn): Likewise.
14946         (plusminus_mnemonic): Likewise.
14947         (addsub): Removed.
14948         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
14949         (*<addsub><mode>3_cc_overflow): Renamed to ...
14950         (*<plusminus_insn><mode>3_cc_overflow): This.
14951         (*<addsub>si3_zext_cc_overflow): Renamed to ...
14952         (*<plusminus_insn>si3_zext_cc_overflow): This.
14953
14954         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
14955         (<plusminus_insn><mode>3): This.
14956         (*<addsub><mode>3): Renamed to ...
14957         (*<plusminus_insn><mode>3): This.
14958         (<sse>_vm<addsub><mode>3): Renamed to ...
14959         (<sse>_vm<plusminus_insn><mode>3): This.
14960         (sse3_h<addsub>v4sf3): Renamed to ...
14961         (sse3_h<plusminus_insn>v4sf3): This.
14962         (sse3_h<addsub>v2df3): Renamed to ...
14963         (sse3_h<plusminus_insn>v2df3): This.
14964         (<plusminus_insn><mode>3): New.
14965         (*<plusminus_insn><mode>3): Likewise.
14966         (sse2_<plusminus_insn><mode>3): Likewise.
14967         (add<mode>): Removed.
14968         (*add<mode>3): Likewise.
14969         (sse2_ssadd<mode>3): Likewise.
14970         (sse2_usadd<mode>3): Likewise.
14971         (sub<mode>3): Likewise.
14972         (*sub<mode>3): Likewise.
14973         (sse2_sssub<mode>3): Likewise.
14974         (sse2_ussub<mode>3): Likewise.
14975
14976 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
14977
14978         * gthr-single.h: Add in required interface elements as per gthr.h.
14979         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
14980         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
14981         Generalize UNUSED macro.
14982         (__gthread_once): Add.
14983         (__gthread_key_create): Add.
14984         (__gthread_key_delete): Add.
14985         (__gthread_getspecific): Add.
14986         (__gthread_setspecific): Add.
14987
14988 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
14989
14990         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
14991         the same size types for the indirect reference on the rhs, then
14992         create a VCE.
14993
14994 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
14995
14996         * config/i386/i386.md
14997         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
14998         one insn template instead of template series.
14999         (*xordi_1_rex64): Ditto.
15000         (*xordi_2_rex64): Ditto.
15001
15002 2008-05-05  Ira Rosen  <irar@il.ibm.com>
15003
15004         PR tree-optimization/36119
15005         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
15006         in case of SLP.
15007
15008 2008-06-04  Jan Hubicka  <jh@suse.cz>
15009
15010         tree-optimization/36100
15011         * tree-pass.h (pass_O0_always_inline): Declare.
15012         * ipa-inline.c (inline_transform): Remove dead code.
15013         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
15014         pass_O0_always_inline): New.
15015         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
15016
15017 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
15018
15019         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
15020         mnemonic in this_param move for TARGET_64BIT.
15021
15022 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
15023
15024         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
15025         (*strmovsi_rex_1): Ditto.
15026         (*strsetsi_1): Ditto.
15027         (*strsetsi_rex_1): Ditto.
15028
15029         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
15030         adddicc expanders using SWI mode iterator.
15031
15032 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
15033
15034         PR target/36121
15035         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
15036         argument handling.
15037
15038 2008-05-04  David S. Miller  <davem@davemloft.net>
15039
15040         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
15041         (sparc*-*-linux*): Use linux.h in tm_file.
15042         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
15043         compiler defaulting to 32-bit.
15044         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
15045         no longer needed.
15046         * config/sparc/linux.h: Remove definitions now obtained
15047         properly from linux.h
15048         * config/sparc/linux64.h: Likewise.
15049         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
15050         don't want this setting for 32-bit builds in a biarch compiler.
15051         * doc/install.texi: Add sparc-linux to list of targets
15052         supporting --enable-targets=all.
15053
15054 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
15055
15056         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
15057
15058 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
15059
15060         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
15061         after V4SI_FTYPE_V8HI.
15062         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
15063         case V4SI_FTYPE_V2DF.
15064
15065 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
15066
15067         * doc/invoke.texi (max-flow-memory-locations): Removed.
15068         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
15069
15070 2008-05-03  Richard Guenther  <rguenther@suse.de>
15071
15072         PR middle-end/34973
15073         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
15074
15075 2008-05-02  David S. Miller  <davem@davemloft.net>
15076
15077         * config.gcc (need_64bit_hwint): Document libcpp dependency.
15078
15079 2008-05-02  Simon Baldwin <simonb@google.com>
15080
15081         PR bootstrap/36108
15082         * c-common.h (warn_array_subscript_range): Removed.
15083         * c-common.c (warn_array_subscript_range): Ditto.
15084         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
15085         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
15086
15087 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
15088
15089         * config/i386/i386.c (ix86_special_builtin_type): New.
15090         (bdesc_special_args): Likewise.
15091         (ix86_expand_special_args_builtin): Likewise.
15092         (ix86_init_mmx_sse_builtins): Updated.
15093         (ix86_expand_builtin): Updated.
15094         (ix86_expand_store_builtin): Removed.
15095         (ix86_expand_unop_builtin): Likewise.
15096
15097         * config/i386/mm3dnow.h (__v2sf): Moved to ...
15098         * config/i386/mmintrin.h (__v2sf): Here.
15099
15100         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
15101         const __v2sf.
15102         (_mm_loadl_pi): Likewise.
15103         (_mm_storeh_pi): Replace __v2si with __v2sf.
15104         (_mm_storel_pi): Likewise.
15105
15106         * doc/extend.texi: Correct __builtin_ia32_loadhps,
15107         __builtin_ia32_loadlps, __builtin_ia32_storehps,
15108         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
15109         __builtin_ia32_loadlpd.
15110
15111 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
15112
15113         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
15114         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
15115         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
15116         (ix86_init_mmx_sse_builtins): Updated.
15117         (ix86_expand_args_builtin): Likewise.
15118         (ix86_expand_builtin): Likewise.
15119         (ix86_expand_unop1_builtin): Renamed to ...
15120         (ix86_expand_unop_vec_merge_builtin): This.
15121
15122 2008-05-01  Jan Hubicka  <jh@suse.cz>
15123
15124         PR bootstrap/36100
15125         * ipa-inline.c (inline_generate_summary): Make static.
15126         (inline_transform): Do not call inlining at -O0; make static.
15127         * passes.c (execute_todo): Add sanity check.
15128         (execute_one_ipa_transform_pass): Execute proper flags.
15129
15130 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
15131
15132         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
15133         (DECL_NONADDRESSABLE_P): Likewise.
15134         * alias.c (record_component_aliases): Fix comment.
15135
15136 2008-05-01  Simon Baldwin <simonb@google.com>
15137
15138         * c-common.h (warn_array_subscript_range): New function.
15139         * c-common.c (warn_array_subscript_range): Ditto.
15140         * tree-vrp.c (check_array_ref): Corrected code to agree with
15141         comment, ignoring only arrays of size 0 or size 1.
15142         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
15143
15144 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
15145
15146         * config/i386/i386.c (ix86_builtin_type): Replace
15147         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
15148         (bdesc_args): Updated.
15149         (ix86_init_mmx_sse_builtins): Likewise.
15150         (ix86_expand_args_builtin): Likewise.
15151
15152         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
15153         with __v1di.
15154
15155         * doc/extend.texi: Correct __builtin_ia32_palignr.
15156
15157 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
15158
15159         PR target/36095
15160         * config/i386/i386.c (bdesc_crc32): Removed.
15161         (ix86_expand_crc32): Likewise.
15162         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
15163         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
15164         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
15165         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
15166         UINT_FTYPE_UINT_UCHAR.
15167         (bdesc_args): Updated. Add crc32 builtins.
15168         (ix86_init_mmx_sse_builtins): Updated.
15169         (ix86_expand_args_builtin): Updated to support subreg.
15170
15171         * doc/extend.texi: Correct __builtin_ia32_crc32di.
15172
15173 2008-05-01  Jan Hubicka  <jh@suse.cz>
15174
15175         * tree-pass.h (opt_pass): Add IPA_PASS.
15176         (varpool_node, cgraph_node): Forward declare.
15177         (ipa_opt_pass): Define.
15178         (pass_ipa_inline): Turn into ipa_opt_pass.
15179         (pass_apply_inline): Remove.
15180         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
15181         (apply_inline): Turn into ....
15182         (inline_transform): ... this one.
15183         (inline_generate_summary): New function.
15184         (pass_apply_inline): Remove.
15185         * function.h (ipa_opt_pass): Forward declare structure; typedef;
15186         vector.
15187         (struct function): Add ipa_transforms_to_apply.
15188         * passes.c (register_one_dump_file): Work on IPA_PASS.
15189         (init_optimization_passes): Remove pass_inline_parameters and
15190         pass_apply_inline.
15191         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
15192         (execute_one_pass) ... here; apply transforms when possible.
15193         (add_ipa_transform_pass, execute_ipa_summary_asses,
15194         execute_one_ipa_transform_pass): New.
15195         (execute_ipa_pass_list): Update for IPA_PASS type.
15196
15197 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
15198
15199         * config/i386/i386.c (ix86_builtin_type): Add
15200         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
15201         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
15202         (bdesc_args): Add SSE4a builtins.
15203         (ix86_init_mmx_sse_builtins): Updated.
15204         (ix86_expand_args_builtin): Likewise.
15205         (ix86_expand_builtin): Likewise.
15206
15207 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
15208
15209         * config/i386/i386.c (ix86_builtin_type): Add
15210         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
15211         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
15212         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
15213         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
15214         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
15215         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
15216         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
15217         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
15218         and DI_FTYPE_DI_DI_INT.
15219         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
15220         (ix86_init_mmx_sse_builtins): Updated.
15221         (ix86_expand_args_builtin): Likewise.
15222         (ix86_expand_builtin): Likewise.
15223         (ix86_expand_binop_imm_builtin): Removed.
15224
15225         * doc/extend.texi: Correct __builtin_ia32_palignr128.
15226
15227 2008-04-30  Richard Guenther  <rguenther@suse.de>
15228
15229         PR tree-optimization/32921
15230         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
15231
15232 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
15233
15234         * config/arm/arm.c (arm_unwind_emit): Use
15235         crtl->all_throwers_are_sibcalls instead of
15236         cfun->all_throwers_are_sibcalls.
15237         (arm_output_fn_unwind): Likewise.
15238         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
15239         instead of cfun->uses_pic_offset_table.
15240         (frv_expand_prologue): Likewise.
15241         (frv_frame_pointer_required): Likewise.
15242         (frv_expand_fdpic_call): Likewise.
15243         (frv_emit_movsi): Likewise.
15244         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
15245         cfun->returns_pcc_struct instead of
15246         current_function_returns_pcc_struct.
15247         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
15248         instead of cfun->calls_eh_return.
15249         (m32c_pushm_popm): Likewise.
15250         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
15251         "extern" declaration.
15252
15253 2008-04-30  Richard Guenther  <rguenther@suse.de>
15254
15255         PR tree-optimization/21636
15256         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
15257         constant address.
15258         (evaluate_stmt): Print the likely value.
15259         (ccp_visit_stmt): Avoid excessive vertical spacing.
15260
15261 2008-04-30  Rafael Espíndola  <espindola@google.com>
15262
15263         * builtins.c (fold_call_expr): Return realret.
15264         * tree-ssa-threadedge.c
15265         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
15266         __builtin_object_size.
15267
15268 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
15269
15270         * gcc.c (wrapper_string): New variable.
15271         (insert_wrapper): New function.
15272         (execute): New option -wrapper.
15273         * doc/invoke.texi (Overall Options): New driver option -wrapper.
15274
15275 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
15276
15277         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
15278         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
15279         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
15280         from...
15281         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
15282         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
15283         config/rs6000/e500crtres64gprctr.asm,
15284         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
15285         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
15286         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
15287         config/rs6000/e500crtsav64gprctr.asm,
15288         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
15289         config/rs6000/e500crtsavg64gprctr.asm: New files.
15290         * config/rs6000/t-ppccomm: Add build rules for new files.
15291         (LIB2FUNCS_STATIC_EXTRA): Add new files.
15292         * config/rs6000/t-netbsd: Add build rules for new files.
15293         (LIB2FUNCS_STATIC_EXTRA): New variable.
15294         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
15295         (CRTSAVRES_DEFAULT_SPEC): Likewise.
15296         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
15297
15298 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
15299
15300         * config/i386/i386.c (ix86_builtin_type): Add
15301         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
15302         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
15303         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
15304         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
15305         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
15306         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
15307         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
15308         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
15309         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
15310         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
15311         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
15312         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
15313         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
15314         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
15315         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
15316         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
15317         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
15318         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
15319         V1DI_FTYPE_V2SI_V2SI.
15320         (bdesc_2arg): Moved to ...
15321         (bdesc_args): Here.
15322         (ix86_init_mmx_sse_builtins): Updated.
15323         (ix86_expand_args_builtin): Updated.  Take a pointer
15324         to const struct builtin_description.  Handle comparison
15325         builtin functions.
15326         (ix86_expand_sse_compare): Take a new argument for swapping operands.
15327         (ix86_expand_builtin): Updated.
15328
15329         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
15330         (ssse3_pmaddubsw128): This.
15331         (ssse3_pmaddubswv4hi3): Renamed to ...
15332         (ssse3_pmaddubsw): This.
15333
15334         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
15335         (__builtin_ia32_packssdw128): Likewise.
15336         (__builtin_ia32_packuswb128): Likewise.
15337         (__builtin_ia32_pmaddubsw): Likewise.
15338         (__builtin_ia32_pmaddubsw128): Likewise.
15339
15340 2008-04-30  Richard Guenther  <rguenther@suse.de>
15341
15342         PR tree-optimization/14847
15343         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
15344         (recognize_bits_test): Use it.
15345         (recognize_single_bit_test): Likewise.
15346
15347 2008-04-30  Martin Jambor  <mjambor@suse.cz>
15348
15349         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
15350         instead of setting number of formal parameters to zero.
15351         (ipcp_init_stage): Do not set the number of actual parameters to zero
15352         either.
15353         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
15354         which are called with variable number of arguments.
15355         (ipcp_insert_stage): Explicitely skipping all nodes which are
15356         called with variable number of arguments.
15357         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
15358         number of parameters.
15359
15360         * ipa-prop.h (struct ipa_node_params): Added flag
15361         called_with_var_arguments
15362         (ipa_set_param_count): Added.  Changed sole setter to use it.
15363         (ipa_get_param_count): Added.  All readers of param_count
15364         converted to use it instead.
15365         (ipa_set_called_with_variable_arg): Added.
15366         (ipa_is_called_with_var_arguments): Added.
15367         (ipa_get_ith_param): Added.  All readers of param_decls converted
15368         to use it instead.
15369         (ipa_set_cs_argument_count): Added, sole writer to argument_count
15370         changed to use it.
15371         (ipa_get_cs_argument_count): Added, all readers of argument_count
15372         changed to cal it.
15373         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
15374         to use it.
15375
15376         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
15377         (struct ipcp_lattice): Renamed cval_type to type
15378         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
15379
15380         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
15381         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
15382         (ipcp_insert_stage): Changed the type of variable cvalue to tree
15383         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
15384         (build_const_val): Changed the type of parameter cvalue to tree
15385         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
15386         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
15387
15388         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
15389         constant
15390
15391         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
15392         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
15393         (ipa_add_method): Renamed to ipa_push_func_to_list
15394         (ipa_remove_method): Renamed to ipa_pop_func_from_list
15395         (ipa_callsite_param_count): Removed.
15396         (ipa_callsite_param_count_set): Removed.
15397         (ipa_callsite_param): Removed.
15398         (ipa_callsite_callee): Removed.
15399         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
15400         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
15401         (ipa_method_formal_count): Removed.
15402         (ipa_method_formal_count_set): Removed.
15403         (ipa_method_get_tree): Removed.
15404         (ipa_method_tree_map_create): Removed.
15405         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
15406         (ipa_create_param_decls_array): Creates the array itself
15407         (ipa_create_param_decls_array): Temporary variable info instead of
15408         a few dereferences.
15409         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
15410         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
15411         (get_type): Removed.
15412         (ipa_jf_get_info_type): Removed.
15413         (ipa_node_create): Renamed to ipa_create_node_params
15414         (ipa_free): Renamed to ipa_free_all_node_params
15415         (ipa_nodes_create): Renamed to ipa_create_all_node_params
15416         (ipa_edges_create): Renamed to ipa_create_all_edge_args
15417         (ipa_edges_free): Renamed to ipa_free_all_edge_args
15418         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
15419         (ipa_free_all_node_params): Deallocation to jump_functions moved to
15420         ipa_free_all_edge_args
15421         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
15422         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
15423         (ipa_create_methodlist_node): Removed.
15424         (ipa_methodlist_method): Removed.
15425         (ipa_methodlist_method_set): Removed.
15426         (ipa_methodlist_next_method): Removed.
15427         (ipa_methodlist_next_method_set): Removed.
15428         (ipa_method_is_modified): Removed.
15429         (ipa_method_modify_create): Removed.
15430         (ipa_method_modify_init): Temporary variable info instead of a few
15431         dereferences.
15432         (ipa_detect_param_modifications): Temporary variable info instead of
15433         a few dereferences.
15434         (ipa_compute_jump_functions): Temporary variable info instead of
15435         a few dereferences.
15436         (ipa_method_modify_set): Removed.
15437         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
15438         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
15439         than craph_node as the first parameter.
15440         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
15441         (ipa_method_modify_init): Removed.
15442         (ipa_compute_jump_functions): Added a temp variable instead of
15443         repeatadly dereferencing the cgraph_edge.aux pointer
15444         (ipa_callsite_param_set_type): Removed.
15445         (ipa_compute_jump_functions): i renamed to index and moved to
15446         an inner block
15447         (ipa_callsite_param_set_info_type_formal): Removed.
15448         (ipa_callsite_param_set_info_type): Removed.
15449         (ipa_callsite_param_map_create): Removed.
15450         (ipa_callsite_tree): Removed.
15451         (ipa_callsite_caller): Removed.
15452         (ipa_pop_func_from_list): return_method removed to return_func
15453
15454         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
15455         prefixed all values with IPA_. Changed all users.
15456         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
15457         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
15458         and FORMAL_IPATYPE IPA_PASS_THROUGH.
15459         (union parameter_info): Renamed to jump_func_value.
15460         (union jump_func_value): Renamed value to constant
15461         (struct ipa_jump_func): Renamed info_type to value
15462         (struct ipa_node): Renamed to ipa_node_params
15463         (struct ipa_node_params): Renamed ipa_arg_num to param_count
15464         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
15465         (struct ipa_node_params): Renamed ipa_mod to modified_flags
15466         (struct ipa_edge): Renamed to ipa_edge_args
15467         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
15468         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
15469         (struct ipa_methodlist): Renamed to ipa_func_list
15470         (struct ipa_func_list): method_p renamed to node, next_method
15471         renamed to next
15472         (ipa_methodlist_p): Removed, switched all users to struct pointer
15473         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
15474
15475 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
15476
15477         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
15478         (rs6000_emit_epilogue): Use backchain to restore only when we
15479         have a large frame.  Make use of frame pointer to restore if we
15480         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
15481
15482 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
15483
15484         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
15485         Add mode to zero_extract.
15486         (sign bit tests peepholes): (Ditto.).
15487
15488 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
15489
15490         * config/i386/i386.c (ix86_builtins): Replace Prescott New
15491         Instructions in comments with SSE3.
15492         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
15493         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
15494         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
15495         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
15496         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
15497         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
15498         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
15499         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
15500         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
15501         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
15502         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
15503         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
15504         (bdesc_sse_args): Renamed to ...
15505         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
15506         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
15507         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
15508         IX86_BUILTIN_FABSQ.
15509         (bdesc_1arg): Moved to ...
15510         (bdesc_args): Here.
15511         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
15512         Instructions in comments with SSE3.
15513         (ix86_expand_sse_operands_builtin): Renamed to ...
15514         (ix86_expand_args_builtin): This.  Updated.
15515         (ix86_expand_unop1_builtin): Update comments.
15516         (ix86_expand_builtin): Updated.
15517
15518 2008-04-29  Richard Guenther  <rguenther@suse.de>
15519
15520         PR tree-optimization/36078
15521         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
15522         Update virtual SSA form after cleaning up the CFG.
15523
15524 2008-04-29  Richard Guenther  <rguenther@suse.de>
15525
15526         PR middle-end/15255
15527         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
15528
15529 2008-04-29  Richard Guenther  <rguenther@suse.de>
15530
15531         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
15532         (compute_may_aliases): Do not call finalize_ref_all_pointers.
15533         (compute_flow_insensitive_aliasing): Do not treat
15534         PTR_IS_REF_ALL pointers special.
15535         (get_smt_for): Likewise.
15536         (may_alias_p): Re-structure.
15537         (is_escape_site): A ref-all pointer conversion is not an escape site.
15538         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
15539         PTR_IS_REF_ALL pointers special.
15540         * tree-ssa-structalias.h (struct alias_info): Remove
15541         ref_all_symbol_mem_tag field.
15542         (PTR_IS_REF_ALL): Remove.
15543
15544 2008-04-29  Richard Guenther  <rguenther@suse.de>
15545
15546         PR middle-end/36077
15547         * fold-const.c (extract_muldiv_1): In combining division constants
15548         make sure to never overflow.
15549
15550 2008-04-29  Nick Clifton  <nickc@redhat.com>
15551
15552         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
15553
15554 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15555
15556         PR bootstrap/35169
15557         * optc-gen.awk: Work around HP-UX/IA awk bug.
15558
15559 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
15560
15561         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
15562         2008-04-25 commit.
15563
15564 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
15565
15566         PR target/36073
15567         * config/i386/i386.md
15568         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
15569         Change operand 1 predicate to nonimmediate_operand.
15570
15571 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
15572
15573         PR debug/36060
15574         * dwarf2out.c (struct die_struct): Mark as chain_circular through
15575         die_sub field.
15576         * gengtype.c (walk_type, write_func_for_structure): Handle
15577         chain_circular.
15578         * doc/gty.texi: Document chain_circular.
15579
15580 2008-04-28  Richard Guenther  <rguenther@suse.de>
15581
15582         PR tree-optimization/36066
15583         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
15584         SCEV and loop.
15585
15586 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
15587
15588         PR target/36064
15589         * config/i386/i386.md
15590         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
15591         Use match_scratch instead of match_operand for operands 3 and 4.
15592
15593 2008-04-27  Richard Guenther  <rguenther@suse.de>
15594
15595         PR tree-optimization/18754
15596         PR tree-optimization/34223
15597         * tree-pass.h (pass_complete_unrolli): Declare.
15598         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
15599         loop size before and after unconditionally of UL_NO_GROWTH in effect.
15600         Rewrite loop into loop closed SSA form if it is not already.
15601         (tree_unroll_loops_completely): Re-structure to iterate over
15602         innermost loops with intermediate CFG cleanups.
15603         Unroll outermost loops only if requested or the code does not grow
15604         doing so.
15605         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
15606         loops are available.
15607         (tree_vectorize): Instead do so here.
15608         (tree_complete_unroll): Also unroll outermost loops.
15609         (tree_complete_unroll_inner): New function.
15610         (gate_tree_complete_unroll_inner): Likewise.
15611         (pass_complete_unrolli): New pass.
15612         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
15613         uses outside of the loop.
15614         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
15615         form if it is available.
15616         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
15617         * passes.c (init_optimization_passes): Schedule complete inner
15618         loop unrolling pass before the first CCP pass after final inlining.
15619
15620 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
15621
15622         * targhooks.h (default_emutls_var_fields,
15623         default_emutls_var_init): Declare.
15624         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
15625         * target.h (struct gcc_target): Add struct emutls member.
15626         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
15627         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
15628         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
15629         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
15630         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
15631         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
15632         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
15633         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
15634         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
15635         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
15636         emit debug information.
15637         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
15638         * varasm.c: Include targhooks.h.
15639         (emutls_object_section, emutls_tmpl_section): New.
15640         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
15641         (EMUTLS_SEPARATOR): New.
15642         (prefix_name): New.
15643         (get_emutls_object_name): New.
15644         (default_emutls_var_fields): New, broken out of ...
15645         (get_emutls_object_type): ... here.  Adjust to use target hooks.
15646         (get_emutls_init_templ_addr): Adjust to use target hooks.
15647         (emutls_decl): Adjust to use target hooks.
15648         (emutls_finish): Likewise.
15649         (default_emutls_var_init): New, broken out of ...
15650         (assemble_variable): ... here.  Adjust to use target hooks.
15651         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
15652         SECCAT_EMUTLS_TMPL.
15653         * c-common.c (handle_section_attribute): Prevent overriding
15654         sections for emulated tls with special sections.
15655         * config/i386/i386.c (x86_64_elf_select_section): Add
15656         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
15657         (x86_64_elf_unique_section): Likewise.
15658         * config/vxworks.c: Include tree.h.
15659         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
15660         (vxworks_override_options): Set TLS scheme.
15661         * doc/tm.texi (Emulated TLS): New node.
15662
15663 2008-04-26  Simon Baldwin <simonb@google.com>
15664
15665         PR c/35652
15666         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
15667         with propagated string constants.
15668
15669 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
15670
15671         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
15672         constraint for operand 2 when operand 0 is memory operand.
15673         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
15674         operand 0 is memory operand.
15675         (fix_trunc<mode>_i387_with_temp): Ditto.
15676         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
15677         operand 2 when operand 1 is memory operand.
15678         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
15679         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
15680         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
15681         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
15682         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
15683         operands 2,3 and 4 when operand 1 is memory operand.
15684         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
15685         is memory operand.
15686         (fistdi2_floor_with_temp): Ditto.
15687         (fist<mode>2_floor_with_temp): Ditto.
15688         (fistdi2_ceil_with_temp): Ditto.
15689         (fist<mode>2_ceil_with_temp): Ditto.
15690         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
15691
15692 2008-04-26  David Daney  <ddaney@avtrex.com>
15693
15694         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
15695         unspec_volitile.
15696         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
15697         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
15698         UNSPEC_UPDATE_GOT_VERSION): Renumber.
15699         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
15700         (compare_and_swap_12): New insn.
15701         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
15702         * config/mips/mips.c (mips_force_binary): New function.
15703         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
15704         (mips_expand_compare_and_swap_12): New function.
15705         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
15706
15707 2008-04-25  Jan Hubicka  <jh@suse.cz>
15708
15709         PR testsuite/35843
15710         * cfgexpand.c (pass_expand): Turn into RTL pass.
15711         * passes.c (execute_one_pass): Do pass typechecking after execution.
15712         * tree-pass.h (pass_expand): Turn into RTL pass.
15713
15714         * function.h (struct rtl_data): Move here fields
15715         accesses_prior_frames, calls_eh_return, saves_all_registers,
15716         has_nonlocal_goto, has_asm_statement, is_thunk,
15717         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
15718         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
15719         arg_pointer_save_area_init from struct function; turn into bool.
15720         (struct function): Move
15721         calls_eh_return, saves_all_registers, has_nonlocal_goto,
15722         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
15723         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
15724         tail_call_emit, arg_pointer_save_area_init
15725         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
15726         (current_function_returns_struct, current_function_returns_pcc_struct,
15727         current_function_calls_setjmp, current_function_calls_alloca,
15728         current_function_accesses_prior_frames,
15729         current_function_calls_eh_return, current_function_is_thunk,
15730         current_function_stdarg, current_function_profile,
15731         current_function_limit_stack, current_function_uses_pic_offset_table,
15732         current_function_uses_const_pool, current_function_has_nonlocal_label,
15733         current_function_saves_all_registers,
15734         current_function_has_nonlocal_goto,
15735         current_function_has_asm_statement): Remove accesor macros.
15736         * ra-conflict.c (global_conflicts): Update.
15737         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
15738         (suitable_for_tail_call_opt_p): Update.
15739         * builtins.c (expand_builtin_return_addr): Update.
15740         (expand_builtin_setjmp_setup): Update.
15741         (expand_builtin_nonlocal_goto): Update.
15742         * final.c (final_start_function): Update.
15743         (profile_function): Update.
15744         (leaf_function_p): Update.
15745         (only_leaf_regs_used): Update.
15746         * df-scan.c (df_get_exit_block_use_set): Update.
15747         * dojump.c (clear_pending_stack_adjust): Update.
15748         * tree-stdarg.c (gate_optimize_stdarg): Update.
15749         * gimple-low.c (lower_function_body): Update.
15750         * global.c (compute_regsets): Update.
15751         (global_alloc): Update.
15752         * dwarf2out.c (dwarf2out_begin_prologue): Update.
15753         * expr.c (expand_assignment): Update.
15754         * dse.c (dse_step0): Update.
15755         (dse_step1): Update.
15756         * c-decl.c (store_parm_decls): Update.
15757         * local-alloc.c (combine_regs): Update.
15758         (find_free_reg): Update.
15759         * function.c (assign_parms_augmented_arg_list): Update.
15760         (assign_parm_find_data_types): Update.
15761         (assign_parms): Update.
15762         (allocate_struct_function): Update.
15763         (expand_function_start): Update.
15764         (expand_function_end): Update.
15765         (get_arg_pointer_save_area): Update.
15766         (thread_prologue_and_epilogue_insns): Update.
15767         (rest_of_match_asm_constraints): Update.
15768         * stor-layout.c (variable_size): Update.
15769         * gcse.c (gcse_main): Update.
15770         (bypass_jumps): Update.
15771         * gimplify.c (gimplify_function_tree): Update.
15772         * calls.c (emit_call_1): Update.
15773         (expand_call): Update.
15774         * bt-load.c (compute_defs_uses_and_gen): Update.
15775         * except.c (sjlj_assign_call_site_values): Update.
15776         (sjlj_emit_function_enter): Update.
15777         (can_throw_external): Update.
15778         (set_nothrow_function_flags): Update.
15779         (expand_builtin_unwind_init): Update.
15780         (expand_eh_return): Update.
15781         (convert_to_eh_region_ranges): Update.
15782         (output_function_exception_table): Update.
15783         * emit-rtl.c (gen_tmp_stack_mem): Update.
15784         * cfgexpand.c (expand_used_vars): Update.
15785         (tree_expand_cfg): Update.
15786         * cfgcleanup.c (rest_of_handle_jump): Update.
15787         * explow.c (allocate_dynamic_stack_space): Update.
15788         * varasm.c (assemble_start_function): Update.
15789         (force_const_mem): Update.
15790         (mark_constant_pool): Update.
15791         * tree-optimize.c (tree_rest_of_compilation): Update.
15792         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
15793         * tree-cfg.c (notice_special_calls): Update.
15794         (is_ctrl_altering_stmt): Update.
15795         (tree_can_make_abnormal_goto): Update.
15796         (tree_purge_dead_abnormal_call_edges): Update.
15797         * config/alpha/predicates.md: Update.
15798         * config/alpha/alpha.c (alpha_sa_mask): Update.
15799         (alpha_sa_size): Update.
15800         (alpha_does_function_need_gp): Update.
15801         (alpha_expand_prologue): Update.
15802         (alpha_start_function): Update.
15803         (alpha_output_function_end_prologue): Update.
15804         (alpha_expand_epilogue): Update.
15805         * config/frv/frv.c (frv_stack_info): Update.
15806         (frv_expand_epilogue): Update.
15807         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
15808         (s390_register_info): Update.
15809         (s390_frame_info): Update.
15810         (s390_init_frame_layout): Update.
15811         (s390_can_eliminate): Update.
15812         (save_gprs): Update.
15813         * config/spu/spu.c (spu_split_immediate): Update.
15814         (need_to_save_reg): Update.
15815         (spu_expand_prologue): Update.
15816         (spu_expand_epilogue): Update.
15817         * config/sparc/sparc.md: Update.
15818         * config/sparc/sparc.c (eligible_for_return_delay): Update.
15819         (sparc_tls_got): Update.
15820         (legitimize_pic_address): Update.
15821         (sparc_emit_call_insn): Update.
15822         (sparc_expand_prologue): Update.
15823         (output_return): Update.
15824         (print_operand): Update.
15825         (sparc_function_ok_for_sibcall): Update.
15826         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
15827         * config/m32r/m32r.md: Update.
15828         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
15829         (m32r_compute_frame_size): Update.
15830         (m32r_expand_prologue): Update.
15831         (m32r_expand_epilogue): Update.
15832         (m32r_legitimize_pic_address): Update.
15833         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
15834         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
15835         * config/i386/i386.c (ix86_frame_pointer_required): Update.
15836         (gen_push): Update.
15837         (ix86_save_reg): Update.
15838         (ix86_compute_frame_layout): Update.
15839         (ix86_expand_prologue): Update.
15840         (ix86_expand_epilogue): Update.
15841         * config/sh/sh.c (output_stack_adjust): Update.
15842         (calc_live_regs): Update.
15843         (sh5_schedule_saves): Update.
15844         (sh_expand_prologue): Update.
15845         (sh_expand_epilogue): Update.
15846         (sh_setup_incoming_varargs): Update.
15847         (sh_allocate_initial_value): Update.
15848         (sh_get_pr_initial_val): Update.
15849         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
15850         * config/sh/sh.md (label:): Update.
15851         * config/avr/avr.c (out_movhi_mr_r): Update.
15852         * config/crx/crx.h (enum): Update.
15853         * config/xtensa/xtensa.h (along): Update.
15854         * config/stormy16/stormy16.c Update.
15855         (xstormy16_compute_stack_layout): Update.
15856         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
15857         (fr30_expand_prologue): Update.
15858         * config/cris/cris.c (cris_conditional_register_usage): Update.
15859         (cris_reg_saved_in_regsave_area): Update.
15860         (cris_initial_frame_pointer_offset): Update.
15861         (cris_simple_epilogue): Update.
15862         (cris_expand_prologue): Update.
15863         (cris_expand_epilogue): Update.
15864         (cris_expand_pic_call_address): Update.
15865         (cris_asm_output_symbol_ref): Update.
15866         (cris_asm_output_label_ref): Update.
15867         * config/cris/cris.md Update.
15868         * config/iq2000/iq2000.c (compute_frame_size): Update.
15869         (iq2000_expand_epilogue): Update.
15870         * config/mt/mt.h (save_direction): Update.
15871         * config/mn10300/mn10300.c (mn10300_function_value): Update.
15872         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
15873         (ia64_secondary_reload_class): Update.
15874         * config/m68k/m68k.c (m68k_save_reg): Update.
15875         (m68k_expand_prologue): Update.
15876         (m68k_expand_epilogue): Update.
15877         (legitimize_pic_address): Update.
15878         * config/rs6000/rs6000.c (rs6000_got_register): Update.
15879         (first_reg_to_save): Update.
15880         (first_altivec_reg_to_save): Update.
15881         (compute_vrsave_mask): Update.
15882         (compute_save_world_info): Update.
15883         (rs6000_stack_info): Update.
15884         (spe_func_has_64bit_regs_p): Update.
15885         (rs6000_ra_ever_killed): Update.
15886         (rs6000_emit_eh_reg_restore): Update.
15887         (rs6000_emit_allocate_stack): Update.
15888         (rs6000_emit_prologue): Update.
15889         (rs6000_emit_epilogue): Update.
15890         (rs6000_output_function_epilogue): Update.
15891         (output_profile_hook): Update.
15892         (rs6000_elf_declare_function_name): Update.
15893         * config/rs6000/rs6000.h (rs6000_args): Update.
15894         * config/rs6000/rs6000.md: Update.
15895         * config/mcore/mcore.c (mcore_expand_prolog): Update.
15896         * config/arc/arc.c (arc_output_function_epilogue): Update.
15897         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
15898         * config/darwin.c (machopic_function_base_name): Update.
15899         * config/score/score3.c (score3_compute_frame_size): Update.
15900         (rpush): Update.
15901         (rpop): Update.
15902         (score3_epilogue): Update.
15903         * config/score/score7.c (score7_compute_frame_size): Update.
15904         (score7_prologue): Update.
15905         (score7_epilogue): Update.
15906         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
15907         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
15908         * config/arm/arm.c (use_return_insn): Update.
15909         (require_pic_register): Update.
15910         (arm_load_pic_register): Update.
15911         (arm_compute_save_reg0_reg12_mask): Update.
15912         (arm_compute_save_reg_mask): Update.
15913         (thumb1_compute_save_reg_mask): Update.
15914         (output_return_instruction): Update.
15915         (arm_output_function_prologue): Update.
15916         (arm_output_epilogue): Update.
15917         (arm_get_frame_offsets): Update.
15918         (arm_expand_prologue): Update.
15919         (thumb_pushpop): Update.
15920         (thumb_exit): Update.
15921         (thumb1_expand_prologue): Update.
15922         (thumb1_expand_epilogue): Update.
15923         (arm_unwind_emit): Update.
15924         (arm_output_fn_unwind): Update.
15925         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
15926         * config/arm/arm.md: Update.
15927         * config/pa/pa.md: Update.
15928         * config/pa/pa.c (legitimize_pic_address): Update.
15929         (compute_frame_size): Update.
15930         (hppa_expand_prologue): Update.
15931         (hppa_expand_epilogue): Update.
15932         (borx_reg_operand): Update.
15933         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
15934         (HARD_REGNO_RENAME_OK): Update.
15935         * config/mips/mips.c (mips_global_pointer): Update.
15936         (mips_save_reg_p): Update.
15937         (mips_compute_frame_info): Update.
15938         (mips_frame_pointer_required): Update.
15939         (mips_expand_prologue): Update.
15940         (mips_expand_epilogue): Update.
15941         (mips_can_use_return_insn): Update.
15942         (mips_reorg_process_insns): Update.
15943         * config/v850/v850.c (compute_register_save_size): Update.
15944         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
15945         * config/mmix/mmix.c (along): Update.
15946         (mmix_expand_epilogue): Update.
15947         * config/bfin/bfin.c (legitimize_pic_address): Update.
15948         (must_save_p): Update.
15949         (stack_frame_needed_p): Update.
15950         (add_to_reg): Update.
15951         (bfin_expand_prologue): Update.
15952         * stmt.c (expand_asm_operands): Update.
15953         * reload1.c (reload): Update.
15954         (init_elim_table): Update.
15955
15956 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
15957
15958         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
15959
15960 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
15961
15962         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
15963         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
15964         (mov<mode>): Removed.
15965         (*movv4sf_internal): Likewise.
15966         (*movv2df_internal): Likewise.
15967
15968 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
15969
15970         * config.gcc (crx-*-elf): Remove deprecation.
15971
15972 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
15973
15974         * config/i386/cygming-crtend.c (register_frame_ctor): Register
15975         __gcc_deregister_frame with atexit.
15976         (deregister_frame_dtor): Remove.
15977
15978 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
15979             Nathan Sidwell  <nathan@codesourcery.com>
15980
15981         * config/rs6000/rs6000.opt (mspe): Remove Var property.
15982         (misel): Likewise.
15983         * config/rs6000/rs6000.h (rs6000_spe): Declare.
15984         (rs6000_isel): Likewise.
15985         * config/rs6000/rs6000.c (rs6000_spe): New variable.
15986         (rs6000_isel): New variable.
15987         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
15988
15989 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
15990
15991         PR c++/35758
15992         * c-common.c (handle_vector_size_attribute): Call
15993         lang_hooks.types.reconstruct_complex_type instead of
15994         reconstruct_complex_type.
15995         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
15996         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
15997         * langhooks.h (struct lang_hooks_for_types): Add
15998         reconstruct_complex_type hook.
15999         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
16000         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
16001
16002 2008-04-24  Richard Guenther  <rguenther@suse.de>
16003
16004         * c-common.h (check_builtin_function_arguments): Declare.
16005         * c-common.c (validate_nargs): New function.
16006         (check_builtin_function_arguments): Likewise.
16007         * c-typeck.c (build_function_call): Call
16008         check_builtin_function_arguments.
16009         * builtins.c (fold_builtin_classify): Remove error reporting code.
16010         (fold_builtin_unordered_cmp): Likewise.
16011         (fold_builtin_1): Likewise.
16012         (fold_builtin_n): Likewise.
16013
16014 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
16015
16016         PR tree-optimization/36008
16017         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
16018         the original op1, rather than delta by step.
16019
16020 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
16021             Sebastian Pop  <sebastian.pop@amd.com>
16022
16023         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
16024         eliminate_local_variables_stmt, eliminate_local_variables,
16025         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
16026         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
16027         of code delimited by two edges in the CFG.
16028         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
16029         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
16030         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
16031         the case of parallelisation of reductions.
16032         (expr_invariant_in_region_p): New.
16033
16034         * tree-flow.h (gather_blocks_in_sese_region): Declared.
16035         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
16036
16037 2008-04-24  Ira Rosen  <irar@il.ibm.com>
16038             Richard Guenther  <rguenther@suse.de>
16039
16040         PR tree-optimization/36034
16041         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
16042         incapable of dealing with loads with gaps.
16043
16044 2008-04-24  Rafael Espíndola  <espindola@google.com>
16045
16046         * tree-flow.h (vrp_evaluate_conditional): Change signature.
16047         * tree-ssa-propagate.c (fold_predicate_in): Update call to
16048         vrp_evaluate_conditional.
16049         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
16050         (vrp_evaluate_conditional): Split the cond argument.
16051         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
16052         (simplify_stmt_for_jump_threading): Update call to
16053         vrp_evaluate_conditional.
16054
16055 2008-04-24  Ira Rosen  <irar@il.ibm.com>
16056
16057         PR tree-optimization/35982
16058         * tree-vect-analyze.c (vect_check_interleaving): Check that the
16059         interleaved data-refs are of the same type.
16060
16061 2008-04-24  Danny Smith  <dannysmith@users.net>
16062
16063         * c-format.c (check_format_info_main): Use strncmp rather than a
16064         magic prefix to handle multichar length specs.
16065         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
16066         Don't prefix "I64" and "I32" with '\0'.
16067
16068 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
16069
16070         PR target/36015
16071         * config/i386/i386.c (init_cumulative_args): Don't pass anything
16072         in registers for -m32 only if stdarg_p (fntype).
16073
16074 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
16075
16076         PR rtl-optimization/36006
16077         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
16078         temp to op0 in order to avoid invalid rtx sharing.
16079
16080 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
16081
16082         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
16083         check TREE_INVARIANT.
16084         * tree-gimple.c (is_gimple_address): New.
16085         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
16086         * tree-gimple.h (is_gimple_address): New.
16087         * tree.h (decl_address_invariant_p): New.
16088         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
16089         (build_string): Likewise.
16090         (decl_address_invariant_p): New, from is_gimple_invariant_address.
16091         (tree_invariant_p_1): Likewise.
16092         (save_expr): Use it.
16093         (tree_invariant_p): New.
16094         (skip_simple_arithmetic): Use it.
16095         (stabilize_reference_1): Use it.
16096         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
16097         simplify.
16098         (build1_stat): Drop code to compute TREE_INVARIANT.
16099         (build2_stat): Drop code to compute TREE_INVARIANT.
16100         (build3_stat): Drop code to compute TREE_INVARIANT.
16101         (build4_stat): Drop code to compute TREE_INVARIANT.
16102         (build5_stat): Drop code to compute TREE_INVARIANT.
16103         (build7_stat): Drop code to compute TREE_INVARIANT.
16104         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
16105         * tree.h (struct tree_base): Remove invariant_flag.
16106         (TREE_INVARIANT): Remove.
16107         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
16108         (fold_builtin_expect): Check TREE_CONSTANT.
16109         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
16110         * c-tree.h (c_expr_to_decl): Drop third parameter.
16111         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
16112         (build_c_cast): Don't set TREE_INVARIANT.
16113         (pop_init_level): Don't set TREE_INVARIANT.
16114         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
16115         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
16116         TREE_CONSTANT.
16117         (gimplify_init_constructor): Don't set TREE_INVARIANT.
16118         (gimplify_addr_expr): Adjust comment.
16119         * tree-mudflap.c (mf_build_string):
16120         * print-tree.c (print_node): Don't print TREE_INVARIANT.
16121         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
16122         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
16123         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
16124         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
16125         * langhooks.h (struct lang_hooks): Drop third parameter from
16126         expr_to_decl.
16127
16128 2008-04-23  Richard Guenther  <rguenther@suse.de>
16129
16130         PR tree-optimization/27799
16131         PR tree-optimization/32921
16132         PR tree-optimization/32624
16133         * tree-ssa-structalias.c (merge_smts_into): Only merge the
16134         SMTs aliases and the tag itself into the solution.
16135         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
16136         merge the points-to solution back into the SMT aliases.
16137         (may_alias_p): Use alias_set_subset_of instead of
16138         aliases_conflict_p.  A pointer which points to
16139         memory with alias set zero may access any variable.
16140
16141 2008-04-23  Richard Guenther  <rguenther@suse.de>
16142
16143         * alias.c (alias_set_subset_of): Correctly handle asking
16144         if zero is a subset of an alias set with zero child.
16145         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
16146         (compute_flow_insensitive_aliasing): Correctly walk all
16147         pointers.  Do not unnecessarily union sets.
16148
16149 2008-04-23  Richard Guenther  <rguenther@suse.de>
16150
16151         PR middle-end/36021
16152         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
16153
16154 2008-04-22  Tomas Bily  <tbily@suse.cz>
16155
16156         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
16157         unreachable case.
16158         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
16159         NON_LVALUE_EXPR.
16160         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
16161         * tree-ssa-structalias.c (get_constraint_for): Likewise.
16162         * tree-inline.c (estimate_num_insns_1): Likewise.
16163         * varasm.c (const_hash_1, compare_constant, copy_constant)
16164         (compute_reloc_for_constant, output_addressed_constants): Likewise.
16165         * emit-rtl.c (component_ref_for_mem_expr)
16166         (set_mem_attributes_minus_bitpos): Likewise.
16167         * expr.c (highest_pow2_factor, expand_expr_real_1, )
16168         (is_aligning_offset): Likewise.
16169         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
16170         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
16171         * dojump.c (do_jump): Likewise.
16172         * builtins.c (get_pointer_alignment, get_memory_rtx)
16173         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
16174         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
16175
16176 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
16177
16178         PR rtl-optimization/36017
16179         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
16180         expanding the library call.
16181
16182 2008-04-22  Ian Lance Taylor  <iant@google.com>
16183
16184         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
16185         than size_in_bytes.
16186
16187 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
16188
16189         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
16190         of LR/CTR moves for Power6.
16191
16192 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
16193
16194         PR middle-end/36003
16195         * passes.c (init_optimization_passes): Remove
16196         pass_fast_rtl_byte_dce.
16197
16198 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
16199
16200         PR target/29096
16201         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
16202         builtin functions to generate faster code.
16203         (_mm_cvtpu16_ps): Ditto.
16204         (_mm_cvtpi32x2_ps): Ditto.
16205
16206 2008-04-22  Nick Clifton  <nickc@redhat.com>
16207
16208         * common.opt (ftree-loop-distribution): Add Optimization
16209         attribute.
16210
16211         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
16212         (frv_expand_builtin_va_start): Likewise.
16213
16214         * config/arm/arm.c (thumb_find_work_register): Fix location of
16215         argument register count.
16216
16217 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
16218
16219         Support scheduling for ColdFire V1 and V3 microarchitecture.
16220         Improve scheduling of multiplication instructions.
16221
16222         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
16223         (mac): New instruction attribute.
16224         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
16225         (m68k_sched_mac): New variable.
16226         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
16227         Handle cfv1 and cfv3.
16228         (max_insn_size): New static variable.
16229         (struct _sched_ib): New type.
16230         (sched_ib): New static variable.
16231         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
16232         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
16233         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
16234         Update.
16235         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
16236         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
16237         new variables.  Update.
16238         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
16239         Add modeling of cfv3 instruction buffer.  Update.
16240         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
16241         * config/m68k/m68k.h (TUNE_CFV3): New macro.
16242         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
16243         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
16244         a particular reservation applies to.
16245         (type2): Reorganize attribute values.  Rename alu to alu_reg,
16246         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
16247         to mul_l and mul_w.
16248         (cf_ib_*): Simplify description of instruction buffer.
16249         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
16250         (cf_mem): Split into cf_mem1 and cf_mem2.
16251         (cf_v2_move_??): Rename to cfv12_alu_??.
16252         (cf_v2_move_l_??): Rename to cfv12_omove_??.
16253         (cf_v2_mul_??): Remove reservations.
16254         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
16255         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
16256         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
16257         appropriate place.
16258         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
16259         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
16260         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
16261         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
16262         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
16263         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
16264         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
16265         expansions of the above reservations for instructions of sizes
16266         1, 2 and 3 words.
16267
16268 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
16269
16270         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
16271
16272 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
16273
16274         * coverage.c: Include tree-pass.h.
16275         (coverage_counter_alloc): Print da_file_name to the dump file.
16276
16277 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
16278
16279         * sbitmap.c (sbitmap_range_empty_p): New function.
16280         * sbitmap.h (sbitmap_range_empty_p): New function.
16281         * bitmap.h: Now includes obstack.h.
16282
16283 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
16284             Kenneth Zadeck  <zadeck@naturalbridge.com>
16285
16286         * dbgcnt.def (ra_byte_scan): Added.
16287         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
16288         when the last hit happens for a counter.
16289         * timevar.def (TV_DF_BYTE_LR): New variable.
16290         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
16291         * passes.c (pass_fast_rtl_byte_dce): New pass.
16292         * fwprop.c (update_df): Added mode to call df_ref_create.
16293         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
16294         DF_REF_EXTRACT_OFFSET.
16295         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
16296         DF_BYTE_LR_OUT, df_byte_lr): New macro.
16297         (df_mm): New enum.
16298         (df_ref_extract): Added mode field.
16299         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
16300         DF_REF_EXTRACT_OFFSET.
16301         (DF_REF_EXTRACT_MODE): New macro.
16302         (df_byte_lr_bb_info): New structure.
16303         (df_print_byte_regset, df_compute_accessed_bytes,
16304         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
16305         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
16306         df_byte_lr_simulate_uses,
16307         df_byte_lr_simulate_artificial_refs_at_top,
16308         df_byte_lr_simulate_artificial_refs_at_end,
16309         df_compute_accessed_bytes): New function.
16310         (df_ref_create): Add parameter.
16311         (df_byte_lr_get_bb_info): New inline function.
16312         * df-scan.c (df_ref_record, df_uses_record,
16313         df_ref_create_structure): Added mode parameter.
16314         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
16315         df_defs_record, df_uses_record, df_get_conditional_uses,
16316         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
16317         df_entry_block_defs_collect, df_exit_block_uses_collect):
16318         Added mode parameter to calls to df_ref_record, df_uses_record,
16319         df_ref_create_structure.
16320         (df_ref_equal_p, df_ref_compare): Added test for modes.
16321         (df_ref_create_structure): Added code to set mode.  Renamed
16322         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
16323         DF_REF_EXTRACT_OFFSET.
16324         * df-core.c (df_print_byte_regset): New function.
16325         * df-byte-scan.c: New file.
16326         * df-problems.c (df_rd_transfer_function): Removed unnecessary
16327         calls to BITMAP_FREE.
16328         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
16329         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
16330         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
16331         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
16332         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
16333         df_byte_lr_local_compute, df_byte_lr_init,
16334         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
16335         df_byte_lr_transfer_function, df_byte_lr_free,
16336         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
16337         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
16338         df_byte_lr_simulate_uses,
16339         df_byte_lr_simulate_artificial_refs_at_top,
16340         df_byte_lr_simulate_artificial_refs_at_end): New function.
16341         * dce.c (byte_dce_process_block): New function.
16342         (dce_process_block): au is now passed in rather than computed
16343         locally.  Changed loops that look at artificial defs to not look
16344         for conditional or partial ones, because there never are any.
16345         (fast_dce): Now is able to drive byte_dce_process_block or
16346         dce_process_block depending on the kind of dce being done.
16347         (rest_of_handle_fast_dce): Add parameter to fast_dce.
16348         (rest_of_handle_fast_byte_dce): New function.
16349         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
16350         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
16351
16352 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
16353
16354         PR fortran/35019
16355         * gcc.h: Added fortran options that take arguments to
16356         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
16357         macros.
16358
16359 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
16360
16361         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
16362         scalarization if on the LHS and not a full access.
16363
16364 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16365
16366         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
16367
16368 2008-04-18  Rafael Espíndola  <espindola@google.com>
16369
16370         * tree-vrp.c (find_case_label_index): Fix the binary search.
16371         (find_case_label_range): New.
16372         (vrp_visit_switch_stmt): Use find_case_label_range.
16373         (simplify_switch_using_ranges): Use find_case_label_range.
16374
16375 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
16376
16377         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
16378         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
16379
16380 2008-04-18  Tom Tromey  <tromey@redhat.com>
16381
16382         PR libcpp/15500:
16383         * doc/cpp.texi (Implementation-defined behavior): Mention
16384         -finput-charset.
16385
16386 2008-04-18  Ian Lance Taylor  <iant@google.com>
16387
16388         * fold-const.c (pointer_may_wrap_p): New static function.
16389         (fold_comparison): Add another test for pointer overflow.  Use
16390         pointer_may_wrap_p to disable some false positives.
16391
16392 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
16393
16394         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
16395         (fname_as_string): Match updated cpp_interpret_string prototype.
16396         (fix_string_type): Support char16_t* and char32_t*.
16397         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
16398         derivative) nodes.  Register as builtin if C++0x.
16399         (c_parse_error): Support CPP_CHAR{16,32}.
16400         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
16401         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
16402         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
16403         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
16404         CTI_CHAR32_ARRAY_TYPE>: New elements.
16405         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
16406         char32_type_node, signed_char32_type_node, char16_array_type_node,
16407         char32_array_type_node): New defines.
16408         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
16409         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
16410         (lex_string): Support CPP_STRING{16,32}, match updated
16411         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
16412         (lex_charconst): Support CPP_CHAR{16,32}.
16413         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
16414         and CPP_STRING{16,32}.
16415
16416 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
16417
16418         PR bootstrap/35457
16419         * aclocal.m4: Regenerate.
16420         * configure: Regenerate.
16421
16422 2008-04-18  Jan Hubicka  <jh@suse.cz>
16423
16424         * except.c (dw2_size_of_call_site_table,
16425         sjlj_size_of_call_site_table): Use vector API for call_site_record.
16426
16427         * cgraphbuild.c (build_cgraph_edges): Update.
16428         * tree-pass.h: Update comment.
16429         * final.c (leaf_function_p): Update.
16430         (leaf_renumber_regs): Update.
16431         (rest_of_clean_state): Update.
16432         * omp-low.c (expand_omp_parallel): Update.
16433         * ipa-reference.c (analyze_function): Update.
16434         * reorg.c (find_end_label): Update.
16435         (optimize_skip): Update.
16436         (fill_simple_delay_slots): Update.
16437         (fill_simple_delay_slots): Update.
16438         (make_return_insns): Update.
16439         (dbr_schedule): Update.
16440         * gimple-low.c (record_vars_into): Update.
16441         * cfgbuild.c (make_edges): Update.
16442         * function.c (assign_stack_local): Update.
16443         (assign_parm_adjust_stack_rtl): Update.
16444         (locate_and_pad_parm): Update.
16445         (allocate_struct_function): Do not initialize stack_alignment_needed
16446         and preferred_stack_boundary here.
16447         (stack_protect_prologue): Update.
16448         (stack_protect_epilogue): Update.
16449         (expand_function_start): Initialize stack_alignment_needed,
16450         preferred_stack_boundary and max_jumptable_ents.
16451         (expand_function_end): Update.
16452         (free_after_compilation): Do not NULLify epilogue_delay_list.
16453         * function.h (struct rtl_data): Add stack_protect_guard,
16454         stack_alignment_needed,
16455         preferred_stack_boundary, epilogue_delay_list.
16456         (struct function): Remove value_histograms, stack_alignment_needed,
16457         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
16458         last_label_uid,
16459         unexpanded_var_list, stack_protect_guard.
16460         (current_function_epilogue_delay_list): Remove.
16461         * ipa-type-escape.c (analyze_function): Update.
16462         * gimplify.c (pop_gimplify_context): Update comment.
16463         * calls.c (expand_call): Update.
16464         (emit_library_call_value_1): Update.
16465         * except.c (set_nothrow_function_flags): Update.
16466         * cfgexpand.c (get_decl_align_unit): Update.
16467         (create_stack_guard): Update.
16468         (estimated_stack_frame_size): Update.
16469         (expand_used_vars): Update.
16470         (tree_expand_cfg): Free histogram earliers, init expansion variables.
16471         * explow.c (allocate_dynamic_stack_space): Update.
16472         * tree-ssa-live.c (remove_unused_locals): Update.
16473         * varasm.c (mark_constant_pool): Update.
16474         * tree-inline.c (remap_decls): Update.
16475         (initialize_cfun): Update.
16476         (declare_return_variable): Update.
16477         (inline_forbidden_p): Update.
16478         (expand_call_inline): Update.
16479         (declare_inline_vars): Update.
16480         (tree_function_versioning): Update.
16481         * tree-flow.h (value_histograms): New.
16482         (VALUE_HISTOGRAMS): New macro.
16483         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
16484         last_label_uid.
16485         * tree-cfg.c (set_bb_for_stmt): Update.
16486         (replace_by_duplicate_decl): Update.
16487         (move_block_to_fn): Update.
16488         (new_label_mapper): Update.
16489         (dump_function_to_file): Update.
16490         * ipa-struct-reorg.c (build_data_structure): Update.
16491         * cfgrtl.c (print_rtl_with_bb): Update.
16492         * reload1.c (reload): Update.
16493         (reload): Update.
16494         * config/i386/i386.c (setup_incoming_varargs_64,
16495         ix86_compute_frame_layout): Update.
16496         * config/arc/arc.c (arc_output_function_epilogue): Update.
16497
16498 2008-04-18  Marius Strobl <marius@FreeBSD.org>
16499
16500         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
16501         for FreeBSD as well.
16502         * gthr-posix95.h: Likewise.
16503
16504 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
16505
16506         PR rtl-optimization/35838
16507         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
16508         out the byte offset of the first subreg.
16509
16510 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
16511
16512         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
16513         to split_ti instead of three separate calls with single member arrays.
16514         (subti3 splitter): Ditto.
16515         (adddi3 splitter): Ditto with split_di.
16516         (subdi3 splitter): Ditto.
16517         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
16518         two separate calls with single member arrays.  Swap match_dup
16519         operands 1 and 2 to better fit into the array.
16520         (negdi2 splitter): Ditto with split_di.
16521         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
16522         two separate calls with single member arrays.  Swap match_dup operands
16523         6 and 7 to better fit into the array.
16524
16525 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
16526
16527         * config/i386/i386.c (sse_builtin_type): New.
16528         (bdesc_sse_args): Likewise.
16529         (bdesc_sse_3arg): Removed.
16530         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
16531         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
16532         IX86_BUILTIN_ROUNDPS.
16533         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
16534         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
16535         IX86_BUILTIN_ROUNDPS.
16536         (ix86_expand_sse_4_operands_builtin): Removed.
16537         (ix86_expand_sse_operands_builtin): New.
16538         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
16539         and CODE_FOR_sse4_1_roundps.
16540         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
16541         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
16542
16543 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
16544
16545         PR target/35907
16546         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
16547         regs before frame pop when needed.  If use_backchain_to_restore_sp
16548         then load backchain into a temp reg to restore vr and vrsave.  Add
16549         code to restore vr after frame pop if possible.
16550
16551 2008-04-17  Richard Guenther  <rguenther@suse.de>
16552
16553         * tree-vn.c (expressions_equal_p): Do not check type
16554         equality or compatibility before calling operand_equal_p.
16555         * fold-const.c (operand_equal_p): Check equivalence of
16556         integer constants before bailing out due to signedness or
16557         precision differences.
16558         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
16559         spurious differences in type qualification.  Ignore types
16560         for COMPONENT_REFs at all.
16561
16562 2008-04-17  Christian Bruel  <christian.bruel@st.com>
16563
16564         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
16565         msw_skip comparison.
16566
16567 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
16568
16569         PR c/35739
16570         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
16571         reg type.
16572
16573         PR tree-optimization/35899
16574         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
16575         rather than TREE_OPERAND.
16576
16577 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
16578
16579         PR target/35944
16580         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
16581         temporary registers.  Change operand predicate to general_operand.
16582         (remainderxf3): Ditto.
16583
16584 2008-04-16  Richard Guenther  <rguenther@suse.de>
16585
16586         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
16587         * tree-affine.c (aff_combination_expand): Look through some
16588         conversions.
16589
16590 2008-04-15  Doug Kwan  <dougkwan@google.com>
16591
16592         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
16593         for hex printing.
16594         * tree-pretty-print.c (dump_generic_node): Ditto.
16595         * final.c (output_addr_const): Ditto.
16596         * dwarf2out.c (output_cfi): Ditto.
16597         * c-pretty-print.c (pp_c_integer_constant): Ditto.
16598         * print-rtl.c (print_rtx): Ditto.
16599         * print-tree.c (print_node_brief, print_node): Ditto.
16600         * c-common.c (match_case_to_enum_1): Ditto.
16601         * sched-vis.c (print_value): Ditto.
16602         * config/i386/i386.c (print_operand): Cast to long unsigned int
16603         for hex printing.
16604
16605 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
16606         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
16607         MS Windows VirtualProtect function.
16608
16609 2008-04-15  Jan Hubicka  <jh@suse.cz>
16610
16611         * gengtype.c (write_root): Param_is argument is OK.
16612         * expr.c (expand_expr_real_1): Update call of get_exception_*.
16613         * function.h: Include varray.h
16614         (rtl_eh): New stucture based on except.c one.
16615         (call_site_record): New forward declaration and vector type.
16616         * calls.c (emit_call_1): Do not call
16617         note_current_region_may_contain_throw.
16618         * except.c (eh_status): Remove cur_region, try_region since they are
16619         unused.
16620         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
16621         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
16622         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
16623         Remove call_site_data_used, call_site_data_size.
16624         Turn call_site_record into vector in function.h.
16625         (note_current_region_may_contain_throw): Remove.
16626         (get_exception_pointer, get_exception_filter): Do not take struct
16627         function argument; update.
16628         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
16629         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
16630         build_post_landing_pads, dw2_build_landing_pads,
16631         sjlj_assign_call_site_values, sjlj_mark_call_sites,
16632         sjlj_emit_function_enter, sjlj_emit_function_enter,
16633         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
16634         sjlj_build_landing_pads, finish_eh_generation,
16635         remove_exception_handler_label, remove_eh_handler,
16636         maybe_remove_eh_handler, add_reachable_handler,
16637         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
16638         add_action_record, collect_one_action_chain, add_call_site,
16639         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
16640         sjlj_output_call_site_table, output_function_exception_table,
16641         * except.h (note_current_region_may_contain_throw): Remove
16642         (get_exception_pointer, get_exception_filter): Do not take struct
16643         function argument.
16644         * Makefile.in (GTFILES): Put varargs before struct function.
16645
16646 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
16647
16648         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
16649         punt for STRING_CST.
16650         (get_constraint_for): Deal with STRING_CST here instead.
16651
16652 2008-04-15  Richard Guenther  <rguenther@suse.de>
16653
16654         * tree-ssa-propagate.c (substitute_and_fold): Substitute
16655         statements in a basic-block with a backward walk.  Do not
16656         substitute into dead statements but instead remove those.
16657
16658 2008-04-15  Richard Guenther  <rguenther@suse.de>
16659
16660         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
16661         to zero, thus disable creation of SFTs.
16662
16663 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
16664
16665         * tree-predcom.c (suitable_reference_p): Return false if the
16666         reference can throw.
16667
16668 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
16669
16670         PR c/35751
16671         * c-decl.c (finish_decl): If extern or static var has variable
16672         size, set TREE_TYPE (decl) to error_mark_node.
16673
16674 2008-04-15  Rafael Espíndola  <espindola@google.com>
16675
16676         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
16677         variable arg1.
16678
16679 2008-04-15  Richard Guenther  <rguenther@suse.de>
16680
16681         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
16682         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
16683         (visit_reference_op_load): Do walk vuse-vdef chains on
16684         vn_reference_lookup.
16685         (visit_reference_op_store): But do not here.
16686         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
16687         vn_reference_lookup.
16688         (vn_lookup_with_vuses): But do so here.
16689
16690 2008-04-14  Ian Lance Taylor  <iant@google.com>
16691
16692         * fold-const.c (fold_overflow_warning): Remove assertion.
16693
16694 2008-04-15  Ben Elliston  <bje@au.ibm.com>
16695
16696         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
16697         temp1 local variables.
16698
16699 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
16700
16701         PR target/35661
16702         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
16703         ".text.unlikely" section as executable.
16704
16705 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
16706
16707         * config/ia64/ia64.c (rtx_needs_barrier): Handle
16708         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
16709         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
16710         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
16711         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
16712         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
16713         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
16714
16715 2008-04-14  Ian Lance Taylor  <iant@google.com>
16716
16717         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
16718         * fold-const.c (fold_comparison): If appropriate, test
16719         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
16720         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
16721         reassociating a pointer type.
16722         * doc/invoke.texi (Optimize Options): Document that
16723         -fstrict-overflow applies to pointer wraparound.
16724
16725 2008-04-13  Jan Hubicka  <jh@suse.cz>
16726
16727         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
16728
16729 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
16730
16731         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
16732         we are going to "save the world".
16733
16734 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
16735
16736         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
16737         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
16738         operand 0 constraint, not "=".
16739
16740 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
16741
16742         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
16743
16744 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
16745
16746         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
16747         of size of positions_needed * CHAR_BIT.
16748
16749 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
16750
16751         PR middle-end/35897
16752         * dse.c (store_info): Change positions_needed to unsigned
16753         HOST_WIDE_INT.
16754         (lowpart_bitmask): New.
16755         (record_store): Cast to unsigned HOST_WIDE_INT for
16756         positions_needed.  Assert width <= size of positions_needed *
16757         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
16758         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
16759         lowpart_bitmask to set mask.
16760
16761 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
16762
16763         * config/bfin/constraints.md: New file.
16764         * config/bfin/bfin.md: Include it.
16765         (adddi3): Use satisfies_constraint functions instead of the old macros.
16766         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
16767         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
16768         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
16769         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
16770         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
16771         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
16772         EXTRA_CONSTRAINT): Delete.
16773         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
16774         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
16775         of the old macros.
16776         * config/bfin/bfin.c: Include "tm-constrs.h".
16777         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
16778         Use satisfies_constraint functions instead of the old macros.
16779         * doc/md.texi (Blackfin Constraints): Update file name reference.
16780
16781 2008-04-11  Richard Guenther  <rguenther@suse.de>
16782
16783         PR tree-optimization/35869
16784         * tree-vrp.c (execute_vrp): Move switch statement update after
16785         jump threading.  Schedule another cfg cleanup run.
16786
16787 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
16788
16789         PR c/35744
16790         * attribs.c (decl_attributes): Return early on errorneous node.
16791
16792 2008-04-10  Oleg Ryjkov  <olegr@google.com>
16793
16794         * tree.h (struct tree_base): Added a new flag default_def_flag.
16795         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
16796
16797 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
16798
16799         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
16800
16801 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16802
16803         PR target/35768
16804         * pa.md: Define mode iterator P.  Define mode attribute dwc.
16805         (dcacheflush): Update pattern to use iterator P and attribute dwc.
16806         (icacheflush): Likewise.
16807         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
16808         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
16809
16810 2008-04-11  Ben Elliston  <bje@au.ibm.com>
16811
16812         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
16813
16814 2008-04-10  Rafael Espíndola  <espindola@google.com>
16815
16816         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
16817         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
16818         (extract_range_from_expr): The same.
16819
16820 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
16821
16822         * config/mips/mips.md (GPR2): New mode iterator.
16823         (seq): Add comment.
16824         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
16825         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
16826         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
16827         Rewrite these to take two modes, the mode of comparison and the
16828         mode of the destination.
16829         * config/mips/mips.c (mips_expand_scc): Instead of having
16830         paradoxical subreg as destination, expand "narrowing" scc if mode
16831         of comparison is SI and target is requested in DI mode.
16832         (mips_emit_int_order_test): Update comment.  Make mode of
16833         comparison match CMP0 rather than TARGET.  When creating inverse
16834         target use mode of TARGET.
16835
16836 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
16837
16838         * gcov-dump.c (tag_summary): Only print summaries for the first
16839         GCOV_COUNTERS_SUMMABLE counters.
16840
16841 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
16842
16843         * config/i386/i386.md (absneg): New code iterator.
16844         (absnegprefix): New code attribute.
16845         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
16846         patterns using absneg code iterator.
16847         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
16848         using absneg code iterator.
16849         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
16850         *neg<mode>2 patterns using absneg code iterator.
16851         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
16852         *negextendsfdf2 patterns using absneg code iterator.
16853         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
16854         *negextendsfxf2 patterns using absneg code iterator.
16855         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
16856         *negextendsfdf2 patterns using absneg code iterator.
16857         * config/i386/sse.md (<code><mode>2): Macroize expander from
16858         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
16859
16860 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
16861
16862         * config/s390/s390.h: Remove the remains of the recent search
16863         & replace action of current_function_outgoing_args_size.
16864
16865 2008-04-10  Ira Rosen  <irar@il.ibm.com>
16866
16867         PR tree-optimization/35821
16868         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
16869         NEW_STMT_LIST is not NULL.
16870
16871 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
16872
16873         PR libstdc++/35597
16874         * toplev.c (process_options): Remove -ffunction-sections debugging
16875         warning.
16876
16877 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
16878
16879         PR middle-end/PR28690
16880         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
16881         than gen_rtx_fmt_ee to perform more canonicalizations.
16882
16883 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16884
16885         PR driver/35665
16886         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
16887
16888 2008-04-09  Richard Guenther  <rguenther@suse.de>
16889
16890         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
16891         (dump_function_to_file): Dump function arguments with types.
16892
16893 2008-04-08  Richard Guenther  <rguenther@suse.de>
16894
16895         * fold-const.c (fold_widened_comparison): Do not allow
16896         sign-changes that change the result.
16897
16898 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
16899
16900         PR target/35839
16901         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
16902         kinds of indirect references.
16903
16904 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
16905
16906         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
16907         GNU Fortran language string.
16908
16909 2008-04-08  Rafael Espíndola  <espindola@google.com>
16910
16911         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
16912         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
16913         * tree.h (tree_call_nonnegative_warnv_p): New.
16914
16915 2008-04-08  Jan Hubicka  <jh@suse.cz>
16916
16917         * function.c (free_after_compilation): Clear out regno_reg_rtx
16918         pointer.
16919
16920 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
16921
16922         Revert
16923         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
16924
16925         PR middle-end/PR28690
16926         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
16927         same precedence as REG_POINTER and MEM_POINTER operands.
16928
16929 2008-04-08  Richard Guenther  <rguenther@suse.de>
16930
16931         PR middle-end/35834
16932         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
16933         for adding index to base.
16934
16935 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
16936
16937         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
16938         (MINGW_ENABLE_EXECUTE_STACK): New.
16939         (IN_LIBGCC2): For libgcc include windows.h file for
16940         function declarations.
16941
16942 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
16943
16944         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
16945         and tem2 if tem1 is not a REG or MULT.
16946
16947 2008-04-08  Jan Hubicka  <jh@suse.cz>
16948
16949         * function.h (incomming_args): Break out of struct function.
16950         (function_subsections): Break out of struct function.
16951         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
16952         return_rtx and hard_reg_initial_vals from struct function.
16953         Kill inl_max_label_num.
16954         (current_function_pops_args, current_function_args_info,
16955         current_function_args_size, current_function_args_size,
16956         current_function_pretend_args_size,
16957         current_function_outgoing_args_size,
16958         current_function_internal_arg_pointer, current_function_return_rtx):
16959         Kill compatibility accestor macros.
16960         * builtins.c (expand_builtin_apply_args_1): Update.
16961         (expand_builtin_next_arg): Update.
16962         * df-scan.c (df_get_call_refs): Update.
16963         * dbxout.c (dbxout_function_end): Update.
16964         * dwarf2out.c (dwarf2out_switch_text_section): Update.
16965         (output_line_info): Update.
16966         (secname_for_decl): Update.
16967         (dwarf2out_var_location): Update.
16968         * function.c (free_after_compilation): Update.
16969         (assign_parm_find_stack_rtl): Update.
16970         (assign_parms): Update.
16971         (expand_dummy_function_end): Update.
16972         (expand_function_end): Update.
16973         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
16974         (expand_call): Update.
16975         (emit_library_call_value_1): Update.
16976         (store_one_arg): Update.
16977         * varasm.c (initialize_cold_section_name): Update.
16978         (unlikely_text_section): Update.
16979         (unlikely_text_section_p): Update.
16980         (assemble_start_function): Update.
16981         (assemble_end_function): Update.
16982         (default_section_type_flags): Update.
16983         (switch_to_section): Update.
16984         * integrate.c (set_decl_abstract_flags): Update.
16985         (get_hard_reg_initial_val): Update.
16986         (has_hard_reg_initial_val): Update.
16987         (allocate_initial_values): Update.
16988         * resource.c (init_resource_info): Update.
16989         * config/alpha/alpha.c (NUM_ARGS): Update.
16990         (direct_return): Update.
16991         (alpha_va_start): Update.
16992         (alpha_sa_size): Update.
16993         (alpha_initial_elimination_offset): Update.
16994         (alpha_expand_prologue): Update.
16995         (alpha_start_function): Update.
16996         (alpha_expand_epilogue): Update.
16997         (unicosmk_initial_elimination_offset):
16998         * config/alpha/alpha.md (call expander): Update.
16999         * config/s390/s390.c (s390_register_info): Update.
17000         (s390_register_info): Update.
17001         (s390_frame_info): Update.
17002         (s390_initial_elimination_offset): Update.
17003         (s390_build_builtin_va_list): Update.
17004         (s390_va_start): Update.
17005         * config/spu/spu.c (direct_return): Update.
17006         (spu_expand_prologue): Update.
17007         (spu_initial_elimination_offset): Update.
17008         (spu_build_builtin_va_list): Update.
17009         (spu_va_start): Update.
17010         * config/sparc/sparc.c (sparc_init_modes): Update.
17011         (sparc_compute_frame_size): Update.
17012         (function_value): Update.
17013         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
17014         * config/i386/i386.md (return expander): Update.
17015         * config/i386/i386.c (ix86_va_start): Update.
17016         (ix86_can_use_return_insn_p): Update.
17017         (ix86_compute_frame_layout): Update.
17018         (ix86_expand_epilogue): Update.
17019         * config/sh/sh.c (output_stack_adjust): Update.
17020         (calc_live_regs): Update.
17021         (sh_expand_prologue): Update.
17022         (sh_builtin_saveregs): Update.
17023         (sh_va_start): Update.
17024         (initial_elimination_offset): Update.
17025         (sh_allocate_initial_value): Update.
17026         (sh_function_ok_for_sibcall): Update.
17027         (sh_get_pr_initial_val): Update.
17028         * config/sh/sh.md (return expander): Update.
17029         * config/avr/avr.c (frame_pointer_required_p): UPdate.
17030         * config/crx/crx.c (crx_compute_frame): UPdate.
17031         (crx_initial_elimination_offset): UPdate.
17032         * config/xtensa/xtensa.c (compute_frame_size): Update
17033         (xtensa_builtin_saveregs): Update.
17034         (xtensa_va_start): Update.
17035         (order_regs_for_local_alloc): Update.
17036         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
17037         (xstormy16_expand_builtin_va_start): Update.
17038         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
17039         * config/m68hc11/m68hc11.md (return expanders): Update.
17040         * config/m68hc11/m68hc11.c (expand_prologue): Update.
17041         (expand_epilogue): Update.
17042         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
17043         (cris_simple_epilogue): Update.
17044         (cris_expand_prologue): Update.
17045         (cris_expand_epilogue): Update.
17046         * config/iq2000/iq2000.c (iq2000_va_start): Update.
17047         (compute_frame_size): Update.
17048         * config/mt/mt.c (mt_compute_frame_size): Update.
17049         * config/mn10300/mn10300.c (expand_prologue): Update.
17050         (expand_epilogue): Update.
17051         (initial_offset): Update.
17052         (mn10300_builtin_saveregs):
17053         * config/mn10300/mn10300.md (return expander): Update.
17054         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
17055         (ia64_initial_elimination_offset): Update.
17056         (ia64_initial_elimination_offset): Update.
17057         (ia64_expand_prologue): Update.
17058         * config/m68k/m68k.md (return expander): Update.
17059         * config/rs6000/rs6000.c (rs6000_va_start): Update.
17060         (rs6000_stack_info): Update.
17061         * config/mcore/mcore.c (layout_mcore_frame): Update.
17062         (mcore_expand_prolog): Update.
17063         * config/arc/arc.c (arc_compute_frame_size): Update.
17064         * config/score/score3.c (score3_compute_frame_size): Update.
17065         * config/score/score7.c (score7_compute_frame_size): Update.
17066         * config/arm/arm.c (use_return_insn): Update.
17067         (thumb_find_work_register): Update.
17068         (arm_compute_save_reg_mask): Update.
17069         (arm_output_function_prologue): Update.
17070         (arm_output_epilogue): Update.
17071         (arm_size_return_regs): Update.
17072         (arm_get_frame_offsets): Update.
17073         (arm_expand_prologue): Update.
17074         (thumb_exit): Update.
17075         (thumb_unexpanded_epilogue): Update.
17076         (thumb1_output_function_prologue): Update.
17077         * config/pa/pa.md (return expander): Update.
17078         * config/pa/pa.c (compute_frame_size): Update.
17079         (hppa_builtin_saveregs): Update.
17080         * config/mips/mips.c (mips_va_start): Update.
17081         (mips16_build_function_stub): Update.
17082         (mips_compute_frame_info): Update.
17083         (mips_restore_gp): Update.
17084         (mips_output_function_prologue): Update.
17085         (mips_expand_prologue): Update.
17086         * config/v850/v850.c (compute_frame_size): Update.
17087         (expand_prologue): * config/mmix/mmix.c (along): update.
17088         (mmix_initial_elimination_offset): update.
17089         (mmix_reorg): update.
17090         (mmix_use_simple_return): update.
17091         (mmix_expand_prologue): update.
17092         (mmix_expand_epilogue): Update.
17093         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
17094         (emit_link_insn): Update.
17095
17096 2008-04-08  Anatoly Sokolov <aesok@post.ru>
17097
17098         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
17099         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
17100         instructions.
17101         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
17102         atmega103 device.
17103
17104 2008-04-07  Jan Hubicka  <jh@suse.cz>
17105
17106         * function.h (rtl): Rename to x_rtl.
17107         (crtl): New define.
17108         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
17109         frame_offset, stack_check_probe_note, arg_pointer_save_area,
17110         used_temp_slots avail_temp_slots, temp_slot_level,
17111         nonlocal_goto_handler_labels): Update accesstors.
17112         (rtl): New global variable.
17113         (struct function): Move some fileds to rtl_data.
17114         (get_arg_pointer_save_area): Update prototype.
17115         * builtins.c (expand_builtin_setjmp_receiver): Update call of
17116         get_arg_pointer_save_area.
17117         * expr.c (init_expr): Update
17118         * function.c (get_frame_size): Update
17119         (assign_stack_local): Update
17120         (expand_function_end): Update.
17121         (get_art_pointer_save_area): Update
17122         * function.h
17123         * emit-rtl.c (rtl): Declare.
17124         (regno_reg_rtx): Declare.
17125         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
17126         Update.
17127         (gen_reg_rtx): Update.
17128         * varasm.c (n_deferred_constatns): Update accestor.
17129         (init_varasm_status): Do not allocate varasm_status.
17130         (force_const_mem, get_pool_size, output_constant_pool): Update.
17131         * stmt.c (force_label_rtx): Do not use x_ prefixes.
17132         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
17133         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
17134         * sparc/sparc.h (INIT_EXPANDERS): Update.
17135         * ia64/ia64.h (INIT_EXPANDERS): Update.
17136
17137 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
17138
17139         * reload.c (push_secondary_reload): Add missing break to for loop.
17140
17141 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
17142
17143         PR middle-end/PR28690
17144         * rtlanal.c: Update copyright years.
17145         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
17146         as REG_POINTER and MEM_POINTER operands.
17147         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
17148         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
17149         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
17150         * gcse.c: Update copyright years.
17151         (pre_delete): Call gen_reg_rtx_and_attrs.
17152         (hoist_code): Likewise.
17153         (build_store_vectors): Likewise.
17154         (delete_store): Likewise.
17155         * loop-invariant.c (move_invariant_reg): Likewise.
17156         Update copyright years.
17157
17158 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
17159
17160         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
17161         control string instead of quoted.
17162
17163 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
17164
17165         * doc/rtl.texi: Rewrite of subreg section.
17166
17167 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
17168
17169         PR/35842
17170         * config/i386/i386.c (legitimize_pic_address): Add treating
17171         of dllimport SYM_REF's.
17172         (legitimize_dllimport_symbol): Add prototype.
17173
17174 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
17175
17176         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
17177         reference in constructor with non self-referential type.
17178
17179 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
17180
17181         Removal of Return with Depressed Stack Pointer support
17182         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
17183         (ECF_SP_DEPRESSED): Likewise.
17184         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
17185         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
17186         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
17187         (expand_call): Do not test ECF_SP_DEPRESSED.
17188         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
17189         * function.c (keep_stack_depressed): Delete.
17190         (handle_epilogue_set): Likewise.
17191         (update_epilogue_consts): Likewise.
17192         (emit_equiv_load): Likewise.
17193         (thread_prologue_and_epilogue_insns): Remove support for Return with
17194         Depressed Stack Pointer.
17195         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
17196
17197 2008-04-06  Richard Guenther  <rguenther@suse.de>
17198
17199         PR tree-optimization/35400
17200         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
17201         information from SSA_NAMEs.
17202
17203 2008-04-06  Anatoly Sokolov <aesok@post.ru>
17204
17205         * config/avr/avr.h (avr_mega_p): Remove declaration.
17206         (AVR_MEGA): Remove macro.
17207         * config/avr/avr.c (avr_mega_p): Remove variable.
17208         (avr_override_options): Remove inicializion of avr_mega_p.
17209         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
17210         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
17211         (avr_jump_mode): (Ditto.).
17212         (avr_output_progmem_section_asm_op): (Ditto.).
17213         (avr_asm_init_sections): (Ditto.).
17214         (avr_asm_init_sections): (Ditto.).
17215         (avr_rtx_costs): (Ditto.).
17216         * config/avr/avr.md: (Ditto.).
17217         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
17218         '__AVR_MEGA__'.
17219
17220 2008-04-06  Richard Guenther  <rguenther@suse.de>
17221
17222         PR tree-optimization/35842
17223         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
17224         is_gimple_invariant_address.
17225
17226 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17227
17228         * gcc.c (default_compilers): Sync Fortran extensions list with
17229         that in fortran/lang-specs.h.
17230         * doc/invoke.texi: Likewise.
17231         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
17232         * dwarf2out.c (gen_compile_unit_die): Likewise.
17233
17234 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
17235
17236         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
17237
17238 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
17239
17240         PR target/12329
17241         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
17242         attribute is used for nested functions.
17243
17244 2008-04-05  Jan Hubicka  <jh@suse.cz>
17245
17246         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
17247
17248         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
17249         letter argument.
17250         (dump_files): Update.
17251         (enable_rtl_dump_file): Do not accept letter argument.
17252         * tree-pass.h (dump_file_info): Remove letter argument.
17253         * toplev.c (decode_d_option): Update -da handling.
17254         * toplev.h (enable_rtl_dump_file): Update prototype.
17255         * passes.c (register_one_dump_file): Do not accept IPA argument; work
17256         it out based on pass type.
17257         (register_dump_files_1): Likewise.
17258         (init_optimization_passes): Update register_one_dump_file calls.
17259         (execute_one_pass): Sanity check that IPA passes are called at IPA
17260         level and RTL passes at RTL level.
17261         (execute_pass_list): IPA pass can not be after or subpass of
17262         GIMPLE/RTL pass.
17263         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
17264         disallov RTL subpasses of IPA subpasses.
17265
17266 2008-04-05  Ben Elliston  <bje@au.ibm.com>
17267
17268         * tree-cfg.c (need_fake_edge_p): Return false for calls to
17269         builtins that return exactly once and do not throw. Cache call to
17270         call_expr_flags.
17271
17272 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
17273
17274         PR rtl-optimization/34916
17275         PR middle-end/35519
17276         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
17277         between instruction pairs.
17278
17279 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
17280
17281         * doc/invoke.texi: Document -mbitops for SH.
17282         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
17283         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
17284         * config/sh/sh.c (print_operand): Add %t operand code.
17285         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
17286         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
17287         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
17288         (extendqihi2): Likewise.
17289         (movqi_i): Likewise.
17290         (insv): Use bset, bclr and bst instructions for SH2A if possible.
17291         (extv): Use bld instruction for SH2A if possible.
17292         (extzv): Likewise.
17293         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
17294         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
17295         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
17296         (bset.b, bclr.b): Define peepholes.
17297         * config/sh/sh.opt (mbitops): New option.
17298
17299 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
17300
17301         PR target/35620
17302         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
17303         and view convert expression.
17304
17305 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
17306
17307         PR target/35364
17308         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
17309
17310 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
17311
17312         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
17313
17314         * config/i386/cpuid.h (bit_AES): New.
17315         (bit_PCLMUL): Likewise.
17316
17317         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
17318         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
17319         SSE2 if AES or PCLMUL is enabled.
17320         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
17321         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
17322         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
17323         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
17324         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
17325         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
17326         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
17327         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
17328         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
17329         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
17330         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
17331         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
17332         __builtin_ia32_aeskeygenassist128 and
17333         __builtin_ia32_pclmulqdq128.
17334         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
17335         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
17336         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
17337
17338         * config/i386/i386.h (TARGET_AES): New.
17339         (TARGET_PCLMUL): Likewise.
17340         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
17341
17342         * config/i386/i386.md (UNSPEC_AESENC): New.
17343         (UNSPEC_AESENCLAST): Likewise.
17344         (UNSPEC_AESDEC): Likewise.
17345         (UNSPEC_AESDECLAST): Likewise.
17346         (UNSPEC_AESIMC): Likewise.
17347         (UNSPEC_AESKEYGENASSIST): Likewise.
17348         (UNSPEC_PCLMUL): Likewise.
17349
17350         * config/i386/i386.opt (maes): New.
17351         (mpclmul): Likewise.
17352
17353         * config/i386/sse.md (aesenc): New pattern.
17354         (aesenclast): Likewise.
17355         (aesdec): Likewise.
17356         (aesdeclast): Likewise.
17357         (aesimc): Likewise.
17358         (aeskeygenassist): Likewise.
17359         (pclmulqdq): Likewise.
17360
17361         * config/i386/wmmintrin.h: New.
17362
17363         * doc/extend.texi: Document AES and PCLMUL built-in function.
17364
17365         * doc/invoke.texi: Document -maes and -mpclmul.
17366
17367 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
17368
17369         * function.c (free_after_parsing): Replace with
17370         cxx_push_function_context from C++ front-end.
17371         (allocate_struct_function): Don't call langhook.
17372         * langhooks.h (struct lang_hooks_for_functions): Delete.
17373         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
17374         member "function".
17375         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
17376         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
17377         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
17378         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
17379         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
17380         remove LANG_HOOKS_FUNCTION_INITIALIZER.
17381         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
17382
17383         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
17384         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
17385
17386 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
17387
17388         PR c/35440
17389         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
17390         for all types.
17391
17392 2008-04-04  Richard Guenther  <rguenther@suse.de>
17393
17394         PR middle-end/35823
17395         * fold-const.c (optimize_minmax_comparison): Use the correct
17396         type for the constant in the simplified comparison.
17397
17398 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
17399
17400         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
17401         Pass L2 size as "--param l2-cache-size" to the compiler.
17402         (decode_l2_cache): New function to decode L2 cache parameters using
17403         0x8000006 extended cpuid function.
17404         (detect_caches_amd): Determine parameters of L2 cache using
17405         decode_l2_caches function.
17406         (decode_caches_intel): Decode L2 cache parameters.
17407         (detect_caches_intel): Determine L2 cache parameters using
17408         decode_caches_intel and decode_l2_caches functions.
17409
17410 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
17411
17412         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
17413         secondary input reload for subword loads from the constant pool.
17414
17415 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
17416
17417         PR target/35713
17418         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
17419           constants of the appropriate size for runtime calculations.
17420
17421         PR c/35712
17422         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
17423           decimal-float literal constant zero.
17424
17425 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
17426
17427         PR c/35738
17428         * c-parser.c (c_parser_omp_atomic): Call
17429         default_function_array_conversion on the RHS.
17430
17431         PR middle-end/35818
17432         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
17433         call is_variable_sized if decl has incomplete type.
17434
17435 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
17436
17437         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
17438
17439 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
17440
17441         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
17442         iterators.
17443         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
17444         (sgt<u>): Merge sgt and sgtu into new expander.
17445         (sgt, sgtu): Remove expanders.
17446         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
17447         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
17448         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
17449         *sgtu_<mode>_mips16 into new pattern.
17450         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
17451         (sge<u>): Merge sge and sgeu into new expander.
17452         (sge, sgeu): Remove expanders.
17453         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
17454         new pattern.
17455         (*sge_<mode>, second *sge_<mode>): Remove patterns.
17456         (slt<u>): Merge slt and sltu into new expander.
17457         (slt, sltu): Remove expanders.
17458         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
17459         (*slt_<mode>, *sltu_<mode>): Remove patterns.
17460         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
17461         *sltu_<mode>_mips16 into new pattern.
17462         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
17463         (sle<u>): Merge sle and sleu into new expander.
17464         (sle, sleu): Remove expanders.
17465         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
17466         (*sle_<mode>, *sleu_<mode>): Remove patterns.
17467         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
17468         *sleu_<mode>_mips16 into new pattern.
17469         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
17470
17471 2008-04-03  Jan Hubicka  <jh@suse.cz>
17472
17473         PR tree-optimization/35795
17474         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
17475         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
17476         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
17477         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
17478         * score/score3.c (score3_output_mi_thunk): Likewise.
17479         * score/score7.c (score7_output_mi_thunk): Likewise.
17480         * mips/mips.c (mips_output_mi_thunk): Likewise.
17481
17482 2008-04-03  Richard Guenther  <rguenther@suse.de>
17483
17484         * tree-vrp.c (extract_range_from_unary_expr): Handle all
17485         conversions.  Simplify code.
17486
17487 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
17488
17489         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
17490
17491 2008-04-03  Tom Tromey  <tromey@redhat.com>
17492             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17493
17494         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
17495         * config/bfin/t-bfin-linux (generated_files): Add
17496         linux-sysroot-suffix.h.
17497         * doc/install.texi (Prerequisites): Require make 3.80.
17498         * doc/sourcebuild.texi (Front End Directory): Document new
17499         variable.
17500         * Makefile.in (generated_files): New variable.
17501         (ALL_HOST_OBJS): New variable.
17502         ($(ALL_HOST_OBJS)): New target.
17503
17504 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
17505
17506         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
17507         (remap_block): Call id->transform_lang_insert_block instead
17508         of langhook.
17509         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
17510         Set id.transform_lang_insert_block to NULL.
17511         (clone_body): Move to cp/optimize.c
17512         * tree-inline.h (struct copy_body_data): Change
17513         transform_lang_insert_block to function pointer.
17514         (copy_generic_body, copy_decl_no_change): Export.
17515         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
17516         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
17517         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
17518
17519         * c-tree.h (insert_block): Kill.
17520         * c-decl.c (insert_block): Kill.
17521
17522 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
17523
17524         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17525         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
17526         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
17527         argument.
17528         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
17529         argument, call {push,pop}_function_context from here.
17530         * c-parser.c: Use c_{push,pop}_function_context.
17531
17532         * function.c (push_function_context_to): Move meat ...
17533         (push_function_context): ... here.  Simplify.
17534         * function.c (pop_function_context_from): Move meat ...
17535         (pop_function_context): ... here.  Simplify.
17536         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
17537         leave_nested).
17538         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17539         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
17540         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
17541         * tree.h (push_function_context_to, pop_function_context_from): Remove.
17542
17543 2008-04-03  Ben Elliston  <bje@au.ibm.com>
17544
17545         * expmed.c (extract_force_align_mem_bit_field): Remove.
17546
17547 2008-04-03  Richard Guenther  <rguenther@suse.de>
17548
17549         PR middle-end/35800
17550         * expr.h (try_casesi): Adjust prototype.
17551         * expr.c (try_casesi): Take fallback label as extra parameter.
17552         Use that for gen_casesi if default_label is NULL.
17553         * stmt.c (expand_case): Pass fallback label to try_casesi,
17554         make sure to fill gaps with a fallback label if default_label
17555         is not present.
17556
17557 2008-04-03  Dominique d'Humières <dominiq@lps.ens.fr>
17558
17559         PR target/35801
17560         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
17561
17562 2008-04-03  Ben Elliston  <bje@au.ibm.com>
17563
17564         * expmed.c (extract_split_bit_field): Remove if (0) code.
17565         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
17566         (do_ds_constraint): Likewise.
17567
17568 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
17569
17570         * doc/cppopts.texi (-dU): Document.
17571         * c-common.h (flag_dump_macros): Update comment.
17572         * c-opts.c (handle_OPT_d): Handle -dU.
17573         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
17574         dump_queued_macros, cb_used_define, cb_used_undef): New.
17575         (init_pp_output): Handle -dU.
17576         (cb_line_change): Call dump_queued_macros.
17577         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
17578
17579 2008-04-02  Anatoly Sokolov <aesok@post.ru>
17580
17581         * config/avr/predicates.md (io_address_operand): New predicate.
17582         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
17583         * config/avr/avr.c (avr_io_address_p): Remove function.
17584         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
17585         'avr_io_address_p' function.
17586         (out_movhi_r_mr): (Ditto.).
17587         (out_movqi_mr_r): (Ditto.).
17588         (out_movhi_mr_r): (Ditto.).
17589         (avr_address_cost): (Ditto.).
17590
17591 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
17592
17593         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
17594         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
17595         in 32bit mode when XMM registers are available to avoid store
17596         forwarding stalls.
17597         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
17598         corresponding post-reload splitters.
17599
17600 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
17601
17602         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
17603         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
17604         __builtin_ia32_roundss.
17605         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
17606         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
17607         __builtin_ia32_roundss.
17608         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
17609         IX86_BUILTIN_SHUFPD here.
17610
17611 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
17612
17613         * config/i386/i386.md (plogic): New.
17614         (plogicprefix): Likewise.
17615
17616         * config/i386/mmx.md (mmx_<code><mode>3): New.
17617         (mmx_and<mode>3): Removed.
17618         (mmx_ior<mode>3): Likewise.
17619         (mmx_xor<mode>3): Likewise.
17620
17621         * config/i386/sse.md (<code><mode>3): New.
17622         (*<code><mode>3): Likewise.
17623         (*<code><mode>3): Likewise.
17624         (<code><mode>3): Likewise.
17625         (*sse_<code><mode>3): Likewise.
17626         (*sse2_<code><mode>3): Likewise.
17627         (<code>tf3): Likewise.
17628         (*<code>tf3): Likewise.
17629         (and<mode>3): Likewise.
17630         (*and<mode>3): Likewise.
17631         (ior<mode>3): Removed.
17632         (*ior<mode>3): Likewise.
17633         (xor<mode>3): Likewise.
17634         (*xor<mode>3): Likewise.
17635         (*and<mode>3): Likewise.
17636         (*ior<mode>3): Likewise.
17637         (*xor<mode>3): Likewise.
17638         (and<mode>3): Likewise.
17639         (*sse_and<mode>3): Likewise.
17640         (*sse2_and<mode>3): Likewise.
17641         (andtf3): Likewise.
17642         (*andtf3): Likewise.
17643         (ior<mode>3): Likewise.
17644         (*sse_ior<mode>3): Likewise.
17645         (*sse2_ior<mode>3): Likewise.
17646         (iortf3): Likewise.
17647         (*iortf3): Likewise.
17648         (xor<mode>3): Likewise.
17649         (*sse_xor<mode>3): Likewise.
17650         (*sse2_xor<mode>3): Likewise.
17651         (xortf3): Likewise.
17652         (*xortf3): Likewise.
17653
17654 2008-04-02  Richard Guenther  <rguenther@suse.de>
17655
17656         PR tree-optimization/14495
17657         PR tree-optimization/34793
17658         * tree-vrp.c (struct switch_update): New structure.
17659         (to_remove_edges, to_update_switch_stmts): New VECs.
17660         (simplify_switch_using_ranges): New function.  Remove not taken
17661         case labels and edges.
17662         (simplify_stmt_using_ranges): Call it.
17663         (identify_jump_threads): Mark edges we have queued for removal
17664         so we don't thread them.
17665         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
17666         case label vector.
17667         * tree-cfg.c (group_case_labels): Deal with missing default label.
17668         (tree_verify_flow_info): Allow missing default label.
17669         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
17670         (emit_case_nodes): Likewise.
17671         (expand_case): Do not rely on the default label to be present.
17672         * expr.c (try_casesi): Deal with NULL default_label.
17673         (do_tablejump): Likewise.
17674
17675 2008-04-02  Richard Guenther  <rguenther@suse.de>
17676
17677         PR tree-optimization/14495
17678         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
17679         SWITCH_EXPR here ...
17680         (vrp_visit_switch_stmt): ... but here (new function).
17681         (find_case_label_index): New helper function.
17682         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
17683
17684 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17685
17686         * fwprop.c: Fix ISO-C99ism.
17687
17688 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17689
17690         PR bootstrap/35752
17691         * Makefile.in (objdir): Set it here.
17692         * configure.ac: Not here.  Find dynamic linker characteristics.
17693         * exec-tool.in: Use them.
17694         * aclocal.m4: Regenerate.
17695         * configure: Regenerate.
17696
17697 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17698
17699         * expr.c (expand_var): Delete it.
17700         * expr.h (expand_var): Delete prototype.
17701         * function.c (expand_function_start): Use expand_decl instead.
17702         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
17703         langhook.
17704
17705 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
17706
17707         PR rtl-optimization/35542
17708         * fwprop.c (forward_propagate_and_simplify): Replace
17709         loc_reg_mentioned_in_p with reg_mentioned_p.
17710
17711 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
17712
17713         PR rtl-optimization/35281
17714         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
17715         (propagate_rtx_1): Handle PR_HANDLE_MEM.
17716         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
17717         (varying_mem_p): Move above propagate_rtx.
17718         (all_uses_available_at): Do not check MEMs.
17719
17720 2008-04-02  Rafael Espíndola  <espindola@google.com>
17721
17722         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
17723         (register_edge_assert_for_2): Split the cond argument.
17724         (register_edge_assert_for_1): Adjust for the change in
17725         register_edge_assert_for_2.
17726         (register_edge_assert_for): Split the cond argument.
17727         (find_switch_asserts): Adjust for the change in
17728         register_edge_assert_for.
17729
17730 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
17731
17732         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
17733         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
17734         offsets for 64-bit mingw.
17735         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
17736         abi for x86_64-pc-mingw.
17737
17738 2008-04-02  Richard Guenther  <rguenther@suse.de>
17739
17740         * tree-vrp.c (extract_range_from_assert): Make sure to not
17741         produce range min/max with TREE_OVERFOW set.
17742         If merging a anti-range and a range keep the anti-range if
17743         the range covers all values of the type.
17744         (register_edge_assert_for_2): Only allow sign-changing
17745         conversions in detecting canonical range checks.  Also
17746         register an assert for the unsigned name if useful.
17747
17748         PR tree-optimization/35787
17749         * tree-vrp.c (vrp_val_max): New function.
17750         (vrp_val_min): Likewise.
17751         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
17752         (vrp_val_is_min): Likewise.
17753         (supports_overflow_infinity): Use vrp_val_{min,max}.
17754         (negative_overflow_infinity): Likewise.
17755         (positive_overflow_infinity): Likewise.
17756         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
17757         (is_positive_overflow_infinity): Likewise.
17758         (is_overflow_infinity): Likewise.
17759         (avoid_overflow_infinity): Use vrp_val_{min,max} and
17760         vrp_val_is_{min,max}.
17761         (set_and_canonicalize_value_range): Canonicalize anti-ranges
17762         to ranges if possible.  Avoid empty ranges.
17763
17764 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17765
17766         PR middle-end/35705
17767         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
17768         the expression is a function address.
17769
17770 2008-04-01  George Helffrich  <george@gcc.gnu.org>
17771
17772         PR fortran/35154, fortran/23057
17773         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
17774         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
17775         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
17776         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
17777         in common.
17778         (dbxout_syms): Check for COMMON-based symbol and wrap in
17779         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
17780         in bracket for efficiency.
17781
17782         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
17783         using DW_TAG_common_block + member offset.
17784         (add_pubname_string): New function.
17785         (dw_expand_expr): New function to find block name and offset for
17786         COMMON var.
17787         (common_check): New function to check whether symbol in Fortran COMMON.
17788         (gen_variable_die): If COMMON, use DW_TAG_common_block.
17789
17790 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
17791
17792         PR c/35436
17793         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
17794
17795 2008-04-02  Ben Elliston  <bje@au.ibm.com>
17796
17797         * config/v850/v850.md (casesi): Remove if (0) code.
17798         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17799         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
17800
17801 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
17802
17803         * config/i386/i386.md (rex64suffix): New mode attribute.
17804         (floathi<mode>2): Disable expander for SSE math.
17805         (*floathi<mode>2_1): New insn insn_and_split pattern.
17806         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
17807         corresponding post-reload splitters.
17808         (*floathi<mode>2_i387): New macroized insn pattern.
17809         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
17810         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
17811         insn_and_split pattern.
17812         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
17813         New macroized instruction patterns and corresponding post-reload
17814         splitters.
17815         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
17816         and corresponding post-reload splitters.
17817         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
17818         New macroized instruction patterns.
17819         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
17820         macroized instruction patterns and corresponding post-reload splitters.
17821         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
17822         corresponding post-reload splitters.
17823         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
17824         New macroized instruction patterns.
17825         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
17826         corresponding post-reload splitters.
17827         (*floatsi<mode>2_i387): New macroized instruction patterns.
17828
17829 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
17830
17831         * config/i386/i386.md (smaxmin): New.
17832         (umaxmin): Likewise.
17833         (maxminiprefix): Likewise.
17834         (maxminfprefix): Likewise.
17835         (<code><mode>3): Likewise.
17836         (smin<mode>3): Removed.
17837         (smax<mode>3): Likewise.
17838
17839         * config/i386/mmx.md (mmx_<code>v2sf3): New.
17840         (mmx_<code>v4hi3): Likewise.
17841         (mmx_<code>v8qi3): Likewise.
17842         (mmx_smaxv2sf3): Removed.
17843         (mmx_sminv2sf3): Likewise.
17844         (mmx_umaxv8qi3): Likewise.
17845         (mmx_smaxv4hi3): Likewise.
17846         (mmx_uminv8qi3): Likewise.
17847         (mmx_sminv4hi3): Likewise.
17848
17849         * config/i386/sse.md (<addsub><mode>3): New.
17850         (*<addsub><mode>3): Likewise.
17851         (<sse>_vm<addsub><mode>3): Likewise.
17852         (<maxmin><mode>3): Likewise.
17853         (*<maxmin><mode>3_finite): Likewise.
17854         (*<maxmin><mode>3): Likewise.
17855         (<sse>_vm<maxmin><mode>3): Likewise.
17856         (sse3_h<addsub>v4sf3): Likewise.
17857         (sse3_h<addsub>v2df3): Likewise.
17858         (<maxmin>v16qi3): Likewise.
17859         (*<maxmin>v16qi3): Likewise.
17860         (<maxmin>v8hi3): Likewise.
17861         (*<maxmin>v8hi3): Likewise.
17862         (*sse4_1_<maxmin><mode>3): Likewise.
17863         (*sse4_1_<maxmin><mode>3): Likewise.
17864         (add<mode>3): Removed.
17865         (*add<mode>3): Likewise.
17866         (<sse>_vmadd<mode>3): Likewise.
17867         (sub<mode>3): Likewise.
17868         (*sub<mode>3): Likewise.
17869         (<sse>_vmsub<mode>3): Likewise.
17870         (smin<mode>3): Likewise.
17871         (*smin<mode>3_finite): Likewise.
17872         (*smin<mode>3): Likewise.
17873         (<sse>_vmsmin<mode>3): Likewise.
17874         (smax<mode>3): Likewise.
17875         (*smax<mode>3_finite): Likewise.
17876         (*smax<mode>3): Likewise.
17877         (<sse>_vmsmax<mode>3): Likewise.
17878         (sse3_haddv4sf3): Likewise.
17879         (sse3_haddv2df3): Likewise.
17880         (sse3_hsubv4sf3): Likewise.
17881         (sse3_hsubv2df3): Likewise.
17882         (umaxv16qi3): Likewise.
17883         (*umaxv16qi3): Likewise.
17884         (smaxv8hi3): Likewise.
17885         (*smaxv8hi3): Likewise.
17886         (*sse4_1_smax<mode>3): Likewise.
17887         (*sse4_1_umax<mode>3): Likewise.
17888         (uminv16qi3): Likewise.
17889         (*uminv16qi3): Likewise.
17890         (sminv8hi3): Likewise.
17891         (*sminv8hi3): Likewise.
17892         (*sse4_1_smin<mode>3): Likewise.
17893         (*sse4_1_umin<mode>3): Likewise.
17894
17895 2008-04-01  Rafael Espíndola  <espindola@google.com>
17896
17897         * tree-cfg.c (verify_expr): remove in_phi.
17898         (verify_stmt): Don't call walk_tree with verify_expr. Use
17899         is_gimple_min_invariant instead of is_gimple_val.
17900
17901 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
17902
17903         * doc/include/gpl_v3.texi: Update for manpage generation.
17904         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
17905         gpl.texi.
17906         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
17907         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
17908         gpl_v3.texi instead of gpl.texi.
17909         (gpl.pod): New.
17910
17911 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
17912
17913         PR pch/13675
17914         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
17915
17916 2008-04-01  Rafael Espíndola  <espindola@google.com>
17917
17918         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
17919         (extract_code_and_val_from_cond): Use
17920         extract_code_and_val_from_cond_with_ops.
17921
17922 2008-04-01  Jan Hubicka  <jh@suse.cz>
17923
17924         * function.c (free_after_compilation): Free epilogue_delay_list.
17925         (prepare_function_start): Assert that previous compilation was freed.
17926
17927 2008-04-01  Jan Hubicka  <jh@suse.cz>
17928             Jim Wilson  <wilson@tuliptree.org>
17929             Andreas Tobler <andreast@gcc.gnu.org>
17930
17931         PR middle-end/35781
17932         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
17933         rtl.emit instead cfun->emit.
17934         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
17935         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
17936
17937 2008-04-01  Ben Elliston  <bje@au.ibm.com>
17938
17939         * doc/c-tree.texi (Function Basics): Fix grammatical error.
17940
17941 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
17942
17943         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
17944         New options
17945         (fprofile-use): Add var flag_profile_use
17946         * coverage.c (coverage_begin_output): Do not open a gcno file for
17947         output only if -ftest-coverage is set.
17948         Do not add getpwd() to gcda file path.
17949         (build_gcov_info): Check the new flag
17950         flag_profile_datafile_relative_path.
17951         (coverage_init): Use profile_data_prefix.
17952         Read profile counter only if flag_profile_use is set.
17953         * opts.c (common_handle_option): New option fprofile-use=,
17954         fprofile-dir=, fprofile-generate=.
17955         * toplev.c (profile_data_prefix): New variable definition.
17956         * toplev.h (profile_data_prefix): New declaration.
17957         * doc/invoke.tex (Option Summary, Optimization Options):
17958         Add new options.
17959
17960 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
17961
17962         * varasm.c (output_constant_pool_1): In LABEL_REF check,
17963         use tmp consistently.
17964
17965         PR target/35695
17966         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
17967         * config/ia64/ia64.c (rtx_needs_barrier): Handle
17968         UNSPEC_FR_RECIP_APPROX_RES.
17969         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
17970
17971 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
17972
17973         PR c/35750
17974         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
17975
17976 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17977
17978         PR middle-end/30186
17979         * fold-const.c (fold_indirect_ref_1): Support accessing non first
17980         element of the vector via a pointer.
17981
17982 2008-03-31  Ian Lance Taylor  <iant@google.com>
17983
17984         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
17985
17986 2008-03-31  Jan Hubicka  <jh@suse.cz>
17987
17988         * builtins.c (expand_builtin_setjmp_receiver): Update call of
17989         get_arg_pointer_save_area.
17990         * expr.c (init_expr): Just clear out rtl.expr.
17991         * function.c (free_after_compilation): Clear out whole RTL structure.
17992         (get_func_frame_size): Merge into ...
17993         (get_frame_size): ... this one.
17994         (assign_stack_local_1): Merge into ...
17995         (assign_stack_local): ... this one.
17996         (expand_function_end): Update call of get_arg_pointer_save_area.
17997         (get_art_pointer_save_area): Remove cfun argument.
17998         * function.h (emit_status): regno_pointer_align does not need length
17999         attribute. Move x_regno_reg_rtx to ...
18000         (regno_reg_rtx): ... new global array.
18001         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
18002         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
18003         apply_args_value, forced_labels, stack_pointer_delta):
18004         Update accestors.
18005         (struct varasm_status): Move here from varasm.c
18006         (struct rtl_data): New. Move here some fields from struct function.
18007         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
18008         frame_offset, stack_check_probe_note, arg_pointer_save_area,
18009         used_temp_slots avail_temp_slots, temp_slot_level,
18010         nonlocal_goto_handler_labels): Update accesstors.
18011         (rtl): New global variable.
18012         (struct function): Move some fileds to rtl_data.
18013         (get_arg_pointer_save_area): Update prototype.
18014         * emit-rtl.c (rtl): Declare.
18015         (regno_reg_rtx): Declare.
18016         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
18017         Update.
18018         (gen_reg_rtx): Update.
18019         (init_virtual_regs): Do not tate emit_status argument.
18020         (init_emit): Do not allocate emit.
18021         * varasm.c (varasm_statuc): Move to function.h.
18022         (n_deferred_constatns): Update accestor.
18023         (init_varasm_status): Do not allocate varasm_status.
18024         (force_const_mem, get_pool_size, output_constant_pool): Update.
18025         * stmt.c (force_label_rtx): Do not use x_ prefixes.
18026         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
18027
18028 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
18029
18030         PR rtl-optimization/35729
18031         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
18032         references.
18033
18034 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
18035
18036         PR target/32000
18037         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
18038         load/store if memory is unaligned.
18039         (*movti_rex64): Likewise.
18040
18041         * config/i386/predicates.md (misaligned_operand): New.
18042
18043 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
18044
18045         PR tree-opt/35431
18046         * tree-ssa-phiopt.c (conditional_replacement): Return early for
18047         complex types.
18048
18049 2008-03-31  Jan Beulich  <jbeulich@novell.com>
18050
18051         * config/ia64/constraints.md: Add 'j' constraint.
18052         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
18053         (movdi_internal): Likewise.
18054
18055 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
18056
18057         PR c/35748
18058         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
18059
18060 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
18061
18062         PR target/35757
18063         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
18064         proper error message for the third argument on blendpd and
18065         blendps.
18066
18067         * config/i386/sse.md (blendbits): New.
18068         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
18069
18070 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
18071
18072         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
18073
18074 2008-03-30  Richard Guenther  <rguenther@suse.de>
18075
18076         PR middle-end/31023
18077         * fold-const.c (fold_sign_changed_comparison): Do leave
18078         conversions to base-types alone.
18079
18080 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18081
18082         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
18083         the link register if one altivec register is be saved.
18084
18085 2008-03-30  Ben Elliston  <bje@au.ibm.com>
18086
18087         * final.c (final_scan_insn): Remove if (0) code.
18088
18089 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
18090
18091         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
18092
18093 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
18094
18095         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
18096         of V4SFmode to ix86_binary_operator_ok.
18097
18098 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
18099
18100         * config/i386/i386.c (override_options): Initialize
18101         ix86_veclib_handler to ix86_veclibabi_svml when
18102         -mveclibabi=svml is used.
18103         (ix86_veclibabi_svml): New function for SVML ABI style
18104         vectorization support.
18105         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
18106
18107 2008-03-28  Rafael Espíndola  <espindola@google.com>
18108
18109         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
18110         (tree_binary_nonnegative_warnv_p): Make it public.
18111         (tree_single_nonnegative_warnv_p): Make it public.
18112         (tree_invalid_nonnegative_warnv_p): Make it public.
18113         (tree_unary_nonzero_warnv_p): Make it public.
18114         (tree_binary_nonzero_warnv_p): Make it public
18115         (tree_single_nonzero_warnv_p): Make it public.
18116         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
18117         (extract_range_from_binary_expr): Split the expr argument.
18118         (extract_range_from_unary_expr): Split the expr argument.
18119         (extract_range_from_comparison): Split the expr argument.
18120         (extract_range_from_expr): Use the new aux functions.
18121         (vrp_evaluate_conditional_warnv): Use
18122         vrp_evaluate_conditional_warnv_with_ops.
18123         * tree.h (tree_unary_nonzero_warnv_p): Declare.
18124         (tree_binary_nonzero_warnv_p): Declare.
18125         (tree_single_nonzero_warnv_p): Declare.
18126         (tree_expr_nonzero_warnv_p): Declare.
18127         (tree_unary_nonnegative_warnv_p): Declare.
18128         (tree_binary_nonnegative_warnv_p): Declare.
18129         (tree_single_nonnegative_warnv_p): Declare.
18130         (tree_invalid_nonnegative_warnv_p): Declare.
18131
18132 2008-03-28  Richard Guenther  <rguenther@suse.de>
18133
18134         PR tree-optimization/30317
18135         PR tree-optimization/30911
18136         PR tree-optimization/34793
18137         * tree-vrp.c (set_and_canonicalize_value_range): New function.
18138         (struct assert_locus_d): New member EXPR.
18139         (register_new_assert_for): Add EXPR parameter to support
18140         ASSERT_EXPR <name, expr OP limit>.
18141         (register_edge_assert_for_1): Adjust callers.
18142         (find_assert_locations): Likewise.
18143         (process_assert_insertions_for): Build condition from expression.
18144         (extract_range_from_assert): Handle ASSERT_EXPRs
18145         of the form ASSERT_EXPR <name, expr OP limit>.
18146         (register_edge_assert_for_2): New helper registering
18147         asserts for comparisons.  Recognize range tests of the form
18148         (unsigned)i - CST1 OP CST2.
18149         (register_edge_assert_for_1): Use it.
18150         (register_edge_assert_for): Likewise.
18151         (needs_overflow_infinity): Integer sub-types
18152         do not need overflow infinities.
18153         (vrp_val_is_max): The extreme values of integer sub-types
18154         are those of the base type.
18155         (vrp_val_is_min): Likewise.
18156         * tree.def (ASSERT_EXPR): Document extra allowed conditional
18157         expressions.
18158
18159 2008-03-28  Nick Clifton  <nickc@redhat.com>
18160
18161         PR target/31110
18162         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
18163         Return GENERAL_REGS for stack adjustment reloads.
18164
18165 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18166
18167         PR target/31334
18168         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
18169         const_vector when all the vectors are constant.
18170
18171 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
18172
18173         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
18174         comparisons.
18175         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
18176         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
18177         (scc_sf): New.
18178         (s<code>_sf): Use new scc_sf attribute for opcode names.
18179
18180 2008-03-27  Tom Tromey  <tromey@redhat.com>
18181
18182         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
18183         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
18184         config/spu/t-spu-elf, config/i386/t-interix,
18185         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
18186         config/i386/x-darwin, config/i386/x-mingw32,
18187         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
18188         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
18189         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
18190         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
18191         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
18192         config/rs6000/x-darwin, config/rs6000/t-rs6000,
18193         config/score/t-score-elf, config/arm/t-strongarm-pe,
18194         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
18195         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
18196         Revert automatic dependency patch.
18197
18198 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
18199
18200         PR target/35657
18201         * config/i386/i386.c (ix86_function_arg_boundary): Align
18202         decimal floating point to its natural boundary.
18203
18204 2008-03-27  Richard Guenther  <rguenther@suse.de>
18205
18206         PR middle-end/35716
18207         * fold-const.c (fold_comparison): Restrict distinct decl
18208         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
18209         solely rely on operand_equal_p.
18210
18211 2008-03-27  Richard Guenther  <rguenther@suse.de>
18212
18213         PR c/32511
18214         * c-common.c (handle_weak_attribute): Reject combination of
18215         weak and inline.
18216
18217 2008-03-27  Richard Guenther  <rguenther@suse.de>
18218
18219         PR tree-optimization/32810
18220         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
18221         conversions from DECL_INITIAL.
18222         (fold_const_aggregate_ref): Likewise from constructor elements.
18223
18224 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
18225
18226         * tree-affine.h (aff_combination_expand): Declare.
18227         (get_inner_reference_aff): Likewise.
18228         * tree-affine.c (aff_combination_expand): Split out from
18229         tree_to_aff_combination_expand.
18230         (get_inner_reference_aff): New function.
18231         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
18232         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
18233         (struct lim_aux_data): sm_done field removed.
18234         (mem_ref_loc_p, mem_ref_locs_p): New types.
18235         (struct mem_ref): Added id, stored, accesses_in_loop,
18236         indep_loop, dep_loop, indep_ref, dep_ref fields.
18237         Removed is_stored, locs and next fields.
18238         (memory_accesses): New variable.
18239         (movement_possibility): Do not allow moving statements
18240         that store to memory.
18241         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
18242         New functions.
18243         (determine_max_movement): For statements with memory references,
18244         find the outermost loop in that the reference is independent.
18245         (move_computations_stmt): Mark the virtual operands for renaming.
18246         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
18247         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
18248         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
18249         add_vop_ref_mapping, create_vop_ref_mapping_loop,
18250         create_vop_ref_mapping, analyze_memory_references,
18251         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
18252         get_all_locs_in_loop, ref_always_accessed_p,
18253         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
18254         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
18255         store_motion_loop, store_motion): New functions.
18256         (struct vop_to_refs_elt): New type.
18257         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
18258         memref_hash, memref_eq, hoist_memory_references): Rewritten.
18259         (schedule_sm): Replaced by...
18260         (execute_sm): ... this.
18261         (determine_lsm_ref, hoist_memory_references,
18262         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
18263         find_more_ref_vops, free_mem_ref, free_mem_refs,
18264         determine_lsm_loop, determine_lsm): Removed.
18265         (tree_ssa_lim_finalize): Free data structures used by store motion.
18266         (tree_ssa_lim): Call analyze_memory_references.  Use
18267         store_motion instead of determine_lsm.
18268
18269 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
18270
18271         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
18272         rename tmake_file to m68hc11/t-m68hc11.
18273         (mcore): Set inhibit_libc to true.
18274         * config.host (alpha*-dec-*vms*): Set extra_programs.
18275         (interix3*): Don't use host_xmake_file.
18276         * configure.ac: Let config.gcc override inhibit_libc.
18277         * configure: Regenerate.
18278
18279         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
18280         * config/t-openbsd-thread: Remove commented out lines.
18281
18282         * config/x-interix: Remove.
18283
18284         * config/m68hc11/t-m68hc11-gas: Rename to...
18285         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
18286
18287         * config/mcore/t-mcore: Remove T_CFLAGS.
18288         * config/mcore/t-mcore-pe: Likewise.
18289
18290 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
18291
18292         * configure.ac: Replace custom __GNU_SOURCE test with
18293         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
18294         * aclocal.m4: Regenerate.
18295         * configure: Regenerate.
18296         * config.in: Regenerate.
18297
18298 2008-03-27  Richard Guenther  <rguenther@suse.de>
18299
18300         * fold-const.c (target.h): Include.
18301         (fold_comparison): Fold comparison of addresses of decls
18302         that bind locally or of constants.  Consolidate address folding code.
18303         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
18304         results from fold_binary_to_constant.
18305         (compare_values_warnv): Likewise.
18306
18307 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
18308
18309         PR middle-end/35429
18310         * fold-const.c (fold_truthop): Check for integeral types when folding
18311         a == 0 && b == 0 and a != 0 || b != 0 .
18312
18313 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
18314
18315         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
18316
18317 2008-03-26  Andreas Schwab  <schwab@suse.de>
18318
18319         * doc/invoke.texi: Fix use of @item vs. @itemx.
18320
18321 2008-03-26  Tom Tromey  <tromey@redhat.com>
18322
18323         * Makefile.in (build/gensupport.o, build/print-rtl.o,
18324         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
18325         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
18326         build/gencodes.o, build/genconditions.o, build/genconfig.o,
18327         build/genconstants.o, build/genemit.o, build/genextract.o,
18328         build/genflags.o, build/genmddeps.o, build/genopinit.o,
18329         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
18330         options.h.
18331
18332 2008-03-26  Richard Guenther  <rguenther@suse.de>
18333
18334         Revert
18335         2008-03-26  Richard Guenther  <rguenther@suse.de>
18336
18337         * fold-const.c (target.h): Include.
18338         (fold_comparison): Fold comparison of addresses of two decls
18339         that bind locally.  Consolidate address folding code.
18340
18341 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18342
18343         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
18344         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
18345         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
18346         dconstsqrt2, dconstthird, dconste and/or dconst10.
18347         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
18348         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
18349         dconstsqrt2, dconste): Delete.
18350         (init_emit_once): Likewise.  Simplify initializing dconstm1.
18351         Constify variable.
18352         * real.c (get_real_const): New.
18353         * real.h (dconst3, dconst10, dconstm2, dconstthird,
18354         dconstsqrt2, dconste): Delete.
18355         (real_value_const, get_real_const): New.
18356
18357 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
18358
18359         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
18360
18361         * config/i386/i386.c (ix86_function_arg_boundary): Check
18362         BIGGEST_ALIGNMENT instead of 128.
18363         (setup_incoming_varargs_64): Likewise.
18364
18365 2008-03-26  Tom Tromey  <tromey@redhat.com>
18366
18367         * Makefile.in (DEPFILES): Add missing '/'.
18368
18369 2008-03-26  Richard Guenther  <rguenther@suse.de>
18370
18371         * fold-const.c (target.h): Include.
18372         (fold_comparison): Fold comparison of addresses of two decls
18373         that bind locally.  Consolidate address folding code.
18374
18375 2008-03-26  Nick Clifton  <nickc@redhat.com>
18376
18377         PR target/31232
18378         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
18379         not allow INT+INT as a legitimate addressing mode.
18380
18381 2008-03-26  Richard Guenther  <rguenther@suse.de>
18382
18383         * tree-flow.h (widen_bitfield): Remove declaration.
18384         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
18385         (widen_bitfield): Remove function.
18386         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
18387         code.
18388
18389 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18390
18391         PR target/31558
18392         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
18393         error_mark_node's.
18394
18395 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
18396
18397         PR rtl-optimization/35232
18398         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
18399         (forget_old_reloads_1, forget_marked_reloads): Don't clear
18400         reg_reloaded_call_part_clobbered here.
18401         (reload_regs_reach_end_p): New function.
18402         (reload_reg_rtx_for_input): New variable.
18403         (reload_reg_rtx_for_output): Likewise.
18404         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
18405         when reassigning a pseudo register.  Load reloadreg from
18406         reload_reg_rtx_for_input, moving the mode and register
18407         calculation to...
18408         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
18409         instead of the original when deciding whether an input reload
18410         would be a no-op or whether an output reload can be deleted.
18411         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
18412         when setting up new_spill_reg_store.  Load it from
18413         reload_reg_rtx_for_output, moving the mode and register
18414         calculation to...
18415         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
18416         instead of the original when deciding whether an output reload
18417         would be a no-op.  Do the same when modifying insn notes.
18418         Use rtx_equal_p instead of == to compare the registers.
18419         (inherit_piecemeal_p): Take a mode and two register numbers
18420         as argument.
18421         (emit_reload_insns): Clear new_spill_reg_store for every hard
18422         register in the reload register.  Remove spill registers
18423         from reg_reloaded_valid before considering whether to record
18424         inheritance information for them.  Use reload_reg_rtx_for_output
18425         instead of reg_rtx when recording output reloads.  Use
18426         reload_reg_rtx_for_input instead of reg_rtx when recording
18427         input reloads.  Set or clear reg_reloaded_call_part_clobbered
18428         at the same time as setting reg_reloaded_valid.
18429         (delete_output_reload): Add a new_reload_reg parameter and use it
18430         instead of rld[j].reg_rtx.
18431         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
18432         calls accordingly.
18433
18434 2008-03-25  Tom Tromey  <tromey@redhat.com>
18435
18436         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
18437         (build/genattr.o): Likewise.
18438         (build/genattrtab.o): Likewise.
18439         (build/gencodes.o): Likewise.
18440         (build/genconfig.o): Likewise.
18441         (build/genconstants.o): Likewise.
18442         (build/genemit.o): Likewise.
18443         (build/genextract.o): Likewise.
18444         (build/genflags.o): Likewise.
18445
18446 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
18447
18448         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
18449         instead of size_int for integer types.
18450         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
18451         to match type of MINUS_EXPR.
18452
18453 2008-03-25  Tom Tromey  <tromey@redhat.com>
18454
18455         * configure: Rebuilt.
18456         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
18457         Makefile.
18458
18459 2008-03-25  Tom Tromey  <tromey@redhat.com>
18460
18461         * config/x-solaris (host-solaris.o): Update.
18462         * config/x-linux (host-linux.o): Update.
18463         * config/x-hpux (host-hpux.o): Update.
18464         * config/x-darwin (host-darwin.o): Update.
18465         * config/v850/t-v850e (v850-c.o): Update.
18466         * config/v850/t-v850 (v850-c.o): Update.
18467         * config/t-vxworks (vxworks.o): Update.
18468         * config/t-sol2 (sol2-c.o, sol2.o): Update.
18469         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
18470         * config/spu/t-spu-elf (spu-c.o): Update.
18471         (spu.o): Remove.
18472         * config/sh/t-symbian (sh-c.o): Update.
18473         (symbian.o): Update.
18474         * config/sh/t-sh (sh-c.o): Update.
18475         * config/score/t-score-elf (score7.o, score3.o): Update.
18476         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
18477         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
18478         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
18479         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
18480         (rs6000.o): Remove.
18481         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
18482         * config/m32c/t-m32c (m32c-pragma.o): Update.
18483         * config/ia64/t-ia64 (ia64-c.o): Update.
18484         * config/i386/x-mingw32 (host-mingw32.o): Update.
18485         * config/i386/x-i386 (driver-i386.o): Update.
18486         * config/i386/x-darwin (host-i386-darwin.o): Update.
18487         * config/i386/x-cygwin (host-cygwin.o): Update.
18488         * config/i386/t-nwld (nwld.o): Update.
18489         * config/i386/t-netware (netware.o): Update.
18490         * config/i386/t-interix (winnt.o): Update.
18491         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
18492         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
18493         msformat-c.o): Update.
18494         * config/bfin/t-bfin-linux (generated_files): Add
18495         linux-sysroot-suffix.h.
18496         * config/arm/t-wince-pe (pe.o): Update.
18497         * config/arm/t-strongarm-pe (pe.o): Update.
18498         * config/arm/t-pe (pe.o): Update.
18499         * config/arm/t-arm (arm-c.o): Update.
18500         * doc/install.texi (Prerequisites): Require make 3.80.
18501         * Makefile.in: Remove .o targets.
18502         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
18503         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
18504         (simple_generated_h, simple_generated_c): Move earlier.
18505         (generated_files): New variable.
18506         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
18507         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
18508         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
18509         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
18510         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
18511         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
18512         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
18513         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
18514         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
18515         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
18516         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
18517         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
18518         (.c.o): Remove.
18519         (COMPILE.base, COMPILE): New variables.
18520         (%.o): New pattern rule.
18521         (ALL_HOST_OBJS): New variable.
18522         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
18523         (dummy-checksum.o, cc1-checksum.o): Remove.
18524         (DRIVER_SHLIB): New variable.
18525         (DRIVER_DEFINES): Use it.
18526         (gencondmd.c): Move out of build/.
18527         (s-conditions): Update.
18528         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
18529         (ALL_BUILD_OBJS): Likewise.
18530         (build/%.o): Use BUILDCOMPILE.
18531         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
18532         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
18533         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
18534         build/gencheck.o, build/gencodes.o, build/genconditions.o,
18535         build/genconfig.o, build/genconstants.o, build/genemit.o,
18536         build/genextract.o, build/genflags.o, build/genmddeps.o,
18537         build/genopinit.o, build/genoutput.o, build/genpeep.o,
18538         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
18539         build/gen-protos.o, build/scan.o, build/fix-header.o,
18540         build/scan-decls.o): Simplify.
18541         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
18542         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
18543         prefix.o, toplev.o): Reduce to variable setting.
18544         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
18545         ($(out_object_file), gcc-options.o): New targets.
18546         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
18547         * configure: Rebuilt.
18548         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
18549         * doc/sourcebuild.texi (Front End Directory): Document new variable.
18550
18551 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
18552
18553         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
18554         complain when we hit an error, return ERROR_MARK_NODE.
18555
18556 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
18557
18558         * config/sh/constraints.md (Pso, Psz): New constraints.
18559         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
18560         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
18561
18562 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
18563
18564         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
18565         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
18566
18567 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
18568
18569         * config/sh/sh.md (prefetch): Add condition for SH2A target.
18570         (prefetch_sh2a): New.
18571
18572 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
18573             Naveen.H.S  <naveen.hs@kpitcummins.com>
18574
18575         * config/sh/constraints.md (I28): New constraint.
18576         * config/sh/sh.c (broken_move): Add support for movi20s.
18577         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
18578
18579 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
18580             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
18581             Naveen.H.S  <naveen.hs@kpitcummins.com>
18582
18583         * config/sh/sh.c (SH_ATTRIBUTES): Define.
18584         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
18585         (print_operand): Handle resbank in %@ operand code.
18586         (sh_encode_section_info): New.
18587         (push_regs): Add conditions for resbank.
18588         (sh_expand_epilogue): Likewise.
18589         (sh_insert_attributes): Likewise.
18590         (sh_attribute_table): Likewise.
18591         (sh_handle_resbank_handler_attribute): New.
18592         (sh2a_handle_function_vector_handler_attribute): New.
18593         (sh2a_is_function_vector_call): New.
18594         (sh2a_get_function_vector_number): New.
18595         (sh2a_function_vector_p): New.
18596         (sh_cfun_resbank_handler_p): New.
18597         * config/sh/sh.md (calli): Emit jsr/n if possible.
18598         (calli_tbr_rel): New.
18599         (calli_pcrel): Emit jsr/n if possible.
18600         (return_i): Emit rts/n if possible.
18601         (call_valuei_tbr_rel): New.
18602         (call_valuei_pcrel): Add condition for SH2A target.
18603         (call_value): Likewise.
18604         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
18605         (sh2a_get_function_vector_number): Likewise.
18606         (sh2a_is_function_vector_call): Likewise.
18607         * doc/extend.texi: Document TBR relative addressing of SH2A.
18608         (resbank): Add description for SH2A.
18609
18610 2008-03-24  Richard Guenther  <rguenther@suse.de>
18611
18612         PR c/22371
18613         * gimplify.c (gimplify_modify_expr): For frontend type-correct
18614         pointer assignments change conversions according to middle-end rules.
18615         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
18616         * configure.ac: Include type checking in yes.
18617         * configure: Regenerate.
18618
18619 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18620
18621         * diagnostic.c (diagnostic_count_diagnostic): Delete.
18622         (diagnostic_report_diagnostic): Update. Handle ICEs here.
18623
18624 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
18625
18626         * gthr-vxworks.h (UNUSED): Define.
18627
18628 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
18629
18630         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
18631
18632 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
18633
18634         * doc/extend.texi (Function Attributes): Add missing comma in the
18635         example of the "alloc_size" attribute.
18636
18637 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
18638
18639         Revert:
18640         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
18641
18642         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
18643         32bit host.
18644
18645         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
18646
18647         PR target/35496
18648         * stor-layout.c (update_alignment_for_field): Set minimum alignment
18649         of the underlying type of a MS bitfield layout to the natural
18650         alignment of the type.
18651
18652         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
18653
18654         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
18655         to their natural alignment to avoid store forwarding stalls.
18656
18657 2008-03-22  Richard Guenther  <rguenther@suse.de>
18658
18659         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
18660         For PHI nodes verify the address is invariant.
18661         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
18662         (get_symbol_constant_value): Use is_gimple_min_invariant.
18663         (maybe_fold_stmt_indirect): Likewise.
18664
18665 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
18666
18667         PR rtl-optimization/33927
18668         * Makefile.in (dse.o): Depend on $(TM_P_H).
18669         * expr.h (extract_low_bits): Declare.
18670         * expmed.c (extract_low_bits): New function.
18671         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
18672         * dse.c: Include tm_p.h.
18673         (find_shift_sequence): Remove the read_reg argument and return the
18674         read value.  Emit the instructions instead of returning them.
18675         Iterate on new_mode rather than calculating it each time.
18676         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
18677         source to NEW_MODE and extract_low_bits to convert the shifted
18678         value to READ_MODE.
18679         (replace_read): Allow the load and store to have different mode
18680         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
18681         or extraction instructions before trying the replacement.  Update
18682         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
18683
18684 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
18685
18686         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
18687         to their natural alignment to avoid store forwarding stalls.
18688
18689 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18690
18691         PR target/27946
18692         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
18693         encouraging but not allowing gprs for input;
18694         change the input constraint to !f#r.
18695         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
18696         gprs for output;
18697         change the output constraint to !f#r.
18698
18699 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
18700
18701         PR target/13958
18702         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
18703         corresponding post-reload splitters.
18704         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
18705         when x87 FP math is selected.
18706         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
18707         New function prototype.
18708         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
18709         unreachable function to ease macroization of insn patterns.
18710
18711 2008-03-21  Martin Jambor  <mjambor@suse.cz>
18712
18713         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
18714         reference dumps if ddr is NULL or dependence is unknown.
18715
18716 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
18717
18718         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
18719         unsigned extension into account.
18720         (ATOMIC_COMPARE_AND_SWAP): Likewise.
18721         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
18722         Do computations on a scratch register.
18723
18724 2008-03-21  Richard Guenther  <rguenther@suse.de>
18725
18726         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
18727         Use is_gimple_min_invariant instead of TREE_INVARIANT.
18728         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
18729         * tree-ssa-dom.c (record_equality): Likewise.
18730         * tree-inline.c (copy_body_r): Likewise.
18731         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
18732         TREE_INVARIANT.
18733
18734 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
18735
18736         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
18737         as 'delete_unused' argument.
18738
18739 2008-03-20  Richard Guenther  <rguenther@suse.de>
18740
18741         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
18742         special casing of constant qualifiers.
18743         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
18744         care about them in general.
18745         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
18746         regardless of their type.
18747         (fold_stmt_r): Forcefully fold *& if we end up with that.
18748
18749 2008-03-20  Paul Brook  <paul@codesourcery.com>
18750
18751         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
18752         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
18753         linker flags.
18754         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
18755         definition.
18756         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
18757         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
18758
18759 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
18760
18761         * common.opt (Wmudflap): New option.
18762         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
18763         (mx_register_decls): Likewise.
18764         (mudflap_finish_file): Likewise.
18765         * doc/invoke.texi: Document -Wno-mudflap.
18766
18767 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
18768
18769         * c-format.c (replace_format_name_to_system_name): New.
18770         (cmp_attribs): New.
18771         (convert_format_name_to_system_name): New.
18772         (decode_format_attr): Add use of convert_format_name_to_system_name.
18773         (format_types_orig): Add gnu_ prefix to names.
18774         (check_format_info_main): Special treating of \0 escaped names for
18775         supporting multi-character format specifiers as I32, I64.
18776         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
18777         (gnu_target_overrides_format_attributes): New.
18778         * c-format.h: Add structure target_ovr_attr to hold
18779         system specific formatter names.
18780         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
18781         msformat-c.o file to c_target_objs and cxx_target_objs.
18782         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
18783         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
18784         (TARGET_N_FORMAT_TYPES): New.
18785         * config/i386/msformat-c.c: New.
18786         * config/i386/t-cygming: Add build rule for msformat-c.o.
18787         * doc/extend.texi: Add new format names gnu_* and ms_* and
18788         further details.
18789         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
18790
18791 2008-03-20  Ira Rosen  <irar@il.ibm.com>
18792
18793         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
18794         optimizations turned on under -O3.
18795         (ftree-vectorize): Add that the flag is turned on with -O3.
18796
18797 2008-03-20  Ben Elliston  <bje@au.ibm.com>
18798
18799         * regmove.c (try_auto_increment): Fix spelling error in comment.
18800         * final.c (final_scan_insn): Likewise.
18801
18802 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
18803
18804         PR target/14552
18805         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
18806         allocator preferences for "y" and "r" class registers.
18807         ("*mov<mode>_internal"): Ditto.
18808         ("*movv2sf_internal_rex64"): Ditto.
18809         ("*movv2sf_internal"): Ditto.
18810
18811 2008-03-19  Michael Matz  <matz@suse.de>
18812
18813         PR middle-end/35616
18814         * calls.c (expand_call): Check overlap of arguments with call
18815         address for sibcalls.
18816
18817 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
18818
18819         PR target/35496
18820         * stor-layout.c (update_alignment_for_field): Set minimum alignment
18821         of the underlying type of a MS bitfield layout to the natural
18822         alignment of the type.
18823
18824 2008-03-19  Jan Hubicka  <jh@suse.cz>
18825
18826         PR other/35094
18827         * toplev.c (decode_d_option): Handle all CPP flags.
18828         * tree-vrp.c: Update tree_pass descriptors.
18829         * regrename.c: Update tree_pass descriptors.
18830         * fwprop.c: Update tree_pass descriptors.
18831         * doc/invoke.texi: Remove documentation of dropped -d? flags.
18832         * tree-into-ssa.c: Update tree_pass descriptors.
18833         * tree-dump.c: Update tree_pass descriptors.
18834         * tree-complex.c: Update tree_pass descriptors.
18835         * tree-dump.h: Update tree_pass descriptors.
18836         * see.c: Update tree_pass descriptors.
18837         * cgraphbuild.c: Update tree_pass descriptors.
18838         * tracer.c: Update tree_pass descriptors.
18839         * tree-loop-distribution.c: Update tree_pass descriptors.
18840         * cgraph.c: Update tree_pass descriptors.
18841         * postreload-gcse.c: Update tree_pass descriptors.
18842         * postreload.c: Update tree_pass descriptors.
18843         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
18844         * tree-tailcall.c: Update tree_pass descriptors.
18845         * tree-pass.h (tree_opt_pass): Rename to ...
18846         (opt_pass) ... this one; add "type" field and remove letter field.
18847         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
18848         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
18849         all_lowering_passes): Update declaration.
18850         * ipa-cp.c: Update tree_pass descriptors.
18851         * final.c: Update tree_pass descriptors.
18852         * omp-low.c: Update tree_pass descriptors.
18853         * tree-ssa-dse.c: Update tree_pass descriptors.
18854         * ipa-reference.c: Update tree_pass descriptors.
18855         * tree-ssa-uncprop.c: Update tree_pass descriptors.
18856         * auto-inc-dec.c: Update tree_pass descriptors.
18857         * reorg.c: Update tree_pass descriptors.
18858         * cgraphunit.c: Update tree_pass descriptors.
18859         * tree-ssa-copyrename.c: Update tree_pass descriptors.
18860         * tree-ssa-ccp.c: Update tree_pass descriptors.
18861         * df-core.c: Update tree_pass descriptors.
18862         * mode-switching.c: Update tree_pass descriptors.
18863         * tree-nomudflap.c: Update tree_pass descriptors.
18864         * modulo-sched.c: Update tree_pass descriptors.
18865         * ipa-pure-const.c: Update tree_pass descriptors.
18866         * cse.c: Update tree_pass descriptors.
18867         * web.c: Update tree_pass descriptors.
18868         * tree-stdarg.c: Update tree_pass descriptors.
18869         * tree-ssa-math-opts.c: Update tree_pass descriptors.
18870         * tree-ssa-dom.c: Update tree_pass descriptors.
18871         * tree-nrv.c: Update tree_pass descriptors.
18872         * tree-ssa-alias.c: Update tree_pass descriptors.
18873         * loop-init.c: Update tree_pass descriptors.
18874         * gimple-low.c: Update tree_pass descriptors.
18875         * ipa-inline.c: Update tree_pass descriptors.
18876         * tree-ssa-sink.c: Update tree_pass descriptors.
18877         * global.c: Update tree_pass descriptors.
18878         * ifcvt.c: Update tree_pass descriptors.
18879         * jump.c: Update tree_pass descriptors.
18880         * predict.c: Update tree_pass descriptors.
18881         * tree-ssa-loop.c: Update tree_pass descriptors.
18882         * recog.c: Update tree_pass descriptors.
18883         * dse.c: Update tree_pass descriptors.
18884         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
18885         * tree-eh.c: Update tree_pass descriptors.
18886         * regmove.c: Update tree_pass descriptors.
18887         * local-alloc.c
18888         * function.c: Update tree_pass descriptors.
18889         * tree-vectorizer.c: Update tree_pass descriptors.
18890         * gcse.c: Update tree_pass descriptors.
18891         * ipa-type-escape.c: Update tree_pass descriptors.
18892         * tree-if-conv.c: Update tree_pass descriptors.
18893         * init-regs.c: Update tree_pass descriptors.
18894         * ipa.c: Update tree_pass descriptors.
18895         * tree-ssa-phiopt.c: Update tree_pass descriptors.
18896         * rtl-factoring.c: Update tree_pass descriptors.
18897         * lower-subreg.c: Update tree_pass descriptors.
18898         * bt-load.c: Update tree_pass descriptors.
18899         * tree-dfa.c: Update tree_pass descriptors.
18900         * except.c: Update tree_pass descriptors.
18901         * emit-rtl.c: Update tree_pass descriptors.
18902         * cfgexpand.c: Update tree_pass descriptors.
18903         * tree-cfgcleanup.c: Update tree_pass descriptors.
18904         * cfgcleanup.c: Update tree_pass descriptors.
18905         * tree-ssa-pre.c: Update tree_pass descriptors.
18906         * tree-sra.c: Update tree_pass descriptors.
18907         * tree-mudflap.c: Update tree_pass descriptors.
18908         * tree-ssa-copy.c: Update tree_pass descriptors.
18909         * cfglayout.c: Update tree_pass descriptors.
18910         * tree-ssa-forwprop.c: Update tree_pass descriptors.
18911         * tree-ssa-dce.c: Update tree_pass descriptors.
18912         * tree-ssa.c: Update tree_pass descriptors.
18913         * regclass.c: Update tree_pass descriptors.
18914         * integrate.c: Update tree_pass descriptors.
18915         * tree-optimize.c: Update tree_pass descriptors.
18916         * tree-ssa-phiprop.c: Update tree_pass descriptors.
18917         * tree-object-size.c: Update tree_pass descriptors.
18918         * combine.c: Update tree_pass descriptors.
18919         * tree-outof-ssa.c: Update tree_pass descriptors.
18920         * bb-reorder.c: Update tree_pass descriptors.
18921         * stack-ptr-mod.c: Update tree_pass descriptors.
18922         * var-tracking.c: Update tree_pass descriptors.
18923         * tree-profile.c: Update tree_pass descriptors.
18924         * tree-vect-generic.c: Update tree_pass descriptors.
18925         * reg-stack.c: Update tree_pass descriptors.
18926         * sched-rgn.c: Update tree_pass descriptors.
18927         * tree-ssa-structalias.c: Update tree_pass descriptors.
18928         * tree-cfg.c: Update tree_pass descriptors.
18929         * passes.c (current_pass): Update declaration.
18930         (finish_optimization_passes): Update.
18931         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
18932         (register_one_dump_file, register_dump_files_1, next_pass_1):
18933         Update arguments.
18934         (init_optimization_passes): Update handling of new types.
18935         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
18936         * ipa-struct-reorg.c: Update tree_pass descriptors.
18937         * tree-ssa-reassoc.c: Update tree_pass descriptors.
18938         * combine-stack-adj.c: Update tree_pass descriptors.
18939         * cfgrtl.c: Update tree_pass descriptors.
18940         * dce.c: Update tree_pass descriptors.
18941         * tree-ssanames.c: Update tree_pass descriptors.
18942
18943 2008-03-19  Richard Guenther  <rguenther@suse.de>
18944
18945         PR middle-end/35609
18946         * tree-ssa.c (walk_data): New structure.
18947         (warn_uninitialized_var): If not always_executed warn with "maybe"
18948         instead of "is".
18949         (execute_early_warn_uninitialized): Compute post-dominators.
18950         Initialize always_executed before processing each basic block.
18951
18952 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
18953
18954         PR target/35504
18955         * config/i386/i386.c (x86_this_parameter): Calculate correct location
18956         of "this" pointer when "regparm = N" or "fastcall" is in effect.
18957
18958 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18959
18960         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
18961
18962 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
18963
18964         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
18965         is true.
18966         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
18967         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
18968         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
18969         target after ignore has been set, and move there also the commputation
18970         of subtarget and original_target.
18971         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
18972         (LANG_HOOKS_INITIALIZER): Remove it.
18973         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
18974
18975 2008-03-18  Richard Guenther  <rguenther@suse.de>
18976
18977         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
18978         found an expression with constants, note that in the VN for the lhs.
18979         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
18980         fold them to constants if possible.  Run cleanup_cfg if done so.
18981         (execute_pre): Return todo.
18982         (do_pre): Likewise.
18983         (execute_fre): Likewise.
18984         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
18985         of constants.
18986         (get_prop_source_stmt): Look through pointer conversions.
18987
18988 2008-03-18  Jan Hubicka  <jh@suse.cz>
18989
18990         * tree-pretty-print.c: Include predict.h.
18991         (dump_generic_node): Dump predictor.
18992         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
18993         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
18994         * gimple-low.c (lower_stmt): Likewise.
18995         * expr.c (expand_expr_real): Likewise.
18996         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
18997         them.
18998         (build_predict_expr, build_predict_expr): New.
18999         * predict.h (predictor_name, build_predict_expr): Update.
19000         * c-typeck.c (c_finish_bc_stmt): Add prediction.
19001         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
19002         * predict.def (PRED_CONTINUE): Update hitrate.
19003         * tree.def (PREDICT_EXPR): Define.
19004         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
19005         do not handle BIND_EXPR.
19006         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
19007         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
19008         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
19009         operands.
19010
19011 2008-03-18  Michael Matz  <matz@suse.de>
19012
19013         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
19014
19015 2008-03-18  Richard Guenther  <rguenther@suse.de>
19016
19017         * tree-gimple.h (is_gimple_invariant_address): Declare.
19018         (is_gimple_constant): Likewise.
19019         * tree-gimple.c (is_gimple_constant): New function.
19020         (is_gimple_invariant_address): Likewise.
19021         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
19022         and is_gimple_invariant_address.
19023         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
19024         previous change.
19025         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
19026         an addressable base.
19027
19028 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
19029
19030         PR middle-end/35611
19031         * gimplify.c (gimplify_expr): Gimplify second operand of
19032         OMP_ATOMIC_LOAD.
19033
19034 2008-03-17  Richard Guenther  <rguenther@suse.de>
19035
19036         PR tree-optimization/19637
19037         * fold-const.c (fold_unary): Remove restrictions of removing
19038         intermediate pointer-conversions (P2)(P1)P0.
19039         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
19040         conversion to void pointer.
19041         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
19042
19043 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
19044
19045         PR debug/31510
19046         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
19047         emulated thread local variables.
19048
19049 2008-03-16  Richard Guenther  <rguenther@suse.de>
19050
19051         PR middle-end/35607
19052         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
19053         expand TREE_INVARIANT operations that are not gimple invariant.
19054
19055 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
19056
19057         * doc/extend.texi (Alignment): Say that the ABI controls
19058         the __alignof__ for non-strict-alignment targets rather
19059         than being a recommendation.
19060
19061 2008-03-15  Paul Brook  <paul@codesourcery.com>
19062
19063         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
19064         annotations.
19065         (arm_output_fn_unwind): Mark functions that can not be unwound.
19066
19067 2008-03-15  Paul Brook  <paul@codesourcery.com>
19068
19069         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
19070         extension instructions.
19071
19072 2008-03-15  Richard Guenther  <rguenther@suse.de>
19073
19074         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
19075         and fold constant aggregate refs.
19076         (fold_const_aggregate_ref): Handle string constants
19077         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
19078         (evaluate_stmt): Simplify now that ccp_fold folds constant
19079         aggregate refs.
19080
19081 2008-03-15  Paul Brook  <paul@codesourcery.com>
19082
19083         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
19084         (extzv): Use gen_extzv_t2.
19085         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
19086
19087 2008-03-15  Richard Guenther  <rguenther@suse.de>
19088
19089         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
19090         (fold_const_aggregate_ref): Likewise.
19091         (get_value): Return NULL if we don't have any values.
19092         (ccp_finalize): Set const_val to NULL after freeing it.
19093         * tree-flow.h (get_symbol_constant_value): Declare.
19094         (fold_const_aggregate_ref): Likewise.
19095         * tree-ssa-sccvn.c (try_to_simplify): Use them.
19096
19097 2008-03-15  Richard Guenther  <rguenther@suse.de>
19098
19099         PR middle-end/35593
19100         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
19101         to not produce negative array indices if not allowed.  Add
19102         parameter to indicate that.
19103         (maybe_fold_offset_to_component_ref): Allow negative array
19104         indices only for the first member of a structure.
19105         (maybe_fold_offset_to_reference): Allow negative array indices.
19106         (maybe_fold_stmt_addition): Likewise.
19107
19108 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
19109             Anatoly Sokolov <aesok@post.ru>
19110
19111         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
19112         (avr_arch): Add ARCH_AVR6.
19113         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
19114         (initial_elimination_offset): Initialize and use 'avr_pc_size'
19115         instead of fixed value 2.
19116         (print_operand_address): Use gs() asm specifier instead of pm().
19117         (avr_assemble_integer): (Ditto.).
19118         (avr_output_addr_vec_elt): (Ditto.).
19119         (print_operand): Handle "!" code.
19120         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
19121         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
19122         (AVR_HAVE_EIJMP_EICALL): Define.
19123         (AVR_3_BYTE_PC): Redefine.
19124         (AVR_2_BYTE_PC): (Ditto.).
19125         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
19126         (LINK_SPEC): Add atmega2560 and atmega2561.
19127         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
19128         (crtm2561.o).
19129         * config/avr/avr.md (call_insn): Use eicall instead of icall
19130         for 3 byte PC devices.
19131         (call_value_insn): (Ditto.).
19132         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
19133         (indirect_jump): Use only for for 2 byte PC devices.
19134         (*tablejump): (Ditto.).
19135         (*indirect_jump_avr6): Add insn.
19136         (*tablejump_rjmp): Don't use for 3 byte PC devices.
19137         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
19138         instead of ijmp for 3 byte PC devices.
19139         (__tablejump2__): (Ditto.).
19140         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
19141         (MULITLIB_DIRNAMES): (Ditto.).
19142         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
19143
19144 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
19145
19146         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
19147         "sse2_umulsidi3".  Use V1DI mode for operand 0.
19148         ("mmx_psadbw"): Use V1DI mode for operand 0.
19149         * config/i386/i386-modes.def (V1SI): New vector mode.
19150         * config/i386/i386.c (struct builtin_description)
19151         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
19152         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
19153         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
19154         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
19155         v1di_ftype_v8qi_v8qi type.
19156         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
19157
19158         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
19159         __builtin_ia32_pmuludq]: Fix the mode of return value.
19160
19161 2008-03-15  Richard Guenther  <rguenther@suse.de>
19162
19163         PR middle-end/35595
19164         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
19165         being a PHI_NODE.
19166
19167 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
19168
19169         * doc/invoke.texi (Option Summary, Xtensa Options): Document
19170         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
19171         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
19172         unless TARGET_SERIALIZE_VOLATILE is enabled.
19173         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
19174         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
19175         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
19176
19177 2008-03-14  Richard Guenther  <rguenther@suse.de>
19178
19179         PR tree-optimization/34172
19180         * tree-flow.h (refs_may_alias_p): Declare.
19181         (get_single_def_stmt): Likewise.
19182         (get_single_def_stmt_from_phi): Likewise.
19183         (get_single_def_stmt_with_phi): Likewise.
19184         * tree-dfa.c (refs_may_alias_p): New function.
19185         (get_single_def_stmt): Likewise.
19186         (get_single_def_stmt_from_phi): Likewise.
19187         (get_single_def_stmt_with_phi): Likewise.
19188         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
19189         (vn_reference_lookup_1): New helper function.
19190         (vn_reference_lookup): Walk the virtual use-def chain to
19191         continue searching for a match if the def does not alias the
19192         reference we are looking for.
19193
19194 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
19195
19196         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
19197         archive and Perzl.  Update The Written Word listing.
19198
19199 2008-03-14  Richard Guenther  <rguenther@suse.de>
19200
19201         PR tree-optimization/34043
19202         PR tree-optimization/33989
19203         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
19204         when doing FRE.
19205         (bitmap_find_leader): Use extra argument to verify dominance
19206         relationship inside a basic-block.
19207         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
19208         (find_leader_in_sets): Adjust.
19209         (create_component_ref_by_pieces): Take extra argument for
19210         dominance check, handle lookup failures.
19211         (find_or_generate_expression): Likewise.
19212         (create_expression_by_pieces): Likewise.
19213         (insert_into_preds_of_block): Adjust.
19214         (create_value_expr_from): If asked for, verify all operands
19215         are in the blocks AVAIL_OUT set.
19216         (make_values_for_stmt): Check for SSA_NAMEs that are life
19217         over an abnormal edge.
19218         (compute_avail): Remove such check.
19219         (do_SCCVN_insertion): New function.
19220         (eliminate): If we do not find a leader suitable for replacement
19221         insert a replacement expression from SCCVN if available.
19222         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
19223         (struct vn_ssa_aux): Add needs_insertion flag.
19224         * tree-ssa-sccvn.c (may_insert): New global flag.
19225         (copy_reference_ops_from_ref): Value-number union member access
19226         based on its size, not type and member if insertion is allowed.
19227         (visit_reference_op_load): For a weak match from union type
19228         punning lookup a view-converted value and insert a SSA_NAME
19229         for that value if that is not found.
19230         (visit_use): Make dumps shorter.  Do not disallow value numbering
19231         SSA_NAMEs that are life over an abnormal edge to constants.
19232         (free_scc_vn): Release inserted SSA_NAMEs.
19233         (run_scc_vn): New flag to specify whether insertion is allowed.
19234         Process SSA_NAMEs in forward order.
19235         * tree-ssa-loop-im.c (for_each_index): Handle invariant
19236         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
19237         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
19238         pointer type to/from integral types that do not change the
19239         precision to regular conversions.
19240
19241 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
19242
19243         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
19244         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
19245         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
19246         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
19247         input arguments and the mode of return value.  Built-in functions
19248         that operate on whole 64-bit MMX register now use V1DI mode.
19249
19250 2008-03-13  Alon Dayan  <alond@il.ibm.com>
19251             Olga Golovanevsky  <olga@il.ibm.com>
19252
19253         PR tree-optimization/35041
19254         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
19255         to locate the right position in a statement.
19256
19257 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
19258
19259         PR target/34000
19260         PR target/35553
19261         * config/i386/xmmintrin.h:  Change all static inline functions to
19262         extern inline and add __gnu_inline__ attribute.
19263         * config/i386/bmintrin.h: Ditto.
19264         * config/i386/smmintrin.h: Ditto.
19265         * config/i386/tmmintrin.h: Ditto.
19266         * config/i386/mmintrin-common.h: Ditto.
19267         * config/i386/ammintrin.h: Ditto.
19268         * config/i386/emmintrin.h: Ditto.
19269         * config/i386/pmmintrin.h: Ditto.
19270         * config/i386/mmintrin.h: Ditto.
19271         * config/i386/mm3dnow.h: Ditto.
19272
19273 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
19274
19275         PR middle-end/35185
19276         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
19277         (lower_omp_2): New function.
19278         (lower_omp_1, lower_omp): Rewritten.
19279
19280 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
19281
19282         PR 35054
19283         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
19284         with the phrase "Microsoft Windows compilers".
19285         (Push/Pop Macro Pragmas): New subsection. Document
19286         #pragma push_macro and pragma pop_macro.
19287
19288 2008-03-12  Paul Brook  <paul@codesourcery.com>
19289
19290         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
19291
19292 2008-03-12  Paul Brook  <paul@codesourcery.com>
19293
19294         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
19295         (thumb2_alusi3_short): Exclude PLUS and MINUS.
19296         (thumb2_addsi_shortim): Rename ...
19297         (thumb2_addsi_short): ... to this.  Allow register operands.
19298         (thumb2_subsi_short): New pattern.
19299         (thumb2_one_cmplsi2_short,
19300         thumb2_negsi2_short): New patterns and peepholes.
19301
19302 2008-03-12  Paul Brook  <paul@codesourcery.com>
19303
19304         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
19305
19306 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
19307
19308         * config/i386/i386.md (int_cond): New code iterator.
19309         (fp_cond): Ditto.
19310         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
19311         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
19312         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
19313         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
19314         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
19315         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
19316         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
19317         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
19318
19319 2008-03-12  Paul Brook  <paul@codesourcery.com>
19320
19321         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
19322         instead of {arm,thumb}_compute_save_reg_mask.
19323         (output_return_instruction): Ditto.
19324         (thumb_unexpanded_epilogue): Ditto.
19325         (thumb1_expand_prologue): Ditto.
19326         (thumb1_output_function_prologue): Ditto.
19327         (arm_set_return_address): Ditto.
19328         (thumb_set_return_address): Ditto.
19329         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
19330         regs to achieve stack alignment.
19331         (thumb1_compute_save_reg_mask): Fix compiler warning.
19332         (arm_output_epilogue): Use offsets->saved_regs_mask.
19333         Adjust stack pointer by poping call clobered registers.
19334         (arm_expand_prologue): Use offsets->saved_regs_mask.
19335         Adjust stack pointer by pushing extra registers.
19336         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
19337
19338 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
19339
19340         PR tree-opt/35422
19341         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
19342         conversion to the operands of a multiplication.
19343
19344 2008-03-12  Richard Guenther  <rguenther@suse.de>
19345
19346         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
19347         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
19348         * timevar.def (TV_TREE_PHIPROP): Add.
19349         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
19350         pass description.  Use TV_TREE_PHIPROP.
19351         * tree-ssa-forwprop.c: Remove phiprop code.
19352
19353 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
19354
19355         PR middle-end/35549
19356         * omp-low.c (maybe_lookup_decl): Constify first argument.
19357         (use_pointer_for_field): Change last argument from bool to
19358         omp_context *.  Disallow shared copy-in/out in nested
19359         parallel if decl is shared in outer parallel too.
19360         (build_outer_var_ref, scan_sharing_clauses,
19361         lower_rec_input_clauses, lower_copyprivate_clauses,
19362         lower_send_clauses, lower_send_shared_vars): Adjust callers.
19363
19364 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
19365             Ira Rosen  <irar@il.ibm.com>
19366
19367         * tree-vectorizer.c (free_stmt_vec_info): New function.
19368         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
19369         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
19370         * tree-vectorizer.h (free_stmt_vec_info): Declare.
19371         * tree-vect-transform.c (vectorizable_conversion): Free
19372         vec_oprnds0 if it was allocated.
19373         (vect_permute_store_chain): Remove unused VECs.
19374         (vectorizable_store): Free VECs that are allocated in the..
19375         function.
19376         (vect_transform_strided_load, vectorizable_load): Likewise.
19377         (vect_remove_stores): Simplify the code.
19378         (vect_transform_loop): Move code to vect_remove_stores().
19379         Call vect_remove_stores() and free_stmt_vec_info().
19380
19381 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19382
19383         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
19384         TARGET_HPUX.  Revise comment.
19385         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
19386         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
19387         Use sr4 variant of `be' instruction when not generating PIC code.
19388         (attr_length_call): Adjust for above change.
19389
19390 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19391
19392         * ipa-reference.c (static_execute): Remove module_statics_const and
19393         associated setting code.
19394
19395 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
19396
19397         PR target/35540
19398         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
19399         predicate for operand 1.
19400         (paritysi2_cmp): Use register_operand predicate for operand 2.
19401         Use earlyclobber modifier for operand 1.  Remove support for
19402         memory operands.
19403         (paritydi2_cmp): Use register_operand predicate for operand 3.
19404         Use earlyclobber modifier for operand 1.  Remove support for
19405         memory operands.
19406
19407 2008-03-11  Paul Brook  <paul@codesourcery.com>
19408             Vladimir Prus  <vladimir@codesourcery.com>
19409
19410         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
19411         (arm_compute_save_reg0_reg12_mask): Always
19412         check if register 11 must be saved.  Always safe hard frame pointer
19413         when frame_pointer_needeed.
19414         (arm_compute_save_reg_mask): Save IP and PC
19415         only with apcs frames.
19416         (arm_output_epilogue): Adjust Thumb2 codepath to
19417         be also invoked and work for ARM non-apcs frames.
19418         (arm_expand_prologue): Don't bother saving IP
19419         for non-apcs frame, since it's not clobbered by
19420         prologue code.  Implement non-apcs frame
19421         layout.
19422
19423 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
19424
19425         PR rtl-optimization/35281
19426         * expr.c (convert_move): Use a new pseudo for the intermediate
19427         from_mode->word_mode result.
19428
19429 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
19430
19431         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
19432         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
19433         * toplev.c (compile_file): Don't call it.
19434
19435 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
19436
19437         PR middle-end/35526
19438         * expr.c (store_expr): Call emit_block_move if the mode
19439         of "temp" RTX is BLKmode.
19440
19441 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19442             Richard Guenther  <rguenther@suse.de>
19443
19444         PR tree-optimization/31358
19445         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
19446         the step with a NULL_TREE.
19447         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
19448         to sizetype if type is a pointer type.
19449         (add_candidate_1): Don't convert the base and step to
19450         the generic type if the orginal type is a pointer type.
19451         (add_iv_value_candidates): Use sizetype for the step
19452         if type is a pointer type.
19453         (cand_value_at): Likewise.
19454         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
19455         for pointer types.
19456         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
19457         Don't convert the tem affine to the type.
19458         (add_elt_to_tree): Use sizetype for the step if a pointer.
19459         Use POINTER_PLUS_EXPR for pointers.
19460         (aff_combination_to_tree): Use sizetype for the step if a
19461         pointer.
19462
19463 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
19464
19465         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
19466         Remove commutativity hint.
19467
19468 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
19469
19470         PR c/35438
19471         PR c/35439
19472         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
19473         errorneous type.  Check that v is a VAR_DECL.
19474
19475         PR middle-end/35099
19476         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
19477
19478 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
19479
19480         PR tree-optimization/35494
19481         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
19482         may be overriden at link and run time.
19483
19484 2008-03-10  Richard Guenther  <rguenther@suse.de>
19485
19486         PR tree-optimization/34677
19487         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
19488         (poolify_tree): Likewise.
19489         (modify_expr_template): Likewise.
19490         (poolify_modify_stmt): Likewise.
19491         (insert_fake_stores): Handle all component-ref style stores
19492         in addition to INDIRECT_REF.  Also handle complex types.
19493         Do not poolify the inserted load.
19494         (realify_fake_stores): Do not rebuild the tree but only
19495         make it a SSA_NAME copy.
19496         (init_pre): Remove initialzation of modify_expr_template.
19497         Do not allocate modify_expr_node_pool.
19498         (fini_pre): Do not free modify_expr_node_pool.
19499
19500 2008-03-10  Paul Brook  <paul@codesourcery.com>
19501
19502         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
19503         to avoid conflicts.
19504
19505 2008-03-10  Paul Brook  <paul@codesourcery.com>
19506             Mark Shinwell  <shinwell@codesourcery.com>
19507
19508         * config/arm/cortex-r4.md: New.
19509         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
19510         insn attributes.
19511         * config/arm/arm.md: Include cortex-r4.md.
19512         (insn): Add smmls, sdiv and udiv values.
19513         (generic_sched): Don't use generic scheduling for Cortex-R4.
19514         (arm_issue_rate): New function.
19515         (TARGET_SCHED_ISSUE_RATE): Define.
19516
19517 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
19518
19519         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
19520
19521 2008-03-10  Richard Guenther  <rguenther@suse.de>
19522
19523         * tree-ssa-pre.c (get_sccvn_value): Simplify.
19524         (compute_avail): Do not add stmt uses to AVAIL_OUT.
19525
19526 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
19527
19528         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
19529         Set default to true.
19530
19531 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19532
19533         * c.opt (Wsynth): Deprecate.
19534         * doc/invoke.texi (Option Summary, Warning Options): Document
19535         -Wno-format-contains-nul.
19536
19537 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
19538
19539         PR target/35496
19540         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
19541         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
19542
19543 2008-03-09  Ira Rosen  <irar@il.ibm.com>
19544
19545         * config/rs6000/rs6000.c (builtin_description): Rename vector
19546         left shift operations.
19547         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
19548         (altivec_vsl<VI_char>): Rename to ...
19549         (ashl<mode>3): ... new name.
19550         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
19551         gen_ashlv4si3.
19552         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
19553
19554 2008-03-08  Richard Guenther  <rguenther@suse.de>
19555
19556         * coverage.h (tree_coverage_counter_addr): Declare.
19557         * coverage.c (tree_coverage_counter_addr): New function.
19558         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
19559         before using again.
19560         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
19561         (tree_gen_one_value_profiler): Likewise.
19562         (tree_gen_ic_profiler): Likewise.
19563         (tree_gen_average_profiler): Likewise.
19564         (tree_gen_ior_profiler): Likewise.
19565
19566 2008-03-08  Richard Guenther  <rguenther@suse.de>
19567
19568         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
19569         (vn_binary_op_insert): Likewise.
19570         (vn_unary_op_lookup): Likewise.
19571         (vn_unary_op_insert): Likewise.
19572         (vn_nary_op_lookup): Declare.
19573         (vn_nary_op_insert): Likewise.
19574         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
19575         and binary hashes, use a single obstack for unary_op_pool
19576         and binary_op_pool.
19577         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
19578         a single struct vn_nary_op_s.  Store tree code length and
19579         a variable number of operands.
19580         (struct vn_reference_op_struct): Remove unused op2.
19581         (vn_reference_op_eq): Do not compare op2.
19582         (vn_reference_op_compute_hash): Do not compute hash of op2.
19583         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
19584         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
19585         with vn_nary_op_compute_hash.
19586         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
19587         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
19588         vn_nary_op_lookup.
19589         (vn_unary_op_insert, vn_binary_op_insert): Replace with
19590         vn_nary_op_insert.
19591         (visit_unary_op): Call nary functions.
19592         (visit_binary_op): Likewise.
19593         (process_scc): Adjust for struct vn_tables_s changes.
19594         (allocate_vn_table): Likewise.
19595         (free_vn_table): Likewise.
19596         * tree-vn.c (vn_add): Call nary functions.
19597         (vn_lookup): Likewise.
19598
19599 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
19600
19601         PR target/35498
19602         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
19603         wdst back after sync_compare_and_swapqhi_internal.
19604
19605 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
19606
19607         PR target/22152
19608         * config/i386/i386-modes.def (V1DI): New vector mode.
19609         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
19610         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
19611         (MMXMODE248): Ditto.
19612         (MMXMODE): Add V1DI mode.
19613         (mmxvecsize): Change DI mode to V1DI mode.
19614         ("mov<mode>): Use MMXMODEI8 mode iterator.
19615         ("*mov<mode>_internal_rex64"): Ditto.
19616         ("*mov<mode>_internal"): Ditto.
19617         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
19618         ("mmx_sub<mode>3"): Ditto.
19619         ("mmx_adddi3"): Remove insn pattern.
19620         ("mmx_subdi3"): Ditto.
19621         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
19622         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
19623         ("mmx_ashl<mode>3"): Ditto.
19624         ("mmx_lshrdi3"): Remove insn pattern.
19625         ("mmx_ashldi3"): Ditto.
19626         * config/i386/i386.c (classify_argument): Handle V1DImode.
19627         (function_arg_advance_32): Ditto.
19628         (function_arg_32): Ditto.
19629         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
19630         mmx_addv1di3 insn pattern.
19631         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
19632         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
19633         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
19634         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
19635         Remove definitions of built-in functions.
19636         (V1DI_type_node): New node.
19637         (v1di_ftype_v1di_int): Ditto.
19638         (v1di_ftype_v1di_v1di): Ditto.
19639         (v2si_ftype_v2si_si): Ditto.
19640         (v4hi_ftype_v4hi_di): Remove node.
19641         (v2si_ftype_v2si_di): Ditto.
19642         (ix86_init_mmx_sse_builtins): Handle V1DImode.
19643         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
19644         Redefine builtins using def_builtin_const with *_ftype_*_int node.
19645         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
19646         Add new builtins using def_builtin_const.
19647         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
19648         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
19649         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
19650         * config/i386/mmintrin.h (__v1di): New typedef.
19651         (_mm_add_si64): Cast arguments to __v1di type.
19652         (_mm_sub_si64): Ditto.
19653         (_mm_sll_pi16): Cast __count to __v4hi type.
19654         (_mm_sll_pi32): Cast __count to __v2si type.
19655         (_mm_sll_si64): Cast arguments to __v1di type.
19656         (_mm_srl_pi16): Cast __count to __v4hi type.
19657         (_mm_srl_pi32): Cast __count to __v2si type.
19658         (_mm_srl_si64): Cast arguments to __v1di type.
19659         (_mm_sra_pi16): Cast __count to __v4hi type.
19660         (_mm_sra_pi32): Cast __count to __v2si type.
19661         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
19662         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
19663         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
19664         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
19665         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
19666         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
19667         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
19668         (_mm_srai_pi32): Use __builtin_ia32_psradi.
19669         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
19670         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
19671         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
19672         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
19673
19674 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
19675
19676         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
19677
19678 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
19679
19680         PR target/35373
19681         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
19682         reg+const addressing for Altivec modes.  Don't generate reg+reg
19683         addressing for TFmode or TDmode quantities.
19684
19685 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
19686
19687         * c-common.c (vector_types_convertible_p): Call langhook
19688         instead of comptypes.
19689
19690 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19691
19692         PR tree-opt/35402
19693         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
19694         integral and scalar float variables which have a
19695         NULL DECL_INITIAL.
19696
19697 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
19698
19699         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
19700         dwarf_register_span hook when emitting unwind information for
19701         register-to-memory saves.
19702         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
19703         (rs6000_frame_related): Remove call to spe_synthesize_frame.
19704
19705 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
19706
19707         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
19708         for the same VAR_DECL.
19709
19710 2008-03-06  Tom Tromey  <tromey@redhat.com>
19711
19712         * treelang: Delete.
19713         * doc/standards.texi (Standards): Don't mention treelang.
19714         * doc/invoke.texi (Overall Options): Don't mention treelang.
19715         * doc/install.texi (Prerequisites): Don't mention bison or
19716         treelang.
19717         (Configuration): Don't mention treelang.
19718         (Building): Likewise.
19719         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
19720
19721 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
19722
19723         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
19724         word-extractions out of a multi-word object.
19725
19726 2008-03-06  Richard Guenther  <rguenther@suse.de>
19727
19728         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
19729         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
19730         result type and precision.
19731         * expr.c (get_inner_reference): Set unsignedp based on the result
19732         type of BIT_FIELD_REF.
19733         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
19734         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
19735         (try_instantiate_multiple_fields): Likewise.  Use the correct type
19736         for BIT_FIELD_REF.
19737         (sra_build_assignment): Likewise.
19738         (sra_build_elt_assignment): Likewise.
19739         (sra_explode_bitfield_assignment): Likewise.
19740         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
19741         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
19742         set BIT_FIELD_REF_UNSIGNED.
19743         (vectorizable_load): Likewise.
19744
19745 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
19746
19747         * cse.c (cse_extended_basic_block): Invalidate artificial defs
19748         at bb start.
19749
19750 2008-03-06  Richard Guenther  <rguenther@suse.de>
19751
19752         * alias.c (struct alias_set_entry): Move has_zero_child field
19753         to pack with alias_set.
19754
19755 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
19756
19757         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
19758         32bit host.
19759
19760 2008-03-05  Ian Lance Taylor  <iant@google.com>
19761
19762         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
19763
19764 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
19765
19766         * fwprop.c (update_df): Support width and offset parameters of
19767         df_ref_create.
19768         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
19769         global_conflicts): Change DF_REF_EXTRACT to either
19770         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
19771         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19772         * df-scan.c (df_ref_record, df_defs_record,
19773         df_ref_create_structure, df_def_record_1, df_uses_record,
19774         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
19775         df_bb_refs_collect, df_entry_block_defs_collect,
19776         df_exit_block_uses_collect): Support new width and offset fields.
19777         (ref_extract_pool): New storage pool.
19778         (df_free_ref): New function.
19779         (df_reg_chain_unlink, df_free_collection_rec,
19780         df_sort_and_compress_refs): Call df_free_ref.
19781         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
19782         of df_ref_extract.
19783         (df_ref_create_structure): Allocate df_ref_extract if offset and
19784         width fields are used.
19785         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
19786         (df_uses_record): Get offset and width from ZERO_EXTRACT
19787         and SIGN_EXTRACT.
19788         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
19789         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
19790         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19791         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
19792         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
19793         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
19794         (df_ref_extract): New structure.
19795         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
19796         (df_ref_create): Add width and offset parameters.
19797
19798 2008-03-05  Richard Guenther  <rguenther@suse.de>
19799
19800         * tree-ssa-structalias.c (get_constraint_for_component_ref):
19801         Use ranges_overlap_p.
19802         (offset_overlaps_with_access): Rename
19803         to ranges_overlap_p and move ...
19804         * tree-flow-inline.h (ranges_overlap_p): ... here.
19805
19806         * tree.h (get_inner_reference, handled_component_p): Update
19807         comments.
19808
19809         * tree.h (record_component_aliases, get_alias_set,
19810         alias_sets_conflict_p, alias_sets_must_conflict_p,
19811         objects_must_conflict_p): Move declarations ...
19812         * alias.h (record_component_aliases, get_alias_set,
19813         alias_sets_conflict_p, alias_sets_must_conflict_p,
19814         objects_must_conflict_p): ... here.
19815         Include coretypes.h.
19816         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
19817
19818 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
19819
19820         * cfg.c: Include tree-flow.h.
19821         (remove_edge_raw): Call redirect_edge_var_map_clear.
19822         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
19823         * tree-flow-inline.h (redirect_edge_var_map_def): New.
19824         (redirect_edge_var_map_result): New.
19825         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
19826         PENDING_STMT use with redirect_edge_var_map_*.
19827         * tree-ssa.c (edge_var_maps): New definition.
19828         (redirect_edge_var_map_add): New.
19829         (redirect_edge_var_map_clear): New.
19830         (redirect_edge_var_map_dup): New.
19831         (redirect_edge_var_map_vector): New.
19832         (redirect_edge_var_map_destroy): New.
19833         (ssa_redirect_edge): Replace PENDING_STMT use with
19834         redirect_edge_var_map_*.
19835         (flush_pending_stmts): Same.
19836         (delete_tree_ssa): Destroy edge var map.
19837         * tree-flow.h (struct _edge_var_map): New.
19838         Define edge_var_map vector type.
19839         Declare redirect_edge_var_map_* prototypes.
19840         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
19841         * tree-cfg.c (reinstall_phi_args): Replace
19842         PENDING_STMT use with redirect_edge_var_map_*.
19843
19844 2008-03-05  Richard Guenther  <rguenther@suse.de>
19845
19846         PR tree-optimization/35472
19847         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
19848         whose single use_stmt has a overlapping set of loaded and
19849         stored symbols as that use_stmt might be a noop assignment then.
19850
19851 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
19852
19853         * gthr-rtems.h: Implement __gthread_mutex_destroy.
19854
19855 2008-03-05  Richard Guenther  <rguenther@suse.de>
19856
19857         PR c++/35336
19858         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
19859         should be constants.
19860         * tree-cfg.c (verify_expr): Verify it.
19861         * fold-const.c (fold_truthop): Remove code generating
19862         BIT_FIELD_REFs of structure bases.
19863         (fold_binary): Likewise.
19864         (fold_ternary): Position and size of BIT_FIELD_REFs are
19865         always host integers.
19866         (make_bit_field_ref): Remove.
19867         (optimize_bit_field_compare): Remove.
19868         (all_ones_mask_p): Remove.
19869
19870 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
19871
19872         PR gcc/33009
19873         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
19874         (split_block_and_df_analyze): New. Split basic block and rebuild
19875         dataflow.
19876         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
19877         SPLIT_BLOCK.
19878         (split_pattern_seq): Likewise.
19879         (erase_matching_seqs): Likewise.
19880         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
19881
19882 2008-03-04  Geoff Keating  <geoffk@apple.com>
19883
19884         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
19885         declaration and code.
19886         (tree_invalid_nonnegative_warnv_p): Likewise.
19887
19888 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
19889
19890         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
19891         examples.  Truncate option-names then causing overfull hbox.
19892
19893 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19894
19895         PR target/35222
19896         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
19897         on hpux10.
19898         * configure: Rebuilt.
19899
19900 2008-03-04  Rafael Espíndola  <espindola@google.com>
19901
19902         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
19903         (tree_unary_nonnegative_warnv_p): New.
19904         (tree_binary_nonnegative_warnv_p): New.
19905         (tree_single_nonnegative_warnv_p): New.
19906         (tree_invalid_nonnegative_warnv_p): New.
19907         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
19908
19909 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19910
19911         PR 28322
19912         * opts.c (handle_option): Postpone 'unknown option' errors only for
19913         warning options.
19914
19915 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
19916
19917         PR target/35453
19918         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
19919         (_SIDD_XXX): This.
19920
19921 2008-03-04  Rafael Espíndola  <espindola@google.com>
19922
19923         * fold-const.c (tree_unary_nonzero_warnv_p): New.
19924         (tree_binary_nonzero_warnv_p): New.
19925         (tree_single_nonzero_warnv_p): New.
19926         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
19927
19928 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
19929
19930         PR middle-end/35456
19931         * fold-const.c (fold_cond_expr_with_comparison): Prevent
19932         transformations for modes that have signed zeros.
19933         * ifcvt.c (noce_try_abs): Ditto.
19934
19935 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
19936
19937         * config/i386/i386.c (override_options): Force
19938         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
19939
19940 2008-03-04  Jan Hubicka  <jh@suse.cz>
19941
19942         PR c++/35262
19943         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
19944         in last commit.
19945
19946 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
19947
19948         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
19949         label to probe the stack.
19950
19951 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
19952
19953         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
19954         (__gthr_win32_mutex_destroy): Declare.
19955         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
19956         __gthr_win32_mutex_destroy.
19957         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
19958
19959 2008-03-03  Jan Hubicka  <jh@suse.cz>
19960
19961         PR c++/35262
19962         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
19963         aggressive on inlining cold calls.
19964
19965 2008-03-03  Richard Guenther  <rguenther@suse.de>
19966
19967         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
19968         struct copies into the expression table.
19969         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
19970         (try_to_simplify): Likewise.
19971         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
19972         integral and pointer arguments which do not change the
19973         precision to NOP_EXPRs.
19974         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
19975         VIEW_CONVERT_EXPR case.
19976
19977 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
19978
19979         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
19980         defined in a loop at depth 0 is invariant.
19981         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
19982         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
19983         be called at loop depth 0.
19984
19985 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
19986
19987         PR driver/35420
19988         * gcc.c (process_command): Update copyright notice dates.
19989         * gcov.c (print_version): Likewise.
19990         * gcov-dump.c (print_version): Likewise.
19991         * mips-tfile.c (main): Likewise.
19992         * mips-tdump.c (main): Likewise.
19993
19994 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19995
19996         PR 24924
19997         * c-common.c (flag_permissive): Delete.
19998         (constant_expression_warnings): Check flags first.
19999         (constant_expression_error): New.
20000         * c-common.h (flag_permissive): Delete.
20001         (constant_expression_error): Declare.
20002         * flags.h (flag_permissive): Declare. Update description.
20003         * diagnostic.c (pedwarn): Update.
20004         (permerror): New.
20005         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
20006         (permissive_error_kind): New.
20007         * toplev.c (flag_permissive): Define. Update description.
20008         * toplev.h (permissive_error_kind): Declare.
20009         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
20010         (pedwarn_c90): Use pedantic_warning_kind.
20011         * c-opts.c (c_common_post_options): flag_permissive does not affect
20012         flag_pedantic_errors.
20013
20014 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
20015
20016         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
20017         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
20018         __absvsi2, __absvDI2): Use unsigned arithmetic.
20019
20020 2008-03-02  Andi Kleen  <ak@suse.de>
20021             Richard Guenther  <rguenther@suse.de>
20022
20023         * struct-equiv.c: Remove file.
20024         * cfg_cleanup.c (condjump_equiv_p): Remove.
20025         * Makefile.in (OBJS-common): Remove struct-equiv.o.
20026         (struct-equiv.o): Remove rule.
20027         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
20028         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
20029         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
20030
20031 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
20032
20033         * ifcvt.c (noce_process_if_block): Try to handle only the then
20034         block if the else block exists but isn't suitable.
20035
20036 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
20037
20038         PR gcc/35063
20039         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
20040         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
20041         regression from previous patch.
20042
20043 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
20044
20045         PR gcc/35063
20046         * gthr.h: Add __gthread_mutex_destroy as a function that must be
20047         implemented.
20048         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
20049         * gthr-single.h (__gthread_mutex_destroy): Likewise.
20050         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
20051         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
20052         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
20053         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
20054         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
20055         (__gthread_mutex_destroy_function): Rename to
20056         __gthread_mutex_destroy.
20057         * gthr-dce.h (__gthread_mutex_destroy): Call
20058         pthread_mutex_destroy.
20059         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
20060         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
20061         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
20062
20063 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
20064
20065         * df-scan.c (df_ref_chain_change_bb): Simplify.
20066         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
20067         set_block_for_insn if there's any change.
20068         * df.h ((df_insn_change_bb): Fix prototype.
20069         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
20070         df_insn_change_bb, don't call set_block_for_insn.
20071         * emit-rtl.c (reorder_insns): Likewise.
20072         * haifa-sched.c (move_insn): Likewise.
20073
20074 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
20075
20076         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
20077
20078 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
20079
20080         * tree-flow-inline.h (next_readonly_imm_use): Return
20081         NULL_USE_OPERAND_P after the end.
20082
20083 2008-03-01  Richard Guenther  <rguenther@suse.de>
20084
20085         PR tree-optimization/35411
20086         * tree-sra.c (sra_build_assignment): Split conversion to
20087         final type to a separate statement if we are not assigning
20088         to a register.
20089
20090 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
20091
20092         * fold-const.c (fold_convertible_p): Correct the logic to follow
20093         that in fold_convert().
20094
20095 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
20096
20097         PR c++/35315
20098         * tree-inline.c (build_duplicate_type): When we make a
20099         duplicate type, make it unique in the canonical types system.
20100
20101 2008-02-29  Tom Tromey  <tromey@redhat.com>
20102
20103         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
20104         input_file_stack_history, input_file_stack_restored): Remove.
20105         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
20106         * input.h (struct file_stack): Remove.
20107         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
20108         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
20109         Likewise.
20110         * diagnostic.h (struct diagnostic_context) <last_module>: Change
20111         type.
20112         (diagnostic_last_module_changed): Add 'map' argument.
20113         (diagnostic_set_last_function): Likewise.
20114         * diagnostic.c (undiagnostic_report_current_module): Iterate using
20115         line map, not input_file_stack.
20116         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
20117
20118 2008-02-29  Paul Brook  <paul@codesourcery.com>
20119
20120         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
20121
20122 2008-02-29  Paul Brook  <paul@codesourcery.com>
20123
20124         * config/arm/ieee754-df.S (muldf3): Use RET macros.
20125
20126 2008-02-29  Richard Guenther  <rguenther@suse.de>
20127
20128         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
20129         vn_lookup_or_add.
20130         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
20131         value for comparing for a store match.
20132         (simplify_unary_expression): Do nothing for SSA_NAMEs.
20133         (try_to_simplify): Do not do a full-blown reference lookup.
20134
20135 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
20136
20137         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
20138         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
20139
20140         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
20141
20142 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
20143
20144         * tree-loop-linear.c (try_interchange_loops): Compare memory access
20145         strides against cache sizes.
20146
20147 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
20148
20149         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
20150         constant to fpul.
20151
20152 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
20153
20154         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
20155         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
20156         is smaller than the original promoted value.
20157         (simplify_subreg): If OP is a SUBREG, try to preserve its
20158         SUBREG_PROMOTED_VAR_P information.
20159
20160 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
20161
20162         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
20163         (VN_INFO_GET): Allocate new objects on the obstack.
20164         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
20165         for rpo_numbers_temp, for consistency.
20166         (free_scc_vn): Free the obstack.
20167
20168 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
20169
20170         * doc/invoke.texi: Document -ftree-loop-distribution.
20171         * tree-loop-distribution.c: New.
20172         * tree-pass.h (pass_loop_distribution): New.
20173         * graphds.h (struct graph): Add htab_t indices.
20174         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
20175         * tree-vectorizer.c (rename_variables_in_loop): Extern.
20176         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
20177         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
20178         * tree-data-ref.c (debug_data_dependence_relations): New.
20179         (dump_data_dependence_relation): Also print data references.
20180         (free_data_ref): Extern.
20181         (same_access_functions): Moved...
20182         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
20183         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
20184         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
20185         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
20186         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
20187         (stmts_from_loop): Skip LABEL_EXPR.
20188         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
20189         New.
20190         (build_rdg): Initialize rdg->indices htab.
20191         (free_rdg, stores_from_loop, ref_base_address,
20192         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
20193         have_similar_memory_accesses_1, ref_base_address_1,
20194         remove_similar_memory_refs): New.
20195         * tree-data-ref.h: Depend on tree-chrec.h.
20196         (debug_data_dependence_relations, free_data_ref): Declared.
20197         (same_access_functions): ... here.
20198         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
20199         New.
20200         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
20201         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
20202         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
20203         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
20204         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
20205         rdg_vertex_for_stmt): Declared.
20206         (struct rdg_edge): Add level.
20207         (RDGE_LEVEL): New.
20208         (free_rdg, stores_from_loop, remove_similar_memory_refs,
20209         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
20210         Declared.
20211         (rdg_has_similar_memory_accesses): New.
20212         * tree-vect-analyze.c: Remove unused static decls.
20213         * lambda.h (dependence_level): New.
20214         * common.opt (ftree-loop-distribution): New.
20215         * tree-flow.h (mark_virtual_ops_in_bb,
20216         slpeel_tree_duplicate_loop_to_edge_cfg,
20217         rename_variables_in_loop): Declared.
20218         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
20219         (OBJS-common): Add tree-loop-distribution.o.
20220         (tree-loop-distribution.o): New rule.
20221         * tree-cfg.c (mark_virtual_ops_in_bb): New.
20222         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
20223         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
20224
20225 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
20226
20227         PR target/33963
20228         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
20229         other than structures and unions.
20230
20231 2008-02-28  Richard Guenther  <rguenther@suse.de>
20232
20233         Revert:
20234         2008-02-26  Richard Guenther  <rguenther@suse.de>
20235
20236         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20237         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20238         (lookup_decl_from_uid): Declare.
20239         (remove_decl_from_map): Likewise.
20240         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20241         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20242         (decl_for_uid_map): New global hashtable mapping DECL_UID
20243         to the decl tree.
20244         (init_ttree): Allocate it.
20245         (insert_decl_to_uid_decl_map): New helper function.
20246         (make_node_stat): Insert new decls into the map.
20247         (copy_node_stat): Likewise.
20248         (lookup_decl_from_uid): New function.
20249         (remove_decl_from_map): Likewise.
20250         (print_decl_for_uid_map_statistics): New helper.
20251         (dump_tree_statistics): Call it.
20252
20253         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20254         (referenced_var_iterator): Adjust.
20255         (FOR_EACH_REFERENCED_VAR): Adjust.
20256         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20257         (num_referenced_vars): Adjust.
20258         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20259         (first_referenced_var): Remove.
20260         (end_referenced_vars_p): Likewise.
20261         (next_referenced_var): Likewise.
20262         (referenced_var_iterator_set): New helper function.
20263         * tree-dfa.c (referenced_var_lookup): Adjust.
20264         (referenced_var_check_and_insert): Likewise.
20265         (remove_referenced_var): Likewise.
20266         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20267         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20268         (verify_call_clobbering): Likewise.
20269         (verify_memory_partitions): Likewise.
20270         (init_tree_ssa): Allocate bitmap instead of hashtable for
20271         referenced_vars.
20272         (delete_tree_ssa): Adjust.
20273         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20274         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20275         (compute_tag_properties): Likewise.
20276         (set_initial_properties): Likewise.
20277         (find_partition_for): Likewise.
20278         (update_reference_counts): Likewise.
20279         (dump_may_aliases_for): Likewise.
20280         * tree-ssa-operands.c (add_virtual_operand): Likewise.
20281         (add_call_clobber_ops): Likewise.
20282         (add_call_read_ops): Likewise.
20283         (get_asm_expr_operands): Likewise.
20284         * tree-into-ssa.c (dump_decl_set): Likewise.
20285         (update_ssa): Likewise.
20286         * tree-sra.c (scan_function): Likewise.
20287         (decide_instantiations): Likewise.
20288         (scalarize_parms): Likewise.
20289         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20290         (dsa_named_for): Likewise.
20291         * tree-ssa-structalias.c (update_alias_info): Likewise.
20292         (merge_smts_into): Likewise.
20293
20294 2008-02-27  David Daney  <ddaney@avtrex.com>
20295
20296         PR target/34409
20297         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
20298         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
20299         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
20300         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
20301         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
20302
20303 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
20304
20305         PR target/25477
20306         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
20307         (BUILT_IN_NEXTTOWARD): Remove.
20308         (BUILT_IN_NEXTTOWARDF): Ditto.
20309         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
20310         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
20311
20312 2008-02-27  Tom Tromey  <tromey@redhat.com>
20313
20314         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
20315         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
20316
20317 2008-02-27  Jan Beulich  <jbeulich@novell.com>
20318
20319         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
20320         update the respective field on newdecl.
20321
20322 2008-02-27  Revital Eres  <eres@il.ibm.com>
20323
20324         PR rtl-optimization/34999
20325         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
20326         crossing edges that ends with a call insn.
20327         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
20328         call insn and clear the EDGE_CROSSING flag of the crossing edge
20329         when fixing fallthru edges.
20330
20331 2008-02-27  Richard Guenther  <rguenther@suse.de>
20332
20333         PR middle-end/35390
20334         * fold-const.c (fold_unary): Return the correct argument,
20335         converted to the result type.
20336
20337 2008-02-27  Richard Guenther  <rguenther@suse.de>
20338
20339         PR middle-end/34971
20340         * expr.c (expand_expr_real_1): Assert on rotates that operate
20341         on partial modes.
20342         * fold-const.c (fold_binary): Use the types precision, not the
20343         bitsize of the mode if folding rotate expressions.  Build rotates
20344         only for full modes.
20345
20346 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
20347
20348         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
20349         and CPP_PRAGMA_EOL.
20350         * c-pragma.c (pragma_ns_name): New typedef.
20351         (registered_pp_pragmas): New variable.
20352         (c_pp_lookup_pragma): New function.
20353         (c_register_pragma_1): If flag_preprocess_only, do nothing
20354         for non-expanded pragmas, for expanded ones push pragma's
20355         namespace and name into registered_pp_pragmas vector.
20356         (c_invoke_pragma_handler): Register OpenMP pragmas even when
20357         flag_preprocess_only, don't register GCC pch_preprocess
20358         pragma if flag_preprocess_only.
20359         * c-opts.c (c_common_init): Call init_pragma even if
20360         flag_preprocess_only.
20361         * c-pragma.c (c_pp_lookup_pragma): New prototype.
20362         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
20363         cpp_register_pragma if flag_preprocess_only.
20364
20365 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20366
20367         PR c/28800
20368         * c-parser.c (c_parser_translation_unit): Warn for empty
20369         translation unit, not empty source file.
20370
20371 2008-02-26  Paul Brook  <paul@codesourcery.com>
20372
20373         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
20374         operand for Thumb-2.
20375         * config/arm/arm.h (reg_class): Add CORE_REGS.
20376         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
20377         (BASE_REG_CLASS): Use CORE_REGS.
20378         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
20379         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
20380         (REGNO_OK_FOR_INDEX_P): Exclude SP.
20381         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
20382         ARM_REGNO_OK_FOR_INDEX_P.
20383         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
20384         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
20385         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
20386         (ldm/stm peepholes): Ditto.
20387         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
20388         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
20389         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
20390         * config/arm/constraints.md: Enable "k" constraint on ARM.
20391
20392 2008-02-27  Ben Elliston  <bje@au.ibm.com>
20393
20394         * config/rs6000/rs6000.c: Annotate cache line size field in all
20395         instances of struct processor_costs.
20396
20397 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
20398
20399         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
20400         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
20401         jump_bypass): New counters.
20402         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
20403         * dce.c (gate_ud_dce): Same.
20404         (gate_fast_dce): Same.
20405         * dse.c (gate_dse1): New function.
20406         (gate_dse2): New function.
20407         (gate_dse): Merge results of new gate functions.
20408         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
20409         (gate_handle_jump_bypass): Add dbg_cnt.
20410         (gate_handle_gcse): Add dbg_cnt.
20411         * ifcvt.c (gate_handle_if_conversion): Same.
20412         (gate_handle_if_after_combine): Same.
20413         (gate_handle_if_after_reload): Same.
20414         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
20415
20416 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
20417
20418         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
20419         line sizes.
20420         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
20421
20422 2008-02-26  Jason Merrill  <jason@redhat.com>
20423
20424         PR c++/35315
20425         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
20426         alone if it's the naming decl for the type's main variant.
20427
20428 2008-02-26  Tom Tromey  <tromey@redhat.com>
20429
20430         * system.h (USE_MAPPED_LOCATION): Poison.
20431         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
20432         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
20433         (make_goto_expr_edges): Likewise.
20434         (remove_bb): Likewise.
20435         (execute_warn_function_return): Likewise.
20436         * basic-block.h (struct edge_def) <goto_locus>: Change type to
20437         location_t.
20438         * c-common.c (fname_decl): Remove old location code.
20439         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
20440         location code.
20441         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
20442         variant.
20443         (ASM_INPUT_SOURCE_LOCATION): Likewise.
20444         (gen_rtx_ASM_INPUT): Likewise.
20445         (gen_rtx_ASM_INPUT_loc): Likewise.
20446         (get_rtx_asm_OPERANDS): Remove.
20447         * cfglayout.c (insn_locators_alloc): Remove old location code.
20448         (set_curr_insn_source_location): Likewise.
20449         (curr_insn_locator): Likewise.
20450         * print-tree.c (print_node): Remove old location code.
20451         * tree-mudflap.c (mf_varname_tree): Remove old location code.
20452         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
20453         * cfgexpand.c (expand_gimple_cond_expr): Don't use
20454         location_from_locus.
20455         (construct_exit_block): Remove old location code.
20456         * emit-rtl.c (force_next_line_note): Remove old location code.
20457         * profile.c (branch_prob): Remove old location code.
20458         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
20459         LOC_LINE): Remove old-location variants.
20460         * langhooks.c (lhd_print_error_function): Remove old location
20461         code.
20462         * configure, config.in: Rebuilt.
20463         * configure.ac (--enable-mapped-location): Remove.
20464         * c-decl.c (c_init_decl_processing): Remove old location code.
20465         (finish_function): Likewise.
20466         * recog.c (decode_asm_operands): Remove old location code.
20467         * c-pch.c (c_common_read_pch): Remove old location code.
20468         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
20469         variants.
20470         * gimple-low.c (lower_function_body): Remove old location code.
20471         * toplev.c (unknown_location): Remove.
20472         (push_srcloc): Remove old-location variant.
20473         (process_options): Remove old location code.
20474         (lang_dependent_init): Likewise.
20475         * input.h (UNKNOWN_LOCATION): Move definition.
20476         (location_t): Undeprecate.
20477         (source_locus): Remove.
20478         (location_from_locus): Remove.
20479         (struct location_s): Remove.
20480         Remove all old-location code.
20481         (input_line, input_filename): Remove.
20482         * final.c (final_scan_insn): Remove old location code.
20483         * diagnostic.c (diagnostic_build_prefix): Remove
20484         USE_MAPPED_LOCATION test.
20485         * tree.h (gimple_stmt) <locus>: Now a location_t.
20486         (tree_exp) <locus>: Likewise.
20487         (DECL_IS_BUILTIN): Remove old-location variant.
20488         (annotate_with_file_line, annotate_with_locus): Likewise.
20489         (expr_locus, set_expr_locus): Update.
20490         * tree.c (build1_stat): Remove old location code.
20491         (last_annotated_node): Remove.
20492         (annotate_with_file_line): Remove old-location variant.
20493         (annotate_with_locus): Likewise.
20494         (expr_location): Remove old location code.
20495         (set_expr_location): Likewise.
20496         (expr_has_location): Likewise.
20497         (expr_locus): Likewise.
20498         (set_expr_locus): Likewise.
20499         (expr_filename): Don't use location_from_locus.
20500         (expr_lineno): Likewise.
20501         * rtl-error.c (location_for_asm): Remove old location code.
20502         * c-lex.c (cb_line_change): Remove old location code.
20503         (fe_file_change): Likewise.
20504         (cb_def_pragma): Likewise.
20505         (c_lex_with_flags): Likewise.
20506         * gengtype.c (do_typedef): Don't special-case location types.
20507         (define_location_structures): Remove.
20508         (main): Don't call define_location_structures.
20509         * tree-pretty-print.c (dump_implicit_edges): Remove old location
20510         code.
20511
20512 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20513
20514         PR 26264
20515         * builtins.def (BUILT_IN_STDARG_START): Remove.
20516         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
20517         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
20518         * tree-inline.c (inline_forbidden_p_1): Likewise.
20519
20520 2008-02-26  Richard Guenther  <rguenther@suse.de>
20521
20522         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20523         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20524         (lookup_decl_from_uid): Declare.
20525         (remove_decl_from_map): Likewise.
20526         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20527         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20528         (decl_for_uid_map): New global hashtable mapping DECL_UID
20529         to the decl tree.
20530         (init_ttree): Allocate it.
20531         (insert_decl_to_uid_decl_map): New helper function.
20532         (make_node_stat): Insert new decls into the map.
20533         (copy_node_stat): Likewise.
20534         (lookup_decl_from_uid): New function.
20535         (remove_decl_from_map): Likewise.
20536         (print_decl_for_uid_map_statistics): New helper.
20537         (dump_tree_statistics): Call it.
20538
20539         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20540         (referenced_var_iterator): Adjust.
20541         (FOR_EACH_REFERENCED_VAR): Adjust.
20542         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20543         (num_referenced_vars): Adjust.
20544         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20545         (first_referenced_var): Remove.
20546         (end_referenced_vars_p): Likewise.
20547         (next_referenced_var): Likewise.
20548         (referenced_var_iterator_set): New helper function.
20549         * tree-dfa.c (referenced_var_lookup): Adjust.
20550         (referenced_var_check_and_insert): Likewise.
20551         (remove_referenced_var): Likewise.
20552         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20553         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20554         (verify_call_clobbering): Likewise.
20555         (verify_memory_partitions): Likewise.
20556         (init_tree_ssa): Allocate bitmap instead of hashtable for
20557         referenced_vars.
20558         (delete_tree_ssa): Adjust.
20559         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20560         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20561         (compute_tag_properties): Likewise.
20562         (set_initial_properties): Likewise.
20563         (find_partition_for): Likewise.
20564         (update_reference_counts): Likewise.
20565         (dump_may_aliases_for): Likewise.
20566         * tree-ssa-operands.c (add_virtual_operand): Likewise.
20567         (add_call_clobber_ops): Likewise.
20568         (add_call_read_ops): Likewise.
20569         (get_asm_expr_operands): Likewise.
20570         * tree-into-ssa.c (dump_decl_set): Likewise.
20571         (update_ssa): Likewise.
20572         * tree-sra.c (scan_function): Likewise.
20573         (decide_instantiations): Likewise.
20574         (scalarize_parms): Likewise.
20575         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20576         (dsa_named_for): Likewise.
20577         * tree-ssa-structalias.c (update_alias_info): Likewise.
20578         (merge_smts_into): Likewise.
20579
20580 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20581
20582         PR 34351
20583         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
20584         * c-opts.c (c_common_handle_option): Wall enables
20585         Wvolatile-register-var.
20586         * common.opt: Move Wvolatile-register-var to...
20587         * c.opt: ...here.
20588
20589 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20590
20591         * common.opt (Wlarger-than=): New.
20592         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
20593         -Wlarger-than=.
20594         * opts.c (common_handle_option): Handle -Wlarger-than=.
20595         * optc-gen.awk: Likewise.
20596         * opth-gen.awk: Likewise.
20597         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
20598         * tree-optimize.c (tree_rest_of_compilation): Likewise.
20599
20600 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20601
20602         * c-common.c (match_case_to_enum_1): Add appropriate
20603         OPT_W* parameter to warning.
20604         (c_do_switch_warnings): Likewise.
20605         * c-typeck.c (warning_init): Add one more parameter following
20606         'warning' function.
20607         (push_init_level): Update call to warning_init.
20608         (pop_init_level): Likewise.
20609         (add_pending_init): Likewise.
20610         (output_init_element: Likewise.
20611
20612 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20613
20614         PR 28322
20615         * toplev.c (toplev_main): If there are warnings or error, print
20616         errors for ignored options.
20617         * opts.c (ignored_options): New static variable.
20618         (postpone_unknown_option_error): New.
20619         (print_ignored_options): New.
20620         (handle_option): Postpone errors for unknown -Wno-* options.
20621         * opts.h (print_ignored_options): Declare.
20622
20623 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
20624
20625         * config/mips/mips.md (loadgp_blockage, blockage): Change type
20626         to "ghost".
20627
20628 2008-02-25  Richard Guenther  <rguenther@suse.de>
20629
20630         Revert:
20631         2008-02-25  Richard Guenther  <rguenther@suse.de>
20632
20633         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20634         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20635         (lookup_decl_from_uid): Declare.
20636         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20637         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20638         (decl_for_uid_map): New global hashtable mapping DECL_UID
20639         to the decl tree.
20640         (init_ttree): Allocate it.
20641         (insert_decl_to_uid_decl_map): New helper function.
20642         (make_node_stat): Insert new decls into the map.
20643         (copy_node_stat): Likewise.
20644         (lookup_decl_from_uid): New function.
20645         (print_decl_for_uid_map_statistics): New helper.
20646         (dump_tree_statistics): Call it.
20647
20648         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20649         (referenced_var_iterator): Adjust.
20650         (FOR_EACH_REFERENCED_VAR): Adjust.
20651         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20652         (num_referenced_vars): Adjust.
20653         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20654         (first_referenced_var): Remove.
20655         (end_referenced_vars_p): Likewise.
20656         (next_referenced_var): Likewise.
20657         (referenced_var_iterator_set): New helper function.
20658         * tree-dfa.c (referenced_var_lookup): Adjust.
20659         (referenced_var_check_and_insert): Likewise.
20660         (remove_referenced_var): Likewise.
20661         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20662         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20663         (verify_call_clobbering): Likewise.
20664         (verify_memory_partitions): Likewise.
20665         (init_tree_ssa): Allocate bitmap instead of hashtable for
20666         referenced_vars.
20667         (delete_tree_ssa): Adjust.
20668         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20669         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20670         (compute_tag_properties): Likewise.
20671         (set_initial_properties): Likewise.
20672         (find_partition_for): Likewise.
20673         (update_reference_counts): Likewise.
20674         (dump_may_aliases_for): Likewise.
20675         * tree-ssa-operands.c (add_virtual_operand): Likewise.
20676         (add_call_clobber_ops): Likewise.
20677         (add_call_read_ops): Likewise.
20678         (get_asm_expr_operands): Likewise.
20679         * tree-into-ssa.c (dump_decl_set): Likewise.
20680         (update_ssa): Likewise.
20681         * tree-sra.c (scan_function): Likewise.
20682         (decide_instantiations): Likewise.
20683         (scalarize_parms): Likewise.
20684         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20685         (dsa_named_for): Likewise.
20686         * tree-ssa-structalias.c (update_alias_info): Likewise.
20687         (merge_smts_into): Likewise.
20688
20689 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
20690
20691         PR fortran/29549
20692         * doc/invoke.texi (-fcx-limited-range): Document new option.
20693         * toplev.c (process_options): Handle -fcx-fortran-rules.
20694         * common.opt: Add documentation for -fcx-fortran-rules.
20695
20696 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
20697
20698         PR c/35162
20699         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
20700         actual behaviour and C99.
20701
20702 2008-02-26  Ben Elliston  <bje@au.ibm.com>
20703
20704         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
20705         (ASM_CPU_POWER6_SPEC): Likewise.
20706         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
20707         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
20708         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
20709
20710 2008-02-25  Richard Guenther  <rguenther@suse.de>
20711
20712         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
20713         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
20714         (lookup_decl_from_uid): Declare.
20715         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
20716         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
20717         (decl_for_uid_map): New global hashtable mapping DECL_UID
20718         to the decl tree.
20719         (init_ttree): Allocate it.
20720         (insert_decl_to_uid_decl_map): New helper function.
20721         (make_node_stat): Insert new decls into the map.
20722         (copy_node_stat): Likewise.
20723         (lookup_decl_from_uid): New function.
20724         (print_decl_for_uid_map_statistics): New helper.
20725         (dump_tree_statistics): Call it.
20726
20727         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
20728         (referenced_var_iterator): Adjust.
20729         (FOR_EACH_REFERENCED_VAR): Adjust.
20730         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
20731         (num_referenced_vars): Adjust.
20732         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
20733         (first_referenced_var): Remove.
20734         (end_referenced_vars_p): Likewise.
20735         (next_referenced_var): Likewise.
20736         (referenced_var_iterator_set): New helper function.
20737         * tree-dfa.c (referenced_var_lookup): Adjust.
20738         (referenced_var_check_and_insert): Likewise.
20739         (remove_referenced_var): Likewise.
20740         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
20741         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20742         (verify_call_clobbering): Likewise.
20743         (verify_memory_partitions): Likewise.
20744         (init_tree_ssa): Allocate bitmap instead of hashtable for
20745         referenced_vars.
20746         (delete_tree_ssa): Adjust.
20747         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
20748         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
20749         (compute_tag_properties): Likewise.
20750         (set_initial_properties): Likewise.
20751         (find_partition_for): Likewise.
20752         (update_reference_counts): Likewise.
20753         (dump_may_aliases_for): Likewise.
20754         * tree-ssa-operands.c (add_virtual_operand): Likewise.
20755         (add_call_clobber_ops): Likewise.
20756         (add_call_read_ops): Likewise.
20757         (get_asm_expr_operands): Likewise.
20758         * tree-into-ssa.c (dump_decl_set): Likewise.
20759         (update_ssa): Likewise.
20760         * tree-sra.c (scan_function): Likewise.
20761         (decide_instantiations): Likewise.
20762         (scalarize_parms): Likewise.
20763         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
20764         (dsa_named_for): Likewise.
20765         * tree-ssa-structalias.c (update_alias_info): Likewise.
20766         (merge_smts_into): Likewise.
20767
20768 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
20769
20770         PR target/35258
20771         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
20772         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
20773         * alias.h (nonoverlapping_memrefs_p): Likewise.
20774
20775 2008-02-25  Jan Beulich  <jbeulich@novell.com>
20776
20777         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
20778         * config/i386/netware-libgcc.exp: Add __bswap?i2,
20779         __emultls_get_address, __emultls_register_common,
20780         __floatundi?f, and _Unwind_GetIPInfo.
20781         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
20782         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
20783         (gen_regparm_prefix): Likewise.
20784         (i386_nlm_encode_section_info): Sync with
20785         config/i386/winnt.c:i386_pe_encode_section_info().
20786         (i386_nlm_maybe_mangle_decl_assembler_name): New.
20787         i386_nlm_mangle_decl_assembler_name): New.
20788         (netware_override_options): New.
20789         * config/i386/netware.h (netware_override_options): Declare.
20790         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
20791         (i386_nlm_mangle_decl_assembler_name): Declare.
20792         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
20793
20794 2008-02-25  Ben Elliston  <bje@au.ibm.com>
20795
20796         PR other/32948
20797         * c-decl.c (grokdeclarator): Remove unused local variables
20798         `typedef_type' and `type_as_written'.
20799         * bb-reorder.c
20800         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
20801         unused local variable `has_hot_blocks'.
20802         (fix_crossing_conditional_branches): Remove unused local variable
20803         `prev_bb'.
20804
20805 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
20806
20807         PR middle-end/19984
20808         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
20809         using DEF_C99_BUILTIN.
20810         (BUILT_IN_NANF): Ditto.
20811         (BUILT_IN_NANL): Ditto.
20812
20813 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
20814             Revital Eres  <eres@il.ibm.com>
20815
20816         * modulo-sched.c (calculate_must_precede_follow): Address TODO
20817         regarding the order of two dependent insns in the same row.
20818
20819 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
20820
20821         * stor-layout.c (layout_decl): Do not bump the alignment of a
20822         bit-field to more than byte alignment if it is packed.
20823
20824 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
20825
20826         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
20827         e300c2 and e300c3.
20828
20829 2008-02-24  Diego Novillo  <dnovillo@google.com>
20830
20831         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
20832
20833         PR 33738
20834         * tree-vrp.c (vrp_evaluate_conditional): With
20835         -Wtype-limits, emit a warning when comparing against a
20836         constant outside the natural range of OP0's type.
20837         * c.opt (Wtype-limits): Move ...
20838         * common.opt (Wtype-limits): ... here.
20839
20840 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
20841
20842         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
20843         * config/rs6000/e300c2c3.md: New file.
20844         * config/rs6000/rs6000.c (processor_costs): Add new costs for
20845         e300c2 and e300c3.
20846         (rs6000_override_options): Add e300c2 and e300c3 cases to
20847         processor_target_table. Do not allow usage of Altivec or Spe
20848         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
20849         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
20850         * config/rs6000/rs6000.h (processor_type): Add
20851         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
20852         (ASM_CPU_SPEC): Add e300c2 and e300c3.
20853         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
20854         and ppce300c3. Include e300c2c3.md.
20855
20856 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
20857
20858         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
20859         instead of TARGET_STRICT_ALIGN.
20860
20861 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
20862
20863         * explow.c (memory_address): Assert that the generated address is
20864         valid.
20865
20866 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
20867
20868         PR target/25477
20869         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
20870         * config/darwin-ppc-ldouble-patch.def: New file.
20871         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
20872         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
20873         SUBTARGET_INIT_BUILTINS if defined.
20874         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
20875         New functions.
20876
20877 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20878
20879         PR rtl-opt/33512
20880         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
20881         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
20882
20883 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20884
20885         PR pch/35027
20886         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
20887         file" warning condtional on -Winvalid-PCH.
20888
20889 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
20890
20891         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
20892
20893 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
20894
20895         PR target/22076
20896         PR target/34256
20897         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
20898         prevent reload from using MMX registers.
20899         (*mov<mode>_internal): Ditto.
20900         (*movv2sf_internal_rex64): Ditto.
20901         (*movv2sf_internal): Ditto.
20902
20903 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20904
20905         PR documentation/31569
20906         * doc/install.texi2html: Use makeinfo --no-number-sections.
20907
20908 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
20909
20910         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
20911         ensure that we can address an entire entity > 8 bytes.  Don't
20912         generate reg+reg addressing for such data.
20913
20914 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
20915
20916         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
20917         strings when optimizing for size, unless the target cares about
20918         alignment.
20919
20920 2008-02-22  Tom Tromey  <tromey@redhat.com>
20921
20922         * regclass.c (current_pass): Remove declaration.
20923
20924 2008-02-22  Anatoly Sokolov <aesok@post.ru>
20925
20926         * config/avr/libgcc.S (__RAMPZ__): Define.
20927         (__do_copy_data): Add for devices with 128KB code memory.
20928
20929 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
20930
20931         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
20932         Use spe_abi.
20933         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
20934
20935 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
20936
20937         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
20938         GENNONACR_REGS.
20939
20940 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20941
20942         PR c/19999
20943         * c-typeck.c (build_binary_op): Warn about floating point
20944         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
20945
20946 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
20947
20948         PR target/34526
20949         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
20950         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
20951         add vrsave.
20952         (rs6000_override_options): Set altivec_abi as default, not override,
20953         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
20954         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
20955         is used; use new member spe_abi.
20956         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
20957         spe_abi and altivec_abi.
20958
20959 2008-02-22  Tomas Bily  <tbily@suse.cz>
20960
20961         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
20962
20963 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20964
20965         PR bootstrap/35273
20966         * config.build (build_file_translate): Set to `CMD //c' only if
20967         it works.
20968         * Makefile.in (build_file_translate): Improve comment.
20969
20970 2008-02-21  Jan Hubicka  <jh@suse.cz>
20971
20972         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
20973         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
20974         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
20975
20976 2008-02-21  Michael Matz  <matz@suse.de>
20977
20978         PR target/35264
20979         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
20980
20981 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
20982
20983         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
20984         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
20985         as insn constraint.
20986         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
20987         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
20988         SSE_VEC_FLOAT_MODE_P as insn constraint.
20989         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
20990         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
20991         sse4a_movntdf using MODEF mode iterator.
20992         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
20993         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
20994         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
20995         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
20996         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
20997         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
20998         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
20999
21000 2008-02-21  Richard Guenther  <rguenther@suse.de>
21001
21002         * tree.def (PAREN_EXPR): New tree code.
21003         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
21004         and PAREN_EXPR.
21005         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
21006         * expr.c (expand_expr_real_1): Likewise.
21007         * tree-inline.c (estimate_num_insns_1): Likewise.
21008         * tree-complex.c (expand_complex_move): Likewise.
21009         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
21010         as plain x.
21011
21012 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
21013
21014         PR target/35225
21015         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
21016
21017 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
21018
21019         PR target/35190
21020         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
21021
21022         * config/sh/sh.c (find_barrier): Don't go past
21023         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
21024
21025 2008-02-20  DJ Delorie  <dj@redhat.com>
21026
21027         * config/h8300/h8300.md (insv): Force source operand to be a register.
21028
21029         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
21030         as a jump, not as a plain insn.
21031
21032 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
21033
21034         * doc/invoke.texi (Warning Options): Add new option
21035         -Wframe-larger-than=.
21036         (-Wframe-larger-than): Document.
21037
21038         * flags.h (warn_frame_larger_than, frame_larger_than_size):
21039         Add declarations for new option variables.
21040
21041         * final.c (final_start_function): Check the frame size
21042         before emission and issue a Wframe-larger-than warning.
21043
21044         * opts.c (warn_frame_larger_than, frame_larger_than_size):
21045         Add definitions for new option variables.
21046         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
21047
21048         * common.opt (Wframe-larger-than=): New option.
21049
21050 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
21051
21052         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
21053         (<sse>_div<mode>3): Ditto.
21054         (<sse>_vmdiv<mode>3): Ditto.
21055         (<sse>_vmsqrt<mode>2): Ditto.
21056         (*smax<mode>3): Ditto.
21057         (sse5_frcz<mode>2): Ditto.
21058         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
21059         as insn constraint.
21060
21061 2008-02-20  Richard Guenther  <rguenther@suse.de>
21062
21063         PR middle-end/35265
21064         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
21065         be happy with INTEGRAL_TYPE_P.
21066
21067 2008-02-20  Richard Guenther  <rguenther@suse.de>
21068
21069         * fold-const.c (split_tree): Associate floatig-point expressions
21070         if flag_associative_math is set.
21071
21072 2008-02-20  Richard Guenther  <rguenther@suse.de>
21073
21074         * tree.h (fold_real_zero_addition_p): Declare.
21075         * fold-const.c (fold_real_zero_addition_p): Export.
21076         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
21077         floating-point operations with zero and one.
21078
21079 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
21080
21081         * doc/install.texi: Correct references to CFLAGS, replacing them
21082         with BOOT_CFLAGS.  Document flags used during bootstrap for
21083         target libraries.
21084
21085 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
21086
21087         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
21088         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
21089         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
21090         insn constraint.
21091         (smin<mode>3): Ditto from similar patterns.
21092         (smax<mode>3): Ditto.
21093         (*ieee_smin<mode>3): Ditto.
21094         (*ieee_smax<mode>3): Ditto.
21095         * config/i386/sse.md (sse): New mode attribute.
21096         (mov<mode>): Macroize expander from movv4sf and movv2df using
21097         SSEMODEF2P mode iterator.
21098         (<sse>_movnt<mode>): Ditto from similar patterns. Use
21099         SSE_VEC_FLOAT_MODE_P as insn constraint.
21100         (storent<mode>): Ditto.
21101         (storent<mode>): Macroize expander from storentsf and storentdf using
21102         MODEF mode iterator.
21103         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
21104         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
21105         (abs<mode>2): Ditto from similar patterns.
21106         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
21107         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
21108         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
21109         (<sse>_vmsqrt<mode>2): Ditto.
21110         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
21111         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
21112         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
21113         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
21114         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
21115         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
21116         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
21117         insn constraint.
21118         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
21119         iterator and SSE_FLOAT_MODE_P as insn constraint.
21120         (<sse>_ucomi): Ditto from similar patterns.
21121         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
21122         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
21123         SSE_VEC_FLOAT_MODE_P as insn constraint.
21124         (vcond<mode>): Ditto from similar patterns.
21125         (and<mode>3, *and<mode>3): Ditto.
21126         (<sse>_nand<mode>3): Ditto.
21127         (ior<mode>3, *ior<mode>3): Ditto.
21128         (xor<mode>3, *xor<mode>3): Ditto.
21129         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
21130         iterator and SSE_FLOAT_MODE_P as insn constraint.
21131         (*nand<mode>3): Ditto from similar patterns.
21132         (*ior<mode>3): Ditto.
21133         (*xor<mode>3): Ditto.
21134
21135 2008-02-20  Ira Rosen  <irar@il.ibm.com>
21136
21137         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
21138         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
21139         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
21140
21141 2008-02-19  Jan Hubicka  <jh@suse.cz>
21142
21143         * predict.c (tree_bb_level_predictions): Remove variable next
21144         mistakely introduced by previous commit.
21145
21146 2008-02-19  Jan Hubicka  <jh@suse.cz>
21147
21148         * predict.c (predict_paths_leading_to): Rewrite.
21149         (predict_paths_for_bb): New.
21150         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
21151
21152 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21153
21154         PR bootstrap/35218
21155         * Makefile.in (build_file_translate): New.
21156         (gcc-vers.texi): Use it for translating $(abs_srcdir).
21157         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
21158         * configure.ac (build_file_translate): Substitute it.
21159         * configure: Regenerate.
21160
21161 2008-02-19  Jan Hubicka  <jh@suse.cz>
21162
21163         PR rtl-optimization/34408
21164         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
21165         invalid sharing.
21166
21167 2008-02-19  Jan Hubicka  <jh@suse.cz>
21168
21169         PR middle-end/28779
21170         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
21171         call_expr.
21172
21173 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
21174
21175         PR Ada/35186
21176         * config/i386/i386-modes.def: Revert the last DI alignment
21177         change until Ada people can look into it.
21178
21179 2008-02-19  Nick Clifton  <nickc@redhat.com>
21180
21181         * opts.c (print_specific_help): Fix typo in --help text.
21182
21183 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
21184
21185         PR target/35239
21186         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
21187         32-bit inline asm without asm alternatives for host GCC < 3.0.
21188
21189 2008-02-19  Richard Guenther  <rguenther@suse.de>
21190
21191         PR tree-optimization/34989
21192         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
21193         Allow propagation to INDIRECT_REF if we can simplify only.
21194
21195 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21196
21197         * c-common.c (warn_for_collisions_1): Use appropriate option when
21198         warning.
21199
21200 2008-02-19  Nick Clifton  <nickc@redhat.com>
21201
21202         PR other/31349
21203         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
21204         (handle_options): Fix indentation.
21205         (print_filtered_help): If no language-specific options were
21206         displayed tell the user how to list all the options supported by
21207         the language's front-end.
21208         (print_specific_help): Fix indentation and remove duplicate line.
21209         (common_handle_option): Handle the -v option.
21210         For --help enable the display of undocumented options if the -v
21211         switch has been included on the command line.
21212         For --help= check for overlaps in the arguments between the option
21213         classes and the language names and issue a warning when they
21214         cannot be disambiguated.
21215         * c.opt (v): Pass on to the common option handler.
21216
21217 2008-02-19  Revital Eres  <eres@il.ibm.com>
21218
21219         * modulo-sched.c (sms_schedule): Change dump message when
21220         create_ddg function fails.
21221         (try_scheduling_node_in_cycle): Rename row to cycle.
21222         (print_partial_schedule): Rename CYCLE to ROW.
21223
21224 2008-02-19  Christian Bruel  <christian.bruel@st.com>
21225             Zdenek Dvorak  <ook@ucw.cz>
21226
21227         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
21228
21229 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
21230
21231         PR target/33555
21232         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
21233         (*x86_movdicc_0_m1_se): Ditto.
21234
21235 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
21236
21237         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
21238         (CMPtype): Define as __gcc_CMPtype.
21239         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
21240         (CMPtype): Define as __gcc_CMPtype.
21241
21242 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
21243
21244         Support valgrind 3.3 for --enable-checking=valgrind.
21245         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
21246         here.
21247         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
21248         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
21249         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
21250         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
21251         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
21252         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
21253         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
21254         respectively.
21255         * ggc-zone.c: Similar.
21256         * ggc-page.c: Similar.
21257
21258 2008-02-19  Paul Brook  <paul@codesourcery.com>
21259
21260         PR target/35071
21261         * config/arm/ieee754-df.S: Fix do_it typo.
21262         * config/arm/ieee754-sf.S: Fix do_it typo.
21263
21264 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
21265
21266         PR target/35189
21267         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
21268         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
21269         (OPTION_MASK_ISA_SSE_SET): Likewise.
21270         (OPTION_MASK_ISA_SSE2_SET): Likewise.
21271         (OPTION_MASK_ISA_SSE3_SET): Likewise.
21272         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
21273         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
21274         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
21275         (OPTION_MASK_ISA_SSE4_SET): Likewise.
21276         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
21277         (OPTION_MASK_ISA_SSE5_SET): Likewise.
21278         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
21279         (OPTION_MASK_ISA_MMX_UNSET): Updated.
21280         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
21281         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
21282         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
21283         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
21284         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
21285         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
21286         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
21287         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
21288         (OPTION_MASK_ISA_SSE4): Removed.
21289         (ix86_handle_option): Turn on bits in ix86_isa_flags and
21290         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
21291         (override_options): Don't turn on implied SSE/MMX bits in
21292         ix86_isa_flags.
21293
21294 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
21295
21296         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
21297         32bit host.
21298
21299 2008-02-18  Joey Ye  <joey.ye@intel.com>
21300
21301         PR middle-end/34921
21302         * tree-nested.c (insert_field_into_struct): Set type alignment
21303         to field alignment if the former is less than the latter.
21304
21305 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
21306
21307         * BASE-VER: Set to 4.4.0.
21308
21309 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21310
21311         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
21312         * doc/cfg.texi: Likewise.
21313         * doc/extend.texi: Likewise.
21314         * doc/gty.texi: Likewise.
21315         * doc/invoke.texi: Likewise.
21316         * doc/loop.texi: Likewise.
21317         * doc/md.texi: Likewise.
21318         * doc/passes.texi: Likewise.
21319         * doc/rtl.texi: Likewise.
21320         * doc/sourcebuild.texi: Likewise.
21321         * doc/tm.texi: Likewise.
21322         * doc/tree-ssa.texi: Likewise.
21323
21324 2008-02-17  Richard Guenther  <rguenther@suse.de>
21325
21326         PR middle-end/35227
21327         * tree-complex.c (init_parameter_lattice_values): Handle parameters
21328         without default definition.
21329
21330 2008-02-17  Richard Guenther  <rguenther@suse.de>
21331
21332         PR tree-optimization/35231
21333         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
21334         if A | B != 1.
21335
21336 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
21337
21338         Revert:
21339         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
21340         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
21341         libgcc_cmp_return mode.
21342
21343 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21344
21345         PR c/28368
21346         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
21347
21348 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
21349
21350         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
21351         multilibs.
21352
21353 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21354
21355         * doc/c-tree.texi: Use `@.' where appropriate.
21356         * doc/extend.texi: Likewise.
21357         * doc/install.texi: Likewise.
21358         * doc/invoke.texi: Likewise.
21359         * doc/loop.texi: Likewise.
21360         * doc/makefile.texi: Likewise.
21361         * doc/md.texi: Likewise.
21362         * doc/passes.texi: Likewise.
21363         * doc/standards.texi: Likewise.
21364         * doc/tm.texi: Likewise.
21365
21366 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
21367
21368         PR middle-end/35196
21369         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
21370         in entry_bb.
21371         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
21372         rather than in entry_bb.
21373
21374 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
21375
21376         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
21377         libgcc_cmp_return mode.
21378
21379 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
21380
21381         PR middle-end/35130
21382         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
21383         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
21384
21385 2008-02-15  Richard Guenther  <rguenther@suse.de>
21386             Zdenek Dvorak  <ook@ucw.cz>
21387
21388         PR tree-optimization/35164
21389         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
21390         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
21391         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
21392         Only propagate addresses which do not have abnormal SSA_NAMEs
21393         in their operands.
21394
21395 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
21396
21397         PR target/35088
21398         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
21399
21400 2008-02-15  Jan Hubicka  <jh@suse.cz>
21401
21402         PR middle-end/35149
21403         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
21404
21405 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
21406
21407         PR middle-end/34621
21408         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
21409         when calculating alignment_pad.
21410
21411 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
21412
21413         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
21414         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
21415         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
21416         and STACK_BOUNDARY define.
21417
21418 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
21419
21420         PR preprocessor/35061
21421         * c-pragma.c (handle_pragma_pop_macro): Check that
21422         pushed_macro_table has been allocated.
21423
21424 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
21425
21426         PR middle-end/35136
21427         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
21428         (force_gimple_operand): Likewise.
21429         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
21430         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
21431         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
21432         (find_interesting_uses_address): Check addressability and alignment
21433         of the base expression only after substituting bases of IVs into it.
21434
21435 2008-02-14  Michael Matz  <matz@suse.de>
21436
21437         PR target/34930
21438         * function.c (instantiate_virtual_regs_in_insn): Reload address
21439         before falling back to reloading the whole operand.
21440
21441 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
21442
21443         * config/s390/s390.c (s390_mainpool_start): Emit the pool
21444         before the first section switch note.
21445
21446 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21447
21448         * doc/bugreport.texi: Update copyright years.
21449         * doc/c-tree.texi: Likewise.
21450         * doc/cfg.texi: Likewise.
21451         * doc/cpp.texi: Likewise.
21452         * doc/cppinternals.texi: Likewise.
21453         * doc/fragments.texi: Likewise.
21454         * doc/frontends.texi: Likewise.
21455         * doc/gcc.texi: Likewise.
21456         * doc/gty.texi: Likewise.
21457         * doc/hostconfig.texi: Likewise.
21458         * doc/implement-c.texi: Likewise.
21459         * doc/libgcc.texi: Likewise.
21460         * doc/loop.texi: Likewise.
21461         * doc/makefile.texi: Likewise.
21462         * doc/options.texi: Likewise.
21463         * doc/passes.texi: Likewise.
21464         * doc/rtl.texi: Likewise.
21465         * doc/sourcebuild.texi: Likewise.
21466         * doc/standards.texi: Likewise.
21467         * doc/tree-ssa.texi: Likewise.
21468         * doc/trouble.texi: Likewise.
21469
21470         * doc/extend.texi: Use @: or add comma where appropriate.
21471         * doc/invoke.texi: Likewise.
21472         * doc/tm.texi: Likewise.
21473
21474 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
21475
21476         PR target/34393
21477         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
21478         to a reg.
21479
21480 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
21481
21482         * doc/md.texi (clz, ctz): Add reference.
21483         * doc/rtl.texi (clz, ctz): Likewise.
21484
21485 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21486
21487         PR other/35148
21488         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
21489         srcdir.
21490
21491 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
21492
21493         * config/s390/s390.c (struct constant_pool): New field
21494         emit_pool_after added.
21495         (s390_mainpool_start): Set the emit_pool_after flag according
21496         to the section switch notes.
21497         (s390_mainpool_finish): Consider emit_pool_after when emitting
21498         the literal pool at the end of the function.
21499         (s390_chunkify_start): Force literal pool splits at section
21500         switch notes.
21501
21502 2008-02-13  Michael Matz  <matz@suse.de>
21503
21504         PR debug/35065
21505         * var-tracking.c (clobber_variable_part): Correctly traverse the
21506         list.
21507
21508 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21509
21510         PR 29673
21511         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
21512         Add -fdump-ipa-inline.
21513         * tree-dump.c (dump_files): Remove tree-inlined dump.
21514         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
21515
21516 2008-02-12  Richard Guenther  <rguenther@suse.de>
21517
21518         PR tree-optimization/35171
21519         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
21520         default defs.
21521
21522 2008-02-12  Richard Guenther  <rguenther@suse.de>
21523
21524         PR middle-end/35163
21525         * fold-const.c (fold_widened_comparison): Use get_unwidened in
21526         value-preserving mode.  Disallow final truncation.
21527
21528 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
21529
21530         PR middle-end/35136
21531         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
21532         code from here to...
21533         (force_gimple_operand): ...here.
21534
21535 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
21536
21537         PR c++/35144
21538         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
21539         non-compatible pointers.
21540         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
21541         different FIELD_DECLs, try harder by comparing field offsets, sizes
21542         and types.
21543
21544         PR inline-asm/35160
21545         * function.c (match_asm_constraints_1): Don't replace the same input
21546         multiple times.
21547
21548 2008-02-12  Anatoly Sokolov <aesok@post.ru>
21549
21550         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
21551         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
21552         (expand_epilogue): Restore RAMPZ register.
21553         * config/avr/avr.md (RAMPZ_ADDR): New constant.
21554
21555 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
21556
21557         * config/i386/cygwin.asm: (__alloca): Correct calling
21558         convention and alignment.
21559         (__chkstk): Force 8 byte stack alignment.
21560
21561 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
21562             Richard Guenther  <rguenther@suse.de>
21563
21564         PR tree-optimization/33992
21565         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
21566         the zero we compare against.
21567
21568 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
21569
21570         PR libfortran/35063
21571         * gthr-win32.h (__gthread_mutex_destroy_function): New function
21572         to CloseHandle after unlocking to prevent accumulation of handle
21573         count.
21574
21575 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21576
21577         PR middle_end/34150
21578         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
21579         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
21580         and update LABEL_NUSES during and after reload.
21581
21582 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
21583
21584         PR middle-end/34627
21585         * combine.c (simplify_if_then_else): Make sure the comparison is
21586         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
21587
21588 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
21589
21590         PR bootstrap/35051
21591         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
21592         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
21593         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
21594         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
21595         * tree.h (get_type_static_bounds): Likewise.
21596
21597 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21598
21599         * doc/invoke.texi (Option Summary, C++ Dialect Options)
21600         (Objective-C and Objective-C++ Dialect Options, Warning Options):
21601         Make -Wfoo language annotations match what the compiler outputs.
21602
21603 2008-02-08  Sa Liu  <saliu@de.ibm.com>
21604
21605         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
21606         intrinsics spu_convts, spu_convtu, spu_convtf.
21607
21608 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
21609
21610         * doc/extend.texi (Function Attributes) <noinline>: Mention
21611         asm ("") as method to keep calls.
21612
21613 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21614
21615         PR other/32754
21616         * doc/options.texi (Options): Replace references to opts.sh with
21617         optc-gen.awk.
21618         * opts-common.c: Likewise.
21619         * optc-gen.awk: Likewise.
21620
21621 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
21622
21623         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
21624
21625 2008-02-07  Richard Henderson  <rth@redhat.com>
21626
21627         PR rtl-opt/33410
21628         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
21629         EXPR_LIST for the REG_EQUAL instead of a comparison with a
21630         funny mode.
21631
21632 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
21633
21634         PR tree-optimization/35085
21635         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
21636         for operand entry oe2 in addition to operand entry oe3 in order to
21637         expose more opportunities for vectorizer sum reduction.
21638
21639 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21640
21641         PR other/35107
21642         * Makefile.in (LIBS): Remove $(GMPLIBS).
21643         (cc1-dummy, cc1): Add $(GMPLIBS).
21644
21645 2008-02-06  Jan Hubicka  <jh@suse.cz>
21646
21647         PR target/23322
21648         * i386.md (moddf_integer): Do not produce partial memory stalls for
21649         targets where it hurts.
21650
21651 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
21652
21653         PR target/35083
21654         * optabs.c (expand_float): Do not check for decimal modes when
21655         expanding unsigned integer through signed conversion.
21656
21657 2008-02-06  Nick Clifton  <nickc@redhat.com>
21658
21659         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
21660         inside the clobber with a match_operand and duplicated operand
21661         number in the constraint.
21662         (ineqbranchsi): Delete redundant comment.
21663
21664 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
21665
21666         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
21667         builtin_define ("__USE_INIT_FINI__").
21668         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
21669         -msx multilibs.
21670         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
21671
21672 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21673
21674         PR documentation/30330
21675         * doc/invoke.texi (C++ Dialect Options)
21676         (Objective-C and Objective-C++ Dialect Options, Warning Options):
21677         For each warning option -Wfoo that allows -Wno-foo, ensure both
21678         -Wfoo and -Wno-foo are listed in the option index.  Fix index
21679         entry of -Wswitch-default, index -Wnormalized= including the
21680         `=', and -Wlarger-than-@var{len} including @var{len}.
21681
21682 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
21683
21684         * config/i386/i386.md (floatunssisf2): Use
21685         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
21686         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
21687         Macroize expander using MODEF mode iterator.
21688
21689 2008-02-05  Diego Novillo  <dnovillo@google.com>
21690
21691         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
21692
21693         PR 33738
21694         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
21695
21696 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21697
21698         PR other/35070
21699         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
21700
21701 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
21702
21703         PR target/35084
21704         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
21705         to indicate if a message should be generated.
21706         (init_cumulative_args): Updated.
21707         (function_value_32): Likewise.
21708
21709 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
21710
21711         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
21712
21713 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
21714
21715         PR target/35083
21716         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
21717         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
21718
21719 2008-02-04  Diego Novillo  <dnovillo@google.com>
21720
21721         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
21722
21723         PR 33738
21724         * tree-vrp.c (vrp_evaluate_conditional): With
21725         -Wtype-limits, emit a warning when comparing against a
21726         constant outside the natural range of OP0's type.
21727
21728 2008-02-04  Richard Guenther  <rguenther@suse.de>
21729
21730         PR middle-end/33631
21731         * expr.c (count_type_elements): Give for unions instead of
21732         guessing.
21733
21734 2008-02-04  Richard Guenther  <rguenther@suse.de>
21735
21736         PR middle-end/35043
21737         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
21738         to TYPE_DOMAINs base type instead of using bitsizetype here.
21739
21740 2008-02-03  Jason Merrill  <jason@redhat.com>
21741
21742         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
21743
21744 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21745
21746         PR other/29972
21747         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
21748         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
21749         (RS/6000 and PowerPC Options): Fix typos and markup.
21750         * doc/passes.texi (Tree-SSA passes): Likewise.
21751
21752 2008-02-02  Michael Matz  <matz@suse.de>
21753
21754         PR target/35045
21755         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
21756         from record_last_reg_set_info.
21757         (record_last_reg_set_info): Take an RTX argument, iterate over all
21758         constituent hardregs.
21759         (record_last_set_info, record_opr_changes): Change calls to
21760         new signature or to record_last_reg_set_info_regno.
21761
21762 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
21763
21764         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
21765
21766 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
21767
21768         PR rtl-optimization/34773
21769         * reg-notes.def (EQUAL): Mention significance of combination of
21770         REG_EQUAL and REG_RETVAL.
21771         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
21772         insn that has a REG_RETVAL.
21773
21774 2008-02-01  Roger Sayle  <roger@eyesopen.com>
21775
21776         PR bootstrap/33781
21777         * configure.ac (--enable-fixed-point): Disable unless explicitly
21778         requested on IRIX.
21779         * configure: Regenerate.
21780
21781 2008-02-01  Richard Guenther  <rguenther@suse.de>
21782
21783         PR other/35042
21784         * invoke.texi (-finline-limit): Remove no longer true parts
21785         of the documentation.  Note that there is no default value.
21786
21787 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
21788             Mark Mitchell  <mark@codesourcery.com>
21789             Ben Elliston  <bje@au.ibm.com>
21790
21791         PR c/29326
21792         * doc/extend.texi (Other Builtins): Document.
21793
21794 2008-01-31  Tom Browder <tom.browder@gmail.com>
21795
21796         * doc/c-tree.texi (Types): Fix grammar.
21797         (Expression trees): Ditto.
21798         * doc/passes.texi (Tree-SSA passes): Ditto.
21799
21800         * doc/configterms.texi (Configure Terms): Fix typo.
21801         * doc/cpp.texi (Common Predefined Macros): Ditto.
21802         * doc/md.texi (Machine Constraints): Ditto.
21803
21804         * doc/makefile.texi (Makefile): Add comma.
21805
21806 2008-01-31  Tom Browder  <tom.browder@gmail.com>
21807             Gerald Pfeifer  <gerald@pfeifer.com>
21808
21809         * doc/sourcebuild.texi (Front End): Remove references to CVS
21810         and CVSROOT/modules.
21811         (Texinfo Manuals): Replace reference to CVS by one to SVN.
21812         (Back End): Remove reference to CVS.
21813
21814 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
21815
21816         PR target/34900
21817         * config/mips/mips.c (gen_load_const_gp): New function, taking a
21818         comment from...
21819         (mips16_gp_pseudo_reg): ...here.
21820         * config/mips/mips.md (load_const_gp): Replace with...
21821         (load_const_gp_<mode>): ...this :P-based insn.
21822
21823 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
21824
21825         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
21826         options. Minor fixes.
21827         (-std): Move reference to standards closer to where language
21828         standards are first mentioned.
21829
21830 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
21831
21832         PR rtl-optimization/34995
21833         * reload.c (alternative_allows_const_pool_ref): Take an rtx
21834         parameter and return a bool.  If the rtx parameter is nonnull,
21835         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
21836         (find_reloads): Update call accordingly.  Pass the new operand
21837         if it needed no address reloads, otherwise pass null.
21838
21839 2008-01-30  Richard Henderson  <rth@redhat.com>
21840
21841         PR c/34993
21842         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
21843         for unbounded arrays.
21844
21845 2008-01-30  Silvius Rus  <rus@google.com>
21846
21847         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
21848
21849 2008-01-30  Jan Hubicka  <jh@suse.cz>
21850
21851         PR target/34982
21852         * i386.c (init_cumulative_args): Use real function declaration when
21853         calling locally.
21854
21855 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
21856
21857         PR rtl-optimization/34998
21858         * global.c (build_insn_chain): Treat non-subreg_lowpart
21859         SUBREGs of pseudos as clobbering all the words covered by the
21860         SUBREG, not just all the bytes.
21861         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
21862         original df_ref rather than an extract parameter.
21863         (global_conflicts): Update call accordingly.
21864
21865 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
21866
21867         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
21868         the overflow check to make it easier to read.
21869         (__fixtfdi): Change the type of the ll member in union
21870         long_double to UDItype_x.
21871
21872 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
21873
21874         PR middle-end/34969
21875         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
21876         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
21877         * tree-inline.c (fold_marked_statements): Call
21878         cgraph_update_edges_for_call_stmt if folding a call statement.
21879         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
21880         debug_generic_stmt calls, reset it back afterwards.
21881
21882         PR c/35017
21883         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
21884         static decls.
21885         * c-typeck.c (build_external_ref): Don't pedwarn about
21886         static vars in current function's scope.
21887
21888 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
21889
21890         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
21891
21892 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
21893
21894         PR c/35002
21895         * ipa-struct-reorg.c: Fix spelling.
21896         * params.def: Ditto.
21897
21898 2008-01-29  Richard Guenther  <rguenther@suse.de>
21899
21900         PR middle-end/35006
21901         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
21902         field.
21903         * tree-inline.c (remap_type): Increment remapping_type_depth
21904         around remapping types.
21905         (copy_body_r): Only add referenced variables if they are referenced
21906         from code, not types.
21907
21908 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
21909
21910         PR c++/34055
21911         PR c++/34103
21912         PR c++/34219
21913         PR c++/34606
21914         PR c++/34753
21915         PR c++/34754
21916         PR c++/34755
21917         PR c++/34919
21918         PR c++/34961
21919         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
21920         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
21921
21922 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
21923
21924         PR target/34412
21925         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
21926         pointer for tiny stack.
21927
21928 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
21929
21930         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
21931
21932 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
21933
21934         * config/vx-common.h: Fix typo in comment.
21935
21936 2008-01-28  Ian Lance Taylor  <iant@google.com>
21937
21938         PR c++/34862
21939         PR c++/33407
21940         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
21941         coalesce pointers if they have different DECL_NO_TBAA_P values.
21942         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
21943         between variables with different DECL_NO_TBAA_P values.
21944
21945 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
21946
21947         PR 31535
21948         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
21949         are not legitimate small data references on SPE targets.
21950
21951 2008-01-28  David Daney  <ddaney@avtrex.com>
21952
21953         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
21954
21955 2008-01-28  David Daney  <ddaney@avtrex.com>
21956
21957         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
21958
21959 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
21960
21961         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
21962         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
21963         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
21964         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
21965         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
21966         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
21967         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
21968         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
21969
21970 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
21971
21972         * basic-block.h (condjump_equiv_p): Fix comment.
21973
21974 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
21975
21976         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
21977         print_generic_stmt_indented): Fix comment.
21978
21979 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
21980
21981         * configure.ac (__stack_chk_fail): Add detecion for availability
21982         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
21983         * configure: Regenerate.
21984
21985 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
21986
21987         PR middle-end/34688
21988         * final.c (output_addr_const): Handle TRUNCATE.
21989
21990 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
21991
21992         PR target/34711
21993         * tree-ssa-loop-ivopts.c (comp_cost): New type.
21994         (zero_cost, infinite_cost): New constants.
21995         (struct cost_pair): Change type of cost to comp_cost.
21996         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
21997         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
21998         New functions.
21999         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
22000         split_address_cost, ptr_difference_cost, difference_cost,
22001         get_computation_cost_at, get_computation_cost,
22002         determine_use_iv_cost_generic, determine_use_iv_cost_address,
22003         determine_use_iv_cost_condition, determine_use_iv_costs,
22004         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
22005         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
22006         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
22007         Change type of cost to comp_cost.
22008         (determine_iv_cost): Increase cost of non-original ivs, instead
22009         of decreasing the cost of original ones.
22010         (get_address_cost): Indicate the complexity of the addressing mode
22011         in comp_cost.
22012         (try_add_cand_for): Prefer using ivs not specific to some object.
22013         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
22014
22015 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
22016             Janis Johnson  <janis187@us.ibm.com>
22017
22018         PR target/34814
22019         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
22020         (TARGET_INSTANTIATE_DECLS): Likewise.
22021         * target.h (expand_to_rtl_hook): New target hook.
22022         (instantiate_decls): Likewise.
22023         * function.c (instantiate_decl): Make non-static.  Rename to...
22024         (instantiate_decl_rtl): ... this.
22025         (instantiate_expr): Use instantiate_decl_rtl.
22026         (instantiate_decls_1): Likewise.
22027         (instantiate_decls): Likewise.
22028         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
22029         * function.h (instantiate_decl_rtl): Add prototype.
22030         * cfgexpand.c (target.h): New include.
22031         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
22032         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
22033         (TARGET_INSTANTIATE_DECLS): Likewise.
22034         (TARGET_INITIALIZER): New target hooks added.
22035         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
22036         New prototype.
22037         * config/rs6000/rs6000.c (tree-flow.h): New include.
22038         (machine_function): Add sdmode_stack_slot field.
22039         (rs6000_alloc_sdmode_stack_slot): New function.
22040         (rs6000_instantiate_decls): Likewise.
22041         (rs6000_secondary_memory_needed_rtx): Likewise.
22042         (rs6000_check_sdmode): Likewise.
22043         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
22044         (TARGET_INSTANTIATE_DECLS): Likewise.
22045         (rs6000_hard_regno_mode_ok): Allow SDmode.
22046         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
22047         (rs6000_emit_move): Handle SDmode.
22048         (function_arg_advance): Likewise.
22049         (function_arg): Likewise.
22050         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
22051         SDmode var args for 32-bit compiles.
22052         (rs6000_secondary_reload_class): Handle SDmode.
22053         (rs6000_output_function_epilogue): Likewise.
22054         (rs6000_function_value): Simplify if statement.
22055         (rs6000_libcall_value): Likewise.
22056         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
22057         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
22058         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
22059         (movsd_hardfloat): New define_insn.
22060         (movsd_softfloat): Likewise.
22061         (movsd_store): Likewise.
22062         (movsd_load): Likewise.
22063         (extendsddd2): Likewise.
22064         (extendsdtd2): Likewise.
22065         (truncddsd2): Likewise.
22066         (movdd_hardfloat64): Fixup comment.
22067         (UNSPEC_MOVSD_LOAD): New constant.
22068         (UNSPEC_MOVSD_STORE): Likewise.
22069
22070 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
22071
22072         PR c++/34965
22073         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
22074         TRUTH_XOR_EXPR.
22075         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
22076         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
22077         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
22078         and TRUTH_XOR_EXPR.
22079
22080 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
22081
22082         PR target/34794
22083         * config.gcc: Separate AIX 5.3 from AIX 6.1.
22084         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
22085         __LONGDOUBLE128 too.
22086         * config/rs6000/aix61.h: New file.
22087
22088 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
22089
22090         PR rtl-optimization/34959
22091         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
22092         popcount and parity rtxes the same mode as their operand.
22093         Truncate or extend the result to the return value's mode
22094         if necessary.
22095
22096 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
22097
22098         PR target/34981
22099         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
22100         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
22101         to GOT_VERSION_REGNUM.
22102         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
22103         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
22104         * config/mips/mips.c (mips_emit_call_insn): New function.
22105         (mips_call_tls_get_addr): Call mips_expand_call directly.
22106         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
22107         emit_call_insn.
22108         (mips16_build_call_stub): Likewise.  Return the call insn or null.
22109         (mips_expand_call): Update the call to mips16_build_call_stub
22110         accordingly and a remove redundant condition.  Assert that MIPS16
22111         stubs do not use lazy binding.  Use mips_emit_call_insn and return
22112         the call insn.
22113         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
22114         TARGET_USE_GOT.
22115         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
22116         (mips_avoid_hazard): Remove hazard_set handling.
22117         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
22118         (UNSPEC_RESTORE_GP): ...this.
22119         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
22120         (FAKE_CALL_REGNO): Rename to...
22121         (GOT_VERSION_REGNUM): ...this.
22122         (type): Add "ghost" value.  Add an associated insn reservation.
22123         (hazard_set): Remove.
22124         (exception_receiver): Rename to...
22125         (restore_gp): ...this and update the unspec identifier accordingly.
22126         (exception_receiver, nonlocal_got_receiver): New expanders.
22127         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
22128         FAKE_CALL_REGNO.  Remove hazard_set attribute.
22129         (set_got_version, update_got_version): New patterns.
22130
22131 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
22132
22133         PR target/34970
22134         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
22135
22136 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
22137
22138         PR other/31955
22139         * doc/install.texi2html: Generate gcc-vers.texi.
22140
22141 2008-01-25  DJ Delorie  <dj@redhat.com>
22142
22143         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
22144
22145 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
22146
22147         * config/c4x: Remove directory.
22148         * config.gcc (crx-*, mt-*): Mark obsolete.
22149         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
22150         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
22151         sh-*-rtemscoff*): Remove cases.
22152         * defaults.h (C4X_FLOAT_FORMAT): Remove.
22153         * real.c (encode_c4x_single, decode_c4x_single,
22154         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
22155         c4x_extended_format): Remove.
22156         * real.h (c4x_single_format, c4x_extended_format): Remove.
22157         * doc/extend.texi (interrupt, naked): Remove mention of attributes
22158         on C4x.
22159         (Pragmas): Remove comment about c4x pragmas.
22160         * doc/install.texi (c4x): Remove target-specific instructions.
22161         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
22162         * doc/md.texi (Machine Constraints): Remove C4x documentation.
22163         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
22164         refer to C4x source files as examples.
22165         (C4X_FLOAT_FORMAT): Remove documentation.
22166
22167 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
22168
22169         * config/bfin/bfin.c (override_options): Reorder tests so that
22170         flag_pic gets enabled for -msep-data.
22171
22172 2008-01-25  Richard Guenther  <rguenther@suse.de>
22173
22174         PR middle-end/32244
22175         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
22176         to its bitfield precision if required.
22177
22178 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
22179
22180         PR middle-end/33880
22181         * tree-nested.c (walk_omp_for): New function.
22182         (convert_nonlocal_reference, convert_local_reference): Call
22183         walk_omp_for on OMP_FOR.
22184         (convert_call_expr): Call walk_body on OMP_FOR's
22185         OMP_FOR_PRE_INIT_BODY.
22186
22187 2008-01-25  Richard Guenther  <rguenther@suse.de>
22188
22189         PR tree-optimization/34966
22190         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
22191         default defs and PHI_NODEs we have to insert after the
22192         defining statement.
22193
22194 2008-01-24  Nick Clifton  <nickc@redhat.com>
22195
22196         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
22197         Provide a default definition.
22198         (LIBGCC2_UNITS_PER_WORD): Likewise.
22199
22200         * config/stormy16/stormy16.c: Include df.h for the prototype
22201         for df_regs_ever_live_p.
22202         (xstormy16_expand_builtin_va_start): Convert the stack offset
22203         into a component_ref and then use POINTER_PLUS_EXPR to add it
22204         to the incoming_virtual_args_rtx.
22205         (xstormy16_gimplify_va_arg_expr): Rename to
22206         xstormy16_gimplify_va_arg_expr.
22207         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
22208         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
22209         xstormy16_gimplify_va_arg_expr.
22210         Fix up some formatting issues.
22211
22212         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
22213         Move to predicates.md.
22214         (xs_hi_general_operand): Likewise.
22215         (xs_hi_nonmemory_operand): Likewise.
22216         * config/stormy16/predicates.md:
22217         (xstormy16_carry_plus_operand): New predicate.
22218         (xs_hi_general_operand): New predicate.
22219         (xs_hi_nonmemory_operand): New predicate.
22220         * config/stormy16/stormy16-protos.h:
22221         (xstormy16_carry_plus_operand): Delete prototype.
22222         (xs_hi_general_operand): Likewise.
22223         (xs_hi_nonmemory_operand): Likewise.
22224
22225         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
22226         modifiers as they are no longer needed and they can trigger
22227         reload spill failures.
22228
22229         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
22230         with a match_operand in order to help reload.
22231
22232         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
22233         constraint with 'e' for the 8th alternative as this version of
22234         the mov.w instruction only accepts the lower 8 registers.
22235
22236 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
22237
22238         PR target/34856
22239         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
22240         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
22241         vector elements.
22242
22243 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
22244
22245         PR middle-end/33333
22246         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
22247
22248 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
22249
22250         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
22251         New functions.
22252         (remove_structure): Update allocations list before removing structure.
22253
22254 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
22255
22256         * ipa-struct-reorg.c (is_safe_cond_expr,
22257         create_new_stmts_for_cond_expr): Use integer_zerop function,
22258         that recognize not only zero-pointer, but zero-integer too.
22259
22260 2008-01-25  Ben Elliston  <bje@au.ibm.com>
22261
22262         PR other/22232
22263         * fixproto: Escape "." in sed expression that strips leading "./".
22264
22265 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
22266
22267         PR driver/34904
22268         * gcc.c (SWITCH_OK): Removed.
22269         (SWITCH_LIVE): Changed to bit.
22270         (SWITCH_FALSE): Likewise.
22271         (SWITCH_IGNORE): Likewise.
22272         (switchstr): Change live_cond to unsigned int.
22273         (process_command): Replace SWITCH_OK with 0.
22274         (do_self_spec): Likewise.
22275         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
22276         (give_switch): Likewise.
22277         (used_arg): Likewise.
22278         (do_spec_1): Set the SWITCH_IGNORE bit.
22279         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
22280         bits.  Set the SWITCH_LIVE bit.
22281
22282 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
22283
22284         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
22285
22286 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
22287
22288         PR tree-optimization/34472
22289         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
22290         parameter to a "bool *" and set *DATA to false if there is
22291         an unsafe access.  Do not delete the structure here.
22292         (check_cond_exprs): Delete it here instead.
22293         (check_cond_exprs, exclude_cold_structs): Do not increase
22294         I when removing a structure.
22295
22296 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
22297
22298         PR target/34856
22299         * config/i386/i386.c (ix86_expand_vector_init): Consider only
22300         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
22301
22302 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
22303
22304         PR middle-end/34934
22305         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
22306         a fixed vector for stack.
22307
22308 2008-01-24  Ben Elliston  <bje@au.ibm.com>
22309
22310         PR c++/25701
22311         * doc/gcc.texi (Software development): Add a direntry for g++.
22312
22313 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
22314
22315         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
22316         stale and straggling -fforce-addr comments above.
22317
22318         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
22319         define.
22320         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
22321         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
22322
22323 2008-01-23  Michael Matz  <matz@suse.de>
22324
22325         PR debug/34895
22326         * dwarf2out.c (force_type_die): Use modified_type_die instead of
22327         gen_type_die.
22328
22329 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
22330
22331         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
22332         malloc result type.
22333
22334 2008-01-23 Anatoly Sokolov <aesok@post.ru>
22335
22336         * config/avr/avr.c (avr_current_arch): New variable.
22337         (avr_arch_types): Add 'avr31' and 'avr51' entries.
22338         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
22339         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
22340         (avr_override_options): Init 'avr_current_arch'.
22341         (base_arch_s): Move from here...
22342         * config/avr/avr.h (base_arch_s): ... here. Add new members
22343         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
22344         'mega' to 'have_jmp_call'.
22345         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
22346         "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
22347         macros.
22348         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
22349         architectures.
22350         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
22351         MULTILIB_MATCHES): Ditto.
22352
22353 2008-01-23  Richard Guenther  <rguenther@suse.de>
22354
22355         PR middle-end/31529
22356         * cgraphunit.c (cgraph_reset_node): Always mark the node
22357         not reachable if it is not queued already.
22358
22359 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
22360
22361         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
22362         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
22363         (cputype_selected): New static variable.
22364         (bfin_handle_option): Set it if -mcpu is used.
22365         (override_option): Select default set of workarounds if no cpu type
22366         selected on the command line.
22367         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
22368
22369         From  Michael Frysinger  <michael.frysinger@analog.com>
22370         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
22371         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
22372
22373         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
22374         for bf547, bf523, bf524, and bf526.
22375         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
22376         bf526.
22377         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
22378         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
22379         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
22380         __ADSPBF547__ and __ADSPBF54x__ for bf547.
22381         * doc/invoke.texi (Blackfin Options): Document that
22382         -mcpu now accept bf547, bf523, bf524, and bf526.
22383
22384 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
22385
22386         PR rtl-optimization/34628
22387         * combine.c (try_combine): Stop and undo after the first combination
22388         if an autoincrement side-effect on the first insn has effectively
22389         been lost.
22390
22391 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
22392
22393         PR target/34529
22394         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
22395         Offset addresses are not valid for Altivec or paired float modes.
22396
22397 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
22398
22399         PR c++/34607
22400         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
22401         if DECL_INITIAL (decl) is error_mark_node.
22402
22403         PR c++/34914
22404         * c-common.c (handle_vector_size_attribute): Only allow
22405         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
22406         the same way as pointer, array etc. types.
22407         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
22408
22409         PR c++/34917
22410         * tree.c (build_type_attribute_qual_variant): Call
22411         build_qualified_type if attributes are equal, but quals are not.
22412
22413 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22414
22415         PR 32102
22416         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
22417         * flags.h (warn_strict_aliasing): Remove.
22418         (warn_strict_overflow): Remove.
22419         * opts.c (warn_strict_aliasing): Remove.
22420         (warn_strict_overflow): Remove.
22421         * c-opts.c (c_common_handle_option): -Wall only sets
22422         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
22423         (c_common_post_options): Give default values to -Wstrict-aliasing
22424         and -Wstrict-overflow if they are uninitialized.
22425         * common.opt (Wstrict-aliasing): Specify Var and Init.
22426         (Wstrict-overflow): Likewise.
22427
22428 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
22429
22430         PR rtl-optimization/26854
22431         PR rtl-optimization/34400
22432         PR rtl-optimization/34884
22433         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
22434         DF_RD->gen.
22435         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
22436         (df_rd_bb_info.expanded_lr_out): Deleted
22437         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
22438         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
22439         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
22440         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
22441         Removed code to allocate, initialize or free expanded_lr_out.
22442         (df_rd_bb_local_compute_process_def): Restructured to make more
22443         understandable.
22444         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
22445         sets if the sets are being trimmed.
22446
22447 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
22448
22449         PR bootstrap/32287
22450         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
22451         (as_vers): Likewise.
22452         * configure: Regenerated.
22453
22454 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22455
22456         PR middle-end/33092
22457         * tree-pass.h (pass_build_alias): New pass.
22458         * tree-ssa-alias.c (gate_build_alias): New.
22459         (pass_build_alias): New.
22460         * passes.c (init_optimization_passes): Add pass_build_alias after
22461         pass_create_structure_vars.
22462
22463 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
22464
22465         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
22466         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
22467         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
22468         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
22469         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
22470         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
22471         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
22472         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
22473         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
22474         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
22475         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
22476         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
22477         * config/s390/s390.md (FP_ALL): New mode iterator.
22478         (_d): New mode attribute.
22479         ("*signbit<mode>2>"): Changed mode of first operand.
22480         ("isinf<mode>2"): Changed mode of first operand.
22481         ("*TDC_insn"): Adaptation for DFP modes.
22482
22483 2008-01-22  Ben Elliston  <bje@au.ibm.com>
22484
22485         * tree.c (check_qualified_type): Improve function description.
22486
22487 2008-01-21  Jason Merrill  <jason@redhat.com>
22488
22489         PR c++/34196
22490         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
22491         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
22492         if it is set.
22493
22494 2008-01-21  DJ Delorie  <dj@redhat.com>
22495
22496         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
22497         return zero.
22498
22499 2008-01-21  Richard Guenther  <rguenther@suse.de>
22500
22501         PR middle-end/34856
22502         * tree-cfg.c (verify_expr): Allow all invariant expressions
22503         instead of just constant class ones as reference argument.
22504         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
22505         like any other constant.
22506         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
22507
22508 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
22509
22510         * regmove.c (fixup_match_1): Update call crossed frequencies.
22511
22512 2008-01-21  Richard Guenther  <rguenther@suse.de>
22513
22514         PR c/34885
22515         * tree-inline.c (setup_one_parameter): Deal with mismatched
22516         types using a VIEW_CONVERT_EXPR.
22517
22518 2008-01-21  Alon Dayan  <alond@il.ibm.com>
22519             Olga Golovanevsky  <olga@il.ibm.com>
22520
22521         PR tree-optimization/34701
22522         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
22523         when the structure size is not a power of 2.
22524
22525 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
22526
22527         * doc/install.texi: Add doc for --enable-checking=df.
22528
22529 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
22530
22531         PR rtl-optimization/34808
22532         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
22533
22534 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
22535
22536         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
22537         input.
22538
22539 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
22540
22541         PR rtl-optimization/26854
22542         PR rtl-optimization/34400
22543         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
22544         DF_RD->gen.
22545         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
22546         (df_rd_bb_info.expanded_lr_out): New.
22547         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
22548         * loop_iv.c (iv_analysis_loop_init): Ditto.
22549         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
22550         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
22551         Added code to allocate, initialize or free expanded_lr_out.
22552         (df_rd_bb_local_compute_process_def): Restructured to make
22553         more understandable.
22554         (df_rd_confluence_n): Add code to do nothing with fake edges and
22555         code to no apply invalidate_by_call sets if the sets are being trimmed.
22556         (df_lr_local_finalize): Renamed to df_lr_finalize.
22557         (df_live_local_finalize): Renamed to df_live_finalize.
22558
22559 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
22560
22561         PR target/34831
22562         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
22563         deciding whether to use reciprocal instructions.
22564
22565 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
22566
22567         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
22568         dwarf2out_note_section_used if cold_text_section is NULL.
22569
22570 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
22571
22572         PR gcov-profile/34610
22573         * tree-cfg.c (make_edges): Mark both outgoing edges from
22574         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
22575         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
22576         from OMP_FOR and OMP_CONTINUE outgoing edges.
22577
22578         * tree-profile.c (tree_profiling): Return early if
22579         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
22580         at the end.
22581         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
22582         from cfun to child_cfun.
22583         * function.h (struct function): Add after_tree_profile bit.
22584
22585 2008-01-19 Anatoly Sokolov <aesok@post.ru>
22586
22587         * config/avr/avr.S (_exit): Disable interrupt.
22588
22589 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
22590             Steven Bosscher  <stevenb.gcc@gmail.com>
22591
22592         PR rtl-optimization/26854
22593         PR rtl-optimization/34400
22594         * df-problems.c (df_live_scratch): New scratch bitmap.
22595         (df_live_alloc): Allocate df_live_scratch when doing df_live.
22596         (df_live_reset): Clear the proper bitmaps.
22597         (df_live_bb_local_compute): Only process the artificial defs once
22598         since the order is not important.
22599         (df_live_init): Init the df_live sets only with the variables
22600         found live by df_lr.
22601         (df_live_transfer_function): Use the df_lr sets to prune the
22602         df_live sets as they are being computed.
22603         (df_live_free): Free df_live_scratch.
22604
22605 2008-01-18  Ian Lance Taylor  <iant@google.com>
22606
22607         * common.opt: Add fmerge-debug-strings.
22608         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
22609         flag_merge_debug_strings rather than flag_merge_constants.
22610         * doc/invoke.texi (Option Summary): Mention
22611         -fmerge-debug-strings.
22612         (Debugging Options): Document -fmerge-debug-strings.
22613
22614 2008-01-18  Ian Lance Taylor  <iant@google.com>
22615
22616         PR c++/33407
22617         * tree.h (DECL_IS_OPERATOR_NEW): Define.
22618         (struct tree_function_decl): Add new field operator_new_flag.
22619         * tree-inline.c (expand_call_inline): When inlining a call to
22620         operator new, force the return value to go into a variable, and
22621         set DECL_NO_TBAA_P on that variable.
22622         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
22623
22624 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
22625
22626         PR debug/34484
22627         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
22628         DWARF2_DEBUGGING_INFO.
22629         (dwarf2out_note_section_used): Ditto.  Add prototype.
22630         (have_multiple_function_sections, text_section_used,
22631         cold_text_section_used, *cold_text_sections): Move declarations
22632         before their uses.
22633
22634 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
22635
22636         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
22637         field and add signal_ra.
22638         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
22639         assignments to frame state pc.  Move end of stack check after
22640         MD_FALLBACK_FRAME_STATE_FOR.
22641         (uw_update_context_1): Use frame state signal_regs if set, instead
22642         of checking signal_frame flag.
22643         (uw_update_context): Use frame state signal_ra if set.
22644         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
22645         * config/xtensa/linux-unwind.h: New file.
22646
22647 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
22648
22649         * modulo-sched.c (get_sched_window): Fix comment typo.
22650
22651 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
22652
22653         PR tree-optimization/34648
22654         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
22655
22656 2008-01-17  Anatoly Sokolov <aesok@post.ru>
22657
22658         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
22659         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
22660
22661 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
22662
22663         PR rtl-optimization/34400
22664         * df-core.c (df_worklist_dataflow_overeager,
22665         df_worklist_dataflow_doublequeue): New functions.
22666         (df_worklist_dataflow): Two different worklist solvers.
22667         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
22668         New param.
22669
22670 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22671
22672         PR testsuite/34821
22673         * doc/invoke.texi: Document the dependence on pthread for fopenmp
22674         and ftree-parallelize-loops.
22675
22676 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
22677
22678         PR rtl-optimization/34826
22679         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
22680
22681 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
22682
22683         * global.c (find_reg): Mark the eh regs as used if necessary.
22684         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
22685         * ra.h (struct allocno): no_eh_reg field added.  Changed
22686         no_stack_reg type to bitfield.
22687
22688 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
22689
22690         * tree.c (substitute_in_expr): Add missing 'break'.
22691
22692 2008-01-17  Richard Guenther  <rguenther@suse.de>
22693
22694         PR tree-optimization/34825
22695         * tree-ssa-math-opts.c (is_division_by): Do not recognize
22696         x / x as division to handle.
22697
22698 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22699
22700         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
22701         "-pthread" is specified.
22702         * pa-hpux11.h (LIB_SPEC): Likewise.
22703
22704 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
22705             Peter Bergner  <bergner@vnet.ibm.com>
22706
22707         PR rtl-optimization/33796
22708         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
22709
22710 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22711
22712         PR libgfortran/34699
22713         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
22714         static links.
22715         * pa-hpux10.h (LINK_SPEC): Likewise.
22716         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
22717
22718 2008-01-16  Richard Guenther  <rguenther@suse.de>
22719
22720         PR middle-end/32628
22721         * fold-const.c (fold_convert_const_int_from_int): Do not
22722         set overflow if that occured only because of a sign extension
22723         change when converting from/to a sizetype with the same
22724         precision and signedness.
22725
22726 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
22727
22728         PR debug/34249
22729         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
22730         location address to the correct place.  Update copyright year.
22731
22732 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22733
22734         * lambda-code.c (lambda_transform_legal_p): Handle the case of
22735         no dependences in the dependence_relations vector.
22736
22737 2008-01-16  Jan Hubicka  <jh@suse.cz>
22738
22739         PR rtl-optimization/31396
22740         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
22741         * cfg.c (dump_reg_info): Print it.
22742         * regs.h (struct reg_info_t): add freq_calls_crossed.
22743         (REG_FREQ_CALLS_CROSSED): New macro.
22744         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
22745         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
22746         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
22747         regmove_optimize): Update call crossed frequencies.
22748         * local-alloc.c (struct qty): Add freq_calls_crossed.
22749         (alloc_qty): Copute freq_calls_crossed.
22750         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
22751         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
22752         * ra.h (struct allocno): Add freq_calls_crossed.
22753
22754 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22755
22756         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
22757         libgomp when compiling with ftree-parallelize-loops.
22758         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
22759
22760 2008-01-16  Richard Guenther  <rguenther@suse.de>
22761
22762         PR tree-optimization/34769
22763         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
22764         * tree.c (int_cst_value): Instead make this function more
22765         permissive in what it accepts as valid input.  Document this
22766         function always sign-extends the value.
22767
22768 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
22769             Richard Guenther  <rguenther@suse.de>
22770
22771         PR c/34668
22772         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
22773         (gimple_fold_indirect_ref_rhs): ... this.
22774         (gimple_fold_indirect_ref): New function with foldings
22775         that preserve lvalueness.
22776         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
22777         * tree-flow.h (gimple_fold_indirect_ref): Declare.
22778         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
22779         to fold an INDIRECT_REF, fall back to the old use of
22780         fold_indirect_ref_1.
22781
22782 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
22783
22784         * tree-data-ref.c (subscript_dependence_tester_1): Call
22785         free_conflict_function.
22786         (compute_self_dependence): Same.
22787
22788 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
22789
22790         PR debug/34249
22791         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
22792         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
22793         function global.
22794         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
22795         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
22796         for DWARF2_UNWIND_INFO targets.
22797
22798 2008-01-16  Richard Guenther  <rguenther@suse.de>
22799
22800         PR c/34768
22801         * c-typeck.c (common_pointer_type): Do not merge inconsistent
22802         type qualifiers for function types.
22803
22804 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
22805
22806         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
22807         loop_iterator li from previous commit.
22808
22809 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
22810
22811         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
22812
22813 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
22814
22815         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
22816         (parallelize_loops): Don't parallelize irreducible components.
22817
22818 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
22819
22820         PR c++/24924
22821         * c-opts (c_common_post_options): Do not enable CPP
22822         flag_pedantic_errors by default.
22823
22824 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
22825
22826         PR rtl-optimization/31944
22827         * cse.c (remove_pseudo_from_table): New function.
22828         (merge_equiv_classes): Use above function to remove pseudo-registers.
22829         (invalidate): Likewise.
22830
22831 2008-01-13  Richard Guenther  <rguenther@suse.de>
22832
22833         PR middle-end/34601
22834         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
22835         instead of TYPE_MODE to deal with calls from expand_one_error_var.
22836
22837 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
22838
22839         * gcse.c (cprop_jump): Call validate_unshare_change instead of
22840         validate_change to unshare the source of the PC set.
22841
22842 2008-01-12  Jan Hubicka  <jh@suse.cz>
22843
22844         PR middle-end/32135
22845         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
22846         references above array bounds.  This might trigger bounds checks for
22847         pointers to arrays.
22848
22849 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
22850
22851         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
22852         new_replaceable_dependencies.
22853
22854 2008-01-12  Doug Kwan  <dougkwan@google.com>
22855
22856         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
22857         instead of OPT_Wreturn_type in warning due to ignored return type
22858         qualifiers.
22859         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
22860         options included in -Wextra.
22861         * c.opt: New option -Wignored_qualifiers.
22862         * doc/invoke.texi (Warning Options, -Wextra): Add new option
22863         -Wignore_qualifiers.
22864         (-Wignored-qualifiers): Document.
22865         (-Wreturn-type): Remove description of functionality now handled
22866         by -Wignored-qualifiers.
22867
22868 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
22869
22870         PR ada/33788
22871         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
22872         NOP_EXPR if it is between integral types with the same precision.
22873
22874 2008-01-12  Jan Hubicka  <jh@suse.cz>
22875
22876         PR other/28023
22877         * invoke.texi (max-inline-recursive-depth): Fix default value.
22878
22879 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
22880
22881         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
22882         correct type.
22883
22884 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
22885
22886         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
22887
22888 2008-01-11  James E. Wilson  <wilson@specifix.com>
22889
22890         PR target/26015
22891         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
22892
22893 2008-01-11  Anatoly Sokolov <aesok@post.ru>
22894
22895         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
22896         save/restore frame pointer register and don't use 'call-prologues'
22897         optimization in function with "OS_task" attribute.
22898
22899 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
22900
22901         PR middle-end/31309
22902         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
22903         when copying to memory.
22904
22905 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
22906
22907         PR rtl-optimization/30905
22908         * cfgcleanup.c: Include dce.h
22909         (crossjumps_occured): New global variable.
22910         (try_crossjump_bb): Exit loop after finding a fallthru edge.
22911         If something changed, set crossjumps_occured to true.
22912         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
22913         Don't add/remove fake edges to exit here...
22914         (cleanup_cfg): ...but do it here, when crossjumping.
22915         Run a fast DCE when successful crossjumps occured in the latest
22916         iteration of try_optimize_cfg.
22917
22918 2008-01-11  Richard Guenther  <rguenther@suse.de>
22919
22920         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
22921         (struct vn_unary_op_s): Likewise.
22922         (vn_reference_insert): Free old reference on hash collision.
22923
22924 2008-01-10  Raksit Ashok  <raksit@google.com>
22925
22926         PR rtl-optimization/27971
22927         * combine.c (find_split_point): Split PLUS expressions which are
22928         inside a MEM rtx, and whose first operand is complex.
22929
22930 2008-01-10  DJ Delorie  <dj@redhat.com>
22931
22932         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
22933         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
22934         (m32c_hard_regno_ok): Call the underlying function.
22935
22936 2008-01-10  Richard Guenther  <rguenther@suse.de>
22937
22938         PR middle-end/34683
22939         * tree-cfg.c (tree_merge_blocks): Do not go through the
22940         full-blown folding and stmt updating path if we just deal
22941         with virtual operands.
22942         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
22943         test for abnormal SSA_NAMEs.
22944
22945 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
22946
22947         PR middle-end/34641
22948         * reload.c (push_reload): Add assertions.  All constants from
22949         reg_equiv_constant should have been used for replacing the respective
22950         pseudo earlier.
22951         (find_reloads_address): Invoke find_reloads_address_part for
22952         constant taken from the reg_equiv_constant array.
22953
22954 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
22955
22956         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
22957         field (valnum) the first in the struct.  Replace bools with
22958         unit bit fields.
22959
22960 2008-01-10  Richard Guenther  <rguenther@suse.de>
22961
22962         PR tree-optimization/34651
22963         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
22964         types and ordering for masking and converting.
22965
22966 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
22967
22968         PR tree-optimization/34017
22969         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
22970         also for PHI_NODE expressions.
22971
22972 2008-01-09  Jan Hubicka  <jh@suse.cz>
22973
22974         PR tree-optimization/34708
22975         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
22976         based on number of case labels.
22977         (init_inline_once): Remove switch_cost.
22978         * tree-inline.h (eni_weights_d): Remove switch_cost.
22979
22980 2008-01-09  Richard Guenther  <rguenther@suse.de>
22981         Andrew Pinski  <andrew_pinski@playstation.sony.com>
22982
22983         PR middle-end/30132
22984         * gimplify.c (gimplify_cond_expr): Do not create an addressable
22985         temporary if an rvalue is ok or an lvalue is not required.
22986
22987 2008-01-09  Richard Guenther  <rguenther@suse.de>
22988
22989         PR middle-end/34458
22990         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
22991         adjust return type.
22992
22993 2008-01-09  Richard Guenther  <rguenther@suse.de>
22994
22995         PR middle-end/34679
22996         * tree.c (host_integerp): Check for sizetype only if the
22997         type is an integer type.
22998
22999 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
23000
23001         PR debug/26364
23002         * opts.c (decode_options): Disable inlining of functions called
23003         once if not in unit-at-a-time mode.
23004
23005 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
23006
23007         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
23008
23009 2008-01-08  Richard Guenther  <rguenther@suse.de>
23010
23011         PR middle-end/31863
23012         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
23013         out early if the result will be unused.
23014
23015 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
23016
23017         PR target/34709
23018         Revert:
23019
23020         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
23021         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
23022         for TARGET_RECIP.
23023
23024 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
23025
23026         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
23027         for vectorization tuned.
23028
23029 2008-01-08  Richard Guenther  <rguenther@suse.de>
23030
23031         PR tree-optimization/34683
23032         * tree-ssa-operands.c (operand_build_cmp): Export.
23033         * tree-ssa-operands.h (operand_build_cmp): Declare.
23034         * tree-vn.c (vuses_compare): Remove.
23035         (sort_vuses): Use operand_build_cmp.
23036         (sort_vuses_heap): Likewise.
23037         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
23038         to re-use old VEC if available.  Do not sort already sorted VUSEs.
23039         (vdefs_to_vec): Do not sort already sorted VDEFs.
23040
23041 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
23042
23043         PR middle-end/34694
23044         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
23045
23046 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
23047
23048         PR target/34702
23049         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
23050         limitations of reciprocal sequences on x86 targets.
23051
23052 2008-01-08  Richard Guenther  <rguenther@suse.de>
23053
23054         PR tree-optimization/34683
23055         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
23056
23057 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
23058
23059         PR target/34622
23060         * config/darwin.c (darwin_mergeable_string_section): Don't use
23061         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
23062
23063 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
23064
23065         PR target/34682
23066         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
23067         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
23068         predicates of op0 and op1 to register_operand.
23069         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
23070         expander using X87MODEF mode iterator.  Change predicates of
23071         op0 and op1 to register_operand.
23072         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
23073         corresponding patterns and macroize using MODEF macro.  Change
23074         predicates of op0 and op1 to register_operand and remove
23075         "m" constraint. Disparage "r" alternative with "!".
23076         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
23077         macroize using X87MODEF macro.  Change predicates of op0 and op1
23078         to register_operand and remove "m" constraint.  Disparage "r"
23079         alternative with "!".
23080         (absneg splitter with memory operands): Remove.
23081         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
23082         patterns and macroize using X87MODEF mode iterator.
23083         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
23084         Change predicate of op1 to register_operand.
23085         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
23086         for memory operands.
23087
23088 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
23089
23090         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
23091
23092 2008-01-07  Richard Guenther  <rguenther@suse.de>
23093
23094         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
23095         fields.
23096
23097 2008-01-07  Richard Guenther  <rguenther@suse.de>
23098
23099         PR tree-optimization/34683
23100         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
23101         VOPs of the needed size to save memory.  Use VEC_quick_push
23102         to save compile-time.
23103         (vdefs_to_vec): Likewise.
23104
23105 2008-01-07  Sa Liu  <saliu@de.ibm.com>
23106
23107         * config/spu/spu.md (divdf3): Genetate inline code for double
23108         division.  The implementation doesn't handle INF or NAN, therefore it
23109         only applies when -ffinite-math-only is given.
23110
23111 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
23112
23113         PR libstdc++/34680
23114         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
23115         * doc/cpp.texi ([Common Predefined Macros]): Document.
23116
23117 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
23118
23119         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
23120         order to use commutative addition instead of subtraction.
23121
23122 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
23123             Mircea Namolaru  <namolaru@il.ibm.com>
23124             Vladimir Yanovsky  <yanov@il.ibm.com>
23125             Revital Eres  <eres@il.ibm.com>
23126
23127         PR tree-optimization/34263
23128         * tree-outof-ssa.c (process_single_block_loop_latch,
23129         contains_tree_r): New functions.
23130         (analyze_edges_for_bb): Call process_single_block_loop_latch
23131         function to empty single-basic-block latch block if possible.
23132
23133 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
23134
23135         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
23136         for TARGET_RECIP.
23137         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
23138
23139 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
23140
23141         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
23142
23143 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
23144
23145         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
23146
23147 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
23148
23149         PR tree-optimization/34618
23150         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
23151         flag from T.
23152
23153 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
23154
23155         PR target/34673
23156         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
23157         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
23158         Update copyright year.
23159
23160         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
23161         Update copyright year.
23162         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
23163         using NR fixup.
23164
23165 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
23166
23167         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
23168         edge does not point to current bb before changing need_assert.
23169
23170 2008-01-04  Richard Guenther  <rguenther@suse.de>
23171
23172         PR middle-end/34029
23173         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
23174         for verifying purposes if they are is_gimple_min_invariant.
23175
23176 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
23177
23178         PR tree-optimization/34448
23179         PR tree-optimization/34465
23180         * gimplify.c (gimplify_init_constructor): Add new parameter
23181         notify_temp_creation.  Use it.
23182         (gimplify_modify_expr_rhs): Take volatiles into account when
23183         optimizing constructors.
23184         Do not optimize constructors if gimplify_init_constructor will dump to
23185         memory.
23186         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
23187         * gcc.c-torture/compile/pr34448.c: New.
23188
23189 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
23190
23191         PR gcov-profile/34609
23192         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
23193         return_slot if result is TREE_ADDRESSABLE.
23194
23195 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
23196
23197         * config/mips/mips.md (sqrt_condition): Tweak comment.
23198         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
23199
23200 2008-01-03  Tom Tromey  <tromey@redhat.com>
23201
23202         PR c/34457
23203         * c-common.c (c_type_hash): Handle VLAs.
23204
23205 2008-01-03  Jan Hubicka  <jh@suse.cz>
23206
23207         PR tree-optimization/31081
23208         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
23209         0 when inlining and not inlining to first basic block.
23210         (remap_decl): When var is initialized to 0, don't set default_def.
23211         (expand_call_inline): Set entry_bb.
23212         * tree-inline.h (copy_body_data): Add entry_bb.
23213
23214 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
23215
23216         PR c++/34619
23217         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
23218         before returning.
23219
23220         PR tree-optimization/29484
23221         * tree-inline.c (inline_forbidden_p_2): New function.
23222         (inline_forbidden_p): Disallow inlining if some static var
23223         has an address of a local LABEL_DECL in its initializer.
23224         * doc/extend.texi (Labels as Values): Document &&foo behaviour
23225         vs. inlining.
23226
23227 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
23228
23229         PR tree-optimization/34635
23230         * tree-data-ref.c (add_other_self_distances): Make sure that the
23231         evolution step is constant.
23232
23233 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
23234
23235         PR middle-end/34608
23236         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
23237
23238 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
23239
23240         * tree-sra.c (scalarize_init): Insert the generate_element_init
23241         statements after the generate_element_zero statements.
23242
23243 2008-01-02  Richard Guenther  <rguenther@suse.de>
23244
23245         PR middle-end/34093
23246         PR middle-end/31976
23247         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
23248         for very large number of operands instead of ICEing.
23249
23250 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
23251
23252         PR target/34013
23253         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
23254         while stack probing.
23255
23256 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
23257
23258         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
23259         in C++0x mode.
23260
23261 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
23262
23263         PR libmudflap/26442
23264         * tree-mudflap.c (mx_register_decls): Guard warning by
23265         !DECL_ARTIFICIAL check.
23266
23267 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
23268
23269         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
23270         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
23271         sse5_perm<mode>): Fix constraints.